Documentation
¶
Index ¶
- type TestContext
- func (tc *TestContext) Bindings() apis.Bindings
- 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) DryRun() bool
- func (tc TestContext) WithBinding(ctx context.Context, name string, value any) TestContext
- func (tc TestContext) WithCluster(ctx context.Context, name string, cluster clusters.Cluster) TestContext
- func (tc TestContext) WithCurrentCluster(ctx context.Context, name string) TestContext
- func (tc TestContext) WithDefaultCompiler(name string) TestContext
- func (tc TestContext) WithDryRun(ctx context.Context, dryRun bool) TestContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestContext ¶
func EmptyContext ¶
func EmptyContext() TestContext
func MakeContext ¶
func MakeContext(bindings apis.Bindings, registry clusters.Registry) TestContext
func (*TestContext) Bindings ¶
func (tc *TestContext) Bindings() apis.Bindings
func (*TestContext) Clusters ¶
func (tc *TestContext) Clusters() clusters.Registry
func (*TestContext) Compilers ¶ added in v0.2.11
func (tc *TestContext) Compilers() compilers.Compilers
func (*TestContext) CurrentCluster ¶
func (tc *TestContext) CurrentCluster() clusters.Cluster
func (*TestContext) CurrentClusterClient ¶
func (*TestContext) DryRun ¶
func (tc *TestContext) DryRun() bool
func (TestContext) WithBinding ¶
func (tc TestContext) WithBinding(ctx context.Context, name string, value any) TestContext
func (TestContext) WithCluster ¶
func (tc TestContext) WithCluster(ctx context.Context, name string, cluster clusters.Cluster) TestContext
func (TestContext) WithCurrentCluster ¶
func (tc TestContext) WithCurrentCluster(ctx context.Context, name string) TestContext
func (TestContext) WithDefaultCompiler ¶ added in v0.2.11
func (tc TestContext) WithDefaultCompiler(name string) TestContext
func (TestContext) WithDryRun ¶
func (tc TestContext) WithDryRun(ctx context.Context, dryRun bool) TestContext
Click to show internal directories.
Click to hide internal directories.