checkers

package
v0.1.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustRegister added in v0.1.8

func MustRegister(kind string, fn func(in json.RawMessage) (Checker, error))

func Register

func Register(kind string, fn func(in json.RawMessage) (Checker, error)) error

Types

type Checker

type Checker interface {
	Kind() string
	Check(ctx context.Context) error
}

func NewCheckerByKind

func NewCheckerByKind(kind string, spec json.RawMessage) (Checker, error)

type Mock

type Mock struct {
	mock.Mock
}

func NewMock

func NewMock() *Mock

func (*Mock) Check

func (m *Mock) Check(context.Context) error

func (*Mock) Kind

func (m *Mock) Kind() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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