Documentation ¶
Index ¶
- func GetResourcesYamlFormat(clientset kubernetes.Interface, namespace string, selectors []labels.Selector, ...) string
- type CachedResources
- type ConfigMaps
- type Deployments
- type HorizontalPodAutoscalers
- func (h *HorizontalPodAutoscalers) AppendTo(objs []interface{}) []interface{}
- func (h *HorizontalPodAutoscalers) Decorate(setting *api_model.KubeResourceCustomSetting)
- func (h *HorizontalPodAutoscalers) Migrate(namespace string, seletcor labels.Selector)
- func (h *HorizontalPodAutoscalers) SetClientset(clientset kubernetes.Interface)
- type Ingresses
- type ResourceListInterface
- type Secrets
- type Services
- type Statefulsets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResourcesYamlFormat ¶
func GetResourcesYamlFormat(clientset kubernetes.Interface, namespace string, selectors []labels.Selector, customSetting *api_model.KubeResourceCustomSetting) string
GetResourcesYamlFormat
Types ¶
type CachedResources ¶
type CachedResources struct { DeploymentLister appsv1.DeploymentLister StatefuleSetLister appsv1.StatefulSetLister ConfigMapLister v1.ConfigMapLister SecretLister v1.SecretLister ServiceLister v1.ServiceLister IngressV1Lister networkingv1.IngressLister HPAV1Lister autoscalingv1.HorizontalPodAutoscalerLister }
func GetCachedResources ¶
func GetCachedResources(clientset kubernetes.Interface) *CachedResources
type ConfigMaps ¶
type ConfigMaps struct { kubernetes.Interface ConfigMaps []*corev1.ConfigMap `json:"configmaps"` }
func (*ConfigMaps) AppendTo ¶
func (c *ConfigMaps) AppendTo(objs []interface{}) []interface{}
func (*ConfigMaps) Decorate ¶
func (c *ConfigMaps) Decorate(setting *api_model.KubeResourceCustomSetting)
func (*ConfigMaps) Migrate ¶
func (c *ConfigMaps) Migrate(namespace string, seletcor labels.Selector)
func (*ConfigMaps) SetClientset ¶
func (c *ConfigMaps) SetClientset(clientset kubernetes.Interface)
type Deployments ¶
type Deployments struct { kubernetes.Interface Deployments []*appsv1.Deployment `json:"deployments"` }
func (*Deployments) AppendTo ¶
func (d *Deployments) AppendTo(objs []interface{}) []interface{}
func (*Deployments) Decorate ¶
func (d *Deployments) Decorate(setting *api_model.KubeResourceCustomSetting)
func (*Deployments) Migrate ¶
func (d *Deployments) Migrate(namespace string, seletcor labels.Selector)
func (*Deployments) SetClientset ¶
func (d *Deployments) SetClientset(clientset kubernetes.Interface)
type HorizontalPodAutoscalers ¶
type HorizontalPodAutoscalers struct { kubernetes.Interface HorizontalPodAutoscalers []*autosaclingv1.HorizontalPodAutoscaler `json:"horizontalpodautoscalers"` }
func (*HorizontalPodAutoscalers) AppendTo ¶
func (h *HorizontalPodAutoscalers) AppendTo(objs []interface{}) []interface{}
func (*HorizontalPodAutoscalers) Decorate ¶
func (h *HorizontalPodAutoscalers) Decorate(setting *api_model.KubeResourceCustomSetting)
func (*HorizontalPodAutoscalers) Migrate ¶
func (h *HorizontalPodAutoscalers) Migrate(namespace string, seletcor labels.Selector)
func (*HorizontalPodAutoscalers) SetClientset ¶
func (h *HorizontalPodAutoscalers) SetClientset(clientset kubernetes.Interface)
type Ingresses ¶
type Ingresses struct { kubernetes.Interface Ingresses []*networkingv1.Ingress `json:"ingresses"` }
func (*Ingresses) Decorate ¶
func (i *Ingresses) Decorate(setting *api_model.KubeResourceCustomSetting)
func (*Ingresses) SetClientset ¶
func (i *Ingresses) SetClientset(clientset kubernetes.Interface)
type ResourceListInterface ¶
type ResourceListInterface interface { SetClientset(clientset kubernetes.Interface) Migrate(namespace string, seletcor labels.Selector) Decorate(setting *api_model.KubeResourceCustomSetting) AppendTo([]interface{}) []interface{} }
type Secrets ¶
type Secrets struct { kubernetes.Interface Secrets []*corev1.Secret `json:"secrets"` }
func (*Secrets) Decorate ¶
func (s *Secrets) Decorate(setting *api_model.KubeResourceCustomSetting)
func (*Secrets) SetClientset ¶
func (s *Secrets) SetClientset(clientset kubernetes.Interface)
type Services ¶
type Services struct { kubernetes.Interface Services []*corev1.Service `json:"services"` }
func (*Services) Decorate ¶
func (s *Services) Decorate(setting *api_model.KubeResourceCustomSetting)
func (*Services) SetClientset ¶
func (s *Services) SetClientset(clientset kubernetes.Interface)
type Statefulsets ¶
type Statefulsets struct { kubernetes.Interface StatefulSets []*appsv1.StatefulSet `json:"statefulsets"` }
func (*Statefulsets) AppendTo ¶
func (s *Statefulsets) AppendTo(objs []interface{}) []interface{}
func (*Statefulsets) Decorate ¶
func (s *Statefulsets) Decorate(setting *api_model.KubeResourceCustomSetting)
func (*Statefulsets) Migrate ¶
func (s *Statefulsets) Migrate(namespace string, seletcor labels.Selector)
func (*Statefulsets) SetClientset ¶
func (s *Statefulsets) SetClientset(clientset kubernetes.Interface)
Click to show internal directories.
Click to hide internal directories.