context

package
v0.0.0-...-d408a47 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectHostClient

func InjectHostClient(ctx context.Context, cli cli.Cli) context.Context

Host Client

func InjectInternalWorkspace

func InjectInternalWorkspace(ctx context.Context, w workspacesv1alpha1.InternalWorkspace) context.Context

Default Workspace

func InjectKubespaceNamespace

func InjectKubespaceNamespace(ctx context.Context, namespace string) context.Context

Kubespace Namespace

func InjectScenarioId

func InjectScenarioId(ctx context.Context, id string) context.Context

Scenario Id

func InjectTestNamespace

func InjectTestNamespace(ctx context.Context, namespace string) context.Context

Test Namespace

func InjectUnauthKubeconfig

func InjectUnauthKubeconfig(ctx context.Context, cli *rest.Config) context.Context

Kubeconfig

func InjectUser

Default User

func InjectUserWorkspace

func InjectUserWorkspace(ctx context.Context, w restworkspacesv1alpha1.Workspace) context.Context

Workspaces

func InjectWorkspacesNamespace

func InjectWorkspacesNamespace(ctx context.Context, namespace string) context.Context

Workspaces Namespace

func RetrieveHostClient

func RetrieveHostClient(ctx context.Context) cli.Cli

func RetrieveKubespaceNamespace

func RetrieveKubespaceNamespace(ctx context.Context) string

func RetrieveScenarioId

func RetrieveScenarioId(ctx context.Context) string

func RetrieveTestNamespace

func RetrieveTestNamespace(ctx context.Context) string

func RetrieveUnauthKubeconfig

func RetrieveUnauthKubeconfig(ctx context.Context) *rest.Config

func RetrieveWorkspacesNamespace

func RetrieveWorkspacesNamespace(ctx context.Context) string

Types

type ContextKey

type ContextKey string

Jump to

Keyboard shortcuts

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