Version: v3.3.3+incompatible Latest Latest

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 2 Imported by: 27




View Source
const (
	// KsrK8sPrefix defines the common prefix for all K8s items that KSR stores
	// in the data store.
	KsrK8sPrefix = "k8s"
	// KsrStsPrefix defines the prefix for the plugin status that KSR stores
	// in the data store.
	KsrStsPrefix = "status"
	// NamespaceID defines keyword identifying a given K8s item's namespace".
	NamespaceID = "namespace"


This section is empty.


func Key

func Key(keyType string, name string, namespace string) string

Key returns the key under which a configuration for a given K8s item should be stored in the data-store.

func KeyPrefix

func KeyPrefix(keyType string) string

KeyPrefix returns the common prefix for all K8s items of a given data type.

func ParseNameFromKey

func ParseNameFromKey(keyType string, key string) (name string, namespace string, err error)

ParseNameFromKey parses item name and namespace ids from the associated data-store key.


This section is empty.

Source Files

Jump to

Keyboard shortcuts

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