Documentation
¶
Index ¶
- Constants
- type InstanceID
- func (id *InstanceID) GetAPIVersion() string
- func (id *InstanceID) GetContainerName() string
- func (id *InstanceID) GetIDHashed() string
- func (id *InstanceID) GetKind() string
- func (id *InstanceID) GetLabels() map[string]string
- func (id *InstanceID) GetName() string
- func (id *InstanceID) GetNamespace() string
- func (id *InstanceID) GetStringFormatted() string
- func (id *InstanceID) SetAPIVersion(apiVersion string)
- func (id *InstanceID) SetContainerName(containerName string)
- func (id *InstanceID) SetKind(kind string)
- func (id *InstanceID) SetName(name string)
- func (id *InstanceID) SetNamespace(namespace string)
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)
Click to show internal directories.
Click to hide internal directories.