azure

package
v0.0.0-...-8039d59 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NullValue = Value{
	Kind: KindNull,
}

Functions

This section is empty.

Types

type Copy

type Copy struct {
	Name      Value
	Mode      Value
	BatchSize Value
	Count     Value
}

type Decorator

type Decorator struct {
	Name string
	Args []Value
}

type Deployment

type Deployment struct {
	Metadata    types.Metadata
	TargetScope Scope
	Parameters  []Parameter
	Variables   []Variable
	Copy        *Copy
	Resources   []Resource
	Outputs     []Output
}

func (*Deployment) GetDeployment

func (d *Deployment) GetDeployment() interface{}

func (*Deployment) GetEnvVariable

func (d *Deployment) GetEnvVariable(envVariableName string) interface{}

func (*Deployment) GetOutput

func (d *Deployment) GetOutput(outputName string) interface{}

func (*Deployment) GetParameter

func (d *Deployment) GetParameter(name string) interface{}

func (*Deployment) GetResourcesByType

func (d *Deployment) GetResourcesByType(t string) []Resource

func (*Deployment) GetVariable

func (d *Deployment) GetVariable(name string) interface{}

func (*Deployment) SetParameter

func (d *Deployment) SetParameter(name string, value interface{}) error

type DeploymentProperties

type DeploymentProperties struct {
	Mode                        Value
	ParameterValues             map[string]Value
	ExpressionEvaluationOptions *ExpressionEvaluationOptions
	Deployment                  *Deployment
}

type EvalContext

type EvalContext struct{}

type ExpressionEvaluationOptions

type ExpressionEvaluationOptions struct {
	Scope Value
}

type Kind

type Kind string
const (
	KindUnresolvable Kind = "unresolvable"
	KindNull         Kind = "null"
	KindBoolean      Kind = "boolean"
	KindString       Kind = "string"
	KindNumber       Kind = "number"
	KindObject       Kind = "object"
	KindArray        Kind = "array"
	KindExpression   Kind = "expression"
)

type Output

type Output Variable

type Parameter

type Parameter struct {
	Variable
	Default    Value
	Decorators []Decorator
}

type PropertyBag

type PropertyBag struct {
	Metadata types.Metadata
	Data     map[string]Value
}

type Resolver

type Resolver interface {
	ResolveExpression(expression Value) Value
	SetDeployment(d *Deployment)
}

func NewResolver

func NewResolver() Resolver

type Resource

type Resource struct {
	Metadata             types.Metadata
	Condition            Value
	APIVersion           Value
	Type                 Value
	Kind                 Value
	Name                 Value
	Location             Value
	SubscriptionId       Value
	ResourceGroup        Value
	Tags                 Value
	Sku                  Value
	DeploymentProperties DeploymentProperties
	Copy                 *Copy
	Properties           Value
	Resources            []Resource
}

func (*Resource) GetResourcesByType

func (r *Resource) GetResourcesByType(t string) []Resource

type Scope

type Scope string
const (
	ScopeResourceGroup Scope = "resourceGroup"
)

type Value

type Value struct {
	types.Metadata

	Kind     Kind
	Comments []string
	// contains filtered or unexported fields
}

func NewValue

func NewValue(value interface{}, metadata types.Metadata) Value

func (Value) AsBool

func (v Value) AsBool() bool

func (Value) AsBoolValue

func (v Value) AsBoolValue(defaultValue bool, metadata types.Metadata) types.BoolValue

func (Value) AsExpressionString

func (v Value) AsExpressionString() string

func (Value) AsFloat

func (v Value) AsFloat() float64

func (Value) AsInt

func (v Value) AsInt() int

func (Value) AsIntValue

func (v Value) AsIntValue(defaultValue int, metadata types.Metadata) types.IntValue

func (Value) AsList

func (v Value) AsList() []Value

func (Value) AsMap

func (v Value) AsMap() map[string]Value

func (Value) AsString

func (v Value) AsString() string

func (Value) AsStringValue

func (v Value) AsStringValue(defaultValue string, metadata types.Metadata) types.StringValue

func (Value) AsStringValuesList

func (v Value) AsStringValuesList(defaultValue string) (stringValues []types.StringValue)

func (Value) AsTimeValue

func (v Value) AsTimeValue(metadata types.Metadata) types.TimeValue

func (Value) EqualTo

func (v Value) EqualTo(value interface{}) bool

func (Value) GetMapValue

func (v Value) GetMapValue(key string) Value

func (*Value) GetMetadata

func (v *Value) GetMetadata() types.Metadata

func (Value) HasKey

func (v Value) HasKey(key string) bool

func (Value) Raw

func (v Value) Raw() interface{}

func (*Value) Resolve

func (v *Value) Resolve()

func (*Value) UnmarshalJSONWithMetadata

func (v *Value) UnmarshalJSONWithMetadata(node armjson.Node) error

type Variable

type Variable struct {
	Name  string
	Value Value
}

Directories

Path Synopsis
arm

Jump to

Keyboard shortcuts

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