Documentation ¶
Index ¶
- func AnalyseCode(rootDir string, check *ServerlessCheck) error
- func CheckFunctionDefinitions(rootDir string) (string, error)
- func CheckLocalBuild(rootDir string) (string, error)
- func CheckResourceDefinitions(rootDir string) (string, error)
- func CheckUnusedZips(rootDir string) (string, error)
- func CheckYmlFiles(rootDir string) (string, error)
- func ExtractZipPath(line string) (string, error)
- func ReadYMLDefinitions(dir string, definitions map[string]DefinitionInfo) error
- type DefinitionInfo
- type FunctionInfo
- type ResourceInfo
- type ServerlessCheck
- type ServerlessFunctionDefinition
- type ServerlessPackageDefinition
- type ServerlessProviderDefinition
- type ServerlessResource
- type ServerlessResourceDefinition
- type ServerlessYML
- type Task
- type WarnLevels
- type ZipPath
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnalyseCode ¶
func AnalyseCode(rootDir string, check *ServerlessCheck) error
func CheckLocalBuild ¶
func CheckResourceDefinitions ¶ added in v0.21.0
func CheckUnusedZips ¶
func CheckYmlFiles ¶
func ExtractZipPath ¶
ExtractZipPath extracts the zip path from a makefile line.
func ReadYMLDefinitions ¶
func ReadYMLDefinitions(dir string, definitions map[string]DefinitionInfo) error
Types ¶
type DefinitionInfo ¶
type DefinitionInfo struct { Path string File string Errors []string Warnings []string Def ServerlessYML }
type FunctionInfo ¶
type ResourceInfo ¶ added in v0.21.0
type ServerlessCheck ¶
type ServerlessCheck struct { Definitions map[string]DefinitionInfo MissingVars map[string][]string }
func ServerlessQA ¶
func ServerlessQA(rootDir string, warnLevels WarnLevels) (ServerlessCheck, error)
type ServerlessPackageDefinition ¶
type ServerlessPackageDefinition struct {
Artifact string `yaml:"artifact"`
}
type ServerlessResource ¶ added in v0.21.0
type ServerlessResource struct {
Definitions map[string]ServerlessResourceDefinition `yaml:"Resources"`
}
type ServerlessResourceDefinition ¶ added in v0.21.0
type ServerlessYML ¶
type ServerlessYML struct { FrameworkVersion string `yaml:"frameworkVersion"` Provider ServerlessProviderDefinition `yaml:"provider"` Functions map[string]ServerlessFunctionDefinition `yaml:"functions"` Resources ServerlessResource `yaml:"resources"` }
type WarnLevels ¶
type WarnLevels struct {
FunctionsMemorySize int
}
Click to show internal directories.
Click to hide internal directories.