2016-03-18 14:53:27 -04:00
|
|
|
package libcontainerd
|
|
|
|
|
|
|
|
import "sync"
|
|
|
|
|
|
|
|
type remote struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *remote) Client(b Backend) (Client, error) {
|
|
|
|
c := &client{
|
|
|
|
clientCommon: clientCommon{
|
|
|
|
backend: b,
|
|
|
|
containerMutexes: make(map[string]*sync.Mutex),
|
|
|
|
containers: make(map[string]*container),
|
|
|
|
},
|
|
|
|
}
|
|
|
|
return c, nil
|
|
|
|
}
|
|
|
|
|
2016-03-18 23:29:27 -04:00
|
|
|
// Cleanup is a no-op on Windows. It is here to implement the interface.
|
2016-03-18 14:53:27 -04:00
|
|
|
func (r *remote) Cleanup() {
|
|
|
|
}
|
|
|
|
|
2016-03-18 23:29:27 -04:00
|
|
|
// New creates a fresh instance of libcontainerd remote. On Windows,
|
|
|
|
// this is not used as there is no remote containerd process.
|
2016-03-18 14:53:27 -04:00
|
|
|
func New(_ string, _ ...RemoteOption) (Remote, error) {
|
|
|
|
return &remote{}, nil
|
|
|
|
}
|