util

package
v0.3.61 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimeWindow

type TimeWindow struct {
	Start time.Time
	End   time.Time
}

func TimeWindowFromResource

func TimeWindowFromResource(ctx context.Context, r UpgradeableResource) *TimeWindow

func (*TimeWindow) In

func (t *TimeWindow) In() bool

In tells us if we are in the time window.

type UpgradeableResource

type UpgradeableResource interface {
	// Entropy returns a unique and random source of entropy from
	// the resources.
	Entropy() []byte

	// UpgradeSpec is the upgrade specification.
	UpgradeSpec() *unikornv1.ApplicationBundleAutoUpgradeSpec
}

UpgradeableResource is a resource type that allows upgrades.

func NewForcedUpgradeResource

func NewForcedUpgradeResource(r UpgradeableResource) UpgradeableResource

Jump to

Keyboard shortcuts

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