mock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Teardown

func Teardown(c *Client)

Teardown ...

Types

type Client

type Client struct {
	sync.Mutex
	Pods map[string]*client.Pod
	// contains filtered or unexported fields
}

Client ...

func NewClient

func NewClient() *Client

NewClient ...

func (*Client) ListPods

func (m *Client) ListPods(labels map[string]string) (*client.PodList, error)

ListPods ...

func (*Client) UpdatePod

func (m *Client) UpdatePod(podName string, pod *client.Pod) (*client.Pod, error)

UpdatePod ...

func (*Client) WatchPods

func (m *Client) WatchPods(labels map[string]string) (watch.Watch, error)

WatchPods ...

Jump to

Keyboard shortcuts

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