Documentation ¶
Index ¶
- Variables
- type Client
- func (k *Client) AddressList(namespace string) ([]*app.Address, error)
- func (k *Client) Autoscale(namespace string) (*app.Autoscale, error)
- func (c *Client) CloudProviderName() (string, error)
- func (c *Client) ContainerExplicitEnvVars(namespace, deployName, containerName string) ([]*app.EnvVar, error)
- func (k *Client) CreateNamespace(a *app.App, user string) error
- func (k *Client) CreateOrUpdateAutoscale(a *app.App) error
- func (k *Client) CreateOrUpdateConfigMap(namespace, name string, data map[string]string) error
- func (c *Client) CreateOrUpdateCronJob(cronJobSpec *spec.CronJob) error
- func (c *Client) CreateOrUpdateCronJobEnvVars(namespace, name string, evs []*app.EnvVar) error
- func (c *Client) CreateOrUpdateCronJobSecretEnvVars(namespace, name, secretName string, secrets []string) error
- func (c *Client) CreateOrUpdateCronJobSecretFile(namespace, cronjob, fileName string) error
- func (k *Client) CreateOrUpdateDeploy(deploySpec *spec.Deploy) error
- func (c *Client) CreateOrUpdateDeployEnvVars(namespace, name string, evs []*app.EnvVar) error
- func (c *Client) CreateOrUpdateDeploySecretEnvVars(namespace, name, secretName string, secrets []string) error
- func (c *Client) CreateOrUpdateDeploySecretFile(namespace, deploy, filename string) error
- func (c *Client) CreateOrUpdateSecret(namespace, secretName string, data map[string][]byte) error
- func (k *Client) CreateQuota(a *app.App) error
- func (k *Client) CreateService(svcSpec *spec.Service) error
- func (k *Client) DeleteConfigMap(namespace, name string) error
- func (k *Client) DeleteCronJobEnvVars(namespace, name string, evNames []string) error
- func (c *Client) DeleteCronJobSecrets(namespace, cronjob string, envVars, volKeys []string) error
- func (k *Client) DeleteDeployEnvVars(namespace, name string, evNames []string) error
- func (c *Client) DeleteDeploySecrets(namespace, deploy string, envVars, volKeys []string) error
- func (k *Client) DeleteNamespace(namespace string) error
- func (k *Client) DeletePod(namespace, podName string) error
- func (k *Client) DeleteService(namespace, name string) error
- func (k *Client) DeployAnnotation(namespace, deployName, annotation string) (string, error)
- func (k *Client) DeployRollbackToRevision(namespace, name, revision string) error
- func (k *Client) DeploySetReplicas(namespace, name string, replicas int32) error
- func (k *Client) ExposeDeploy(namespace, appName, svcType, portName string, vHosts []string, ...) error
- func (c *Client) GetSecret(namespace, secretName string) (map[string][]byte, error)
- func (k *Client) HasIngress(namespace, appName string) (bool, error)
- func (k *Client) HealthCheck() error
- func (c *Client) IngressAnnotations(namespace, ingName string) (map[string]string, error)
- func (c *Client) IngressEnabled() bool
- func (k *Client) IsAlreadyExists(err error) bool
- func (k *Client) IsInvalid(err error) bool
- func (k *Client) IsNotFound(err error) bool
- func (k *Client) IsUnknown(err error) bool
- func (k *Client) Limits(namespace, name string) (*app.Limits, error)
- func (k *Client) NamespaceAnnotation(namespace, annotation string) (string, error)
- func (k *Client) NamespaceLabel(namespace, label string) (string, error)
- func (k *Client) NamespaceListByLabel(label, value string) ([]string, error)
- func (k *Client) PodList(namespace string, opts *app.PodListOptions) ([]*app.Pod, error)
- func (k *Client) PodLogs(namespace string, podName string, opts *app.LogOptions) (io.ReadCloser, error)
- func (k *Client) PodRun(podSpec *spec.Pod) (io.ReadCloser, <-chan int, error)
- func (k *Client) ReplicaSetListByLabel(namespace, label, value string) ([]*deploy.ReplicaSetListItem, error)
- func (k *Client) ResumeCronJob(namespace, name string) error
- func (c *Client) Service(namespace, svcName string) (*spec.Service, error)
- func (c *Client) ServiceAnnotations(namespace, svcName string) (map[string]string, error)
- func (c *Client) SetIngressAnnotations(namespace, ingName string, annotations map[string]string) error
- func (c *Client) SetLoadBalancerSourceRanges(namespace, svcName string, sourceRanges []string) error
- func (k *Client) SetNamespaceAnnotations(namespace string, annotations map[string]string) error
- func (k *Client) SetNamespaceLabels(namespace string, labels map[string]string) error
- func (c *Client) SetServiceAnnotations(namespace, svcName string, annotations map[string]string) error
- func (k *Client) Status(namespace string) (*app.Status, error)
- func (k *Client) SuspendCronJob(namespace, name string) error
- func (k *Client) UpdateIngress(namespace, name string, vHosts []string, reserveStaticIp bool) error
- func (c *Client) UpdateServicePorts(namespace, svcName string, ports []spec.ServicePort) error
- func (c *Client) WatchDeploy(namespace, deployName string) error
- func (c *Client) WatchServiceURL(namespace, name string) ([]string, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CloudProviderName ¶
func (*Client) ContainerExplicitEnvVars ¶
func (*Client) CreateOrUpdateConfigMap ¶
func (*Client) CreateOrUpdateCronJob ¶
func (*Client) CreateOrUpdateCronJobEnvVars ¶
func (*Client) CreateOrUpdateCronJobSecretEnvVars ¶
func (*Client) CreateOrUpdateCronJobSecretFile ¶
func (*Client) CreateOrUpdateDeploy ¶
func (*Client) CreateOrUpdateDeployEnvVars ¶
func (*Client) CreateOrUpdateDeploySecretEnvVars ¶
func (*Client) CreateOrUpdateDeploySecretFile ¶
func (*Client) CreateOrUpdateSecret ¶
func (*Client) DeleteConfigMap ¶
func (*Client) DeleteCronJobEnvVars ¶
func (*Client) DeleteCronJobSecrets ¶
func (*Client) DeleteDeployEnvVars ¶
func (*Client) DeleteDeploySecrets ¶
func (*Client) DeleteNamespace ¶
func (*Client) DeleteService ¶
func (*Client) DeployAnnotation ¶
func (*Client) DeployRollbackToRevision ¶
func (*Client) DeploySetReplicas ¶
func (*Client) ExposeDeploy ¶
func (k *Client) ExposeDeploy(namespace, appName, svcType, portName string, vHosts []string, reserveStaticIp bool, w io.Writer) error
ExposeDeploy creates a service and/or a ingress if needed
func (*Client) HealthCheck ¶
func (*Client) IngressAnnotations ¶
func (*Client) IngressEnabled ¶
func (*Client) IsAlreadyExists ¶
func (*Client) IsNotFound ¶
func (*Client) NamespaceAnnotation ¶
func (*Client) NamespaceLabel ¶
func (*Client) NamespaceListByLabel ¶
func (*Client) PodLogs ¶
func (k *Client) PodLogs(namespace string, podName string, opts *app.LogOptions) (io.ReadCloser, error)
func (*Client) ReplicaSetListByLabel ¶
func (k *Client) ReplicaSetListByLabel(namespace, label, value string) ([]*deploy.ReplicaSetListItem, error)
func (*Client) ResumeCronJob ¶
func (*Client) ServiceAnnotations ¶
func (*Client) SetIngressAnnotations ¶
func (*Client) SetLoadBalancerSourceRanges ¶
func (*Client) SetNamespaceAnnotations ¶
func (*Client) SetNamespaceLabels ¶
func (*Client) SetServiceAnnotations ¶
func (*Client) SuspendCronJob ¶
func (*Client) UpdateIngress ¶
func (*Client) UpdateServicePorts ¶
func (c *Client) UpdateServicePorts(namespace, svcName string, ports []spec.ServicePort) error
func (*Client) WatchDeploy ¶
Click to show internal directories.
Click to hide internal directories.