Documentation ¶
Index ¶
- Constants
- func New(id string, cli *provider.DockerClient, opts ...Option) (types.Harness, error)
- type Opt
- type Option
- func WithAuthFromKeychain(registry string) Option
- func WithAuthFromStatic(registry, username, password, auth string) Option
- func WithCniDisabled(disabled bool) Option
- func WithImageRef(ref name.Reference) Option
- func WithMetricsServerDisabled(disabled bool) Option
- func WithNetworks(networks ...string) Option
- func WithRegistryMirror(registry string, endpoints ...string) Option
- func WithResources(req provider.ContainerResourcesRequest) Option
- func WithSandboxEnv(envs provider.Env) Option
- func WithSandboxImageRef(ref name.Reference) Option
- func WithSandboxMounts(mounts ...mount.Mount) Option
- func WithSandboxNetworks(networks ...string) Option
- func WithSandboxResources(req provider.ContainerResourcesRequest) Option
- func WithTraefikDisabled(disabled bool) Option
- type RegistryAuthOpt
- type RegistryMirrorOpt
- type RegistryOpt
- type RegistryTlsOpt
Constants ¶
View Source
const ( K3sImageTag = "cgr.dev/chainguard/k3s:latest" KubectlImageTag = "cgr.dev/chainguard/kubectl:latest-dev" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Opt ¶
type Opt struct { ImageRef name.Reference Traefik bool Cni bool MetricsServer bool Networks []string Resources provider.ContainerResourcesRequest Registries map[string]*RegistryOpt Mirrors map[string]*RegistryMirrorOpt Sandbox provider.DockerRequest }
type Option ¶
func WithAuthFromKeychain ¶
func WithAuthFromStatic ¶
func WithCniDisabled ¶ added in v0.0.10
func WithImageRef ¶ added in v0.0.11
func WithMetricsServerDisabled ¶ added in v0.0.10
func WithNetworks ¶ added in v0.0.2
func WithRegistryMirror ¶
func WithResources ¶ added in v0.0.7
func WithResources(req provider.ContainerResourcesRequest) Option
func WithSandboxEnv ¶ added in v0.0.3
func WithSandboxImageRef ¶ added in v0.0.11
func WithSandboxMounts ¶ added in v0.0.3
func WithSandboxNetworks ¶ added in v0.0.3
func WithSandboxResources ¶ added in v0.0.7
func WithSandboxResources(req provider.ContainerResourcesRequest) Option
func WithTraefikDisabled ¶ added in v0.0.10
type RegistryAuthOpt ¶
type RegistryMirrorOpt ¶
type RegistryMirrorOpt struct {
Endpoints []string
}
type RegistryOpt ¶
type RegistryOpt struct { Auth *RegistryAuthOpt Tls *RegistryTlsOpt }
type RegistryTlsOpt ¶
Click to show internal directories.
Click to hide internal directories.