gke

package
v0.0.4-dev.0...-067a624 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnvMutex sync.Mutex

Functions

func NewDriver

func NewDriver() types.Driver

Types

type Driver

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

Driver defines the struct of gke driver

func (*Driver) Create

Create implements driver interface

func (*Driver) ETCDRemoveSnapshot

func (d *Driver) ETCDRemoveSnapshot(ctx context.Context, clusterInfo *types.ClusterInfo, opts *types.DriverOptions, snapshotName string) error

func (*Driver) ETCDRestore

func (d *Driver) ETCDRestore(ctx context.Context, clusterInfo *types.ClusterInfo, opts *types.DriverOptions, snapshotName string) (*types.ClusterInfo, error)

func (*Driver) ETCDSave

func (d *Driver) ETCDSave(ctx context.Context, clusterInfo *types.ClusterInfo, opts *types.DriverOptions, snapshotName string) error

func (*Driver) GetCapabilities

func (d *Driver) GetCapabilities(ctx context.Context) (*types.Capabilities, error)

func (*Driver) GetClusterSize

func (d *Driver) GetClusterSize(ctx context.Context, info *types.ClusterInfo) (*types.NodeCount, error)

func (*Driver) GetDriverCreateOptions

func (d *Driver) GetDriverCreateOptions(ctx context.Context) (*types.DriverFlags, error)

GetDriverCreateOptions implements driver interface

func (*Driver) GetDriverUpdateOptions

func (d *Driver) GetDriverUpdateOptions(ctx context.Context) (*types.DriverFlags, error)

GetDriverUpdateOptions implements driver interface

func (*Driver) GetK8SCapabilities

func (d *Driver) GetK8SCapabilities(ctx context.Context, options *types.DriverOptions) (*types.K8SCapabilities, error)

func (*Driver) GetVersion

func (d *Driver) GetVersion(ctx context.Context, info *types.ClusterInfo) (*types.KubernetesVersion, error)

func (*Driver) PostCheck

func (d *Driver) PostCheck(ctx context.Context, info *types.ClusterInfo) (*types.ClusterInfo, error)

func (*Driver) Remove

func (d *Driver) Remove(ctx context.Context, info *types.ClusterInfo) error

Remove implements driver interface

func (*Driver) RemoveLegacyServiceAccount

func (d *Driver) RemoveLegacyServiceAccount(ctx context.Context, info *types.ClusterInfo) error

func (*Driver) SetClusterSize

func (d *Driver) SetClusterSize(ctx context.Context, info *types.ClusterInfo, count *types.NodeCount) error

func (*Driver) SetVersion

func (d *Driver) SetVersion(ctx context.Context, info *types.ClusterInfo, version *types.KubernetesVersion) error

func (*Driver) Update

func (d *Driver) Update(ctx context.Context, info *types.ClusterInfo, opts *types.DriverOptions) (*types.ClusterInfo, error)

Update implements driver interface

Jump to

Keyboard shortcuts

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