Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Copy ¶
type Copy struct { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` Mode string `json:"mode,omitempty"` BatchSize int `json:"batchSize,omitempty"` }
Copy represents an ARM template copy stanza
type Output ¶
type Output struct { Condition bool `json:"condition,omitempty"` Type string `json:"type,omitempty"` Value interface{} `json:"value,omitempty"` }
Output represents an ARM template output
type Parameters ¶
type Parameters struct { Schema string `json:"$schema,omitempty"` ContentVersion string `json:"contentVersion,omitempty"` Parameters map[string]*ParametersParameter `json:"parameters,omitempty"` }
Parameters represents ARM parameters
type ParametersParameter ¶
type ParametersParameter struct { Ref string `json:"$ref,omitempty"` Value interface{} `json:"value,omitempty"` Metadata map[string]interface{} `json:"metadata,omitempty"` }
ParametersParameter represents an ARM parameters parameter
type Resource ¶
type Resource struct { Resource interface{} Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Condition interface{} `json:"condition,omitempty"` APIVersion string `json:"apiVersion,omitempty"` DependsOn []string `json:"dependsOn,omitempty"` Location string `json:"location,omitempty"` Tags map[string]interface{} `json:"tags,omitempty"` Copy *Copy `json:"copy,omitempty"` Comments string `json:"comments,omitempty"` }
Resource represents an ARM template resource
func (*Resource) MarshalJSON ¶
MarshalJSON marshals the nested r.Resource ignoring any MarshalJSON() methods on its types. It then merges remaining fields of r over the result
func (*Resource) UnmarshalJSON ¶
UnmarshalJSON is not implemented
type Template ¶
type Template struct { Schema string `json:"$schema,omitempty"` APIProfile string `json:"apiProfile,omitempty"` ContentVersion string `json:"contentVersion,omitempty"` Variables map[string]interface{} `json:"variables,omitempty"` Parameters map[string]*TemplateParameter `json:"parameters,omitempty"` Functions []interface{} `json:"functions,omitempty"` Resources []*Resource `json:"resources,omitempty"` Outputs map[string]*Output `json:"outputs,omitempty"` }
Template represents an ARM template
type TemplateParameter ¶
type TemplateParameter struct { Type string `json:"type,omitempty"` DefaultValue interface{} `json:"defaultValue,omitempty"` AllowedValues []interface{} `json:"allowedValues,omitempty"` Metadata map[string]interface{} `json:"metadata,omitempty"` MinValue int `json:"minValue,omitempty"` MaxValue int `json:"maxValue,omitempty"` MinLength int `json:"minLength,omitempty"` MaxLength int `json:"maxLength,omitempty"` }
TemplateParameter represents an ARM template parameter
Click to show internal directories.
Click to hide internal directories.