juju: github.com/juju/juju/provider/azure/internal/armtemplates Index | Files

package armtemplates

import "github.com/juju/juju/provider/azure/internal/armtemplates"

Index

Package Files

template.go

type Resource Uses

type Resource struct {
    APIVersion string            `json:"apiVersion"`
    Type       string            `json:"type"`
    Name       string            `json:"name"`
    Location   string            `json:"location,omitempty"`
    Tags       map[string]string `json:"tags,omitempty"`
    Comments   string            `json:"comments,omitempty"`
    DependsOn  []string          `json:"dependsOn,omitempty"`
    Properties interface{}       `json:"properties,omitempty"`
    Resources  []Resource        `json:"resources,omitempty"`

    // Non-uniform attributes.
    Sku *Sku `json:"sku,omitempty"`
}

Resource describes a template resource. For information on the individual fields, see https://azure.microsoft.com/en-us/documentation/articles/resource-group-authoring-templates/.

type Sku Uses

type Sku struct {
    Name string `json:"name,omitempty"`
}

Sku represents an Azure SKU. Each API (compute/networking/storage) defines its own SKU types, but we use a common type because we don't require many fields.

type Template Uses

type Template struct {
    // Resources contains the definitions of resources that will
    // be created by the template.
    Resources []Resource `json:"resources"`
}

Template represents an Azure Resource Manager (ARM) Template. See: https://azure.microsoft.com/en-us/documentation/articles/resource-group-authoring-templates/

func (*Template) Map Uses

func (t *Template) Map() (map[string]interface{}, error)

Map returns the template as a map, suitable for use in azure-sdk-for-go/arm/resources/resources/DeploymentProperties.Template.

Package armtemplates is imported by 13 packages. Updated 2019-06-27. Refresh now. Tools for package owners.