checker

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

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

Checker is the interface that wraps the basic checker methods.

type MockChecker

type MockChecker struct {
	mock.Mock
}

MockChecker is the struct that mocks the Checker.

func (*MockChecker) Check

func (mc *MockChecker) Check(ctx context.Context) error

Check mocks the checker's check

func (*MockChecker) Identity

func (mc *MockChecker) Identity() (string, error)

Identity mocks the checker's identity

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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