Documentation ¶
Index ¶
- type Certificate
- type Client
- func (c *Client) CreateCertificate(ctx context.Context, obj Certificate) error
- func (c *Client) CreateConfigMap(ctx context.Context, obj ConfigMap) error
- func (c *Client) CreateCronJob(ctx context.Context, obj CronJob) error
- func (c *Client) CreateDeployment(ctx context.Context, obj Deployment) error
- func (c *Client) CreateHorizontalPodAutoscaler(ctx context.Context, obj HorizontalPodAutoscaler) error
- func (c *Client) CreateIngress(ctx context.Context, x Ingress) error
- func (c *Client) CreatePersistentVolumeClaim(ctx context.Context, obj PersistentVolumeClaim) error
- func (c *Client) CreatePersistentVolumeClaimForReplicaSet(ctx context.Context, obj PersistentVolumeClaimForReplicaSet) error
- func (c *Client) CreateRedirectIngress(ctx context.Context, x RedirectIngress) error
- func (c *Client) CreateReplicaSet(ctx context.Context, obj ReplicaSet) error
- func (c *Client) CreateSecret(ctx context.Context, obj Secret) error
- func (c *Client) CreateSecretDockerConfigJSON(ctx context.Context, obj SecretDockerConfigJSON) error
- func (c *Client) CreateService(ctx context.Context, obj Service) error
- func (c *Client) CreateServiceAccount(ctx context.Context, obj ServiceAccount) error
- func (c *Client) CreateServiceForReplicaSet(ctx context.Context, obj ServiceForReplicaSet) error
- func (c *Client) DeleteCertificate(ctx context.Context, id string) error
- func (c *Client) DeleteConfigMap(ctx context.Context, id string) error
- func (c *Client) DeleteCronJob(ctx context.Context, id string) error
- func (c *Client) DeleteDeployment(ctx context.Context, name string) error
- func (c *Client) DeleteHorizontalPodAutoscaler(ctx context.Context, id string) error
- func (c *Client) DeleteIngress(ctx context.Context, id string) error
- func (c *Client) DeletePersistentVolumeClaim(ctx context.Context, id string) error
- func (c *Client) DeleteReplicaSet(ctx context.Context, idWithRevision string) error
- func (c *Client) DeleteSecret(ctx context.Context, id string) error
- func (c *Client) DeleteService(ctx context.Context, id string) error
- func (c *Client) DeleteServiceAccount(ctx context.Context, id string) error
- func (c *Client) GetDeployment(ctx context.Context, name string) (*appsv1.Deployment, error)
- func (c *Client) GetDeploymentsForProject(ctx context.Context, projectID string) ([]appsv1.Deployment, error)
- func (c *Client) GetNodePort(ctx context.Context, id string) (int, error)
- func (c *Client) GetReplicaSet(ctx context.Context, id string) (*appsv1.ReplicaSet, error)
- func (c *Client) GetReplicaSetPodIP(ctx context.Context, id string, revision int64) (string, error)
- func (c *Client) WaitReplicaSetReady(ctx context.Context, id string, revision int64) error
- type ConfigMap
- type CronJob
- type Deployment
- type Disk
- type Env
- type HorizontalPodAutoscaler
- type Ingress
- type PersistentVolumeClaim
- type PersistentVolumeClaimForReplicaSet
- type PoolConfig
- type RedirectIngress
- type ReplicaSet
- type Secret
- type SecretDockerConfigJSON
- type Service
- type ServiceAccount
- type ServiceForReplicaSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewLocalClient ¶
func (*Client) CreateCertificate ¶
func (c *Client) CreateCertificate(ctx context.Context, obj Certificate) error
func (*Client) CreateConfigMap ¶
func (*Client) CreateCronJob ¶
func (*Client) CreateDeployment ¶
func (c *Client) CreateDeployment(ctx context.Context, obj Deployment) error
func (*Client) CreateHorizontalPodAutoscaler ¶
func (c *Client) CreateHorizontalPodAutoscaler(ctx context.Context, obj HorizontalPodAutoscaler) error
func (*Client) CreatePersistentVolumeClaim ¶
func (c *Client) CreatePersistentVolumeClaim(ctx context.Context, obj PersistentVolumeClaim) error
func (*Client) CreatePersistentVolumeClaimForReplicaSet ¶
func (c *Client) CreatePersistentVolumeClaimForReplicaSet(ctx context.Context, obj PersistentVolumeClaimForReplicaSet) error
func (*Client) CreateRedirectIngress ¶
func (c *Client) CreateRedirectIngress(ctx context.Context, x RedirectIngress) error
func (*Client) CreateReplicaSet ¶
func (c *Client) CreateReplicaSet(ctx context.Context, obj ReplicaSet) error
func (*Client) CreateSecretDockerConfigJSON ¶
func (c *Client) CreateSecretDockerConfigJSON(ctx context.Context, obj SecretDockerConfigJSON) error
func (*Client) CreateService ¶
func (*Client) CreateServiceAccount ¶
func (c *Client) CreateServiceAccount(ctx context.Context, obj ServiceAccount) error
func (*Client) CreateServiceForReplicaSet ¶
func (c *Client) CreateServiceForReplicaSet(ctx context.Context, obj ServiceForReplicaSet) error
func (*Client) DeleteCertificate ¶
func (*Client) DeleteConfigMap ¶
func (*Client) DeleteDeployment ¶
func (*Client) DeleteHorizontalPodAutoscaler ¶
func (*Client) DeletePersistentVolumeClaim ¶
func (*Client) DeleteReplicaSet ¶
func (*Client) DeleteServiceAccount ¶
func (*Client) GetDeployment ¶
func (*Client) GetDeploymentsForProject ¶
func (*Client) GetNodePort ¶
func (*Client) GetReplicaSet ¶
func (*Client) GetReplicaSetPodIP ¶
type CronJob ¶
type CronJob struct { ID string ProjectID string Name string Revision int64 Image string Env Env Command []string Args []string SA string Schedule string RequestCPU string RequestMemory string LimitCPU string LimitMemory string PullSecret string Disk Disk RuntimeClass string Pool PoolConfig BindConfigMap map[string]string // key => file path Sidecars []*api.SidecarConfig }
type Deployment ¶
type Deployment struct { ID string ProjectID string Name string Revision int64 Image string Env Env Command []string Args []string SA string Replicas int ExposePort int Annotations map[string]string // pod's annotations RequestCPU string RequestMemory string LimitCPU string LimitMemory string PullSecret string Disk Disk RuntimeClass string Pool PoolConfig BindConfigMap map[string]string // key => file path H2CP bool Protocol string Sidecars []*api.SidecarConfig ForceSpot bool }
type HorizontalPodAutoscaler ¶
type PersistentVolumeClaim ¶
type PoolConfig ¶
type PoolConfig struct { Name string }
type RedirectIngress ¶
type ReplicaSet ¶
type ReplicaSet struct { ID string ProjectID string Name string Revision int64 Image string Env Env Command []string Args []string SA string Replicas int ExposePort int Annotations map[string]string // pod's annotations RequestCPU string RequestMemory string LimitCPU string LimitMemory string PullSecret string Disk Disk }
type SecretDockerConfigJSON ¶
type ServiceAccount ¶
Click to show internal directories.
Click to hide internal directories.