Documentation ¶
Index ¶
- func LoadDockerConfig() (*configfile.ConfigFile, error)
- type Client
- type DockerHelper
- func (r *DockerHelper) FindContainer(labels []string) ([]string, error)
- func (r *DockerHelper) FindDevContainer(labels []string) (*config.ContainerDetails, error)
- func (r *DockerHelper) GPUSupportEnabled() (bool, error)
- func (r *DockerHelper) Inspect(ids []string, inspectType string, obj interface{}) error
- func (r *DockerHelper) InspectContainers(ids []string) ([]config.ContainerDetails, error)
- func (r *DockerHelper) InspectImage(imageName string, tryRemote bool) (*config.ImageDetails, error)
- 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, id string, labels []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
}
func (*DockerHelper) FindContainer ¶
func (r *DockerHelper) FindContainer(labels []string) ([]string, error)
func (*DockerHelper) FindDevContainer ¶
func (r *DockerHelper) FindDevContainer(labels []string) (*config.ContainerDetails, error)
func (*DockerHelper) GPUSupportEnabled ¶
func (r *DockerHelper) GPUSupportEnabled() (bool, error)
func (*DockerHelper) Inspect ¶
func (r *DockerHelper) Inspect(ids []string, inspectType string, obj interface{}) error
func (*DockerHelper) InspectContainers ¶
func (r *DockerHelper) InspectContainers(ids []string) ([]config.ContainerDetails, error)
func (*DockerHelper) InspectImage ¶
func (r *DockerHelper) InspectImage(imageName string, tryRemote bool) (*config.ImageDetails, error)
func (*DockerHelper) RunWithDir ¶
func (*DockerHelper) StartContainer ¶
Click to show internal directories.
Click to hide internal directories.