hooks

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultHooksConfigLocation Where the hooks configuration lives.
	DefaultHooksConfigLocation = "/etc/darch/hooks/hooks-config.json"
	// DefaultHooksPath Where the hooks live.
	DefaultHooksPath = "/etc/darch/hooks/"
)

Functions

func AppliesToImage

func AppliesToImage(hook Hook, imageRef reference.ImageRef) bool

AppliesToImage Determines if a hook applies to the given image.

func PrintHookHelp

func PrintHookHelp(hook Hook) error

PrintHookHelp Print the help for a hook

Types

type Hook

type Hook struct {
	Name           string
	Path           string
	HooksPath      string
	ExecutionOrder int
	NameWithOrder  string //ExecutionOrder_Name
	IncludeImages  []string
	ExcludeImages  []string
}

Hook A hook to be applied to images

func GetHook

func GetHook(name string) (Hook, error)

GetHook Get a hook by a name

func GetHooks

func GetHooks() ([]Hook, error)

GetHooks Get all the available hooks

Jump to

Keyboard shortcuts

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