helpers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RequeuePeriod is the time to wait until reconciliation retry in failure cases.
	RequeuePeriod = 5 * time.Second
)

Variables

This section is empty.

Functions

func HasAnnotation

func HasAnnotation(obj metav1.Object, annotation string) bool

HasAnnotation returns a bool if the given annotation exists in annotations.

func HasLabel added in v0.2.0

func HasLabel(obj metav1.Object, label string) bool

HasLabel returns a bool if the given label exists in labels.

func SyncToTransport added in v0.2.0

func SyncToTransport(transportObj transport.Transport, msgID string, msgType string, version fmt.Stringer,
	payload bundle.Bundle) error

SyncToTransport syncs the provided bundle to transport.

Types

This section is empty.

Jump to

Keyboard shortcuts

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