updater

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: Apache-2.0 Imports: 8 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 EnsureObservedGeneration

func EnsureObservedGeneration(observedGeneration int64) UpdateStatusFunc

func SetBundleInfo

func SetBundleInfo(info *rukpakv1alpha1.BundleInfo) UpdateStatusFunc

func SetPhase

func SetPhase(phase string) UpdateStatusFunc

func UnsetBundleInfo

func UnsetBundleInfo() 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