azure

package
v0.50.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 6 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 Decorator

type Decorator struct {
	Name string
	Args []Value
}

type Deployment

type Deployment struct {
	Metadata    types.Metadata
	TargetScope Scope
	Parameters  []Parameter
	Variables   []Variable
	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(parameterName string) interface{}

func (*Deployment) GetResourcesByType

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

func (*Deployment) GetVariable

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

type EvalContext

type EvalContext struct{}

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 Resource

type Resource struct {
	Metadata   types.Metadata
	APIVersion Value
	Type       Value
	Kind       Value
	Name       Value
	Location   Value
	Tags       Value
	Sku        Value
	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) 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 armjson2.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