podlog

package
v0.0.0-...-e64e0cb Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogStream

func LogStream(ctx context.Context, filter *WorkloadLogSubscriptionFilter) (<-chan *WorkloadLogLine, error)

func NewLoaderContext

func NewLoaderContext(ctx context.Context, streamer Streamer) context.Context

Types

type Streamer

type Streamer interface {
	Logs(ctx context.Context, filter *WorkloadLogSubscriptionFilter) (<-chan *WorkloadLogLine, error)
}

func NewLogStreamer

func NewLogStreamer(clientSets map[string]kubernetes.Interface, log logrus.FieldLogger) Streamer

type WorkloadLogLine

type WorkloadLogLine struct {
	Time     time.Time `json:"time"`
	Message  string    `json:"message"`
	Instance string    `json:"instance"`
}

type WorkloadLogSubscriptionFilter

type WorkloadLogSubscriptionFilter struct {
	Team        slug.Slug `json:"team"`
	Environment string    `json:"environment"`
	Application *string   `json:"application"`
	Job         *string   `json:"job"`
	Instances   []string  `json:"instances"`
}

func (*WorkloadLogSubscriptionFilter) Validate

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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