Documentation ¶
Index ¶
- Constants
- func New(id string, opts ...Option) (types.Harness, error)
- type Opt
- type Option
- func WithAuthFromKeychain(registry string) Option
- func WithAuthFromStatic(registry, username, password, auth string) Option
- func WithImage(image string) 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 WithSandboxImage(image string) Option
- func WithSandboxMounts(mounts ...mount.Mount) Option
- func WithSandboxNetworks(networks ...string) Option
- func WithSandboxResources(req provider.ContainerResourcesRequest) Option
- type RegistryAuthOpt
- type RegistryMirrorOpt
- type RegistryOpt
- type RegistryTlsOpt
Constants ¶
View Source
const (
K3sImage = "cgr.dev/chainguard/k3s:latest"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Opt ¶
type Opt struct { Image string 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 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 WithSandboxImage ¶ added in v0.0.3
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
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.