k3d

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Name string `json:"name"`
}

type Command

type Command struct {
	// contains filtered or unexported fields
}

func NewCommand

func NewCommand(l log.Logger, k3d *K3d, kubectl *kubectl.Kubectl, opts ...CommandOption) (*Command, error)

func (*Command) Complete

func (c *Command) Complete(ctx context.Context, r *readline.Readline) []goprompt.Suggest

func (*Command) Description

func (c *Command) Description() string

func (*Command) Execute

func (c *Command) Execute(ctx context.Context, r *readline.Readline) error

func (*Command) Help

func (c *Command) Help(ctx context.Context, r *readline.Readline) string

func (*Command) Name

func (c *Command) Name() string

type CommandOption

type CommandOption func(*Command) error

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 []ConfigCluster `json:"clusters" yaml:"clusters"`
}

func (Config) Cluster

func (c Config) Cluster(name string) (ConfigCluster, error)

func (Config) ClusterNames

func (c Config) ClusterNames() []string

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 {
	Name  string   `json:"name" yaml:"name"`
	Alias string   `json:"alias" yaml:"alias"`
	Image string   `json:"image" yaml:"image"`
	Port  string   `json:"port" yaml:"port"`
	Args  []string `json:"args" yaml:"args"`
}

func (ConfigCluster) AliasName

func (c ConfigCluster) AliasName() string

type ConfigRegistry

type ConfigRegistry struct {
	Name string `json:"name" yaml:"name"`
	Port string `json:"port" yaml:"port"`
}

type K3d

type K3d struct {
	// contains filtered or unexported fields
}

func New

func New(l log.Logger, opts ...Option) (*K3d, error)

func (*K3d) Cluster

func (i *K3d) Cluster(ctx context.Context, name string) (*Cluster, error)

func (*K3d) Config

func (i *K3d) Config() *Config

func (*K3d) Registry

func (i *K3d) Registry(ctx context.Context, name string) (*Registry, error)

type Option

type Option func(*K3d) error

func WithConfigKey

func WithConfigKey(v string) Option

type Registry

type Registry struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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