sparrow

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChecksController added in v0.3.1

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

ChecksController is responsible for managing checks.

func NewChecksController added in v0.3.1

func NewChecksController(dbase db.DB, m metrics.Provider) *ChecksController

NewChecksController creates a new ChecksController.

func (*ChecksController) GenerateCheckSpecs added in v0.3.1

func (cc *ChecksController) GenerateCheckSpecs(ctx context.Context) (openapi3.T, error)

GenerateCheckSpecs generates the OpenAPI specifications for the given checks Returns the complete OpenAPI specification for all checks

func (*ChecksController) Reconcile added in v0.3.1

func (cc *ChecksController) Reconcile(ctx context.Context, cfg runtime.Config)

Reconcile reconciles the checks. It registers new checks, updates existing checks and unregisters checks not in the new config.

func (*ChecksController) RegisterCheck added in v0.3.1

func (cc *ChecksController) RegisterCheck(ctx context.Context, check checks.Check)

RegisterCheck registers a new check.

func (*ChecksController) Run added in v0.3.1

func (cc *ChecksController) Run(ctx context.Context) error

Run runs the ChecksController with handling results and errors.

func (*ChecksController) Shutdown added in v0.3.1

func (cc *ChecksController) Shutdown(ctx context.Context)

Shutdown shuts down the ChecksController.

func (*ChecksController) UnregisterCheck added in v0.3.1

func (cc *ChecksController) UnregisterCheck(ctx context.Context, check checks.Check)

UnregisterCheck unregisters a check.

type ErrCreateOpenapiSchema

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

func (ErrCreateOpenapiSchema) Error added in v0.3.1

func (e ErrCreateOpenapiSchema) Error() string

type ErrRunningCheck added in v0.3.1

type ErrRunningCheck struct {
	Check checks.Check
	Err   error
}

func (*ErrRunningCheck) Error added in v0.3.1

func (e *ErrRunningCheck) Error() string

type ErrShutdown added in v0.3.1

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

func (ErrShutdown) HasError added in v0.3.1

func (e ErrShutdown) HasError() bool

type Sparrow

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

Sparrow is the main struct of the sparrow application

func New

func New(cfg *config.Config) *Sparrow

New creates a new sparrow from a given configfile

func (*Sparrow) Run

func (s *Sparrow) Run(ctx context.Context) error

Run starts the sparrow

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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