helper

package
v0.0.0-...-98b28bd Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ACSLabelsKey

func ACSLabelsKey(rid, cid, nid string) string

topology/regions/labels/regionid/clusterid/nodeid

func ACSNodeKey

func ACSNodeKey(rid, cid, nid string) string

topology/regions/regionid/clusterid/nodeid -> [k:v, k:v]

func ACSNodesKey

func ACSNodesKey(rid, cid string) string

topology/regions/regionid/clusterid/nodes

func AppendToken

func AppendToken(ctx context.Context, token string) context.Context

func Compare

func Compare(a, b []string, strict bool) bool

func ConstructKey

func ConstructKey(node, kind string) string

func ExtractToken

func ExtractToken(ctx context.Context) (string, error)

func Join

func Join(keyPart, artifact string) string

topology/regionid/clusterid/nodeid/{artifact} [configs | secrets | actions]

func JoinFull

func JoinFull(parts ...string) string

func JoinParts

func JoinParts(artifact string, parts ...string) string

construct variable path

func Key

func Key(path, replacement string) string

from: topology/regions/labels/regionid/clusterid/nodeid -> topology/regions/{replacement}/regionid/clusterid/nodeid {configs | secrets | actions}

func Labels

func Labels(lbs map[string]string) []string

func NewKey

func NewKey(path, artifact string) string

func NewNSArtifact

func NewNSArtifact(userid, namespace, artifact string) string

topology/regions/regionid/clusterid/nodeid/userid:namespace:artifact {configs | secrets | adtions}

func NodeKey

func NodeKey(key string) string

func SearchKey

func SearchKey(regionid, clusterid string) (string, error)

func SplitLabels

func SplitLabels(value string) []string

func TSToString

func TSToString(value int64) string

func TasksKey

func TasksKey() string

func Timestamp

func Timestamp() int64

func ToUpper

func ToUpper(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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