Documentation ¶
Index ¶
- Constants
- func GetConfig(manifest *types.ContainerManifest) *container.Config
- func GetHostConfig(manifest *types.ContainerManifest) *container.HostConfig
- func GetNetworkConfig(manifest *types.ContainerManifest) *network.NetworkingConfig
- type Runtime
- func (r *Runtime) Copy(ctx context.Context, ID, path string, content io.Reader) error
- func (r *Runtime) Create(ctx context.Context, manifest *types.ContainerManifest) (string, error)
- func (r *Runtime) Inspect(ctx context.Context, ID string) (*types.Container, error)
- func (r *Runtime) List(ctx context.Context, all bool) ([]*types.Container, error)
- func (r *Runtime) Logs(ctx context.Context, ID string, stdout, stderr, follow bool) (io.ReadCloser, error)
- func (r *Runtime) Pause(ctx context.Context, ID string) error
- func (r *Runtime) Remove(ctx context.Context, ID string, clean bool, force bool) error
- func (r *Runtime) Restart(ctx context.Context, ID string, timeout *time.Duration) error
- func (r *Runtime) Resume(ctx context.Context, ID string) error
- func (r *Runtime) Start(ctx context.Context, ID string) error
- func (r *Runtime) Stop(ctx context.Context, ID string, timeout *time.Duration) error
- func (r *Runtime) Subscribe(ctx context.Context, container chan *types.Container) error
Constants ¶
View Source
const CTYPE = "container"
Variables ¶
This section is empty.
Functions ¶
func GetHostConfig ¶
func GetHostConfig(manifest *types.ContainerManifest) *container.HostConfig
func GetNetworkConfig ¶
func GetNetworkConfig(manifest *types.ContainerManifest) *network.NetworkingConfig
Types ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func (*Runtime) Copy ¶
Copy - https://docs.docker.com/engine/api/v1.29/#operation/PutContainerArchive
Click to show internal directories.
Click to hide internal directories.