util

package
v0.0.0-...-61377ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteJobs

func ExecuteJobs(jobs []Job)

executeJobs generates a job per region and executes them. If a job fails then it is replaced by a new one. Makes sure all jobs exit to completion. Once all the jobs are done running it sleeps.

func GenerateName

func GenerateName(region string) string

GenerateName generates cluster names. The format is 'bc-<region name>-<RANDOM>-<year><month><day><hour><minute><second>' The string is trimmed down to 18 characters. That is the maximum allowed length by lokomotive.

Types

type Job

type Job struct {
	Name   string
	Region string
	EIP    string
	Done   bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL