parser

package
v0.68.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

type Function struct{}

type MetadataReceiver added in v0.66.0

type MetadataReceiver interface {
	SetMetadata(*types.Metadata)
}

type Parameter

type Parameter struct {
	Metadata     *types.Metadata
	Type         azure.Value `json:"type"`
	DefaultValue azure.Value `json:"defaultValue"`
	MaxLength    azure.Value `json:"maxLength"`
	MinLength    azure.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)

type Template

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

func ParseTemplate added in v0.66.0

func ParseTemplate(fsys fs.FS, path string) (*Template, error)

func (*Template) SetMetadata

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

Jump to

Keyboard shortcuts

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