Documentation ¶
Index ¶
- type Account
- func (a *Account) CreateDeployment(name string, e *engine.Engine) error
- func (a *Account) CreateGroup(name, location string) error
- func (a *Account) CreateVnet(vnet, addressPrefixes, subnetName, subnetPrefix string) error
- func (a *Account) DeleteGroup(name string) error
- func (a *Account) Login() error
- func (a *Account) SetSubscription() error
- func (a *Account) UpdateRouteTables(subnet, vnet string) error
- type Deployment
- type ResourceGroup
- type RouteTable
- type User
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 --tags "type=${RESOURCE_GROUP_TAG_TYPE:-}" "now=$(date +%s)" "job=${JOB_BASE_NAME:-}" "buildno=${BUILD_NUM:-}"
func (*Account) CreateVnet ¶ added in v0.7.0
CreateVnet will create a vnet in a resource group
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
func (*Account) UpdateRouteTables ¶ added in v0.7.0
UpdateRouteTables is used to updated a vnet with the appropriate route tables
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
type RouteTable ¶ added in v0.7.0
type RouteTable struct { ID string `json:"id"` Location string `json:"location"` Name string `json:"name"` ProvisioningState string `json:"provisioningState"` ResourceGroup string `json:"resourceGroup"` }
RouteTable holds information from running az network route-table list