kubernetesapi

package
v1.0.41 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 8 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 {
	GetJobs(ctx context.Context) (jobs []batchv1.Job, err error)
	GetConfigMaps(ctx context.Context) (configmaps []v1.ConfigMap, err error)
	GetSecrets(ctx context.Context) (secrets []v1.Secret, err error)

	DeleteJob(ctx context.Context, job batchv1.Job) (err error)
	DeleteConfigMap(ctx context.Context, configmap v1.ConfigMap) (err error)
	DeleteSecret(ctx context.Context, secret v1.Secret) (err error)
}

func NewClient

func NewClient(namespace string) (Client, error)

NewClient returns a new kubernetesapi.Client

Jump to

Keyboard shortcuts

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