Versions in this module Expand all Collapse all v3 v3.0.4 Oct 4, 2022 v3.0.3 Sep 5, 2022 Changes in this version type ResourceType + func (r ResourceType) IsNamespaced() bool v3.0.2 Aug 30, 2022 Changes in this version + var ExcludedLabels = map[string]string + func GetResourceSetFromSlice(resourceSlice []string) (map[ResourceType]bool, error) + func ResourceToHeader(r ResourceType) string + type APIResource struct + Kind string + Name string + Namespaced bool + Shortnames []string + Version string + func (a *APIResource) ToStrings() []string + type APIResourceList struct + ApiResources []APIResource + GroupVersion string + func (r *APIResourceList) FromRuntime(obj interface{}, config CtorConfig) + func (r *APIResourceList) GetCluster() string + func (r *APIResourceList) GetFieldSelectors() map[string]string + func (r *APIResourceList) GetLabels() map[string]string + func (r *APIResourceList) GetNamespace() string + func (r *APIResourceList) HasChanged(k K8sResource) bool + func (r *APIResourceList) ToStrings() []string + type ConfigMap struct + func (c *ConfigMap) FromRuntime(obj interface{}, config CtorConfig) + func (c *ConfigMap) HasChanged(k K8sResource) bool + func (c *ConfigMap) ToStrings() []string + type CronJob struct + Containers []string + LastSchedule string + Schedule string + func (c *CronJob) FromRuntime(obj interface{}, config CtorConfig) + func (c *CronJob) HasChanged(k K8sResource) bool + func (c *CronJob) ToStrings() []string + type CtorConfig struct + IgnoredNodeRoles map[string]bool + type DaemonSet struct + Containers []string + Current string + Desired string + LabelSelector []string + Ready string + func (d *DaemonSet) FromRuntime(obj interface{}, config CtorConfig) + func (d *DaemonSet) HasChanged(k K8sResource) bool + func (d *DaemonSet) ToStrings() []string + type Deployment struct + AvailableReplicas string + CurrentReplicas string + DesiredReplicas string + UpdatedReplicas string + func (d *Deployment) FromRuntime(obj interface{}, config CtorConfig) + func (d *Deployment) HasChanged(k K8sResource) bool + func (d *Deployment) ToStrings() []string + type Endpoints struct + NotReadyIps []string + NotReadyPods []string + ReadyIps []string + ReadyPods []string + func (e *Endpoints) FromRuntime(obj interface{}, config CtorConfig) + func (e *Endpoints) HasChanged(k K8sResource) bool + func (e *Endpoints) ToStrings() []string + type HorizontalPodAutoscaler struct + CurrentReplicas string + MaxPods string + MinPods string + Reference string + Targets string + func (h *HorizontalPodAutoscaler) FromRuntime(obj interface{}, config CtorConfig) + func (h *HorizontalPodAutoscaler) HasChanged(k K8sResource) bool + func (h *HorizontalPodAutoscaler) ToStrings() []string + type Ingress struct + Address []string + func (ingress *Ingress) FromRuntime(obj interface{}, config CtorConfig) + func (ingress *Ingress) HasChanged(k K8sResource) bool + func (ingress *Ingress) ToStrings() []string + type Job struct + Completions string + Containers []string + func (j *Job) FromRuntime(obj interface{}, config CtorConfig) + func (j *Job) HasChanged(k K8sResource) bool + func (j *Job) ToStrings() []string + type K8sResource interface + FromRuntime func(obj interface{}, config CtorConfig) + GetFieldSelectors func() map[string]string + GetLabels func() map[string]string + GetNamespace func() string + HasChanged func(k K8sResource) bool + ToStrings func() []string + func NewConfigMapFromRuntime(obj interface{}, config CtorConfig) K8sResource + func NewCronJobFromRuntime(obj interface{}, config CtorConfig) K8sResource + func NewDaemonSetFromRuntime(obj interface{}, config CtorConfig) K8sResource + func NewDeploymentFromRuntime(obj interface{}, config CtorConfig) K8sResource + func NewEndpointsFromRuntime(obj interface{}, config CtorConfig) K8sResource + func NewHorizontalPodAutoscalerFromRuntime(obj interface{}, config CtorConfig) K8sResource + func NewIngressFromRuntime(obj interface{}, config CtorConfig) K8sResource + func NewJobFromRuntime(obj interface{}, config CtorConfig) K8sResource + func NewNamespaceFromRuntime(obj interface{}, config CtorConfig) K8sResource + func NewNodeFromRuntime(obj interface{}, config CtorConfig) K8sResource + func NewPersistentVolumeClaimFromRuntime(obj interface{}, config CtorConfig) K8sResource + func NewPersistentVolumeFromRuntime(obj interface{}, config CtorConfig) K8sResource + func NewPodFromRuntime(obj interface{}, config CtorConfig) K8sResource + func NewReplicaSetFromRuntime(obj interface{}, config CtorConfig) K8sResource + func NewSecretFromRuntime(obj interface{}, config CtorConfig) K8sResource + func NewServiceAccountFromRuntime(obj interface{}, config CtorConfig) K8sResource + func NewServiceFromRuntime(obj interface{}, config CtorConfig) K8sResource + func NewStatefulSetFromRuntime(obj interface{}, config CtorConfig) K8sResource + type Namespace struct + func (c *Namespace) FromRuntime(obj interface{}, config CtorConfig) + func (c *Namespace) HasChanged(k K8sResource) bool + func (c *Namespace) ToStrings() []string + type Node struct + InstanceID string + InstanceType string + InternalIP string + Roles []string + Status string + Taints []string + Zone string + func (n *Node) FromRuntime(obj interface{}, config CtorConfig) + func (n *Node) HasChanged(k K8sResource) bool + func (n *Node) ToStrings() []string + type PersistentVolume struct + Affinities []string + Claim string + Spec string + Status string + StorageClass string + Volume string + Zone string + func (pv *PersistentVolume) FromRuntime(obj interface{}, config CtorConfig) + func (pv *PersistentVolume) HasChanged(k K8sResource) bool + func (pv *PersistentVolume) ToStrings() []string + type PersistentVolumeClaim struct + Capacity string + Status string + StorageClass string + VolumeName string + func (pvc *PersistentVolumeClaim) FromRuntime(obj interface{}, config CtorConfig) + func (pvc *PersistentVolumeClaim) HasChanged(k K8sResource) bool + func (pvc *PersistentVolumeClaim) ToStrings() []string + type Pod struct + Claims []string + Containers []string + HostIP string + NodeName string + Phase string + PodIP string + QosClass string + Resource string + Tolerations []string + func (p *Pod) FromRuntime(obj interface{}, config CtorConfig) + func (p *Pod) GetFieldSelectors() map[string]string + func (p *Pod) HasChanged(k K8sResource) bool + func (p *Pod) ToStrings() []string + type ReplicaSet struct + AvailableReplicas string + ReadyReplicas string + Replicas string + Selectors []string + func (r *ReplicaSet) FromRuntime(obj interface{}, config CtorConfig) + func (r *ReplicaSet) HasChanged(k K8sResource) bool + func (r *ReplicaSet) ToStrings() []string + type ResourceCtor func(obj interface{}, config CtorConfig) K8sResource + func ResourceTypeToCtor(resourceType ResourceType) ResourceCtor + type ResourceMeta struct + CreationTime time.Time + Labels map[string]string + Name string + Namespace string + func (r *ResourceMeta) FromDynamicMeta(u *unstructured.Unstructured, config CtorConfig) + func (r *ResourceMeta) FromObjectMeta(meta metav1.ObjectMeta, config CtorConfig) + func (r *ResourceMeta) GetFieldSelectors() map[string]string + func (r *ResourceMeta) GetLabels() map[string]string + func (r *ResourceMeta) GetNamespace() string + type ResourceType int64 + const ResourceTypeApiResource + const ResourceTypeConfigMap + const ResourceTypeCronJob + const ResourceTypeDaemonSet + const ResourceTypeDeployment + const ResourceTypeEndpoints + const ResourceTypeHorizontalPodAutoscaler + const ResourceTypeIngress + const ResourceTypeJob + const ResourceTypeNamespace + const ResourceTypeNode + const ResourceTypePersistentVolume + const ResourceTypePersistentVolumeClaim + const ResourceTypePod + const ResourceTypeReplicaSet + const ResourceTypeSecret + const ResourceTypeService + const ResourceTypeServiceAccount + const ResourceTypeStatefulSet + const ResourceTypeUnknown + func GetResourceType(cmdUse string, args []string) ResourceType + func ParseResourceType(s string) ResourceType + func (r ResourceType) String() string + type Secret struct + Data string + SecretType string + func (s *Secret) FromRuntime(obj interface{}, config CtorConfig) + func (s *Secret) HasChanged(k K8sResource) bool + func (s *Secret) ToStrings() []string + type Service struct + ClusterIP string + Ports []string + Selectors []string + ServiceType string + func (s *Service) FromRuntime(obj interface{}, config CtorConfig) + func (s *Service) HasChanged(k K8sResource) bool + func (s *Service) ToStrings() []string + type ServiceAccount struct + NumberSecrets string + func (s *ServiceAccount) FromRuntime(obj interface{}, config CtorConfig) + func (s *ServiceAccount) HasChanged(k K8sResource) bool + func (s *ServiceAccount) ToStrings() []string + type StatefulSet struct + func (s *StatefulSet) FromRuntime(obj interface{}, config CtorConfig) + func (s *StatefulSet) HasChanged(k K8sResource) bool + func (s *StatefulSet) ToStrings() []string + type UnknownResourceError struct + ResourceStr string + func (u UnknownResourceError) Error() string