Documentation
¶
Index ¶
- Variables
- func Cleanup(debug bool)
- func ImportBundleImages(ctx context.Context, failFast bool) error
- func ImportImages(ctx context.Context, imagePaths []string, failFast bool) error
- func Install(ctx context.Context, c InstallConfig) error
- func Upgrade(ctx context.Context, c UpgradeConfig) (retErr error)
- func Wait(ctx context.Context) error
- type InstallConfig
- type UpgradeConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrExists = errors.New("k3s already installed")
)
View Source
var (
ErrNoTLS = errors.New("no tls files")
)
View Source
var ErrNotExist = errors.New("k3s not exists")
Functions ¶
func Cleanup ¶
func Cleanup(debug bool)
Cleanup runs k3s-uninstall and removes copied files if debug flag is not enabled
func ImportImages ¶
Types ¶
type InstallConfig ¶
type InstallConfig struct { *config_v1.Configuration Iface string // interface for k3s network to work on IfaceAddr string // ip addr for k3s to use as node ip Debug bool }
type UpgradeConfig ¶
type UpgradeConfig struct {
Debug bool
}
Click to show internal directories.
Click to hide internal directories.