fake

package
v0.0.0-...-0036acd Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 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 FakeIperfAlpha1

type FakeIperfAlpha1 struct {
	*testing.Fake
}

func (*FakeIperfAlpha1) IperfTasks

func (c *FakeIperfAlpha1) IperfTasks(namespace string) alpha1.IperfTaskInterface

func (*FakeIperfAlpha1) RESTClient

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

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

type FakeIperfTasks

type FakeIperfTasks struct {
	Fake *FakeIperfAlpha1
	// contains filtered or unexported fields
}

FakeIperfTasks implements IperfTaskInterface

func (*FakeIperfTasks) Create

func (c *FakeIperfTasks) Create(iperfTask *alpha1.IperfTask) (result *alpha1.IperfTask, err error)

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

func (*FakeIperfTasks) Delete

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

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

func (*FakeIperfTasks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIperfTasks) Get

func (c *FakeIperfTasks) Get(name string, options v1.GetOptions) (result *alpha1.IperfTask, err error)

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

func (*FakeIperfTasks) List

func (c *FakeIperfTasks) List(opts v1.ListOptions) (result *alpha1.IperfTaskList, err error)

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

func (*FakeIperfTasks) Patch

func (c *FakeIperfTasks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *alpha1.IperfTask, err error)

Patch applies the patch and returns the patched iperfTask.

func (*FakeIperfTasks) Update

func (c *FakeIperfTasks) Update(iperfTask *alpha1.IperfTask) (result *alpha1.IperfTask, err error)

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

func (*FakeIperfTasks) Watch

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

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

Jump to

Keyboard shortcuts

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