state

package
v0.0.0-...-738c23d Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MasterHostsCacheKey = "cluster-hosts"
)
View Source
const TombstoneKey = ".tombstone"

Variables

This section is empty.

Functions

func ConfigHash

func ConfigHash(paths []string) string

func GetMasterHosts

func GetMasterHosts(ctx context.Context, cache Cache) ([]sshconfig.Host, error)

func GetMasterHostsIPs

func GetMasterHostsIPs(ctx context.Context, cache Cache) ([]session.Host, error)

func SaveMasterHostsToCache

func SaveMasterHostsToCache(ctx context.Context, cache Cache, hosts map[string]string)

Types

type Cache

type Cache interface {
	Save(context.Context, string, []byte) error
	SaveStruct(context.Context, string, interface{}) error

	Load(context.Context, string) ([]byte, error)
	LoadStruct(context.Context, string, interface{}) error

	Delete(context.Context, string)
	Clean(ctx context.Context)
	CleanWithExceptions(ctx context.Context, excludeKeys ...string)

	GetPath(string) string
	Iterate(context.Context, func(string, []byte) error) error
	InCache(context.Context, string) (bool, error)

	NeedIntermediateSave() bool

	Dir() string
}

type NodeGroupInfrastructureState

type NodeGroupInfrastructureState struct {
	State    map[string][]byte
	Settings []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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