log

package
v0.8.0-alpha6 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 29 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App

func App(ctx context.Context, app *apiv1.App, output chan<- Message, options *Options) error

func Container

func Container(ctx context.Context, pod *corev1.Pod, name string, output chan<- Message, options *Options) (err error)

func Output

func Output(ctx context.Context, c client.Client, name string, opts *client.LogOptions) error

func Pod

func Pod(ctx context.Context, pod *corev1.Pod, output chan<- Message, options *Options) error

func SinceLogCheck

func SinceLogCheck(since string, msg v1.LogMessage) (bool, error)

Types

type Message

type Message struct {
	Line          string
	Pod           *corev1.Pod
	ContainerName string
	Time          time.Time

	Err error
}

type Options

type Options struct {
	RestConfig       *rest.Config
	Client           client.WithWatch
	PodClient        v12.PodsGetter
	Tail             *int64
	Follow           bool
	ContainerReplica string
	Container        string
}

func (*Options) Complete

func (o *Options) Complete() (*Options, error)

Jump to

Keyboard shortcuts

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