Versions in this module Expand all Collapse all v0 v0.0.1 Apr 19, 2023 Changes in this version + type Container struct + CPU *Resource + Environments []Environment + Image string + LivenessProbe *Probe + Memory *Resource + Name string + Ports []Port + PullPolicy PullPolicy + ReadinessProbe *Probe + func (c *Container) Marshal() (container apiv1.Container) + func (c *Container) Unmarshal(container apiv1.Container) + type Credential interface + Login func(string) (*kubernetes.Clientset, error) + type Deployment struct + Annotations map[string]string + Containers []Container + CreatedAt time.Time + Labels map[string]string + Name string + Namespace string + NodeSelectors map[string]string + Replicas int + func (d *Deployment) Marshal() (appsv1.Deployment, error) + func (d *Deployment) ToJSON() string + func (d *Deployment) Unmarshal(deployment *appsv1.Deployment) error + type DeploymentAPI struct + Kubernetes *Kubernetes + func NewDeploymentAPI(kubernetes *Kubernetes) *DeploymentAPI + func (d *DeploymentAPI) Create() + func (d *DeploymentAPI) Delete() + func (d *DeploymentAPI) Find() + func (d *DeploymentAPI) GetClient() v1.DeploymentInterface + func (d *DeploymentAPI) Update() + func (d *DeploymentAPI) Upsert() + type Environment struct + From string + Name string + Type string + Value string + func (e *Environment) Marshal() *apiv1.EnvVar + func (e *Environment) Unmarshal(env *apiv1.EnvVar) + type HPA struct + Name string + Namespace string + type HPAAPI struct + Client interface{} + Kubernetes *Kubernetes + func NewHPAAPI(kubernetes *Kubernetes) *HPAAPI + func (h *HPAAPI) Create() + func (h *HPAAPI) Delete() + func (h *HPAAPI) Find() + func (h *HPAAPI) Update() + func (h *HPAAPI) Upsert() + type KubeAPI interface + Create func() + Delete func() + Find func() + Update func() + Upsert func() + type KubeConfigCredential struct + Path string + func (k KubeConfigCredential) GetPath() string + func (k KubeConfigCredential) Login(address string) (*kubernetes.Clientset, error) + type Kubernetes struct + Client *kubernetes.Clientset + Error error + RowsAffected int64 + Statement *Statement + func (k *Kubernetes) Create(entity interface{}) (tx *Kubernetes) + func (k *Kubernetes) Delete(entity interface{}) (tx *Kubernetes) + func (k *Kubernetes) Find(entity interface{}) (tx *Kubernetes) + func (k *Kubernetes) Update(entity interface{}) (tx *Kubernetes) + func (k *Kubernetes) Upsert(entity interface{}) (tx *Kubernetes) + type Namespace struct + Labels map[string]string + Name string + func (n *Namespace) Marshal() (apiv1.Namespace, error) + func (n *Namespace) Unmarshal(namespace *apiv1.Namespace) error + type NamespaceAPI struct + Client v1.NamespaceInterface + Kubernetes *Kubernetes + func NewNamespaceAPI(kubernetes *Kubernetes) *NamespaceAPI + func (n *NamespaceAPI) Create() + func (n *NamespaceAPI) Delete() + func (n *NamespaceAPI) Find() + func (n *NamespaceAPI) Update() + func (n *NamespaceAPI) Upsert() + type Port struct + From int32 + To int32 + Type string + func (p *Port) Marshal() *apiv1.ContainerPort + func (p *Port) Unmarshal(port *apiv1.ContainerPort) + type Probe struct + FailureThreshold int32 + InitialDelaySeconds int32 + PeriodSeconds int32 + SuccessThreshold int32 + TimeoutSeconds int32 + func (p *Probe) Marshal() *apiv1.Probe + func (p *Probe) Unmarshal(probe apiv1.Probe) + type PullPolicy string + const PullAlways + const PullIfNotPresent + const PullNever + type Resource struct + Limits string + Requests string + type Service struct + Annotations map[string]string + AppSelector string + CreatedAt time.Time + Labels map[string]string + Name string + Namespace string + Ports []int32 + func (s *Service) Marshal() (apiv1.Service, error) + func (s *Service) ToJSON() string + func (s *Service) Unmarshal(service *apiv1.Service) error + type ServiceAPI struct + Kubernetes *Kubernetes + func NewServiceAPI(kubernetes *Kubernetes) *ServiceAPI + func (s *ServiceAPI) Create() + func (s *ServiceAPI) Delete() + func (s *ServiceAPI) Find() + func (s *ServiceAPI) GetClient() v1.ServiceInterface + func (s *ServiceAPI) Update() + func (s *ServiceAPI) Upsert() + type ServiceAccountCredential struct + Name string + Token string + func (s ServiceAccountCredential) Login(address string) (*kubernetes.Clientset, error) + type Statement struct + API KubeAPI + Client *kubernetes.Clientset + Origin reflect.Value + Target reflect.Value + func (s *Statement) GetOrigin() interface{} + func (s *Statement) GetTarget() interface{} + func (s *Statement) SetTarget(value interface{}) + type UserPasswordCredential struct + Password string + Username string + func (u UserPasswordCredential) Login(address string) (*kubernetes.Clientset, error)