k8s

package
v0.182.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CancelJob(ctx context.Context, job *v1.Job, namespace string) error
	CreateSecret(ctx context.Context, name, namespace string, data map[string][]byte) error
	CreateConfigMap(ctx context.Context, name, namespace string, data map[string][]byte) error
}

Client is a client to mange worker Kubernetes resources.

type ClientFactory

type ClientFactory interface {
	NewClient(env auth.AssignedKubernetesEnv, token string) (Client, error)
}

ClientFactory is a factory to create a Client.

func NewClientFactory

func NewClientFactory(endpoint string) ClientFactory

NewClientFactory creates a new ClientFactory.

Jump to

Keyboard shortcuts

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