Documentation ¶
Index ¶
- func DefaultTimeFunc(i int) time.Time
- func DefaultUUIDFunc(i int) uuid.UUID
- func GetClusterNames() []string
- func GetRawAnnotations(clusterNames []string, timeFmt string, timeFunc func(int) time.Time, ...) 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 GetClusterNames ¶
func GetClusterNames() []string
GetClusterNames gets a list of cluster names to be used for testing
func GetRawAnnotations ¶
func GetRawAnnotations( clusterNames []string, 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.