workload

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler

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

func NewEventHandler

func NewEventHandler() *EventHandler

func (*EventHandler) Handle

func (e *EventHandler) Handle(action string, h EventHandlerFunc)

func (*EventHandler) Watch

func (e *EventHandler) Watch(ctx context.Context, c <-chan *types.WorkloadEventMessage)

type EventHandlerFunc

type EventHandlerFunc func(context.Context, *types.WorkloadEventMessage)

EventHandlerFunc reacts to one workload event.

type Manager

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

func NewManager

func NewManager(ctx context.Context, config *types.Config) (*Manager, error)

func (*Manager) PullLog

func (m *Manager) PullLog(ctx context.Context, app string, buf *bufio.ReadWriter)

func (*Manager) Run

func (m *Manager) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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