Documentation ¶
Index ¶
- func ClusterChecker(inst *K3d, name string) check.Checker
- func RegistryChecker(inst *K3d) check.Checker
- type Cluster
- type Command
- func (c *Command) Complete(ctx context.Context, r *readline.Readline) []goprompt.Suggest
- func (c *Command) Description() string
- func (c *Command) Execute(ctx context.Context, r *readline.Readline) error
- func (c *Command) Help(ctx context.Context, r *readline.Readline) string
- func (c *Command) Name() string
- type CommandOption
- type Config
- type ConfigCharts
- type ConfigCluster
- type ConfigRegistry
- type K3d
- type Option
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegistryChecker ¶ added in v0.4.1
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func (*Command) Description ¶
type CommandOption ¶
func CommandWithName ¶
func CommandWithName(v string) CommandOption
type Config ¶
type Config struct { Charts ConfigCharts `json:"charts" yaml:"charts"` Registry ConfigRegistry `json:"registry" yaml:"registry"` Clusters map[string]ConfigCluster `json:"clusters" yaml:"clusters"` }
func (Config) ClusterNames ¶
type ConfigCharts ¶
type ConfigCharts struct { Path string `json:"path" yaml:"path"` Prefix string `json:"prefix" yaml:"prefix"` }
func (ConfigCharts) Names ¶
func (c ConfigCharts) Names() ([]string, error)
type ConfigCluster ¶
type ConfigCluster struct { // Cluster name Name string `json:"-" yaml:"-"` // K3d cluster name Alias string `json:"alias" yaml:"alias"` // Docker image to use Image string `json:"image" yaml:"image"` // Port to bind to Port string `json:"port" yaml:"port"` // EnableTraefikRouter allows to create the cluster with the default traefik router EnableTraefikRouter bool `json:"enableTraefikRouter" yaml:"enableTraefikRouter"` // Additional arguments Args []string `json:"args" yaml:"args"` }
func (ConfigCluster) AliasName ¶
func (c ConfigCluster) AliasName() string
type ConfigRegistry ¶
Click to show internal directories.
Click to hide internal directories.