Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command interface {
GetName() string
RunE(hook *Hook, event HookEvent, cmd *cobra.Command, args []string) error
}
Command is the interface for all commands that can be run by hooks
type Hook ¶
type Hook struct {
Events []string `yaml:"events"`
Command string `yaml:"command"`
// store command
Name string `yaml:"name,omitempty"` // for store command
Outputs map[string]string `yaml:"outputs,omitempty"` // for store command
}
Hook is the structure for a hook and is using in the stack config to define a command that should be run when a specific event occurs.
type Hooks ¶
type Hooks struct {
// contains filtered or unexported fields
}
func GetHooks ¶ added in v1.159.0
func GetHooks(atmosConfig *schema.AtmosConfiguration, info *schema.ConfigAndStacksInfo) (*Hooks, error)
type StoreCommand ¶ added in v1.159.0
type StoreCommand struct {
Name string
// contains filtered or unexported fields
}
func NewStoreCommand ¶ added in v1.159.0
func NewStoreCommand(atmosConfig *schema.AtmosConfiguration, info *schema.ConfigAndStacksInfo) (*StoreCommand, error)
func (*StoreCommand) GetName ¶ added in v1.159.0
func (c *StoreCommand) GetName() string
type TerraformOutputGetter ¶ added in v1.194.0
type TerraformOutputGetter func( atmosConfig *schema.AtmosConfiguration, stack string, component string, output string, skipCache bool, authContext *schema.AuthContext, authManager any, ) (any, bool, error)
TerraformOutputGetter retrieves terraform outputs. This enables dependency injection for testing. Returns:
- value: The output value (may be nil if the output exists but has a null value)
- exists: Whether the output key exists in the terraform outputs
- error: Any error that occurred during retrieval (SDK errors, network issues, etc.)
Click to show internal directories.
Click to hide internal directories.