tag

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionTypeTag         = "action"
	CollectorTag          = "collector"
	DumperS3BucketTag     = "s3_bucket"
	DumperS3keyTag        = "s3_key"
	DumperWorkerNumberTag = "worker_number"
	DumperWriterTypeTag   = "writer_type"
	WaitTag               = "wait"
	LabelTag              = "label"
	CollectionTag         = "collection"
	BuilderTag            = "builder"
	StorageTag            = "storage"
	CacheKeyTag           = "cache_key"
	EdgeTypeTag           = "edge_type"
)
View Source
const (
	StorageJanusGraph = "janusgraph"
	StorageMongoDB    = "mongodb"
	StorageMemCache   = "memcache"
)
View Source
const (
	EntityPods                = "pods"
	EntityRoles               = "roles"
	EntityRolebindings        = "rolebindings"
	EntityNodes               = "nodes"
	EntityEndpoints           = "endpoints"
	EntityClusterRoles        = "clusterroles"
	EntityClusterRolebindings = "clusterrolebindings"
)

Variables

View Source
var (
	RunIdTag            = log.FieldRunIDKey
	CollectorClusterTag = log.FieldClusterKey
	DumperFilePathTag   = log.FieldPathKey
	EntityTag           = log.FieldEntityKey
	CompenentTag        = log.FieldComponentKey
)

Functions

func ActionType added in v1.3.1

func ActionType(action string) string

func AppendBaseTags added in v1.3.1

func AppendBaseTags(tags ...string)

func Builder

func Builder(builder string) string

func CacheKey

func CacheKey(ck string) string

func ClusterName added in v1.3.1

func ClusterName(cluster string) string

func Collection

func Collection(collection string) string

func Collector

func Collector(collector string) string

func ComponentName added in v1.6.0

func ComponentName(component string) string

func EdgeType

func EdgeType(et string) string

func Entity

func Entity(name string) string

func GetBaseTags added in v1.3.1

func GetBaseTags() []string

func GetBaseTagsWith added in v1.3.1

func GetBaseTagsWith(optTags ...string) []string

func GetDefaultTags added in v1.6.0

func GetDefaultTags(ctx context.Context) []string

func Label

func Label(label string) string

func MakeTag added in v1.3.1

func MakeTag(tag string, value string) string

func RunID

func RunID(uuid string) string

func S3Bucket added in v1.3.1

func S3Bucket(bucket string) string

func S3Key added in v1.3.1

func S3Key(key string) string

func SetupBaseTags added in v1.3.1

func SetupBaseTags()

func Storage

func Storage(storage string) string

Types

type BasesTags added in v1.3.1

type BasesTags struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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