Documentation ¶
Index ¶
- Constants
- func EmptyDirVolume(name string) corev1.Volume
- func SecretEnvVar(name, secret, key string) corev1.EnvVar
- func SecretVolume(name, secret string) corev1.Volume
- func Template(source string, args ...interface{}) (result string, err error)
- func WaitForDB(source *url.URL) error
- func WaitForPod(client *corev1client.CoreV1Client, project, name string) (pod *corev1.Pod, err error)
- func WaitForRoute(client *routev1client.RouteV1Client, project, name string) (route *routev1.Route, err error)
- func WaitForServer(client *http.Client, address string) error
Constants ¶
const AppLabel = "app"
Application label:
Variables ¶
This section is empty.
Functions ¶
func EmptyDirVolume ¶
func SecretEnvVar ¶
func SecretVolume ¶
func Template ¶
Template processes the given template using as data the set of name value pairs that are given as arguments. For example, to the following code:
result, err := Template(` { "name": "{{ .Name }}", "flavour": { "id": "{{ .Flavour }}" } } `, "Name", "mycluster", "Flavour", "4", )
Produces the following result:
{ "name": "mycluster", "flavour": { "id": "4" } }
func WaitForPod ¶
func WaitForPod(client *corev1client.CoreV1Client, project, name string) (pod *corev1.Pod, err error)
WaitForPod waits till the given pod is ready. It returns the description of the pod contained in the event that indicated that it is ready, or an error if something fails while checking or if the pod isn't ready after one minute.
func WaitForRoute ¶
func WaitForRoute(client *routev1client.RouteV1Client, project, name string) (route *routev1.Route, err error)
WaitForRoute waits till the given route is admitted. It returns the description of the route contained in the event that indicates that it was admitted, or an error if something fails while checking or the route isn't ready after waiting more than one minute.
Types ¶
This section is empty.