bicep

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const CloseParenthesis = "')"

Variables

This section is empty.

Functions

This section is empty.

Types

type BicepVisitor

type BicepVisitor struct {
	parser.BasebicepVisitor
	// contains filtered or unexported fields
}

func NewBicepVisitor

func NewBicepVisitor() *BicepVisitor

func (*BicepVisitor) VisitArgumentList

func (s *BicepVisitor) VisitArgumentList(ctx *parser.ArgumentListContext) interface{}

func (*BicepVisitor) VisitArray

func (s *BicepVisitor) VisitArray(ctx *parser.ArrayContext) interface{}

func (*BicepVisitor) VisitArrayItem

func (s *BicepVisitor) VisitArrayItem(ctx *parser.ArrayItemContext) interface{}

func (*BicepVisitor) VisitDecorator

func (s *BicepVisitor) VisitDecorator(ctx *parser.DecoratorContext) interface{}

func (*BicepVisitor) VisitDecoratorExpression

func (s *BicepVisitor) VisitDecoratorExpression(ctx *parser.DecoratorExpressionContext) interface{}

func (*BicepVisitor) VisitExpression

func (s *BicepVisitor) VisitExpression(ctx *parser.ExpressionContext) interface{}

func (*BicepVisitor) VisitFunctionCall

func (s *BicepVisitor) VisitFunctionCall(ctx *parser.FunctionCallContext) interface{}

func (*BicepVisitor) VisitIdentifier

func (s *BicepVisitor) VisitIdentifier(ctx *parser.IdentifierContext) interface{}

func (*BicepVisitor) VisitInterpString

func (s *BicepVisitor) VisitInterpString(ctx *parser.InterpStringContext) interface{}

func (*BicepVisitor) VisitLiteralValue

func (s *BicepVisitor) VisitLiteralValue(ctx *parser.LiteralValueContext) interface{}

func (*BicepVisitor) VisitObject

func (s *BicepVisitor) VisitObject(ctx *parser.ObjectContext) interface{}

func (*BicepVisitor) VisitObjectProperty

func (s *BicepVisitor) VisitObjectProperty(ctx *parser.ObjectPropertyContext) interface{}

func (*BicepVisitor) VisitParameterDecl

func (s *BicepVisitor) VisitParameterDecl(ctx *parser.ParameterDeclContext) interface{}

func (*BicepVisitor) VisitParameterDefaultValue

func (s *BicepVisitor) VisitParameterDefaultValue(ctx *parser.ParameterDefaultValueContext) interface{}

func (*BicepVisitor) VisitParenthesizedExpression

func (s *BicepVisitor) VisitParenthesizedExpression(ctx *parser.ParenthesizedExpressionContext) interface{}

func (*BicepVisitor) VisitPrimaryExpression

func (s *BicepVisitor) VisitPrimaryExpression(ctx *parser.PrimaryExpressionContext) interface{}

func (*BicepVisitor) VisitProgram

func (s *BicepVisitor) VisitProgram(ctx *parser.ProgramContext) interface{}

func (*BicepVisitor) VisitResourceDecl

func (s *BicepVisitor) VisitResourceDecl(ctx *parser.ResourceDeclContext) interface{}

func (*BicepVisitor) VisitStatement

func (s *BicepVisitor) VisitStatement(ctx *parser.StatementContext) interface{}

func (*BicepVisitor) VisitTypeExpression

func (s *BicepVisitor) VisitTypeExpression(ctx *parser.TypeExpressionContext) interface{}

func (*BicepVisitor) VisitVariableDecl

func (s *BicepVisitor) VisitVariableDecl(ctx *parser.VariableDeclContext) interface{}

type JSONBicep

type JSONBicep struct {
	Parameters map[string]interface{} `json:"parameters"`
	Variables  map[string]interface{} `json:"variables"`
	Resources  []interface{}          `json:"resources"`
}

type KicsObjectProperty

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

type Parser

type Parser struct {
}

func (*Parser) GetCommentToken

func (p *Parser) GetCommentToken() string

GetCommentToken return the comment token of Bicep files - #

func (*Parser) GetKind

func (p *Parser) GetKind() model.FileKind

GetKind returns the kind of the parser

func (*Parser) GetResolvedFiles

func (p *Parser) GetResolvedFiles() map[string]model.ResolvedFile

GetResolvedFiles returns the list of files that are resolved

func (*Parser) Parse

func (p *Parser) Parse(file string, _ []byte) ([]model.Document, []int, error)

Parse - parses bicep to BicepVisitor template (json file)

func (*Parser) Resolve

func (p *Parser) Resolve(fileContent []byte, _ string, _ bool, _ int) ([]byte, error)

Resolve resolves bicep files variables

func (*Parser) StringifyContent

func (p *Parser) StringifyContent(content []byte) (string, error)

StringifyContent converts original content into string formatted version

func (*Parser) SupportedExtensions

func (p *Parser) SupportedExtensions() []string

SupportedExtensions returns Bicep extensions

func (*Parser) SupportedTypes

func (p *Parser) SupportedTypes() map[string]bool

SupportedTypes returns types supported by this parser, which are bicep files

type Resource

type Resource struct {
	Name         string
	FullType     string
	Parent       string
	Children     []*Resource
	ResourceData interface{}
}

Directories

Path Synopsis
antlr

Jump to

Keyboard shortcuts

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