handler

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeregisterPostHandler

func DeregisterPostHandler(t types.HandlerType)

func RegisterPostHandlerInit

func RegisterPostHandlerInit(t types.HandlerType, init postHandlerInit)

RegisterPostHandlerInit adds a constructor of post handler

Types

type Manager

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

func NewManager

func NewManager(artifactOpt artifact.Option) (Manager, error)

func (Manager) PostHandle

func (m Manager) PostHandle(ctx context.Context, result *analyzer.AnalysisResult, blob *types.BlobInfo) error

func (Manager) Versions

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

type PostHandler

type PostHandler interface {
	Type() types.HandlerType
	Version() int
	Handle(context.Context, *analyzer.AnalysisResult, *types.BlobInfo) error
	Priority() int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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