Documentation
¶
Index ¶
- func AddPortConfigToService(service *api.Service, name string, protocol api.Protocol, port int, ...)
- func BuildDeployment(name string, namespace string, maxUnavailable int, maxSurge int, replicas int, ...) *extensions.Deployment
- func BuildLoadBalancerService(name, namespace, selector string) *api.Service
- func BuildSlugRunnerDeployment(name string, namespace string, maxUnavailable int, maxSurge int, replicas int, ...) *extensions.Deployment
- func BuildSlugRunnerLBService(name, namespace, selector string) *api.Service
- func BuildSlugbuilderPod(env map[string]string, name, namespace, tarKey, putKey, buildpackURL string, ...) *api.Pod
- func SlugBuilderPodName(appName, shortSha string) string
- func WaitForPod(c *client.Client, ns, podName string, interval, timeout time.Duration) error
- func WaitForPodEnd(c *client.Client, ns, podName string, interval, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPortConfigToService ¶
func AddPortConfigToService( service *api.Service, name string, protocol api.Protocol, port int, targetPort int)
AddPortConfigToService add port to service
func BuildDeployment ¶
func BuildDeployment( name string, namespace string, maxUnavailable int, maxSurge int, replicas int, selector string, podSpec api.PodSpec) *extensions.Deployment
BuildDeployment builds and returns a deployment pointer.
func BuildLoadBalancerService ¶
BuildLoadBalancerService creates a service of type load balancer
func BuildSlugRunnerDeployment ¶
func BuildSlugRunnerDeployment( name string, namespace string, maxUnavailable int, maxSurge int, replicas int, selector string, slugURL string, env map[string]string) *extensions.Deployment
BuildSlugRunnerDeployment builds a deployment using a slugrunner image with the slug built by the slugbuilder some steps earlier.
func BuildSlugRunnerLBService ¶
BuildSlugRunnerLBService helps to create a slugrunner service pointing to port 5000
func BuildSlugbuilderPod ¶
func BuildSlugbuilderPod(env map[string]string, name, namespace, tarKey, putKey, buildpackURL string, debug bool) *api.Pod
BuildSlugbuilderPod is used to create an builder pod
func SlugBuilderPodName ¶
SlugBuilderPodName is used to generate a temp name to the builder pod
func WaitForPod ¶
WaitForPod waits for running stated, among others
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.