Documentation ¶
Index ¶
- func CreateDeployment(client clientset.Interface, namespace *v1.Namespace, ...) *apps.Deployment
- func CreateSvc(client clientset.Interface, namespace *v1.Namespace, ...) *v1.Service
- func DeleteDeployment(client clientset.Interface, namespace *v1.Namespace, ...)
- func DeleteSvc(client clientset.Interface, namespace *v1.Namespace, svc *v1.Service)
- func ElbAPI() (osc.LoadBalancer, error)
- func GetLb(elb osc.LoadBalancer, name string) (*elbApi.LoadBalancerDescription, error)
- func GetSvc(client clientset.Interface, namespace *v1.Namespace, name string) (result *v1.Service)
- func ListDeployment(client clientset.Interface, namespace *v1.Namespace)
- func ListSvc(client clientset.Interface, namespace *v1.Namespace)
- func RemoveLbInst(elb osc.LoadBalancer, lbName string, lbInstances []*elbApi.Instance) error
- func UpdateSvcPorts(client clientset.Interface, namespace *v1.Namespace, service *v1.Service, ...) *v1.Service
- func WaitForDeletedSvc(client clientset.Interface, namespace *v1.Namespace, svc *v1.Service)
- func WaitForDeployementReady(client clientset.Interface, namespace *v1.Namespace, ...)
- func WaitForSvc(client clientset.Interface, namespace *v1.Namespace, svc *v1.Service)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDeployment ¶
func CreateDeployment(client clientset.Interface, namespace *v1.Namespace, cmd, metaName, name, image string, replicas int32, ports []apiv1.ContainerPort) *apps.Deployment
CreateDeployment create a deployement
func CreateSvc ¶
func CreateSvc(client clientset.Interface, namespace *v1.Namespace, additional map[string]string, metaName, name string, servicePort []v1.ServicePort, sourceRanges bool, sourceRangesCidr []string) *v1.Service
CreateSvc create an svc
func DeleteDeployment ¶
func DeleteDeployment(client clientset.Interface, namespace *v1.Namespace, deployment *apps.Deployment)
DeleteDeployment delete a Deployment
func GetLb ¶
func GetLb(elb osc.LoadBalancer, name string) (*elbApi.LoadBalancerDescription, error)
GetLb describe an LB
func ListDeployment ¶
ListDeployment list deployement
func RemoveLbInst ¶
RemoveLbInst remove instance from lb
func UpdateSvcPorts ¶
func UpdateSvcPorts(client clientset.Interface, namespace *v1.Namespace, service *v1.Service, port v1.ServicePort) *v1.Service
UpdateSvcPorts update an svc
func WaitForDeletedSvc ¶
WaitForDeletedSvc waits for an svc to be deleted
func WaitForDeployementReady ¶
func WaitForDeployementReady(client clientset.Interface, namespace *v1.Namespace, deployment *apps.Deployment)
WaitForDeployementReady wait for a Deployement
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.