parser

package
v0.55.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

type Function struct{}

type Parameter

type Parameter struct {
	Metadata     types.Metadata
	Type         types2.Value `json:"type"`
	DefaultValue types2.Value `json:"defaultValue"`
	MaxLength    types2.Value `json:"maxLength"`
	MinLength    types2.Value `json:"minLength"`
}

func (*Parameter) SetMetadata

func (p *Parameter) SetMetadata(m *types.Metadata)

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func New

func New(targetFS fs.FS) *Parser

func (*Parser) ParseFS

func (p *Parser) ParseFS(ctx context.Context, dir string) ([]azure.Deployment, error)

type Resource

type Resource struct {
	Metadata types.Metadata `json:"-"`
	// contains filtered or unexported fields
}

func (*Resource) SetMetadata

func (r *Resource) SetMetadata(m *types.Metadata)

func (*Resource) UnmarshalJSONWithMetadata

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

type Template

type Template struct {
	Metadata       types.Metadata          `json:"-"`
	Schema         types2.Value            `json:"$schema"`
	ContentVersion types2.Value            `json:"contentVersion"`
	APIProfile     types2.Value            `json:"apiProfile"`
	Parameters     map[string]Parameter    `json:"parameters"`
	Variables      map[string]types2.Value `json:"variables"`
	Functions      []Function              `json:"functions"`
	Resources      []Resource              `json:"resources"`
	Outputs        map[string]types2.Value `json:"outputs"`
}

func (*Template) SetMetadata

func (t *Template) SetMetadata(m *types.Metadata)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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