context

package
v0.2.13-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextData

type ContextData struct {
	BasePath            *string
	Catch               []v1alpha1.CatchFinally
	Cluster             *string
	Clusters            v1alpha1.Clusters
	DelayBeforeCleanup  *metav1.Duration
	DeletionPropagation *metav1.DeletionPropagation
	DryRun              *bool
	SkipDelete          *bool
	Templating          *bool
	TerminationGrace    *metav1.Duration
	Timeouts            *v1alpha1.Timeouts
}

type TestContext

type TestContext struct {
	*model.Summary
	*model.Report
	// contains filtered or unexported fields
}

func EmptyContext

func EmptyContext(clock clock.PassiveClock) TestContext

func InitContext

func InitContext(config model.Configuration, defaultCluster *rest.Config, values any) (TestContext, error)

func MakeContext

func MakeContext(clock clock.PassiveClock, bindings apis.Bindings, registry clusters.Registry) TestContext

func SetupBindings

func SetupBindings(tc TestContext, bindings ...v1alpha1.Binding) (TestContext, error)

func SetupContext

func SetupContext(tc TestContext, data ContextData) (TestContext, error)

func SetupContextAndBindings

func SetupContextAndBindings(tc TestContext, data ContextData, bindings ...v1alpha1.Binding) (TestContext, error)

func WithBindings

func WithBindings(tc TestContext, variables ...v1alpha1.Binding) (TestContext, error)

func WithClusters

func WithClusters(tc TestContext, c map[string]v1alpha1.Cluster) TestContext

func WithCurrentCluster

func WithCurrentCluster(tc TestContext, name string) (TestContext, error)

func (*TestContext) BasePath

func (tc *TestContext) BasePath() string

func (*TestContext) Bindings

func (tc *TestContext) Bindings() apis.Bindings

func (*TestContext) Catch

func (tc *TestContext) Catch() []v1alpha1.CatchFinally

func (*TestContext) Cluster

func (tc *TestContext) Cluster(name string) clusters.Cluster

func (*TestContext) Clusters

func (tc *TestContext) Clusters() clusters.Registry

func (*TestContext) Compilers

func (tc *TestContext) Compilers() compilers.Compilers

func (*TestContext) CurrentCluster

func (tc *TestContext) CurrentCluster() clusters.Cluster

func (*TestContext) CurrentClusterClient

func (tc *TestContext) CurrentClusterClient() (*rest.Config, client.Client, error)

func (*TestContext) DelayBeforeCleanup

func (tc *TestContext) DelayBeforeCleanup() *time.Duration

func (*TestContext) DeletionPropagation

func (tc *TestContext) DeletionPropagation() metav1.DeletionPropagation

func (*TestContext) DryRun

func (tc *TestContext) DryRun() bool

func (*TestContext) FailFast

func (tc *TestContext) FailFast() bool

func (*TestContext) FullName

func (tc *TestContext) FullName() bool

func (*TestContext) Namespacer

func (tc *TestContext) Namespacer() namespacer.Namespacer

func (*TestContext) Quiet

func (tc *TestContext) Quiet() bool

func (*TestContext) SkipDelete

func (tc *TestContext) SkipDelete() bool

func (*TestContext) Templating

func (tc *TestContext) Templating() bool

func (*TestContext) TerminationGrace

func (tc *TestContext) TerminationGrace() *time.Duration

func (*TestContext) Timeouts

func (tc *TestContext) Timeouts() v1alpha1.DefaultTimeouts

func (TestContext) WithBasePath

func (tc TestContext) WithBasePath(basePath string) TestContext

func (TestContext) WithBinding

func (tc TestContext) WithBinding(name string, value any) TestContext

func (TestContext) WithCatch

func (tc TestContext) WithCatch(catch ...v1alpha1.CatchFinally) TestContext

func (TestContext) WithCluster

func (tc TestContext) WithCluster(name string, cluster clusters.Cluster) TestContext

func (TestContext) WithCurrentCluster

func (tc TestContext) WithCurrentCluster(name string) TestContext

func (TestContext) WithDefaultCompiler

func (tc TestContext) WithDefaultCompiler(name string) TestContext

func (TestContext) WithDelayBeforeCleanup

func (tc TestContext) WithDelayBeforeCleanup(delayBeforeCleanup *time.Duration) TestContext

func (TestContext) WithDeletionPropagation

func (tc TestContext) WithDeletionPropagation(deletionPropagation metav1.DeletionPropagation) TestContext

func (TestContext) WithDryRun

func (tc TestContext) WithDryRun(dryRun bool) TestContext

func (TestContext) WithFailFast

func (tc TestContext) WithFailFast(failFast bool) TestContext

func (TestContext) WithFullName

func (tc TestContext) WithFullName(fullName bool) TestContext

func (TestContext) WithNamespacer

func (tc TestContext) WithNamespacer(namespacer namespacer.Namespacer) TestContext

func (TestContext) WithQuiet

func (tc TestContext) WithQuiet(quiet bool) TestContext

func (TestContext) WithSkipDelete

func (tc TestContext) WithSkipDelete(skipDelete bool) TestContext

func (TestContext) WithTemplating

func (tc TestContext) WithTemplating(templating bool) TestContext

func (TestContext) WithTerminationGrace

func (tc TestContext) WithTerminationGrace(terminationGrace *time.Duration) TestContext

func (TestContext) WithTimeouts

func (tc TestContext) WithTimeouts(timeouts v1alpha1.Timeouts) TestContext

Jump to

Keyboard shortcuts

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