instanceidhandler

package
v0.0.113 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: Apache-2.0 Imports: 5 Imported by: 13

Documentation

Index

Constants

View Source
const (
	StringFormat                = "apiVersion-%s/namespace-%s/kind-%s/name-%s/containerName-%s"
	LabelFormatKeyApiGroup      = labelPrefix + "/workload-api-group"
	LabelFormatKeyApiVersion    = labelPrefix + "/workload-api-version"
	LabelFormatKeyNamespace     = labelPrefix + "/workload-namespace"
	LabelFormatKeyKind          = labelPrefix + "/workload-kind"
	LabelFormatKeyName          = labelPrefix + "/workload-name"
	LabelFormatKeyContainerName = labelPrefix + "/workload-container-name"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceID

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

func GenerateInstanceID

func GenerateInstanceID(w *workloadinterface.Workload) ([]InstanceID, error)

func (*InstanceID) GetAPIVersion

func (id *InstanceID) GetAPIVersion() string

func (*InstanceID) GetContainerName

func (id *InstanceID) GetContainerName() string

func (*InstanceID) GetIDHashed

func (id *InstanceID) GetIDHashed() string

func (*InstanceID) GetKind

func (id *InstanceID) GetKind() string

func (*InstanceID) GetLabels

func (id *InstanceID) GetLabels() map[string]string

func (*InstanceID) GetName

func (id *InstanceID) GetName() string

func (*InstanceID) GetNamespace

func (id *InstanceID) GetNamespace() string

func (*InstanceID) GetStringFormatted

func (id *InstanceID) GetStringFormatted() string

func (*InstanceID) SetAPIVersion

func (id *InstanceID) SetAPIVersion(apiVersion string)

func (*InstanceID) SetContainerName

func (id *InstanceID) SetContainerName(containerName string)

func (*InstanceID) SetKind

func (id *InstanceID) SetKind(kind string)

func (*InstanceID) SetName

func (id *InstanceID) SetName(name string)

func (*InstanceID) SetNamespace

func (id *InstanceID) SetNamespace(namespace string)

Jump to

Keyboard shortcuts

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