Documentation ¶
Index ¶
- func AWSCredentials() []kcore.EnvVar
- func CPU(cpu string) kresource.Quantity
- func ConfigMap(spec *ConfigMapSpec) *kcore.ConfigMap
- func ConfigMapMap(configMaps []kcore.ConfigMap) map[string]kcore.ConfigMap
- func CortexConfigVolume() kcore.Volume
- func CortexConfigVolumeMount() kcore.VolumeMount
- func DefaultVolumeMounts() []kcore.VolumeMount
- func DefaultVolumes() []kcore.Volume
- func Deployment(spec *DeploymentSpec) *kapps.Deployment
- func DeploymentMap(deployments []kapps.Deployment) map[string]kapps.Deployment
- func DeploymentStartTime(deployment *kapps.Deployment) *time.Time
- func EmptyDirVolume() kcore.Volume
- func EmptyDirVolumeMount() kcore.VolumeMount
- func FieldSelectorNotIn(key string, values []string) string
- func GetPodReadyTime(pod *kcore.Pod) *time.Time
- func HPA(spec *HPASpec) *kautoscaling.HorizontalPodAutoscaler
- func HPAMap(hpas []kautoscaling.HorizontalPodAutoscaler) map[string]kautoscaling.HorizontalPodAutoscaler
- func Ingress(spec *IngressSpec) *kextensions.Ingress
- func IngressMap(ingresses []kextensions.Ingress) map[string]kextensions.Ingress
- func IsHPAUpToDate(hpa *kautoscaling.HorizontalPodAutoscaler, minReplicas int32, ...) bool
- func IsPodReady(pod *kcore.Pod) bool
- func Job(spec *JobSpec) *kbatch.Job
- func JobMap(jobs []kbatch.Job) map[string]kbatch.Job
- func LabelSelector(labels map[string]string) string
- func Mem(mem string) kresource.Quantity
- func Pod(spec *PodSpec) *kcore.Pod
- func PodMap(pods []kcore.Pod) map[string]kcore.Pod
- func Service(spec *ServiceSpec) *kcore.Service
- func ServiceMap(services []kcore.Service) map[string]kcore.Service
- func ValidName(name string) string
- func ValidNameContainer(name string) string
- type Client
- func (c *Client) ApplyConfigMap(configMap *kcore.ConfigMap) (*kcore.ConfigMap, error)
- func (c *Client) ApplyDeployment(deployment *kapps.Deployment) (*kapps.Deployment, error)
- func (c *Client) ApplyHPA(hpa *kautoscaling.HorizontalPodAutoscaler) (*kautoscaling.HorizontalPodAutoscaler, error)
- func (c *Client) ApplyIngress(ingress *kextensions.Ingress) (*kextensions.Ingress, error)
- func (c *Client) ApplyJob(job *kbatch.Job) (*kbatch.Job, error)
- func (c *Client) ApplyPod(pod *kcore.Pod) (*kcore.Pod, error)
- func (c *Client) ApplyService(service *kcore.Service) (*kcore.Service, error)
- func (c *Client) ConfigMapExists(name string) (bool, error)
- func (c *Client) CreateConfigMap(configMap *kcore.ConfigMap) (*kcore.ConfigMap, error)
- func (c *Client) CreateDeployment(deployment *kapps.Deployment) (*kapps.Deployment, error)
- func (c *Client) CreateHPA(hpa *kautoscaling.HorizontalPodAutoscaler) (*kautoscaling.HorizontalPodAutoscaler, error)
- func (c *Client) CreateIngress(ingress *kextensions.Ingress) (*kextensions.Ingress, error)
- func (c *Client) CreateJob(job *kbatch.Job) (*kbatch.Job, error)
- func (c *Client) CreatePod(pod *kcore.Pod) (*kcore.Pod, error)
- func (c *Client) CreateService(service *kcore.Service) (*kcore.Service, error)
- func (c *Client) DeleteConfigMap(name string) (bool, error)
- func (c *Client) DeleteDeployment(name string) (bool, error)
- func (c *Client) DeleteHPA(name string) (bool, error)
- func (c *Client) DeleteIngress(name string) (bool, error)
- func (c *Client) DeleteJob(name string) (bool, error)
- func (c *Client) DeletePod(name string) (bool, error)
- func (c *Client) DeleteService(name string) (bool, error)
- func (c *Client) DeploymentExists(name string) (bool, error)
- func (c *Client) GetConfigMap(name string) (*kcore.ConfigMap, error)
- func (c *Client) GetConfigMapData(name string) (map[string]string, error)
- func (c *Client) GetDeployment(name string) (*kapps.Deployment, error)
- func (c *Client) GetHPA(name string) (*kautoscaling.HorizontalPodAutoscaler, error)
- func (c *Client) GetIngress(name string) (*kextensions.Ingress, error)
- func (c *Client) GetJob(name string) (*kbatch.Job, error)
- func (c *Client) GetPod(name string) (*kcore.Pod, error)
- func (c *Client) GetService(name string) (*kcore.Service, error)
- func (c *Client) HPAExists(name string) (bool, error)
- func (c *Client) IngressExists(name string) (bool, error)
- func (c *Client) IsJobRunning(name string) (bool, error)
- func (c *Client) JobExists(name string) (bool, error)
- func (c *Client) ListConfigMaps(opts *kmeta.ListOptions) ([]kcore.ConfigMap, error)
- func (c *Client) ListConfigMapsByLabel(labelKey string, labelValue string) ([]kcore.ConfigMap, error)
- func (c *Client) ListConfigMapsByLabels(labels map[string]string) ([]kcore.ConfigMap, error)
- func (c *Client) ListDeployments(opts *kmeta.ListOptions) ([]kapps.Deployment, error)
- func (c *Client) ListDeploymentsByLabel(labelKey string, labelValue string) ([]kapps.Deployment, error)
- func (c *Client) ListDeploymentsByLabels(labels map[string]string) ([]kapps.Deployment, error)
- func (c *Client) ListHPAs(opts *kmeta.ListOptions) ([]kautoscaling.HorizontalPodAutoscaler, error)
- func (c *Client) ListHPAsByLabel(labelKey string, labelValue string) ([]kautoscaling.HorizontalPodAutoscaler, error)
- func (c *Client) ListHPAsByLabels(labels map[string]string) ([]kautoscaling.HorizontalPodAutoscaler, error)
- func (c *Client) ListIngresses(opts *kmeta.ListOptions) ([]kextensions.Ingress, error)
- func (c *Client) ListIngressesByLabel(labelKey string, labelValue string) ([]kextensions.Ingress, error)
- func (c *Client) ListIngressesByLabels(labels map[string]string) ([]kextensions.Ingress, error)
- func (c *Client) ListJobs(opts *kmeta.ListOptions) ([]kbatch.Job, error)
- func (c *Client) ListJobsByLabel(labelKey string, labelValue string) ([]kbatch.Job, error)
- func (c *Client) ListJobsByLabels(labels map[string]string) ([]kbatch.Job, error)
- func (c *Client) ListPods(opts *kmeta.ListOptions) ([]kcore.Pod, error)
- func (c *Client) ListPodsByLabel(labelKey string, labelValue string) ([]kcore.Pod, error)
- func (c *Client) ListPodsByLabels(labels map[string]string) ([]kcore.Pod, error)
- func (c *Client) ListServices(opts *kmeta.ListOptions) ([]kcore.Service, error)
- func (c *Client) ListServicesByLabel(labelKey string, labelValue string) ([]kcore.Service, error)
- func (c *Client) ListServicesByLabels(labels map[string]string) ([]kcore.Service, error)
- func (c *Client) PodExists(name string) (bool, error)
- func (c *Client) ServiceExists(name string) (bool, error)
- func (c *Client) StalledPods() ([]kcore.Pod, error)
- func (c *Client) WaitForPodRunning(name string, numSeconds int) error
- type ConfigMapSpec
- type DeploymentSpec
- type HPASpec
- type IngressSpec
- type JobSpec
- type PodSpec
- type PodStatus
- type ServiceSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AWSCredentials ¶
func ConfigMap ¶ added in v0.7.0
func ConfigMap(spec *ConfigMapSpec) *kcore.ConfigMap
func ConfigMapMap ¶ added in v0.7.0
func CortexConfigVolume ¶
func CortexConfigVolumeMount ¶
func CortexConfigVolumeMount() kcore.VolumeMount
func DefaultVolumeMounts ¶
func DefaultVolumeMounts() []kcore.VolumeMount
func DefaultVolumes ¶
func Deployment ¶
func Deployment(spec *DeploymentSpec) *kapps.Deployment
func DeploymentMap ¶
func DeploymentMap(deployments []kapps.Deployment) map[string]kapps.Deployment
func DeploymentStartTime ¶
func DeploymentStartTime(deployment *kapps.Deployment) *time.Time
func EmptyDirVolume ¶
func EmptyDirVolumeMount ¶
func EmptyDirVolumeMount() kcore.VolumeMount
func FieldSelectorNotIn ¶
func HPA ¶ added in v0.6.0
func HPA(spec *HPASpec) *kautoscaling.HorizontalPodAutoscaler
func HPAMap ¶ added in v0.6.0
func HPAMap(hpas []kautoscaling.HorizontalPodAutoscaler) map[string]kautoscaling.HorizontalPodAutoscaler
func Ingress ¶
func Ingress(spec *IngressSpec) *kextensions.Ingress
func IngressMap ¶
func IngressMap(ingresses []kextensions.Ingress) map[string]kextensions.Ingress
func IsHPAUpToDate ¶ added in v0.7.0
func IsHPAUpToDate(hpa *kautoscaling.HorizontalPodAutoscaler, minReplicas int32, maxReplicas int32, targetCPUUtilization int32) bool
func IsPodReady ¶ added in v0.7.0
func LabelSelector ¶
func Service ¶
func Service(spec *ServiceSpec) *kcore.Service
func ValidNameContainer ¶
ValidNameContainer ensures name contains only lower case alphanumeric or '-', must start with alphabetic, end with alphanumeric
Types ¶
type Client ¶
type Client struct { RestConfig *kclientrest.Config Namespace string // contains filtered or unexported fields }
func (*Client) ApplyConfigMap ¶ added in v0.7.0
func (*Client) ApplyDeployment ¶ added in v0.7.0
func (c *Client) ApplyDeployment(deployment *kapps.Deployment) (*kapps.Deployment, error)
func (*Client) ApplyHPA ¶ added in v0.7.0
func (c *Client) ApplyHPA(hpa *kautoscaling.HorizontalPodAutoscaler) (*kautoscaling.HorizontalPodAutoscaler, error)
func (*Client) ApplyIngress ¶ added in v0.7.0
func (c *Client) ApplyIngress(ingress *kextensions.Ingress) (*kextensions.Ingress, error)
func (*Client) ApplyService ¶ added in v0.7.0
func (*Client) ConfigMapExists ¶ added in v0.7.0
func (*Client) CreateConfigMap ¶ added in v0.7.0
func (*Client) CreateDeployment ¶
func (c *Client) CreateDeployment(deployment *kapps.Deployment) (*kapps.Deployment, error)
func (*Client) CreateHPA ¶ added in v0.6.0
func (c *Client) CreateHPA(hpa *kautoscaling.HorizontalPodAutoscaler) (*kautoscaling.HorizontalPodAutoscaler, error)
func (*Client) CreateIngress ¶
func (c *Client) CreateIngress(ingress *kextensions.Ingress) (*kextensions.Ingress, error)
func (*Client) CreateService ¶
func (*Client) DeleteConfigMap ¶ added in v0.7.0
func (*Client) GetConfigMap ¶ added in v0.7.0
func (*Client) GetConfigMapData ¶ added in v0.7.0
func (*Client) GetDeployment ¶
func (c *Client) GetDeployment(name string) (*kapps.Deployment, error)
func (*Client) GetHPA ¶ added in v0.6.0
func (c *Client) GetHPA(name string) (*kautoscaling.HorizontalPodAutoscaler, error)
func (*Client) GetIngress ¶
func (c *Client) GetIngress(name string) (*kextensions.Ingress, error)
func (*Client) IsJobRunning ¶ added in v0.7.0
func (*Client) ListConfigMaps ¶ added in v0.7.0
func (*Client) ListConfigMapsByLabel ¶ added in v0.7.0
func (*Client) ListConfigMapsByLabels ¶ added in v0.7.0
func (*Client) ListDeployments ¶
func (c *Client) ListDeployments(opts *kmeta.ListOptions) ([]kapps.Deployment, error)
func (*Client) ListDeploymentsByLabel ¶
func (*Client) ListDeploymentsByLabels ¶
func (*Client) ListHPAs ¶ added in v0.6.0
func (c *Client) ListHPAs(opts *kmeta.ListOptions) ([]kautoscaling.HorizontalPodAutoscaler, error)
func (*Client) ListHPAsByLabel ¶ added in v0.6.0
func (c *Client) ListHPAsByLabel(labelKey string, labelValue string) ([]kautoscaling.HorizontalPodAutoscaler, error)
func (*Client) ListHPAsByLabels ¶ added in v0.6.0
func (c *Client) ListHPAsByLabels(labels map[string]string) ([]kautoscaling.HorizontalPodAutoscaler, error)
func (*Client) ListIngresses ¶
func (c *Client) ListIngresses(opts *kmeta.ListOptions) ([]kextensions.Ingress, error)
func (*Client) ListIngressesByLabel ¶
func (*Client) ListIngressesByLabels ¶
func (*Client) ListJobsByLabel ¶
func (*Client) ListJobsByLabels ¶
func (*Client) ListPodsByLabel ¶
func (*Client) ListPodsByLabels ¶
func (*Client) ListServices ¶
func (*Client) ListServicesByLabel ¶
func (*Client) ListServicesByLabels ¶
type ConfigMapSpec ¶ added in v0.7.0
type DeploymentSpec ¶
type IngressSpec ¶
type PodStatus ¶ added in v0.5.0
type PodStatus string
const ( PodStatusUnknown PodStatus = "Unknown" PodStatusPending PodStatus = "Pending" PodStatusRunning PodStatus = "Running" PodStatusTerminating PodStatus = "Terminating" PodStatusSucceeded PodStatus = "Succeeded" PodStatusFailed PodStatus = "Failed" PodStatusKilled PodStatus = "Killed" PodStatusKilledOOM PodStatus = "Out of Memory" )
func GetPodStatus ¶
Click to show internal directories.
Click to hide internal directories.