Documentation
¶
Index ¶
- Constants
- type CRD
- func (g *CRD) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *CRD) Delete(namespace, name string) error
- func (g *CRD) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *CRD) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- func (g *CRD) ListGVR(namespace string, gvr schema.GroupVersionResource, selector string) (*service.UnstructuredListExtend, error)
- type ConfigMap
- func (g *ConfigMap) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *ConfigMap) Delete(namespace, name string) error
- func (g *ConfigMap) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *ConfigMap) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- type CronJob
- func (g *CronJob) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *CronJob) Delete(namespace, name string) error
- func (g *CronJob) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *CronJob) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- type DaemonSet
- func (g *DaemonSet) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *DaemonSet) Delete(namespace, name string) error
- func (g *DaemonSet) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *DaemonSet) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- type Deployment
- func (g *Deployment) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *Deployment) Delete(namespace, name string) error
- func (g *Deployment) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *Deployment) GetScale(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *Deployment) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- func (g *Deployment) Scale(namespace, name string, data []byte) (*service.UnstructuredExtend, error)
- type Event
- func (g *Event) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *Event) Delete(namespace, name string) error
- func (g *Event) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *Event) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- func (g *Event) ListLimit(namespace string, flag string, pos int64, size int64, selector string) (*service.UnstructuredListExtend, error)
- type HPA
- func (g *HPA) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *HPA) Delete(namespace, name string) error
- func (g *HPA) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *HPA) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- type Job
- func (g *Job) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *Job) Delete(namespace, name string) error
- func (g *Job) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *Job) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- type Metrics
- func (m Metrics) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (m Metrics) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (m Metrics) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- func (m *Metrics) NodeMetricsList() (map[string]interface{}, error)
- func (m *Metrics) PodMetrics(namespace, name string) (map[string]interface{}, error)
- func (m *Metrics) PodMetricsList(namespace string) (map[string]interface{}, error)
- func (m *Metrics) ProxyToPrometheus(params map[string]string, body []byte) (map[string]interface{}, error)
- type Namespace
- func (g *Namespace) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *Namespace) Delete(namespace, name string) error
- func (g *Namespace) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *Namespace) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- type Node
- func (g *Node) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *Node) Delete(namespace, name string) error
- func (g *Node) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *Node) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- type PV
- func (g *PV) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *PV) Delete(namespace, name string) error
- func (g *PV) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *PV) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- type PVC
- func (g *PVC) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *PVC) Delete(namespace, name string) error
- func (g *PVC) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *PVC) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- type Pod
- func (g *Pod) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *Pod) Delete(namespace, name string) error
- func (g *Pod) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *Pod) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- func (g *Pod) Logs(namespace, name, container string, follow, previous, timestamps bool, ...) error
- type ReplicaSet
- func (g *ReplicaSet) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *ReplicaSet) Delete(namespace, name string) error
- func (g *ReplicaSet) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *ReplicaSet) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- type ResourceQuota
- func (g *ResourceQuota) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *ResourceQuota) Delete(namespace, name string) error
- func (g *ResourceQuota) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *ResourceQuota) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- type Secret
- func (g *Secret) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *Secret) Delete(namespace, name string) error
- func (g *Secret) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *Secret) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- type StatefulSet
- func (g *StatefulSet) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *StatefulSet) Delete(namespace, name string) error
- func (g *StatefulSet) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *StatefulSet) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- type StorageClass
- func (g *StorageClass) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *StorageClass) Delete(namespace, name string) error
- func (g *StorageClass) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *StorageClass) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
- type Template
- func (g *Template) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *Template) CheckServiceExist(namespace, name string) bool
- func (g *Template) CreateDeployment(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *Template) CreateService(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *Template) CreateStone(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
- func (g *Template) Delete(namespace, name string) error
- func (g *Template) Get(namespace, name string) (*service.UnstructuredExtend, error)
- func (g *Template) LabelKV(namespace, name, k, v string) (*service.UnstructuredExtend, error)
- func (g *Template) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
Constants ¶
View Source
const PrometheusAddress = "http://prometheus.kube-system.svc.cluster.local/api/v1/query_range"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRD ¶
func (*CRD) Apply ¶
func (g *CRD) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
func (*CRD) ListGVR ¶
func (g *CRD) ListGVR(namespace string, gvr schema.GroupVersionResource, selector string) (*service.UnstructuredListExtend, error)
type ConfigMap ¶
func NewConfigMap ¶
func (*ConfigMap) Apply ¶
func (g *ConfigMap) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
type CronJob ¶
func NewCronJob ¶
func (*CronJob) Apply ¶
func (g *CronJob) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
type DaemonSet ¶
func NewDaemonSet ¶
func (*DaemonSet) Apply ¶
func (g *DaemonSet) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
type Deployment ¶
func NewDeployment ¶
func NewDeployment(svcInterface service.Interface) *Deployment
func (*Deployment) Apply ¶
func (g *Deployment) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
func (*Deployment) Delete ¶
func (g *Deployment) Delete(namespace, name string) error
func (*Deployment) Get ¶
func (g *Deployment) Get(namespace, name string) (*service.UnstructuredExtend, error)
func (*Deployment) GetScale ¶
func (g *Deployment) GetScale(namespace, name string) (*service.UnstructuredExtend, error)
func (*Deployment) List ¶
func (g *Deployment) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
func (*Deployment) Scale ¶
func (g *Deployment) Scale(namespace, name string, data []byte) (*service.UnstructuredExtend, error)
type Event ¶
func (*Event) Apply ¶
func (g *Event) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
func (*Event) Get ¶
func (g *Event) Get(namespace, name string) (*service.UnstructuredExtend, error)
type HPA ¶
func (*HPA) Apply ¶
func (g *HPA) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
type Job ¶
func (*Job) Apply ¶
func (g *Job) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
type Metrics ¶
func NewMetrics ¶
func (Metrics) Apply ¶
func (m Metrics) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
func (Metrics) Get ¶
func (m Metrics) Get(namespace, name string) (*service.UnstructuredExtend, error)
func (*Metrics) NodeMetricsList ¶
func (*Metrics) PodMetrics ¶
func (*Metrics) PodMetricsList ¶
type Namespace ¶
func NewNamespace ¶
func (*Namespace) Apply ¶
func (g *Namespace) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
type Node ¶
func (*Node) Apply ¶
func (g *Node) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
type PV ¶
func (*PV) Apply ¶
func (g *PV) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
type PVC ¶
func (*PVC) Apply ¶
func (g *PVC) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
type Pod ¶
func (*Pod) Apply ¶
func (g *Pod) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
type ReplicaSet ¶
func NewReplicaSet ¶
func NewReplicaSet(svcInterface service.Interface) *ReplicaSet
func (*ReplicaSet) Apply ¶
func (g *ReplicaSet) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
func (*ReplicaSet) Delete ¶
func (g *ReplicaSet) Delete(namespace, name string) error
func (*ReplicaSet) Get ¶
func (g *ReplicaSet) Get(namespace, name string) (*service.UnstructuredExtend, error)
func (*ReplicaSet) List ¶
func (g *ReplicaSet) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
type ResourceQuota ¶
func NewResourceQuota ¶
func NewResourceQuota(svcInterface service.Interface) *ResourceQuota
func (*ResourceQuota) Apply ¶
func (g *ResourceQuota) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
func (*ResourceQuota) Delete ¶
func (g *ResourceQuota) Delete(namespace, name string) error
func (*ResourceQuota) Get ¶
func (g *ResourceQuota) Get(namespace, name string) (*service.UnstructuredExtend, error)
func (*ResourceQuota) List ¶
func (g *ResourceQuota) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
type Secret ¶
func (*Secret) Apply ¶
func (g *Secret) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
type StatefulSet ¶
func NewStatefulSet ¶
func NewStatefulSet(svcInterface service.Interface) *StatefulSet
func (*StatefulSet) Apply ¶
func (g *StatefulSet) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
func (*StatefulSet) Delete ¶
func (g *StatefulSet) Delete(namespace, name string) error
func (*StatefulSet) Get ¶
func (g *StatefulSet) Get(namespace, name string) (*service.UnstructuredExtend, error)
func (*StatefulSet) List ¶
func (g *StatefulSet) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
type StorageClass ¶
func NewStorageClass ¶
func NewStorageClass(svcInterface service.Interface) *StorageClass
func (*StorageClass) Apply ¶
func (g *StorageClass) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
func (*StorageClass) Delete ¶
func (g *StorageClass) Delete(namespace, name string) error
func (*StorageClass) Get ¶
func (g *StorageClass) Get(namespace, name string) (*service.UnstructuredExtend, error)
func (*StorageClass) List ¶
func (g *StorageClass) List(namespace string, selector string) (*service.UnstructuredListExtend, error)
type Template ¶
func NewTemplate ¶
func (*Template) Apply ¶
func (g *Template) Apply(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
func (*Template) CheckServiceExist ¶
func (*Template) CreateDeployment ¶
func (g *Template) CreateDeployment(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
func (*Template) CreateService ¶
func (g *Template) CreateService(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
func (*Template) CreateStone ¶
func (g *Template) CreateStone(namespace, name string, unstructuredExtend *service.UnstructuredExtend) (*service.UnstructuredExtend, bool, error)
func (*Template) Get ¶
func (g *Template) Get(namespace, name string) (*service.UnstructuredExtend, error)
Click to show internal directories.
Click to hide internal directories.