Documentation
¶
Index ¶
- Constants
- type Docker
- func (d *Docker) Connect() (err error)
- func (d *Docker) ContainerCreate(ctx context.Context, config *container.Config, ...) (*container.ContainerCreateCreatedBody, error)
- func (d *Docker) DoesServiceExist(ctx context.Context, name string) bool
- func (d *Docker) GetClient() *client.Client
- func (d *Docker) PullImage(ctx context.Context, image string) error
Constants ¶
View Source
const ( DefaultURL = "unix:///var/run/docker.sock" DefaultVersion = "1.27" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
Docker wrapper
func (*Docker) ContainerCreate ¶
func (d *Docker) ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, name string) (*container.ContainerCreateCreatedBody, error)
ContainerCreate creates a container and pulls the image if needed
func (*Docker) DoesServiceExist ¶
DoesServiceExist returns whether the given service exists
Click to show internal directories.
Click to hide internal directories.