ksrkey

package
v0.0.0-...-2d08fe4 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

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"
)

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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