initcontainerinstance

package
v0.0.165 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const InstanceType helpers.InstanceType = "initContainer"

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) GetInstanceType added in v0.0.159

func (id *InstanceID) GetInstanceType() helpers.InstanceType

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(initContainerName 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