monitor

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Namespace   string
	Token       string
	MaxInFlight int
	Org         string
	Tags        []string
}

type Job

type Job struct {
	api.CommandJob
	Tag string
}

type JobHandler added in v0.3.0

type JobHandler interface {
	Create(context.Context, *Job) error
}

type Monitor

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

func New

func New(logger *zap.Logger, k8s kubernetes.Interface, cfg api.Config) (*Monitor, error)

func (*Monitor) Start added in v0.3.0

func (m *Monitor) Start(ctx context.Context, handler JobHandler) <-chan error

Jump to

Keyboard shortcuts

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