hook

package
v1.1.1-0...-9418116 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const All = "all"

All is used to tell devspace to execute a hook before or after all images, deployments

Variables

This section is empty.

Functions

This section is empty.

Types

type Executer

type Executer interface {
	Execute(when When, stage Stage, which string, log logpkg.Logger) error
}

Executer executes configured commands locally

func NewExecuter

func NewExecuter(config *latest.Config) Executer

NewExecuter creates an instance of Executer for the specified config

type Stage

type Stage int

Stage is the type that defines the stage at when to execute a hook

const (
	// StageImages is the image building stage
	StageImages Stage = iota
	// StageDeployments is the deploying stage
	StageDeployments
)

type When

type When int

When is the type that is used to tell devspace when relatively to a stage a hook should be executed

const (
	// Before is used to tell devspace to execute a hook before a certain stage
	Before When = iota
	// After is used to tell devspace to execute a hook after a certain stage
	After
)

Jump to

Keyboard shortcuts

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