Documentation ¶ Index ¶ type Config type Job type JobHandler type Monitor func New(logger *zap.Logger, k8s kubernetes.Interface, cfg api.Config) (*Monitor, error) func (m *Monitor) Start(ctx context.Context, handler JobHandler) <-chan error 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 Source Files ¶ View all Source files monitor.go Click to show internal directories. Click to hide internal directories.