azure

package
v0.0.0-...-7759ae7 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseInstance

func ParseInstance(in *compute.VirtualMachineSize) (*data.InstanceType, error)

func ParseRegion

func ParseRegion(in *subscriptions.Location) *data.Region

Types

type AzureData

type AzureData data.CloudData

type Client

type Client struct {
	Data           *AzureData
	SubscriptionId string
	GroupsClient   subscriptions.GroupClient
	VmSizesClient  compute.VirtualMachineSizesClient
}

func NewClient

func NewClient(tenantId, subscriptionId, clientId, clientSecret string) (*Client, error)

func (*Client) GetCredentials

func (g *Client) GetCredentials() []data.CredentialFormat

func (*Client) GetEnvs

func (g *Client) GetEnvs() []string

func (*Client) GetInstanceTypes

func (g *Client) GetInstanceTypes() ([]data.InstanceType, error)

func (*Client) GetKubernets

func (g *Client) GetKubernets() []data.Kubernetes

func (*Client) GetName

func (g *Client) GetName() string

func (*Client) GetRegions

func (g *Client) GetRegions() ([]data.Region, error)

func (*Client) GetZones

func (g *Client) GetZones() ([]string, error)

Jump to

Keyboard shortcuts

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