kindacool

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputKubeconfig = "kubeconfig"
	OutputSSHKey     = "sshKey"
)

TODO: make configurable

Variables

View Source
var (
	ErrPulumiNotInPath   = errors.New("pulumi executable not found in $PATH")
	ErrUnauthorized      = errors.New(".openrc env vars for openstack could not be found")
	ErrOutputUnavailable = errors.New("output could not be found")
)
View Source
var ErrInvalidConfig = errors.New("invalid config")

Functions

func EnsureEnvironment

func EnsureEnvironment(ctx context.Context) error

func EnsurePlugins

func EnsurePlugins(ctx context.Context, w auto.Workspace) error

Types

type GlobalOptions

type GlobalOptions struct {
	Verbose bool
	Name    string
}

func (*GlobalOptions) Validate

func (o *GlobalOptions) Validate() error

type Manager

type Manager struct {
	Options GlobalOptions
	Logger  *log.Logger
}

func (*Manager) Destroy

func (m *Manager) Destroy(ctx context.Context) error

func (*Manager) FetchOutput

func (m *Manager) FetchOutput(ctx context.Context, outputKey string) (string, error)

FetchOutput gets an output from the current stack. The available outputs are defined as consts.

func (*Manager) List

func (m *Manager) List(ctx context.Context) ([]string, error)

func (*Manager) Run

func (m *Manager) Run(ctx context.Context, args *k3s.ClusterArgs) error

Jump to

Keyboard shortcuts

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