Documentation
¶
Index ¶
- func DefaultTimeFunc(i int) time.Time
- func DefaultUUIDFunc(i int) uuid.UUID
- func GetClusters() []*container.Cluster
- func GetRawAnnotations(leaseableClusters []*container.Cluster, timeFmt string, ...) map[string]string
- func LeaseJSON(clusterName string, exprTime time.Time, timeFmt string) string
- func TestDataDir() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultTimeFunc ¶
DefaultTimeFunc can be passed to GetRawAnnotations for the timeFunc parameter
func DefaultUUIDFunc ¶
DefaultUUIDFunc can be passed to GetRawAnnotations for the uuidFunc parameter
func GetClusters ¶
GetClusters gets a list of clusters with names and versions defined
func GetRawAnnotations ¶
func GetRawAnnotations( leaseableClusters []*container.Cluster, timeFmt string, timeFunc func(int) time.Time, uuidFunc func(int) uuid.UUID, ) map[string]string
GetRawAnnotations constructs a map of raw annotations, each of which represents a lease for one of the clusters in clusterNames
func LeaseJSON ¶
LeaseJSON returns the json representative of what a lease should look like when encoded. It does so without first creating a *leases.Lease, so it should be used in tests to verify the lease wire representation
func TestDataDir ¶
func TestDataDir() string
TestDataDir returns the fully qualified path to the testdata/ directory
Types ¶
This section is empty.