hooks

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2018 License: MIT Imports: 10 Imported by: 4

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