tracker

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrStopTrack = errors.New("stop tracking now")

Functions

func AdaptInformerError

func AdaptInformerError(err error) error

func ResourceErrorf

func ResourceErrorf(format string, a ...interface{}) error

Types

type Options

type Options struct {
	ParentContext                            context.Context
	Timeout                                  time.Duration
	LogsFromTime                             time.Time
	IgnoreReadinessProbeFailsByContainerName map[string]time.Duration
}

type ResourceError

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

func (*ResourceError) Error

func (r *ResourceError) Error() string

type Tracker

type Tracker struct {
	Kube             kubernetes.Interface
	Namespace        string
	ResourceName     string
	FullResourceName string // full resource name with resource kind (deploy/superapp)
	LogsFromTime     time.Time

	StatusGeneration uint64
}

type TrackerState

type TrackerState string
const (
	Initial           TrackerState = ""
	ResourceAdded     TrackerState = "ResourceAdded"
	ResourceSucceeded TrackerState = "ResourceSucceeded"
	ResourceReady     TrackerState = "ResourceReady"
	ResourceFailed    TrackerState = "ResourceFailed"
	ResourceDeleted   TrackerState = "ResourceDeleted"

	FollowingContainerLogs TrackerState = "FollowingContainerLogs"
	ContainerTrackerDone   TrackerState = "ContainerTrackerDone"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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