client

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(kubeconfig, context string) (*clientImpl, error)

New creates new Kubernetes API client

Types

type Client

type Client interface {
	DefaultNamespace() string
	CreateSecret(ctx context.Context, namespace string, secret *v1.Secret) (*v1.Secret, error)
	GetSecret(ctx context.Context, namespace, name string) (*v1.Secret, error)
	ListSecrets(ctx context.Context, namespace string) (*v1.SecretList, error)
	UpdateSecret(ctx context.Context, namespace string, secret *v1.Secret) (*v1.Secret, error)
}

Client represents Kubernetes client and calculated namespace

Jump to

Keyboard shortcuts

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