Documentation
¶
Index ¶
- type ContextData
- type TestContext
- func EmptyContext(clock clock.PassiveClock) TestContext
- func InitContext(config model.Configuration, defaultCluster *rest.Config, values any) (TestContext, error)
- func MakeContext(clock clock.PassiveClock, bindings apis.Bindings, registry clusters.Registry) TestContext
- func SetupBindings(tc TestContext, bindings ...v1alpha1.Binding) (TestContext, error)
- func SetupContext(tc TestContext, data ContextData) (TestContext, error)
- func SetupContextAndBindings(tc TestContext, data ContextData, bindings ...v1alpha1.Binding) (TestContext, error)
- func WithBindings(tc TestContext, variables ...v1alpha1.Binding) (TestContext, error)
- func WithClusters(tc TestContext, c map[string]v1alpha1.Cluster) TestContext
- func WithCurrentCluster(tc TestContext, name string) (TestContext, error)
- func (tc *TestContext) BasePath() string
- func (tc *TestContext) Bindings() apis.Bindings
- func (tc *TestContext) Catch() []v1alpha1.CatchFinally
- func (tc *TestContext) Cluster(name string) clusters.Cluster
- func (tc *TestContext) Clusters() clusters.Registry
- func (tc *TestContext) Compilers() compilers.Compilers
- func (tc *TestContext) CurrentCluster() clusters.Cluster
- func (tc *TestContext) CurrentClusterClient() (*rest.Config, client.Client, error)
- func (tc *TestContext) DelayBeforeCleanup() *time.Duration
- func (tc *TestContext) DeletionPropagation() metav1.DeletionPropagation
- func (tc *TestContext) DryRun() bool
- func (tc *TestContext) FailFast() bool
- func (tc *TestContext) FullName() bool
- func (tc *TestContext) Namespacer() namespacer.Namespacer
- func (tc *TestContext) Quiet() bool
- func (tc *TestContext) SkipDelete() bool
- func (tc *TestContext) Templating() bool
- func (tc *TestContext) TerminationGrace() *time.Duration
- func (tc *TestContext) Timeouts() v1alpha1.DefaultTimeouts
- func (tc TestContext) WithBasePath(basePath string) TestContext
- func (tc TestContext) WithBinding(name string, value any) TestContext
- func (tc TestContext) WithCatch(catch ...v1alpha1.CatchFinally) TestContext
- func (tc TestContext) WithCluster(name string, cluster clusters.Cluster) TestContext
- func (tc TestContext) WithCurrentCluster(name string) TestContext
- func (tc TestContext) WithDefaultCompiler(name string) TestContext
- func (tc TestContext) WithDelayBeforeCleanup(delayBeforeCleanup *time.Duration) TestContext
- func (tc TestContext) WithDeletionPropagation(deletionPropagation metav1.DeletionPropagation) TestContext
- func (tc TestContext) WithDryRun(dryRun bool) TestContext
- func (tc TestContext) WithFailFast(failFast bool) TestContext
- func (tc TestContext) WithFullName(fullName bool) TestContext
- func (tc TestContext) WithNamespacer(namespacer namespacer.Namespacer) TestContext
- func (tc TestContext) WithQuiet(quiet bool) TestContext
- func (tc TestContext) WithSkipDelete(skipDelete bool) TestContext
- func (tc TestContext) WithTemplating(templating bool) TestContext
- func (tc TestContext) WithTerminationGrace(terminationGrace *time.Duration) TestContext
- func (tc TestContext) WithTimeouts(timeouts v1alpha1.Timeouts) TestContext
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 ¶
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) 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 (*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
Click to show internal directories.
Click to hide internal directories.