Documentation ¶
Index ¶
- type Config
- type Container
- func (c Container) ID() string
- func (c Container) IP() string
- func (c Container) Inspect(ctx context.Context) (i types.ContainerJSON, e error)
- func (c Container) IsExists(ctx context.Context) (ok bool)
- func (c Container) Pause()
- func (c Container) Remove(ctx context.Context) (e error)
- func (c *Container) Start(ctx context.Context) (e error)
- func (c Container) Unpause()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Image string // Image to create container Storage string // Path of the directory to be mounted on container }
Config holds the configuration for the container.
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
Container describes container.
func NewContainer ¶
NewContainer creates a new container based on the given configuration and returns its descriptor.
Click to show internal directories.
Click to hide internal directories.