checks

package
v0.2.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultChecks = []Check{
	&JobOOMKilledCheck{},
}

Functions

This section is empty.

Types

type Check

type Check interface {
	Execute(ctx context.Context, client *client.Client, u *unstructured.Unstructured) error
	Name() string
}

type CheckReport

type CheckReport struct {
	CheckName string
	Message   string
}

type CheckRunner

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

func NewCheckRunner

func NewCheckRunner(
	logger log.Logger,
	client *client.Client,
	def *types.SuccessDefinition,
	databaseConnections *db.Connections,
	knownChecks map[string]Check,
) (*CheckRunner, error)

func (*CheckRunner) Execute

type Checks

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

func NewChecks

func NewChecks(
	logger log.Logger,
	client *client.Client,
	databaseConnections *db.Connections,
	checks []Check,
) (*Checks, error)

func (*Checks) RunChecks

func (c *Checks) RunChecks(
	ctx context.Context,
	successDefs []*types.SuccessDefinition,
	u *unstructured.Unstructured,
) error

type JobOOMKilledCheck

type JobOOMKilledCheck struct{}

func (*JobOOMKilledCheck) Execute

func (c *JobOOMKilledCheck) Execute(ctx context.Context, client *client.Client, unstructured *unstructured.Unstructured) error

func (JobOOMKilledCheck) Name

func (c JobOOMKilledCheck) Name() string

Jump to

Keyboard shortcuts

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