hook

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const NeedAuth = "need_auth"

NeedAuth is the `need_cert` hook

View Source
const Start = "start"

Start is the `start` hook

Variables

This section is empty.

Functions

This section is empty.

Types

type Hook

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

Hook represents a configured hook

func New

func New(cmdLine string) *Hook

New creates a new hook with an unparsed command line. The line will be

func (*Hook) Run

func (h *Hook) Run(attrs interface{}) error

Run the hook. if an exit value other than 0 occurs, the combined output will be returned in the error.

Jump to

Keyboard shortcuts

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