checkers

package
v0.1.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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