mock

package
Version: v0.0.0-...-4fe21aa Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

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
t or T : Toggle theme light dark auto
y or Y : Canonical URL