2016-03-18 18:50:19 +00:00
|
|
|
package libcontainerd
|
|
|
|
|
|
|
|
// Remote on Linux defines the accesspoint to the containerd grpc API.
|
|
|
|
// Remote on Windows is largely an unimplemented interface as there is
|
|
|
|
// no remote containerd.
|
|
|
|
type Remote interface {
|
|
|
|
// Client returns a new Client instance connected with given Backend.
|
|
|
|
Client(Backend) (Client, error)
|
|
|
|
// Cleanup stops containerd if it was started by libcontainerd.
|
|
|
|
// Note this is not used on Windows as there is no remote containerd.
|
|
|
|
Cleanup()
|
2016-06-02 18:10:55 +00:00
|
|
|
// UpdateOptions allows various remote options to be updated at runtime.
|
|
|
|
UpdateOptions(...RemoteOption) error
|
2016-03-18 18:50:19 +00:00
|
|
|
}
|
|
|
|
|
2016-03-28 13:17:21 +00:00
|
|
|
// RemoteOption allows to configure parameters of remotes.
|
2016-03-18 18:50:19 +00:00
|
|
|
// This is unused on Windows.
|
|
|
|
type RemoteOption interface {
|
|
|
|
Apply(Remote) error
|
|
|
|
}
|