Documentation
¶
Overview ¶
Package trigger provides functionality that help manipulate stacks triggers.
Index ¶
Constants ¶
View Source
const ( // ErrTrigger indicates an error happened while triggering the stack. ErrTrigger errors.Kind = "trigger failed" // ErrParsing indicates an error happened while parsing the trigger file. ErrParsing errors.Kind = "parsing trigger file" )
View Source
const ( // DefaultType is the default trigger type when not specified. DefaultType = "changed" // DefaultContext is the default context for the trigger file when not // specified. DefaultContext = "stack" )
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create creates a trigger for a stack with the given path and the given reason inside the project rootdir.
Types ¶
type Info ¶
type Info struct {
// Ctime is unix timestamp of when the trigger was created.
Ctime int64
// Reason is the reason why the trigger was created, if any.
Reason string
// Type is the trigger type.
Type string
// Context is the context of the trigger (only `stack` at the moment)
Context string
}
Info represents the parsed contents of a trigger for triggers created by Terramate.
Click to show internal directories.
Click to hide internal directories.