gce

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: MPL-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterInfo

type ClusterInfo struct {
	Zone      string
	Project   string
	Instances InstanceInfo
}

ClusterInfo holds data about desired config in cluster object

type DiskInfo

type DiskInfo struct {
	Size int
}

DiskInfo holds disk info data

type GCE

type GCE struct {
}

GCE represents a provider for GCE.

func NewGCE

func NewGCE() (*GCE, error)

NewGCE returns an instance of the GCE provisioner

func (*GCE) Create

func (gce *GCE) Create(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine, clientset *kubernetes.Clientset) error

Create creates an instance in GCE.

func (*GCE) Delete

func (gce *GCE) Delete(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine, clientset *kubernetes.Clientset) error

Delete deletes a GCE instance.

func (*GCE) Exists

func (gce *GCE) Exists(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine, clientset *kubernetes.Clientset) (bool, error)

Exists returns whether or not an instance is present in GCE.

func (*GCE) Update

func (gce *GCE) Update(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine, clientset *kubernetes.Clientset) error

Update updates a given GCE instance.

type InstanceInfo

type InstanceInfo struct {
	Type  string
	Image string
	Disks DiskInfo
}

InstanceInfo holds data about the instances we'll create

Jump to

Keyboard shortcuts

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