aws

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 AWS

type AWS struct {
}

AWS represents a provider for AWS.

func NewAWS

func NewAWS() (*AWS, error)

NewAWS returns an instance of the AWS provisioner

func (*AWS) AllocateExternalIPs

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

AllocateExternalIPs creates IPs for the control plane nodes

func (*AWS) Create

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

Create creates an instance in AWS.

func (*AWS) DeAllocateExternalIPs

func (aws *AWS) DeAllocateExternalIPs(cluster *clusterv1.Cluster, clientset *kubernetes.Clientset) error

DeAllocateExternalIPs cleans IPs for the control plane nodes

func (*AWS) Delete

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

Delete deletes a AWS instance.

func (*AWS) Exists

func (aws *AWS) 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 AWS.

func (*AWS) Update

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

Update updates a given AWS instance.

type ClusterInfo

type ClusterInfo struct {
	Region string
}

ClusterInfo holds data about desired config in cluster object

type DiskInfo

type DiskInfo struct {
	Size int
}

DiskInfo holds disk info data

type InstanceInfo

type InstanceInfo struct {
	Type           string
	AMI            string
	Keypair        string
	SecurityGroups []string
	Disks          DiskInfo
}

InstanceInfo holds data about the instances we'll create

type MachineInfo

type MachineInfo struct {
	Region    string
	Instances InstanceInfo
}

MachineInfo holds data about desired config in cluster object

Jump to

Keyboard shortcuts

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