kata_hook_api

package module
v0.0.0-...-a93221c Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

README

kata-hook-api

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetaAnnotation

func MetaAnnotation(obj interface{}, key string) (string, error)

func MetaEnv

func MetaEnv(obj interface{}, key string) (string, error)

Types

type Access

type Access interface {
	Execute() error
}

func NewAccess

func NewAccess(h HookHandlers) (Access, error)

type HookHandlers

type HookHandlers struct {
	PreStart  func(obj interface{})
	PostStart func(obj interface{})
	PostStop  func(obj interface{})
}

func (HookHandlers) DoPostStart

func (h HookHandlers) DoPostStart(obj interface{})

func (HookHandlers) DoPostStop

func (h HookHandlers) DoPostStop(obj interface{})

func (HookHandlers) DoPreStart

func (h HookHandlers) DoPreStart(obj interface{})

Jump to

Keyboard shortcuts

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