updater

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UpdateStatusFunc

type UpdateStatusFunc func(bundle *rukpakv1alpha1.BundleStatus) bool

func EnsureBundleDigest

func EnsureBundleDigest(digest string) UpdateStatusFunc

func EnsureCondition

func EnsureCondition(condition metav1.Condition) UpdateStatusFunc

func EnsureContentURL added in v0.4.0

func EnsureContentURL(url string) UpdateStatusFunc

func EnsureObservedGeneration

func EnsureObservedGeneration(observedGeneration int64) UpdateStatusFunc

func SetPhase

func SetPhase(phase string) UpdateStatusFunc

type Updater

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

func New

func New(client client.Client) Updater

func (*Updater) Apply

func (u *Updater) Apply(ctx context.Context, b *rukpakv1alpha1.Bundle) error

func (*Updater) UpdateStatus

func (u *Updater) UpdateStatus(fs ...UpdateStatusFunc)

Jump to

Keyboard shortcuts

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