Back to godoc.org

Package event

v0.53.0
Latest Go to latest

The highest tagged major version is .

Published: Apr 2, 2019 | License: MIT | Module: github.com/cloudposse/helmfile

Index

type Bus

type Bus struct {
	Runner helmexec.Runner
	Hooks  []Hook

	BasePath      string
	StateFilePath string
	Namespace     string

	Env environment.Environment

	ReadFile func(string) ([]byte, error)
	Logger   *zap.SugaredLogger
}

func (*Bus) Trigger

func (bus *Bus) Trigger(evt string, context map[string]interface{}) (bool, error)

type Hook

type Hook struct {
	Name    string   `yaml:"name"`
	Events  []string `yaml:"events"`
	Command string   `yaml:"command"`
	Args    []string `yaml:"args"`
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier