podlogs

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	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 PodLog

type PodLog struct {
	Args *PodLogArgs
}

func NewPodLog

func NewPodLog(args *OuterRequestArgs) (*PodLog, error)

func (*PodLog) GetPodLogEntry

func (pl *PodLog) GetPodLogEntry(accept func(io.ReadCloser)) error

type PodLogArgs

type PodLogArgs struct {
	Namespace    string
	PodName      string
	Follow       bool
	SinceSeconds *int64
	SinceTime    *metav1.Time
	Tail         *int64
	Timestamps   bool
	RetryCnt     int
	RetryTimeout time.Duration
	KubeClient   kubernetes.Interface
}

Jump to

Keyboard shortcuts

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