parser

package
v0.88.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 12 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, opts ...options.ParserOption) *Parser

func (*Parser) ParseFS

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

func (*Parser) Required

func (p *Parser) Required(path string) bool

func (*Parser) SetDebugWriter

func (p *Parser) SetDebugWriter(writer io.Writer)

func (*Parser) SetSkipRequiredCheck

func (p *Parser) SetSkipRequiredCheck(b bool)

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