rke

package
v0.0.4-dev Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	// The string representation of Config Yaml
	ConfigYaml string
	// Kubernetes master endpoint
	Endpoint string
	// Root certificates
	RootCA string
	// Client certificates
	ClientCert string
	// Client key
	ClientKey string
	// Cluster info
	ClusterInfo generic.ClusterInfo
}

Driver is the struct of rke driver

func NewDriver

func NewDriver() *Driver

NewDriver creates a new rke driver

func (*Driver) Create

func (d *Driver) Create() error

Create creates the rke cluster

func (*Driver) Get

func (d *Driver) Get() (*generic.ClusterInfo, error)

Get retrieve the cluster info by name

func (*Driver) GetDriverCreateOptions

func (d *Driver) GetDriverCreateOptions() (*generic.DriverFlags, error)

GetDriverCreateOptions returns create flags for rke driver

func (*Driver) GetDriverUpdateOptions

func (d *Driver) GetDriverUpdateOptions() (*generic.DriverFlags, error)

GetDriverUpdateOptions returns update flags for rke driver

func (*Driver) PostCheck

func (d *Driver) PostCheck() error

PostCheck does post action

func (*Driver) Remove

func (d *Driver) Remove() error

Remove removes the cluster

func (*Driver) SetDriverOptions

func (d *Driver) SetDriverOptions(driverOptions *generic.DriverOptions) error

SetDriverOptions sets the drivers options to rke driver

func (*Driver) Update

func (d *Driver) Update() error

Update updates the rke cluster

Jump to

Keyboard shortcuts

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