gce

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: MPL-2.0 Imports: 14 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 {
	Region  string
	Project string
}

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) AllocateExternalIPs

func (gce *GCE) AllocateExternalIPs(cluster *clusterv1.Cluster, clientset *kubernetes.Clientset) ([]string, error)

AllocateExternalIPs creates IPs for the control plane nodes

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) DeAllocateExternalIPs

func (gce *GCE) DeAllocateExternalIPs(cluster *clusterv1.Cluster, clientset *kubernetes.Clientset) error

DeAllocateExternalIPs cleans IPs for the control plane nodes

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

type MachineInfo

type MachineInfo struct {
	Zone      string
	Project   string
	Instances InstanceInfo
}

MachineInfo holds data about desired config in machine object

Jump to

Keyboard shortcuts

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