hooks

package
v1.146.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command string
const (
	Store Command = "store"
)

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 defines the structure of a hook

type HookType

type HookType string
const (
	AfterTerraformApply  HookType = "after.terraform.apply"
	BeforeTerraformApply HookType = "before.terraform.apply"
	AfterTerraformPlan   HookType = "after.terraform.plan"
	BeforeTerraformPlan  HookType = "before.terraform.plan"
)

type Hooks

type Hooks map[string]Hook

func (Hooks) ConvertToHooks added in v1.140.0

func (h Hooks) ConvertToHooks(input map[string]any) (Hooks, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL