k3s

package module
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultInstallPath = "/usr/local/bin/k3s"

Variables

This section is empty.

Functions

func Configure

func Configure(opts ...option)

func InstallStable

func InstallStable(ctx context.Context, path string) error

func InstallSudoers

func InstallSudoers(ctx context.Context, path string) error

func InstalledVersion

func InstalledVersion(ctx context.Context, path string) (string, error)

func Uninstall

func Uninstall(ctx context.Context, dest string) error

func WithContext

func WithContext(name string) option

func WithK3SArgs

func WithK3SArgs(args ...string) option

WithK3SArgs adds extra CLI args to the k3s invocation

func WithNamespace

func WithNamespace(name string) option

func WithPath

func WithPath(k3sPath string) option

WithPath sets the absolute path to the k3s binary

func WithProvider

func WithProvider(
	desc string,
	k3sArgs []string,
	configure func(),
) option

Types

This section is empty.

Source Files

  • addon.go
  • install.go
  • kill.go
  • releases.go
  • uninstall.go

Jump to

Keyboard shortcuts

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