Documentation ¶
Index ¶
- func LoadDockerConfig() (*configfile.ConfigFile, error)
- type Client
- type DockerHelper
- func (r *DockerHelper) DeleteVolume(ctx context.Context, volume string) error
- func (r *DockerHelper) FindContainer(ctx context.Context, labels []string) ([]string, error)
- func (r *DockerHelper) FindContainerByID(ctx context.Context, containerIds []string) (*config.ContainerDetails, error)
- func (r *DockerHelper) FindContainerJSON(ctx context.Context, labels []string) ([]string, error)
- func (r *DockerHelper) FindDevContainer(ctx context.Context, labels []string) (*config.ContainerDetails, error)
- func (r *DockerHelper) GPUSupportEnabled() (bool, error)
- func (r *DockerHelper) Inspect(ctx context.Context, ids []string, inspectType string, obj interface{}) error
- func (r *DockerHelper) InspectContainers(ctx context.Context, ids []string) ([]config.ContainerDetails, error)
- func (r *DockerHelper) InspectImage(ctx context.Context, imageName string, tryRemote bool) (*config.ImageDetails, error)
- func (r *DockerHelper) IsPodman() bool
- func (r *DockerHelper) Remove(ctx context.Context, id string) error
- func (r *DockerHelper) Run(ctx context.Context, args []string, stdin io.Reader, stdout io.Writer, ...) error
- func (r *DockerHelper) RunWithDir(ctx context.Context, dir string, args []string, stdin io.Reader, ...) error
- func (r *DockerHelper) StartContainer(ctx context.Context, containerId string) error
- func (r *DockerHelper) Stop(ctx context.Context, id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadDockerConfig ¶
func LoadDockerConfig() (*configfile.ConfigFile, error)
Types ¶
type DockerHelper ¶
type DockerHelper struct { DockerCommand string // for a running container, we cannot pass down the container ID to the driver without introducing // changes in the driver interface (which we do not want to do). So, to get around this, we pass // it down to the driver during docker helper initialization. ContainerID string // allow command to have a custom environment Environment []string }
func (*DockerHelper) DeleteVolume ¶ added in v0.1.8
func (r *DockerHelper) DeleteVolume(ctx context.Context, volume string) error
func (*DockerHelper) FindContainer ¶
FindContainer will try to find a container based on the input labels. If no container is found, it will search for the labels manually inspecting containers.
func (*DockerHelper) FindContainerByID ¶ added in v0.4.0
func (r *DockerHelper) FindContainerByID(ctx context.Context, containerIds []string) (*config.ContainerDetails, error)
func (*DockerHelper) FindContainerJSON ¶ added in v0.1.7
FindContainerJSON will manually search for containers with matching labels. This is useful in case the `--filter` doesn't work.
func (*DockerHelper) FindDevContainer ¶
func (r *DockerHelper) FindDevContainer(ctx context.Context, labels []string) (*config.ContainerDetails, error)
func (*DockerHelper) GPUSupportEnabled ¶
func (r *DockerHelper) GPUSupportEnabled() (bool, error)
func (*DockerHelper) InspectContainers ¶
func (r *DockerHelper) InspectContainers(ctx context.Context, ids []string) ([]config.ContainerDetails, error)
func (*DockerHelper) InspectImage ¶
func (r *DockerHelper) InspectImage(ctx context.Context, imageName string, tryRemote bool) (*config.ImageDetails, error)
func (*DockerHelper) IsPodman ¶ added in v0.1.7
func (r *DockerHelper) IsPodman() bool
func (*DockerHelper) RunWithDir ¶
func (*DockerHelper) StartContainer ¶
func (r *DockerHelper) StartContainer(ctx context.Context, containerId string) error
Click to show internal directories.
Click to hide internal directories.