context

package
v0.2.9-beta.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestContext

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

func EmptyContext

func EmptyContext() TestContext

func MakeContext

func MakeContext(bindings binding.Bindings, registry clusters.Registry) TestContext

func (*TestContext) Bindings

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

func (*TestContext) Cluster

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

func (*TestContext) Clusters

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

func (*TestContext) CurrentCluster

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

func (*TestContext) CurrentClusterClient

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

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) WithDryRun

func (tc TestContext) WithDryRun(ctx context.Context, dryRun bool) TestContext

Jump to

Keyboard shortcuts

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