registry

package
v0.0.0-...-f15b9f9 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerResult

type HandlerResult struct {
	Intr   bool
	ErrVal int32
	Val    uint64
	Flags  uint32
}

func HandlerResultContinue

func HandlerResultContinue() HandlerResult

func HandlerResultErrno

func HandlerResultErrno(err error) HandlerResult

func HandlerResultIntr

func HandlerResultIntr() HandlerResult

Helper functions for handlers

func HandlerResultSuccess

func HandlerResultSuccess() HandlerResult

type Registry

type Registry struct {
	SyscallHandler     map[string]HandlerFunc
	DefaultHandler     HandlerFunc
	MiddlewareHandlers []func(HandlerFunc) HandlerFunc
}

func New

func New() *Registry

func (*Registry) Lookup

func (r *Registry) Lookup(name string) HandlerFunc

type ResolverFunc

type ResolverFunc func(state *specs.ContainerProcessState) *Registry

Jump to

Keyboard shortcuts

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