hooks

package
v1.136.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: Apache-2.0 Imports: 0 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
	Values map[string]interface{} `yaml:"values,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 struct {
	Hooks map[string]Hook `yaml:"hooks"`
}

Jump to

Keyboard shortcuts

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