diff options
Diffstat (limited to 'libcontainerd/remote.go')
-rw-r--r-- | libcontainerd/remote.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libcontainerd/remote.go b/libcontainerd/remote.go new file mode 100644 index 0000000..9031e3a --- /dev/null +++ b/libcontainerd/remote.go @@ -0,0 +1,20 @@ +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() + // UpdateOptions allows various remote options to be updated at runtime. + UpdateOptions(...RemoteOption) error +} + +// RemoteOption allows to configure parameters of remotes. +// This is unused on Windows. +type RemoteOption interface { + Apply(Remote) error +} |