object

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrObservedGenerationNotFound     = errors.New("observed generation not found")
	ErrLastHandledReconcileAtNotFound = errors.New("last handled reconcile at not found")
	ErrRequeueIntervalNotFound        = errors.New("requeue interval not found")
)

Functions

func GetArtifact added in v0.31.0

func GetArtifact(obj runtime.Object) (*sourcev1.Artifact, error)

GetArtifact returns the status.artifact of a given runtime object.

func GetRequeueInterval

func GetRequeueInterval(obj runtime.Object) (time.Duration, error)

GetRequeueInterval returns the spec.interval of a given runtime object, if present.

func GetStatusLastHandledReconcileAt

func GetStatusLastHandledReconcileAt(obj runtime.Object) (string, error)

GetStatusLastHandledReconcileAt returns the status.lastHandledReconcileAt value of a given runtime object, if present.

func GetStatusObservedGeneration

func GetStatusObservedGeneration(obj runtime.Object) (int64, error)

GetStatusObservedGeneration returns the status.observedGeneration of a given runtime object.

func GetSuspend added in v0.31.0

func GetSuspend(obj runtime.Object) (bool, error)

GetSuspend returns the spec.suspend of a given runtime object.

func SetStatusLastHandledReconcileAt

func SetStatusLastHandledReconcileAt(obj runtime.Object, val string) error

SetStatusLastHandledReconcileAt sets the status.lastHandledReconcileAt value of a given runtime object.

func SetSuspend added in v0.31.0

func SetSuspend(obj runtime.Object, val bool) error

SetSuspend sets the spec.suspend value of a given runtime object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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