Documentation ¶
Index ¶
- func BytesToMap(b []byte) map[string]interface{}
- func InspectMap(mapobject interface{}, scopes ...string) (val interface{}, k bool)
- func InspectWorkload(workload interface{}, scopes ...string) (val interface{}, k bool)
- func IsBaseObject(b map[string]interface{}) bool
- func IsTypeListWorkloads(object map[string]interface{}) bool
- func ListMetaIDs(meta []IMetadata) []string
- func ListMetaToMap(meta []IMetadata) []map[string]interface{}
- func MapToBytes(m map[string]interface{}) []byte
- func PodMetadata(kind string) []string
- func PodSpec(kind string) []string
- func RemoveFromMap(workload map[string]interface{}, scope ...string)
- func SetInMap(workload map[string]interface{}, scope []string, key string, val interface{})
- func ToUnique(resources []IMetadata)
- type BaseObject
- func (b *BaseObject) GetApiVersion() string
- func (b *BaseObject) GetGroup() string
- func (b *BaseObject) GetID() string
- func (b *BaseObject) GetKind() string
- func (b *BaseObject) GetName() string
- func (b *BaseObject) GetNamespace() string
- func (b *BaseObject) GetObject() map[string]interface{}
- func (b *BaseObject) GetObjectType() ObjectType
- func (b *BaseObject) GetVersion() string
- func (b *BaseObject) GetWorkload() map[string]interface{}
- func (b *BaseObject) Json() string
- func (b *BaseObject) SetApiVersion(apiVersion string)
- func (b *BaseObject) SetKind(kind string)
- func (b *BaseObject) SetName(name string)
- func (b *BaseObject) SetNamespace(namespace string)
- func (b *BaseObject) SetObject(workload map[string]interface{})
- func (b *BaseObject) SetWorkload(workload map[string]interface{})
- func (b *BaseObject) ToString() string
- type IBasicWorkload
- type IListWorkloads
- type IMetadata
- type IWorkload
- type ListWorkloads
- func (lw *ListWorkloads) GetApiVersion() string
- func (lw *ListWorkloads) GetID() string
- func (lw *ListWorkloads) GetItems() []IMetadata
- func (lw *ListWorkloads) GetKind() string
- func (lw *ListWorkloads) GetName() string
- func (lw *ListWorkloads) GetNamespace() string
- func (lw *ListWorkloads) GetObject() map[string]interface{}
- func (lw *ListWorkloads) GetObjectType() ObjectType
- func (lw *ListWorkloads) GetWorkload() map[string]interface{}
- func (lw *ListWorkloads) SetApiVersion(apiVersion string)
- func (lw *ListWorkloads) SetKind(kind string)
- func (lw *ListWorkloads) SetName(name string)
- func (lw *ListWorkloads) SetNamespace(namespace string)
- func (lw *ListWorkloads) SetObject(listWorkloads map[string]interface{})
- func (lw *ListWorkloads) SetWorkload(listWorkloads map[string]interface{})
- type ObjectType
- type Workload
- func (workload *Workload) DeepCopy(w map[string]interface{})
- func (w *Workload) GenerateWlid(clusterName string) string
- func (w *Workload) GetAnnotation(annotation string) (string, bool)
- func (w *Workload) GetAnnotations() map[string]string
- func (w *Workload) GetApiVersion() string
- func (w *Workload) GetConfigMaps() ([]string, error)
- func (w *Workload) GetConfigMapsOfContainer() (map[string][]string, error)
- func (w *Workload) GetContainers() ([]corev1.Container, error)
- func (w *Workload) GetData() map[string]interface{}
- func (w *Workload) GetEphemeralContainers() ([]corev1.EphemeralContainer, error)
- func (w *Workload) GetGenerateName() string
- func (w *Workload) GetGroup() string
- func (w *Workload) GetID() string
- func (w *Workload) GetImagePullSecret() ([]corev1.LocalObjectReference, error)
- func (w *Workload) GetInitContainers() ([]corev1.Container, error)
- func (w *Workload) GetInnerAnnotation(annotation string) (string, bool)
- func (w *Workload) GetInnerAnnotations() map[string]string
- func (w *Workload) GetInnerLabels() map[string]string
- func (w *Workload) GetJobID() *apis.JobTracking
- func (w *Workload) GetKind() string
- func (w *Workload) GetLabel(label string) (string, bool)
- func (w *Workload) GetLabels() map[string]string
- func (w *Workload) GetName() string
- func (w *Workload) GetNamespace() string
- func (w *Workload) GetObject() map[string]interface{}
- func (w *Workload) GetObjectType() ObjectType
- func (w *Workload) GetOwnerReferences() ([]metav1.OwnerReference, error)
- func (w *Workload) GetPodAnnotation(annotation string) (string, bool)
- func (w *Workload) GetPodAnnotations() map[string]string
- func (w *Workload) GetPodLabel(label string) (string, bool)
- func (w *Workload) GetPodLabels() map[string]string
- func (w *Workload) GetPodSpec() (*corev1.PodSpec, error)
- func (w *Workload) GetPodStatus() (*corev1.PodStatus, error)
- func (w *Workload) GetReplicas() int
- func (w *Workload) GetResourceVersion() string
- func (w *Workload) GetSecrets() ([]string, error)
- func (w *Workload) GetSecretsOfContainer() (map[string][]string, error)
- func (w *Workload) GetSelector() (*metav1.LabelSelector, error)
- func (w *Workload) GetServiceAccountName() string
- func (w *Workload) GetServiceSelector() map[string]string
- func (w *Workload) GetSpecPath() (string, error)
- func (w *Workload) GetUID() string
- func (w *Workload) GetVersion() string
- func (w *Workload) GetVolumes() ([]v1.Volume, error)
- func (w *Workload) GetWlid() string
- func (w *Workload) GetWorkload() map[string]interface{}
- func (w *Workload) Json() string
- func (w *Workload) RemoveAnnotation(key string)
- func (w *Workload) RemoveJobID()
- func (w *Workload) RemoveLabel(key string)
- func (w *Workload) RemoveMetadata(scope []string, metadata, key string)
- func (w *Workload) RemovePodAnnotation(key string)
- func (w *Workload) RemovePodLabel(key string)
- func (w *Workload) RemovePodStatus()
- func (w *Workload) RemoveResourceVersion()
- func (w *Workload) RemoveSecretData()
- func (w *Workload) SetAnnotation(key, value string)
- func (w *Workload) SetApiVersion(apiVersion string)
- func (w *Workload) SetJobID(jobTracking apis.JobTracking)
- func (w *Workload) SetKind(kind string)
- func (w *Workload) SetLabel(key, value string)
- func (w *Workload) SetName(name string)
- func (w *Workload) SetNamespace(namespace string)
- func (w *Workload) SetObject(workload map[string]interface{})
- func (w *Workload) SetPodAnnotation(key, value string)
- func (w *Workload) SetPodLabel(key, value string)
- func (w *Workload) SetWorkload(workload map[string]interface{})
- func (w *Workload) ToString() string
- func (w *Workload) ToUnstructured() (*unstructured.Unstructured, error)
- type WorkloadMock
- func (wm *WorkloadMock) DeepCopy(w map[string]interface{})
- func (wm *WorkloadMock) GenerateWlid(clusterName string) string
- func (wm *WorkloadMock) GetAnnotation(annotation string) (string, bool)
- func (wm *WorkloadMock) GetAnnotations() map[string]string
- func (wm *WorkloadMock) GetApiVersion() string
- func (wm *WorkloadMock) GetConfigMaps() ([]string, error)
- func (wm *WorkloadMock) GetConfigMapsOfContainer() (map[string][]string, error)
- func (wm *WorkloadMock) GetContainers() ([]corev1.Container, error)
- func (wm *WorkloadMock) GetData() map[string]interface{}
- func (wm *WorkloadMock) GetEphemeralContainers() ([]corev1.EphemeralContainer, error)
- func (wm *WorkloadMock) GetGenerateName() string
- func (wm *WorkloadMock) GetGroup() string
- func (wm *WorkloadMock) GetID() string
- func (wm *WorkloadMock) GetImagePullSecret() ([]corev1.LocalObjectReference, error)
- func (wm *WorkloadMock) GetInitContainers() ([]corev1.Container, error)
- func (wm *WorkloadMock) GetInnerAnnotation(annotation string) (string, bool)
- func (wm *WorkloadMock) GetInnerAnnotations() map[string]string
- func (wm *WorkloadMock) GetInnerLabels() map[string]string
- func (wm *WorkloadMock) GetJobID() *apis.JobTracking
- func (wm *WorkloadMock) GetKind() string
- func (wm *WorkloadMock) GetLabel(label string) (string, bool)
- func (wm *WorkloadMock) GetLabels() map[string]string
- func (wm *WorkloadMock) GetName() string
- func (wm *WorkloadMock) GetNamespace() string
- func (wm *WorkloadMock) GetObject() map[string]interface{}
- func (wm *WorkloadMock) GetObjectType() ObjectType
- func (wm *WorkloadMock) GetOwnerReferences() ([]metav1.OwnerReference, error)
- func (wm *WorkloadMock) GetPodAnnotation(annotation string) (string, bool)
- func (wm *WorkloadMock) GetPodAnnotations() map[string]string
- func (wm *WorkloadMock) GetPodLabel(label string) (string, bool)
- func (wm *WorkloadMock) GetPodLabels() map[string]string
- func (wm *WorkloadMock) GetPodSpec() (*corev1.PodSpec, error)
- func (wm *WorkloadMock) GetPodStatus() (*corev1.PodStatus, error)
- func (wm *WorkloadMock) GetReplicas() int
- func (wm *WorkloadMock) GetResourceVersion() string
- func (wm *WorkloadMock) GetSecrets() ([]string, error)
- func (wm *WorkloadMock) GetSecretsOfContainer() (map[string][]string, error)
- func (wm *WorkloadMock) GetSelector() (*metav1.LabelSelector, error)
- func (wm *WorkloadMock) GetServiceAccountName() string
- func (wm *WorkloadMock) GetServiceSelector() map[string]string
- func (wm *WorkloadMock) GetUID() string
- func (wm *WorkloadMock) GetVersion() string
- func (wm *WorkloadMock) GetVolumes() ([]corev1.Volume, error)
- func (wm *WorkloadMock) GetWlid() string
- func (wm *WorkloadMock) GetWorkload() map[string]interface{}
- func (wm *WorkloadMock) Json() string
- func (wm *WorkloadMock) RemoveAnnotation(key string)
- func (wm *WorkloadMock) RemoveArmoAnnotations()
- func (wm *WorkloadMock) RemoveJobID()
- func (wm *WorkloadMock) RemoveLabel(key string)
- func (wm *WorkloadMock) RemoveMetadata(scope []string, metadata, key string)
- func (wm *WorkloadMock) RemovePodAnnotation(key string)
- func (wm *WorkloadMock) RemovePodLabel(key string)
- func (wm *WorkloadMock) RemovePodStatus()
- func (wm *WorkloadMock) RemoveResourceVersion()
- func (wm *WorkloadMock) RemoveSecretData()
- func (wm *WorkloadMock) SetAnnotation(key, value string)
- func (wm *WorkloadMock) SetApiVersion(apiVersion string)
- func (wm *WorkloadMock) SetJobID(jobTracking apis.JobTracking)
- func (wm *WorkloadMock) SetKind(kind string)
- func (wm *WorkloadMock) SetLabel(key, value string)
- func (wm *WorkloadMock) SetName(name string)
- func (wm *WorkloadMock) SetNamespace(namespace string)
- func (wm *WorkloadMock) SetObject(workload map[string]interface{})
- func (wm *WorkloadMock) SetPodAnnotation(key, value string)
- func (wm *WorkloadMock) SetPodLabel(key, value string)
- func (wm *WorkloadMock) SetWorkload(workload map[string]interface{})
- func (wm *WorkloadMock) ToString() string
- func (wm *WorkloadMock) ToUnstructured() (*unstructured.Unstructured, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToMap ¶
BytesToMap convert []byte to map[string]interface{} while ignoring errors. will return nil if failed to convert
func InspectMap ¶
InspectMap -
func InspectWorkload ¶
InspectWorkload - // DEPRECATED
func IsBaseObject ¶
===================== UTILS =======================
func IsTypeListWorkloads ¶ added in v0.0.83
func ListMetaIDs ¶
func ListMetaToMap ¶
func MapToBytes ¶
MapToBytes convert map[string]interface{} to []byte while ignoring errors. will return nil if failed to convert
func PodMetadata ¶
func RemoveFromMap ¶
Types ¶
type BaseObject ¶
type BaseObject struct {
// contains filtered or unexported fields
}
func NewBaseObjBytes ¶
func NewBaseObjBytes(b []byte) (*BaseObject, error)
func NewBaseObject ¶
func NewBaseObject(b map[string]interface{}) *BaseObject
func (*BaseObject) GetApiVersion ¶
func (b *BaseObject) GetApiVersion() string
func (*BaseObject) GetGroup ¶
func (b *BaseObject) GetGroup() string
func (*BaseObject) GetID ¶
func (b *BaseObject) GetID() string
func (*BaseObject) GetKind ¶
func (b *BaseObject) GetKind() string
func (*BaseObject) GetName ¶
func (b *BaseObject) GetName() string
func (*BaseObject) GetNamespace ¶
func (b *BaseObject) GetNamespace() string
func (*BaseObject) GetObject ¶
func (b *BaseObject) GetObject() map[string]interface{}
func (*BaseObject) GetObjectType ¶
func (b *BaseObject) GetObjectType() ObjectType
func (*BaseObject) GetVersion ¶
func (b *BaseObject) GetVersion() string
func (*BaseObject) GetWorkload ¶
func (b *BaseObject) GetWorkload() map[string]interface{}
========================================= GET =========================================
func (*BaseObject) Json ¶
func (b *BaseObject) Json() string
func (*BaseObject) SetApiVersion ¶
func (b *BaseObject) SetApiVersion(apiVersion string)
func (*BaseObject) SetKind ¶
func (b *BaseObject) SetKind(kind string)
func (*BaseObject) SetName ¶
func (b *BaseObject) SetName(name string)
func (*BaseObject) SetNamespace ¶
func (b *BaseObject) SetNamespace(namespace string)
func (*BaseObject) SetObject ¶
func (b *BaseObject) SetObject(workload map[string]interface{})
func (*BaseObject) SetWorkload ¶
func (b *BaseObject) SetWorkload(workload map[string]interface{})
func (*BaseObject) ToString ¶
func (b *BaseObject) ToString() string
type IBasicWorkload ¶
type IBasicWorkload interface { IMetadata // Set SetLabel(key, value string) SetAnnotation(key, value string) GetVersion() string GetGroup() string GetGenerateName() string GetInnerAnnotation(string) (string, bool) GetPodAnnotation(string) (string, bool) GetAnnotation(string) (string, bool) GetLabel(string) (string, bool) GetAnnotations() map[string]string GetInnerAnnotations() map[string]string GetPodAnnotations() map[string]string GetLabels() map[string]string GetInnerLabels() map[string]string GetPodLabels() map[string]string GetVolumes() ([]corev1.Volume, error) GetReplicas() int GetContainers() ([]corev1.Container, error) GetInitContainers() ([]corev1.Container, error) GetEphemeralContainers() ([]corev1.EphemeralContainer, error) GetOwnerReferences() ([]metav1.OwnerReference, error) GetImagePullSecret() ([]corev1.LocalObjectReference, error) GetServiceAccountName() string GetSelector() (*metav1.LabelSelector, error) GetServiceSelector() map[string]string GetResourceVersion() string GetUID() string GetPodSpec() (*corev1.PodSpec, error) GetData() map[string]interface{} GetSecretsOfContainer() (map[string][]string, error) GetConfigMapsOfContainer() (map[string][]string, error) GetSecrets() ([]string, error) GetConfigMaps() ([]string, error) GetPodStatus() (*corev1.PodStatus, error) // REMOVE RemoveLabel(string) RemoveAnnotation(string) RemovePodStatus() RemoveResourceVersion() }
type IListWorkloads ¶ added in v0.0.83
type IMetadata ¶
type IMetadata interface { // Set SetNamespace(string) SetName(string) SetKind(string) SetWorkload(map[string]interface{}) // DEPRECATED SetObject(map[string]interface{}) SetApiVersion(string) // Get GetNamespace() string GetName() string GetKind() string GetApiVersion() string GetWorkload() map[string]interface{} // DEPRECATED GetObject() map[string]interface{} GetID() string // Get object unique ID GetObjectType() ObjectType // Get struct type }
type IWorkload ¶
type IWorkload interface { IBasicWorkload // Convert ToUnstructured() (*unstructured.Unstructured, error) ToString() string // Return workload in string representation Json() string // DEPRECATED, use ToString // GET GetJobID() *apis.JobTracking GenerateWlid(string) string // SET SetJobID(apis.JobTracking) // REMOVE RemoveSecretData() RemoveJobID() }
type ListWorkloads ¶ added in v0.0.83
type ListWorkloads struct {
// contains filtered or unexported fields
}
func NewListWorkloads ¶ added in v0.0.83
func NewListWorkloads(bObject []byte) (*ListWorkloads, error)
NewListWorkloads construct a NewListWorkloadsObj from []byte. If the byte does not match the object, will return nil and err
func NewListWorkloadsObj ¶ added in v0.0.83
func NewListWorkloadsObj(object map[string]interface{}) *ListWorkloads
NewListWorkloadsObj construct a NewListWorkloadsObj from map[string]interface{}. If the map does not match the object, will return nil
func (*ListWorkloads) GetApiVersion ¶ added in v0.0.83
func (lw *ListWorkloads) GetApiVersion() string
func (*ListWorkloads) GetID ¶ added in v0.0.83
func (lw *ListWorkloads) GetID() string
Irrelevant for list obj
func (*ListWorkloads) GetItems ¶ added in v0.0.83
func (lw *ListWorkloads) GetItems() []IMetadata
func (*ListWorkloads) GetKind ¶ added in v0.0.83
func (lw *ListWorkloads) GetKind() string
func (*ListWorkloads) GetName ¶ added in v0.0.83
func (lw *ListWorkloads) GetName() string
Irrelevant. A list object has no name
func (*ListWorkloads) GetNamespace ¶ added in v0.0.83
func (lw *ListWorkloads) GetNamespace() string
Irrelevant. A list can contain workloads from several namespaces
func (*ListWorkloads) GetObject ¶ added in v0.0.83
func (lw *ListWorkloads) GetObject() map[string]interface{}
func (*ListWorkloads) GetObjectType ¶ added in v0.0.83
func (lw *ListWorkloads) GetObjectType() ObjectType
func (*ListWorkloads) GetWorkload ¶ added in v0.0.83
func (lw *ListWorkloads) GetWorkload() map[string]interface{}
Irrelevant for list obj
func (*ListWorkloads) SetApiVersion ¶ added in v0.0.83
func (lw *ListWorkloads) SetApiVersion(apiVersion string)
func (*ListWorkloads) SetKind ¶ added in v0.0.83
func (lw *ListWorkloads) SetKind(kind string)
func (*ListWorkloads) SetName ¶ added in v0.0.83
func (lw *ListWorkloads) SetName(name string)
Irrelevant for list obj
func (*ListWorkloads) SetNamespace ¶ added in v0.0.83
func (lw *ListWorkloads) SetNamespace(namespace string)
Irrelevant for list obj
func (*ListWorkloads) SetObject ¶ added in v0.0.83
func (lw *ListWorkloads) SetObject(listWorkloads map[string]interface{})
func (*ListWorkloads) SetWorkload ¶ added in v0.0.83
func (lw *ListWorkloads) SetWorkload(listWorkloads map[string]interface{})
Irrelevant for list obj
type ObjectType ¶
type ObjectType string
const TypeBaseObject ObjectType = "base"
const TypeListWorkloads ObjectType = "List"
const (
TypeUnknown ObjectType = "unknown"
)
const TypeWorkloadObject ObjectType = "workload"
const TypeWorkloadObjectMock ObjectType = "workloadMock"
type Workload ¶
type Workload struct {
// contains filtered or unexported fields
}
func NewWorkload ¶
func NewWorkloadObj ¶
func (*Workload) GenerateWlid ¶
func (*Workload) GetAnnotations ¶
func (*Workload) GetApiVersion ¶
func (*Workload) GetConfigMaps ¶ added in v0.0.86
func (*Workload) GetConfigMapsOfContainer ¶ added in v0.0.85
Returns map of container name to container's configmaps
func (*Workload) GetContainers ¶
GetContainers -
func (*Workload) GetEphemeralContainers ¶ added in v0.0.165
func (w *Workload) GetEphemeralContainers() ([]corev1.EphemeralContainer, error)
GetEphemeralContainers -
func (*Workload) GetGenerateName ¶
func (*Workload) GetImagePullSecret ¶
func (w *Workload) GetImagePullSecret() ([]corev1.LocalObjectReference, error)
func (*Workload) GetInitContainers ¶
GetInitContainers -
func (*Workload) GetInnerAnnotation ¶
GetInnerAnnotation DEPRECATED
func (*Workload) GetInnerAnnotations ¶
GetInnerAnnotations - DEPRECATED
func (*Workload) GetInnerLabels ¶
GetInnerLabels - DEPRECATED
func (*Workload) GetJobID ¶
func (w *Workload) GetJobID() *apis.JobTracking
func (*Workload) GetNamespace ¶
func (*Workload) GetObjectType ¶
func (w *Workload) GetObjectType() ObjectType
func (*Workload) GetOwnerReferences ¶
func (w *Workload) GetOwnerReferences() ([]metav1.OwnerReference, error)
GetOwnerReferences -
func (*Workload) GetPodAnnotation ¶
func (*Workload) GetPodAnnotations ¶
GetPodAnnotations
func (*Workload) GetPodLabels ¶
func (*Workload) GetPodStatus ¶ added in v0.0.100
func (*Workload) GetReplicas ¶
func (*Workload) GetResourceVersion ¶
func (*Workload) GetSecrets ¶ added in v0.0.86
func (*Workload) GetSecretsOfContainer ¶ added in v0.0.85
Returns map of container name to container's secrets
func (*Workload) GetSelector ¶
func (w *Workload) GetSelector() (*metav1.LabelSelector, error)
func (*Workload) GetServiceAccountName ¶
func (*Workload) GetServiceSelector ¶ added in v0.0.148
func (*Workload) GetSpecPath ¶ added in v0.0.147
GetSpecPathPrefix returns the path prefix of the workload spec
func (*Workload) GetVersion ¶
func (*Workload) GetVolumes ¶
GetHostVolumes returns all host volumes of the workload
func (*Workload) GetWorkload ¶
========================================= GET =========================================
func (*Workload) RemoveAnnotation ¶
func (*Workload) RemoveJobID ¶
func (w *Workload) RemoveJobID()
func (*Workload) RemoveLabel ¶
func (*Workload) RemoveMetadata ¶
func (*Workload) RemovePodAnnotation ¶
func (*Workload) RemovePodLabel ¶
func (*Workload) RemovePodStatus ¶
func (w *Workload) RemovePodStatus()
func (*Workload) RemoveResourceVersion ¶
func (w *Workload) RemoveResourceVersion()
func (*Workload) RemoveSecretData ¶
func (w *Workload) RemoveSecretData()
func (*Workload) SetAnnotation ¶
func (*Workload) SetApiVersion ¶
func (*Workload) SetJobID ¶
func (w *Workload) SetJobID(jobTracking apis.JobTracking)
func (*Workload) SetNamespace ¶
func (*Workload) SetPodAnnotation ¶
func (*Workload) SetPodLabel ¶
func (*Workload) SetWorkload ¶
func (*Workload) ToUnstructured ¶
func (w *Workload) ToUnstructured() (*unstructured.Unstructured, error)
type WorkloadMock ¶
type WorkloadMock struct {
// contains filtered or unexported fields
}
func NewWorkloadMock ¶
func NewWorkloadMock(ww interface{}) *WorkloadMock
func (*WorkloadMock) DeepCopy ¶
func (wm *WorkloadMock) DeepCopy(w map[string]interface{})
func (*WorkloadMock) GenerateWlid ¶
func (wm *WorkloadMock) GenerateWlid(clusterName string) string
func (*WorkloadMock) GetAnnotation ¶
func (wm *WorkloadMock) GetAnnotation(annotation string) (string, bool)
func (*WorkloadMock) GetAnnotations ¶
func (wm *WorkloadMock) GetAnnotations() map[string]string
func (*WorkloadMock) GetApiVersion ¶
func (wm *WorkloadMock) GetApiVersion() string
func (*WorkloadMock) GetConfigMaps ¶ added in v0.0.86
func (wm *WorkloadMock) GetConfigMaps() ([]string, error)
func (*WorkloadMock) GetConfigMapsOfContainer ¶ added in v0.0.85
func (wm *WorkloadMock) GetConfigMapsOfContainer() (map[string][]string, error)
func (*WorkloadMock) GetContainers ¶
func (wm *WorkloadMock) GetContainers() ([]corev1.Container, error)
GetContainers -
func (*WorkloadMock) GetData ¶
func (wm *WorkloadMock) GetData() map[string]interface{}
func (*WorkloadMock) GetEphemeralContainers ¶ added in v0.0.165
func (wm *WorkloadMock) GetEphemeralContainers() ([]corev1.EphemeralContainer, error)
GetEphemeralContainers -
func (*WorkloadMock) GetGenerateName ¶
func (wm *WorkloadMock) GetGenerateName() string
func (*WorkloadMock) GetGroup ¶
func (wm *WorkloadMock) GetGroup() string
func (*WorkloadMock) GetID ¶
func (wm *WorkloadMock) GetID() string
func (*WorkloadMock) GetImagePullSecret ¶
func (wm *WorkloadMock) GetImagePullSecret() ([]corev1.LocalObjectReference, error)
func (*WorkloadMock) GetInitContainers ¶
func (wm *WorkloadMock) GetInitContainers() ([]corev1.Container, error)
GetInitContainers -
func (*WorkloadMock) GetInnerAnnotation ¶
func (wm *WorkloadMock) GetInnerAnnotation(annotation string) (string, bool)
GetInnerAnnotation DEPRECATED
func (*WorkloadMock) GetInnerAnnotations ¶
func (wm *WorkloadMock) GetInnerAnnotations() map[string]string
GetInnerAnnotations - DEPRECATED
func (*WorkloadMock) GetInnerLabels ¶
func (wm *WorkloadMock) GetInnerLabels() map[string]string
GetInnerLabels - DEPRECATED
func (*WorkloadMock) GetJobID ¶
func (wm *WorkloadMock) GetJobID() *apis.JobTracking
func (*WorkloadMock) GetKind ¶
func (wm *WorkloadMock) GetKind() string
func (*WorkloadMock) GetLabels ¶
func (wm *WorkloadMock) GetLabels() map[string]string
func (*WorkloadMock) GetName ¶
func (wm *WorkloadMock) GetName() string
func (*WorkloadMock) GetNamespace ¶
func (wm *WorkloadMock) GetNamespace() string
func (*WorkloadMock) GetObject ¶
func (wm *WorkloadMock) GetObject() map[string]interface{}
func (*WorkloadMock) GetObjectType ¶
func (wm *WorkloadMock) GetObjectType() ObjectType
func (*WorkloadMock) GetOwnerReferences ¶
func (wm *WorkloadMock) GetOwnerReferences() ([]metav1.OwnerReference, error)
GetOwnerReferences -
func (*WorkloadMock) GetPodAnnotation ¶
func (wm *WorkloadMock) GetPodAnnotation(annotation string) (string, bool)
func (*WorkloadMock) GetPodAnnotations ¶
func (wm *WorkloadMock) GetPodAnnotations() map[string]string
GetPodAnnotations
func (*WorkloadMock) GetPodLabel ¶
func (wm *WorkloadMock) GetPodLabel(label string) (string, bool)
func (*WorkloadMock) GetPodLabels ¶
func (wm *WorkloadMock) GetPodLabels() map[string]string
func (*WorkloadMock) GetPodSpec ¶
func (wm *WorkloadMock) GetPodSpec() (*corev1.PodSpec, error)
func (*WorkloadMock) GetPodStatus ¶ added in v0.0.100
func (wm *WorkloadMock) GetPodStatus() (*corev1.PodStatus, error)
func (*WorkloadMock) GetReplicas ¶
func (wm *WorkloadMock) GetReplicas() int
func (*WorkloadMock) GetResourceVersion ¶
func (wm *WorkloadMock) GetResourceVersion() string
func (*WorkloadMock) GetSecrets ¶ added in v0.0.86
func (wm *WorkloadMock) GetSecrets() ([]string, error)
func (*WorkloadMock) GetSecretsOfContainer ¶ added in v0.0.85
func (wm *WorkloadMock) GetSecretsOfContainer() (map[string][]string, error)
func (*WorkloadMock) GetSelector ¶
func (wm *WorkloadMock) GetSelector() (*metav1.LabelSelector, error)
func (*WorkloadMock) GetServiceAccountName ¶
func (wm *WorkloadMock) GetServiceAccountName() string
func (*WorkloadMock) GetServiceSelector ¶ added in v0.0.148
func (wm *WorkloadMock) GetServiceSelector() map[string]string
func (*WorkloadMock) GetUID ¶
func (wm *WorkloadMock) GetUID() string
func (*WorkloadMock) GetVersion ¶
func (wm *WorkloadMock) GetVersion() string
func (*WorkloadMock) GetVolumes ¶
func (wm *WorkloadMock) GetVolumes() ([]corev1.Volume, error)
GetVolumes -
func (*WorkloadMock) GetWlid ¶
func (wm *WorkloadMock) GetWlid() string
func (*WorkloadMock) GetWorkload ¶
func (wm *WorkloadMock) GetWorkload() map[string]interface{}
func (*WorkloadMock) Json ¶
func (wm *WorkloadMock) Json() string
func (*WorkloadMock) RemoveAnnotation ¶
func (wm *WorkloadMock) RemoveAnnotation(key string)
func (*WorkloadMock) RemoveArmoAnnotations ¶
func (wm *WorkloadMock) RemoveArmoAnnotations()
func (*WorkloadMock) RemoveJobID ¶
func (wm *WorkloadMock) RemoveJobID()
func (*WorkloadMock) RemoveLabel ¶
func (wm *WorkloadMock) RemoveLabel(key string)
func (*WorkloadMock) RemoveMetadata ¶
func (wm *WorkloadMock) RemoveMetadata(scope []string, metadata, key string)
func (*WorkloadMock) RemovePodAnnotation ¶
func (wm *WorkloadMock) RemovePodAnnotation(key string)
func (*WorkloadMock) RemovePodLabel ¶
func (wm *WorkloadMock) RemovePodLabel(key string)
func (*WorkloadMock) RemovePodStatus ¶
func (wm *WorkloadMock) RemovePodStatus()
func (*WorkloadMock) RemoveResourceVersion ¶
func (wm *WorkloadMock) RemoveResourceVersion()
func (*WorkloadMock) RemoveSecretData ¶
func (wm *WorkloadMock) RemoveSecretData()
func (*WorkloadMock) SetAnnotation ¶
func (wm *WorkloadMock) SetAnnotation(key, value string)
func (*WorkloadMock) SetApiVersion ¶
func (wm *WorkloadMock) SetApiVersion(apiVersion string)
func (*WorkloadMock) SetJobID ¶
func (wm *WorkloadMock) SetJobID(jobTracking apis.JobTracking)
func (*WorkloadMock) SetKind ¶
func (wm *WorkloadMock) SetKind(kind string)
func (*WorkloadMock) SetLabel ¶
func (wm *WorkloadMock) SetLabel(key, value string)
func (*WorkloadMock) SetName ¶
func (wm *WorkloadMock) SetName(name string)
func (*WorkloadMock) SetNamespace ¶
func (wm *WorkloadMock) SetNamespace(namespace string)
func (*WorkloadMock) SetObject ¶
func (wm *WorkloadMock) SetObject(workload map[string]interface{})
func (*WorkloadMock) SetPodAnnotation ¶
func (wm *WorkloadMock) SetPodAnnotation(key, value string)
func (*WorkloadMock) SetPodLabel ¶
func (wm *WorkloadMock) SetPodLabel(key, value string)
func (*WorkloadMock) SetWorkload ¶
func (wm *WorkloadMock) SetWorkload(workload map[string]interface{})
func (*WorkloadMock) ToString ¶
func (wm *WorkloadMock) ToString() string
func (*WorkloadMock) ToUnstructured ¶
func (wm *WorkloadMock) ToUnstructured() (*unstructured.Unstructured, error)