Documentation ¶
Index ¶
- func PullDelegateImage(ctx context.Context, cfg *DockerDelegateConfig) error
- func RemoveDelegateContainer(ctx context.Context, cfg *DockerDelegateConfig, containerId string) error
- func RunDelegateContainer(ctx context.Context, cfg *DockerDelegateConfig, pullImage bool) (string, error)
- type DockerDelegateConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PullDelegateImage ¶ added in v0.1.19
func PullDelegateImage(ctx context.Context, cfg *DockerDelegateConfig) error
func RemoveDelegateContainer ¶
func RemoveDelegateContainer(ctx context.Context, cfg *DockerDelegateConfig, containerId string) error
func RunDelegateContainer ¶
func RunDelegateContainer(ctx context.Context, cfg *DockerDelegateConfig, pullImage bool) (string, error)
Returns the container Id of the delegate
Types ¶
type DockerDelegateConfig ¶
type DockerDelegateConfig struct { AccountId string AccountSecret string DelegateName string ContainerName string Image string ProfileId string EnvVars map[string]string ClientOptions client.Opt ContainerConfig *container.Config HostConfig *container.HostConfig NetworkingConfig *network.NetworkingConfig Platform *specs.Platform ContainerStartOptions types.ContainerStartOptions ContainerRemoveOptions types.ContainerRemoveOptions }
Click to show internal directories.
Click to hide internal directories.