reconcile

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientFromContext

func ClientFromContext(ctx context.Context) (cluster.Client, error)

Retrieve client from given context.

func ComponentDigestFromContext

func ComponentDigestFromContext(ctx context.Context) (string, error)

Retrieve component digest from given context.

func ReconcilerNameFromContext

func ReconcilerNameFromContext(ctx context.Context) (string, error)

Retrieve reconciler name from given context.

Types

type Context

type Context interface {
	context.Context
	// Return new context with given reconciler name added as value.
	WithReconcilerName(reconcilerName string) Context
	// Return new context with given client added as value.
	WithClient(client client.Client) Context
	// Return new context with given component digest as value.
	WithComponentDigest(componentDigest string) Context
}

Context type the framework passes to generators' Generate() method.

func NewContext

func NewContext(ctx context.Context) Context

Create new context (i.e. wrap a context.Context into a manifests.Context).

func NewContextWithClient

func NewContextWithClient(ctx context.Context, client cluster.Client) Context

Create new context with client added as value.

func NewContextWithComponentDigest

func NewContextWithComponentDigest(ctx context.Context, componentDigest string) Context

Create new context with component digest added as value.

func NewContextWithReconcilerName

func NewContextWithReconcilerName(ctx context.Context, reconcilerName string) Context

Create new context with reconciler name added as value.

Jump to

Keyboard shortcuts

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