Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { User *User `json:"user"` TenantID string `json:"tenantId" envconfig:"TENANT_ID" required:"true"` SubscriptionID string `json:"id" envconfig:"SUBSCRIPTION_ID" required:"true"` ResourceGroup ResourceGroup Deployment Deployment }
Account holds the values needed to talk to the Azure API
func GetCurrentAccount ¶
GetCurrentAccount will run an az account show and parse that into an account strcut
func NewAccount ¶
NewAccount will parse env vars and return a new struct
func (*Account) CreateDeployment ¶
CreateDeployment will deploy a cluster to a given resource group using the template and parameters on disk
func (*Account) CreateGroup ¶
CreateGroup will create a resource group in a given location
func (*Account) DeleteGroup ¶
DeleteGroup delets a given resource group by name
func (*Account) SetSubscription ¶
SetSubscription will call az account set --subscription for the given Account
type Deployment ¶
type Deployment struct { Name string // Name of the deployment TemplateDirectory string // engine.GeneratedDefinitionPath }
Deployment represents a deployment of an acs cluster
type ResourceGroup ¶
ResourceGroup represents a collection of azure resources
Click to show internal directories.
Click to hide internal directories.