delegate

package
v0.3.87 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL