k8smock

package
v0.1.40 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sMock

type K8sMock struct{}

func New

func New() *K8sMock

func (*K8sMock) CurrentNamespace

func (k *K8sMock) CurrentNamespace() string

func (*K8sMock) DeploymentAnnotate

func (k *K8sMock) DeploymentAnnotate(ctx context.Context, buf *bytes.Buffer, namespace, deploymentName, resourceVersion, key string, value *string) (resourceVersionRet string, err error)

func (*K8sMock) DeploymentRead

func (k *K8sMock) DeploymentRead(ctx context.Context, namespace, podName string) (*k8s.Deployment, error)

func (*K8sMock) PodAnnotate

func (k *K8sMock) PodAnnotate(ctx context.Context, buf *bytes.Buffer, namespace, podName, resourceVersion, key string, value *string) (resourceVersionRet string, err error)

func (*K8sMock) PodList

func (k *K8sMock) PodList(ctx context.Context, buf *bytes.Buffer, namespace, labelSelector string) (*k8s.PodList, error)

Jump to

Keyboard shortcuts

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