gke

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: 12 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	// ProjectID is the ID of your project to use when creating a cluster
	ProjectID string
	// The zone to launch the cluster
	Zone string
	// The IP address range of the container pods
	ClusterIpv4Cidr string
	// An optional description of this cluster
	Description string
	// The number of nodes to create in this cluster
	NodeCount int64
	// the kubernetes master version
	MasterVersion string
	// The authentication information for accessing the master
	MasterAuth *raw.MasterAuth
	// the kubernetes node version
	NodeVersion string
	// The name of this cluster
	Name string
	// Parameters used in creating the cluster's nodes
	NodeConfig *raw.NodeConfig
	// The path to the credential file(key.json)
	CredentialPath string
	// Enable alpha feature
	EnableAlphaFeature bool
	// NodePool id
	NodePoolID string
	// cluster info
	ClusterInfo generic.ClusterInfo
}

Driver defines the struct of gke driver

func NewDriver

func NewDriver() *Driver

NewDriver creates a gke Driver

func (*Driver) Create

func (d *Driver) Create() error

Create implements driver interface

func (*Driver) Get

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

Get implements driver interface

func (*Driver) GetDriverCreateOptions

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

GetDriverCreateOptions implements driver interface

func (*Driver) GetDriverUpdateOptions

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

GetDriverUpdateOptions implements driver interface

func (*Driver) PostCheck

func (d *Driver) PostCheck() error

func (*Driver) Remove

func (d *Driver) Remove() error

Remove implements driver interface

func (*Driver) SetDriverOptions

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

SetDriverOptions implements driver interface

func (*Driver) Update

func (d *Driver) Update() error

Update implements driver interface

Jump to

Keyboard shortcuts

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