config

package
v0.0.0-...-163c308 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Name is used as leaderelection namespace
	Namespace string `required:"true"`

	// NodeName is the node the pod is running on
	NodeName string `required:"true"`

	// Provider is the provide for floating ip
	Provider string `required:"true"`

	// ProviderToken is used to login to the provider
	ProviderToken string `required:"true"`

	// ProviderIPs is a list of floating ip ids
	ProviderIPs []int `required:"true"`
}

func Create

func Create() (c *Config, err error)

Create parses environment variables and returns a configuration

Jump to

Keyboard shortcuts

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