Documentation
¶
Index ¶
- type InstanceID
- func (id *InstanceID) GetAPIVersion() string
- func (id *InstanceID) GetContainerName() string
- func (id *InstanceID) GetHashed() 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) GetSlug() (string, error)
- 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 ¶
This section is empty.
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.IWorkload) ([]InstanceID, error)
GenerateInstanceID generates instance ID from workload
func GenerateInstanceIDFromPod ¶
func GenerateInstanceIDFromPod(pod *core1.Pod) ([]InstanceID, error)
GenerateInstanceIDFromPod generates instance ID from pod
func GenerateInstanceIDFromString ¶
func GenerateInstanceIDFromString(input string) (*InstanceID, error)
GenerateInstanceIDFromString generates instance ID from string The string format is: apiVersion-<apiVersion>/namespace-<namespace>/kind-<kind>/name-<name>/containerName-<containerName>
func (*InstanceID) GetAPIVersion ¶
func (id *InstanceID) GetAPIVersion() string
func (*InstanceID) GetContainerName ¶
func (id *InstanceID) GetContainerName() string
func (*InstanceID) GetHashed ¶
func (id *InstanceID) GetHashed() 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) GetSlug ¶
func (id *InstanceID) GetSlug() (string, error)
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.