Documentation ¶
Index ¶
- Constants
- func New(id string, cli *provider.DockerClient, opts ...Option) (types.Harness, error)
- type HarnessDockerOptions
- type Option
- func WithAuthFromKeychain(registry string) Option
- func WithAuthFromStatic(registry, username, password, auth string) Option
- func WithConfigVolumeName(configVolumeName string) Option
- func WithContainerResources(request provider.ContainerResourcesRequest) Option
- func WithEnvs(env ...provider.Env) Option
- func WithHostSocketPath(socketPath string) Option
- func WithImageRef(ref name.Reference) Option
- func WithManagedVolumes(volumes ...container.ConfigMount) Option
- func WithMounts(mounts ...container.ConfigMount) Option
- func WithNetworks(networks ...string) Option
- type RegistryOpt
Constants ¶
View Source
const DefaultDockerSocketPath = "/var/run/docker.sock"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HarnessDockerOptions ¶
type HarnessDockerOptions struct { ImageRef name.Reference ManagedVolumes []container.ConfigMount Networks []string Mounts []container.ConfigMount HostSocketPath string Envs provider.Env Registries map[string]*RegistryOpt ConfigVolumeName string ContainerResources provider.ContainerResourcesRequest }
type Option ¶
type Option func(*HarnessDockerOptions) error
func WithAuthFromKeychain ¶ added in v0.0.17
func WithAuthFromStatic ¶ added in v0.0.17
func WithConfigVolumeName ¶ added in v0.0.17
func WithContainerResources ¶ added in v0.0.18
func WithContainerResources(request provider.ContainerResourcesRequest) Option
func WithHostSocketPath ¶
func WithImageRef ¶
func WithManagedVolumes ¶
func WithManagedVolumes(volumes ...container.ConfigMount) Option
func WithMounts ¶
func WithMounts(mounts ...container.ConfigMount) Option
func WithNetworks ¶
type RegistryOpt ¶ added in v0.0.17
type RegistryOpt struct { Auth *base.RegistryAuthOpt Tls *base.RegistryTlsOpt }
Click to show internal directories.
Click to hide internal directories.