fake

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakePodLogses

type FakePodLogses struct {
	Fake *FakePodlogsV1
	// contains filtered or unexported fields
}

FakePodLogses implements PodLogsInterface

func (*FakePodLogses) Create

func (c *FakePodLogses) Create(podLogs *podlogsv1.PodLogs) (result *podlogsv1.PodLogs, err error)

Create takes the representation of a podLogs and creates it. Returns the server's representation of the podLogs, and an error, if there is any.

func (*FakePodLogses) Delete

func (c *FakePodLogses) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the podLogs and deletes it. Returns an error if one occurs.

func (*FakePodLogses) DeleteCollection

func (c *FakePodLogses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePodLogses) Get

func (c *FakePodLogses) Get(name string, options v1.GetOptions) (result *podlogsv1.PodLogs, err error)

Get takes name of the podLogs, and returns the corresponding podLogs object, and an error if there is any.

func (*FakePodLogses) List

func (c *FakePodLogses) List(opts v1.ListOptions) (result *podlogsv1.PodLogsList, err error)

List takes label and field selectors, and returns the list of PodLogses that match those selectors.

func (*FakePodLogses) Patch

func (c *FakePodLogses) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *podlogsv1.PodLogs, err error)

Patch applies the patch and returns the patched podLogs.

func (*FakePodLogses) Update

func (c *FakePodLogses) Update(podLogs *podlogsv1.PodLogs) (result *podlogsv1.PodLogs, err error)

Update takes the representation of a podLogs and updates it. Returns the server's representation of the podLogs, and an error, if there is any.

func (*FakePodLogses) Watch

func (c *FakePodLogses) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested podLogses.

type FakePodlogsV1

type FakePodlogsV1 struct {
	*testing.Fake
}

func (*FakePodlogsV1) PodLogses

func (c *FakePodlogsV1) PodLogses(namespace string) v1.PodLogsInterface

func (*FakePodlogsV1) Pods

func (c *FakePodlogsV1) Pods(namespace string) v1.PodInterface

func (*FakePodlogsV1) RESTClient

func (c *FakePodlogsV1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

type FakePods

type FakePods struct {
	Fake *FakePodlogsV1
	// contains filtered or unexported fields
}

FakePods implements PodInterface

func (*FakePods) Create

func (c *FakePods) Create(pod *podlogsv1.Pod) (result *podlogsv1.Pod, err error)

Create takes the representation of a pod and creates it. Returns the server's representation of the pod, and an error, if there is any.

func (*FakePods) Delete

func (c *FakePods) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the pod and deletes it. Returns an error if one occurs.

func (*FakePods) DeleteCollection

func (c *FakePods) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePods) Get

func (c *FakePods) Get(name string, options v1.GetOptions) (result *podlogsv1.Pod, err error)

Get takes name of the pod, and returns the corresponding pod object, and an error if there is any.

func (*FakePods) List

func (c *FakePods) List(opts v1.ListOptions) (result *podlogsv1.PodList, err error)

List takes label and field selectors, and returns the list of Pods that match those selectors.

func (*FakePods) Patch

func (c *FakePods) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *podlogsv1.Pod, err error)

Patch applies the patch and returns the patched pod.

func (*FakePods) Update

func (c *FakePods) Update(pod *podlogsv1.Pod) (result *podlogsv1.Pod, err error)

Update takes the representation of a pod and updates it. Returns the server's representation of the pod, and an error, if there is any.

func (*FakePods) UpdateStatus

func (c *FakePods) UpdateStatus(pod *podlogsv1.Pod) (*podlogsv1.Pod, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakePods) Watch

func (c *FakePods) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested pods.

Jump to

Keyboard shortcuts

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