azure

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: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Az

type Az struct {
}

Az represents a provider for Azure.

func NewAz

func NewAz() (*Az, error)

NewAz returns an instance of the Azure provisioner

func (*Az) AllocateExternalIPs

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

AllocateExternalIPs creates IPs for the control plane nodes

func (*Az) Create

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

Create creates an instance in Azure.

func (*Az) DeAllocateExternalIPs

func (azure *Az) DeAllocateExternalIPs(cluster *clusterv1.Cluster, clientset *kubernetes.Clientset) error

DeAllocateExternalIPs cleans IPs for the control plane nodes

func (*Az) Delete

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

Delete deletes a Azure instance.

func (*Az) Exists

func (azure *Az) 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 Azure.

func (*Az) Update

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

Update updates a given Azure instance.

type ClusterInfo

type ClusterInfo struct {
	Location      string
	ResourceGroup 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
	Image   string
	Network string
	Subnet  string
	Disks   DiskInfo
}

InstanceInfo holds data about the instances we'll create

type MachineInfo

type MachineInfo struct {
	Location      string
	ResourceGroup string
	Instances     InstanceInfo
}

MachineInfo holds data about desired config in machine object

type Session

type Session struct {
	SubscriptionID string
	Authorizer     autorest.Authorizer
}

Session is an object representing session for subscription

Jump to

Keyboard shortcuts

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