v1

package
v0.6.43 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: AGPL-3.0, Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersions

func CompareVersions(a, b NormalizedVersion) bool

CompareVersions sorting: v3 > v2 > v2beta > v2alpha > v2beta1 > ...

Types

type NormalizedVersion

type NormalizedVersion struct {
	Major     int
	Stage     string // "", "beta", "alpha"
	SuffixNum int
	Raw       string
}

func ParseVersion

func ParseVersion(raw string) (*NormalizedVersion, bool)

type Reconciler

type Reconciler interface {
	// Reconcile Kubernetes resources to reflect state from the Console.
	Reconcile(context.Context, string) (reconcile.Result, error)

	// Poll Console for any state changes and put them in the queue that will be consumed by Reconcile.
	Poll(context.Context) error

	// GetPublisher returns websocket resource key, i.e. "service" or "stack_run", and Publisher that will be registered with this reconciler.
	// TODO: Make it optional and/or accept multiple publishers.
	GetPublisher() (string, websocket.Publisher)

	// Queue returns a queue.
	Queue() workqueue.TypedRateLimitingInterface[string]

	// Shutdown shuts down the reconciler cache & queue
	Shutdown()

	// Restart initiates a reconciler restart. It ensures queue and cache are
	// safely cleaned up and reinitialized.
	Restart()

	// GetPollInterval returns custom poll interval. If 0 then controller manager use default from the options.
	GetPollInterval() func() time.Duration
}

Jump to

Keyboard shortcuts

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