Documentation
¶
Index ¶
- Constants
- func ConfigHash(paths []string) string
- func GetMasterHosts(ctx context.Context, cache Cache) ([]sshconfig.Host, error)
- func GetMasterHostsIPs(ctx context.Context, cache Cache) ([]session.Host, error)
- func SaveMasterHostsToCache(ctx context.Context, cache Cache, hosts map[string]string)
- type Cache
- type NodeGroupInfrastructureState
Constants ¶
View Source
const (
MasterHostsCacheKey = "cluster-hosts"
)
View Source
const TombstoneKey = ".tombstone"
Variables ¶
This section is empty.
Functions ¶
func ConfigHash ¶
func GetMasterHosts ¶
func GetMasterHostsIPs ¶
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
}
Click to show internal directories.
Click to hide internal directories.