rainbond: github.com/goodrain/rainbond/util/leader Index | Files

package leader

import "github.com/goodrain/rainbond/util/leader"


Package Files


func RunAsLeader Uses

func RunAsLeader(clientset *kubernetes.Clientset, namespace string, identity string, lockName string, startFunc func(stop <-chan struct{}), stopFunc func())

RunAsLeader starts this particular external attacher after becoming a leader.

func SanitizeDriverName Uses

func SanitizeDriverName(driver string) string

SanitizeDriverName a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')

Package leader imports 12 packages (graph) and is imported by 1 packages. Updated 2018-11-21. Refresh now. Tools for package owners.