object

package
v0.49.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Overview

Package object provides helpers for interacting with GitOps Toolkit objects using unstructured types. The helpers assist in reading and writing certain attributes of the objects without converting them to their original types.

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 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 SetStatusLastHandledReconcileAt

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

SetStatusLastHandledReconcileAt sets the status.lastHandledReconcileAt 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