podlogs

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 14 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPodNotFound      = errors.New(`no logs return,because not found instance`)
	ErrTooManyPodsFound = errors.New(`too many pods found in the job,`)
	ErrPodNotRunning    = errors.New(`is not running`)
	ErrPodStatusUnknown = errors.New(`status is unknown`)
)

Functions

func ParseSinceSeconds

func ParseSinceSeconds(since string) (*int64, error)

func ParseSinceTime

func ParseSinceTime(sinceTime string) (*metav1.Time, error)

Types

type OuterRequestArgs

type OuterRequestArgs struct {
	PodName      string
	Namespace    string
	Follow       bool
	Tail         int
	RetryCount   int
	RetryTimeout time.Duration
	SinceSeconds string
	SinceTime    string
	Timestamps   bool
	KubeClient   kubernetes.Interface
}

type PodLogger added in v0.7.0

type PodLogger struct {
	*types.LogArgs
	// contains filtered or unexported fields
}

func NewPodLogger added in v0.7.0

func NewPodLogger(args *types.LogArgs) *PodLogger

func (*PodLogger) AcceptLogs added in v0.7.0

func (p *PodLogger) AcceptLogs() (int, error)

func (*PodLogger) Print added in v0.7.0

func (p *PodLogger) Print() (int, error)

Jump to

Keyboard shortcuts

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