Documentation ¶
Index ¶
- type Deletion
- type Deployment
- func (d *Deployment) ApplyResources() error
- func (d *Deployment) AuthenticateCluster() (kubernetes.Clientset, error)
- func (d *Deployment) CheckDeploymentAndService(name string, namespace string, ctx context.Context, ...) (bool, error)
- func (d *Deployment) CheckNamespace(name string, ctx context.Context, client kubernetes.Clientset) (bool, error)
- func (d *Deployment) CreateDeployment() appsv1.Deployment
- func (d *Deployment) CreateIngress(port int32) networking.Ingress
- func (d *Deployment) CreateNamespace() corev1.Namespace
- func (d *Deployment) CreateProjectResources(client kubernetes.Clientset, ctx context.Context) error
- func (d *Deployment) CreateProjectService(client kubernetes.Clientset, ctx context.Context) error
- func (d *Deployment) CreateResourceQuota() (corev1.ResourceQuota, error)
- func (d *Deployment) CreateRole() (rbac.Role, rbac.RoleBinding)
- func (d *Deployment) CreateService() corev1.Service
- func (d *Deployment) DeployStatus() appsv1.Deployment
- func (d *Deployment) UpdateProjectService(client kubernetes.Clientset, ctx context.Context) error
- type Extras
- type Ports
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deletion ¶
func (*Deletion) AuthenticateCluster ¶
func (d *Deletion) AuthenticateCluster() (kubernetes.Clientset, error)
func (*Deletion) DeleteEnvironment ¶
func (*Deletion) DeleteService ¶
type Deployment ¶
type Deployment struct { ImageName string NamespaceName string Extras Extras Ports []Ports Env map[string]string RamLimit string }
func (*Deployment) ApplyResources ¶
func (d *Deployment) ApplyResources() error
func (*Deployment) AuthenticateCluster ¶
func (d *Deployment) AuthenticateCluster() (kubernetes.Clientset, error)
func (*Deployment) CheckDeploymentAndService ¶
func (d *Deployment) CheckDeploymentAndService( name string, namespace string, ctx context.Context, client kubernetes.Clientset, ) (bool, error)
func (*Deployment) CheckNamespace ¶
func (d *Deployment) CheckNamespace( name string, ctx context.Context, client kubernetes.Clientset, ) (bool, error)
func (*Deployment) CreateDeployment ¶
func (d *Deployment) CreateDeployment() appsv1.Deployment
func (*Deployment) CreateIngress ¶
func (d *Deployment) CreateIngress(port int32) networking.Ingress
func (*Deployment) CreateNamespace ¶
func (d *Deployment) CreateNamespace() corev1.Namespace
func (*Deployment) CreateProjectResources ¶
func (d *Deployment) CreateProjectResources(client kubernetes.Clientset, ctx context.Context) error
func (*Deployment) CreateProjectService ¶
func (d *Deployment) CreateProjectService(client kubernetes.Clientset, ctx context.Context) error
func (*Deployment) CreateResourceQuota ¶
func (d *Deployment) CreateResourceQuota() (corev1.ResourceQuota, error)
func (*Deployment) CreateRole ¶
func (d *Deployment) CreateRole() (rbac.Role, rbac.RoleBinding)
func (*Deployment) CreateService ¶
func (d *Deployment) CreateService() corev1.Service
func (*Deployment) DeployStatus ¶
func (d *Deployment) DeployStatus() appsv1.Deployment
func (*Deployment) UpdateProjectService ¶
func (d *Deployment) UpdateProjectService(client kubernetes.Clientset, ctx context.Context) error
type Extras ¶
type Extras struct {
ImageName string
}
func (*Extras) ServicePorts ¶
func (e *Extras) ServicePorts(ports []Ports) []corev1.ServicePort
Click to show internal directories.
Click to hide internal directories.