hook

package
v0.0.0-...-6340669 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeregisterHook

func DeregisterHook(t Type)

func RegisterHook

func RegisterHook(h hook)

RegisterHook registers a mutating hook

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(disabled []Type) Manager

func (Manager) CallHooks

func (m Manager) CallHooks(blob *types.BlobInfo) error

func (Manager) Versions

func (m Manager) Versions() map[string]int

type Type

type Type string
const (
	PythonPkg Type = "python-pkg"
	PkgJson   Type = "pacakgejson"
	GemSpec   Type = "gemspec"

	SystemFileFilter Type = "system-file-filter"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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