Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Ignore []string
Which checks to ignore (--ignore)
Functions ¶
This section is empty.
Types ¶
type Forecast ¶
type Forecast struct { TypeName string LogicalId string Passed []Check Failed []Check Ignore []string }
Forecast represents predictions for resources in the template
func MakeForecast ¶
func MakeForecast(input *PredictionInput) Forecast
func (*Forecast) Add ¶
Add adds a pass or fail message, formatting it to include the type name and logical id
func (*Forecast) GetNumChecked ¶
func (*Forecast) GetNumFailed ¶
func (*Forecast) GetNumPassed ¶
type ForecastPlugin ¶
type ForecastPlugin interface { // GetForecasters must be implemented by plugins to return a // map of the prediction functions. The key is the resource type name. GetForecasters() map[string]func(input PredictionInput) Forecast }
type PredictionInput ¶
type PredictionInput struct { Source cft.Template StackName string Resource *yaml.Node LogicalId string StackExists bool Stack types.Stack TypeName string Dc *deployconfig.DeployConfig Env Env RoleArn string Ignore []string }
PredictionInput is the input to forecast prediction functions
func (*PredictionInput) GetPropertyNode ¶
func (input *PredictionInput) GetPropertyNode(name string) *yaml.Node
GetPropertyNode returns the node for the given property name
Click to show internal directories.
Click to hide internal directories.