nodedriver

package
v2.2.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemaLock = sync.Mutex{}

	// Aliases maps Driver field => schema field
	// The opposite of this lives in pkg/controllers/management/node/controller.go
	Aliases = map[string]map[string]string{
		"aliyunecs":    map[string]string{"sshKeypath": "sshKeyContents"},
		"amazonec2":    map[string]string{"sshKeypath": "sshKeyContents", "userdata": "userdata"},
		"azure":        map[string]string{"customData": "customData"},
		"digitalocean": map[string]string{"sshKeyPath": "sshKeyContents", "userdata": "userdata"},
		"exoscale":     map[string]string{"sshKey": "sshKey", "userdata": "userdata"},
		"openstack":    map[string]string{"cacert": "cacert", "privateKeyFile": "privateKeyFile", "userDataFile": "userDataFile"},
		"otc":          map[string]string{"privateKeyFile": "privateKeyFile"},
		"packet":       map[string]string{"userdata": "userdata"},
	}
)

Functions

func FlagToField

func FlagToField(flag cli.Flag) (string, v3.Field, error)

func Register

func Register(ctx context.Context, management *config.ManagementContext)

func ToLowerCamelCase

func ToLowerCamelCase(nodeFlagName string) (string, error)

Types

type BoolPointerFlag

type BoolPointerFlag struct {
	Name   string
	Usage  string
	EnvVar string
}

func (BoolPointerFlag) Default

func (f BoolPointerFlag) Default() interface{}

func (BoolPointerFlag) String

func (f BoolPointerFlag) String() string

type Lifecycle

type Lifecycle struct {
	// contains filtered or unexported fields
}

func (*Lifecycle) Create

func (m *Lifecycle) Create(obj *v3.NodeDriver) (runtime.Object, error)

func (*Lifecycle) Remove

func (m *Lifecycle) Remove(obj *v3.NodeDriver) (runtime.Object, error)

func (*Lifecycle) Updated

func (m *Lifecycle) Updated(obj *v3.NodeDriver) (runtime.Object, error)

Jump to

Keyboard shortcuts

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