structure

package
v0.0.0-...-c6a0b50 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const FunctionTagsAttributeName = "tags"
View Source
const FunctionType = "function"
View Source
const FunctionsSectionName = "functions"

Variables

This section is empty.

Functions

func Open

func Open(filename string) (*structure.Template, error)

Open and parse a Serverless template from file. Works with YAML formatted templates.

Types

type ServerlessBlock

type ServerlessBlock struct {
	structure.Block
}

func (*ServerlessBlock) GetFramework

func (b *ServerlessBlock) GetFramework() string

func (*ServerlessBlock) GetSeparator

func (b *ServerlessBlock) GetSeparator() string

func (*ServerlessBlock) GetTagsLines

func (b *ServerlessBlock) GetTagsLines() structure.Lines

func (*ServerlessBlock) UpdateTags

func (b *ServerlessBlock) UpdateTags()

type ServerlessParser

type ServerlessParser struct {
	YamlParser types.YamlParser
}

func (*ServerlessParser) Close

func (p *ServerlessParser) Close()

func (*ServerlessParser) GetSkippedDirs

func (p *ServerlessParser) GetSkippedDirs() []string

func (*ServerlessParser) GetSupportedFileExtensions

func (p *ServerlessParser) GetSupportedFileExtensions() []string

func (*ServerlessParser) Init

func (p *ServerlessParser) Init(rootDir string, _ map[string]string)

func (*ServerlessParser) Name

func (p *ServerlessParser) Name() string

func (*ServerlessParser) ParseFile

func (p *ServerlessParser) ParseFile(filePath string) ([]structure.IBlock, error)

func (*ServerlessParser) ValidFile

func (p *ServerlessParser) ValidFile(file string) bool

func (*ServerlessParser) WriteFile

func (p *ServerlessParser) WriteFile(readFilePath string, blocks []structure.IBlock, writeFilePath string) error

Jump to

Keyboard shortcuts

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