common

package
v0.0.0-...-626ffdb Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvPrefix   = "K3M" // When using environment variables, this is the prefix
	MachineUser = "k3smanager"
	Namespace   = "k3smanager.dev"
)

Variables

View Source
var ErrTimeout = errors.New("ssh timeout")

Functions

func AppendRandomString

func AppendRandomString(str string, length float64) string

func Ptr

func Ptr[T any](p T) *T

func RandomString

func RandomString(length float64) string

func WaitUntilReady

func WaitUntilReady(ctx context.Context, readinessCheck ReadyCheck, timeout ...time.Duration) error

Types

type NodeType

type NodeType string
const (
	NodeTypeManager NodeType = "manager"
	NodeTypeWorker  NodeType = "worker"
)

type ReadyCheck

type ReadyCheck func() (bool, error)

Jump to

Keyboard shortcuts

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