Documentation ¶
Index ¶
- Constants
- func Open(filename string) (*structure.Template, error)
- type ServerlessBlock
- type ServerlessParser
- func (p *ServerlessParser) Close()
- func (p *ServerlessParser) GetSkippedDirs() []string
- func (p *ServerlessParser) GetSupportedFileExtensions() []string
- func (p *ServerlessParser) Init(rootDir string, _ map[string]string)
- func (p *ServerlessParser) Name() string
- func (p *ServerlessParser) ParseFile(filePath string) ([]structure.IBlock, error)
- func (p *ServerlessParser) ValidFile(file string) bool
- func (p *ServerlessParser) WriteFile(readFilePath string, blocks []structure.IBlock, writeFilePath string) error
Constants ¶
View Source
const FunctionTagsAttributeName = "tags"
View Source
const FunctionType = "function"
View Source
const FunctionsSectionName = "functions"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ServerlessBlock ¶
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
Click to show internal directories.
Click to hide internal directories.