Documentation ¶
Index ¶
- func GalaxyEnv(c *cli.Context) string
- func GalaxyPool(c *cli.Context) string
- func GalaxyRedisHost(c *cli.Context) string
- func GetEnv(name, defaultValue string) string
- func HomeDir() string
- func HumanDuration(d time.Duration) string
- func NextSlot(used []int) int
- func ParseMemory(mem string) (int64, error)
- func RemoveStringInSlice(a string, list []string) []string
- func SSHCmd(host string, command string, background bool, debug bool)
- func SplitDockerImage(img string) (string, string, string)
- func StringInSlice(a string, list []string) bool
- type OutputBuffer
- type SliceVar
- type VersionedMap
- func (v *VersionedMap) Get(key string) string
- func (v *VersionedMap) Keys() []string
- func (v *VersionedMap) LatestVersion() int64
- func (v *VersionedMap) MarshalExpiredMap(age int64) map[string]string
- func (v *VersionedMap) MarshalMap() map[string]string
- func (v *VersionedMap) Merge(other *VersionedMap)
- func (v *VersionedMap) Set(key, value string)
- func (v *VersionedMap) SetVersion(key, value string, version int64)
- func (v *VersionedMap) UnSet(key string)
- func (v *VersionedMap) UnSetVersion(key string, version int64)
- func (v *VersionedMap) UnmarshalMap(serialized map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GalaxyPool ¶
func GalaxyRedisHost ¶
func HumanDuration ¶
HumanDuration returns a human-readable approximation of a duration (eg. "About a minute", "4 hours ago", etc.)
func ParseMemory ¶
func RemoveStringInSlice ¶
func StringInSlice ¶
Types ¶
type OutputBuffer ¶
type OutputBuffer struct {
Output []string
}
func (*OutputBuffer) Log ¶
func (o *OutputBuffer) Log(msg string)
type VersionedMap ¶
type VersionedMap struct {
// contains filtered or unexported fields
}
VersionedMap is a CRDT where each key contains a version history of prior values. The value of the key is the value with the latest version. VersionMaps can be combined such that they always converge to the same values for all keys.
func NewVersionedMap ¶
func NewVersionedMap() *VersionedMap
func (*VersionedMap) Get ¶
func (v *VersionedMap) Get(key string) string
func (*VersionedMap) Keys ¶
func (v *VersionedMap) Keys() []string
func (*VersionedMap) LatestVersion ¶
func (v *VersionedMap) LatestVersion() int64
func (*VersionedMap) MarshalExpiredMap ¶
func (v *VersionedMap) MarshalExpiredMap(age int64) map[string]string
MarshalExpiredMap returns historical entries that have been superseded by newer values
func (*VersionedMap) MarshalMap ¶
func (v *VersionedMap) MarshalMap() map[string]string
func (*VersionedMap) Merge ¶
func (v *VersionedMap) Merge(other *VersionedMap)
func (*VersionedMap) Set ¶
func (v *VersionedMap) Set(key, value string)
func (*VersionedMap) SetVersion ¶
func (v *VersionedMap) SetVersion(key, value string, version int64)
func (*VersionedMap) UnSet ¶
func (v *VersionedMap) UnSet(key string)
func (*VersionedMap) UnSetVersion ¶
func (v *VersionedMap) UnSetVersion(key string, version int64)
func (*VersionedMap) UnmarshalMap ¶
func (v *VersionedMap) UnmarshalMap(serialized map[string]string) error
Click to show internal directories.
Click to hide internal directories.