fake

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 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 FakeAzureTools

type FakeAzureTools struct {
	Fake *FakeToolingV1alpha1
	// contains filtered or unexported fields
}

FakeAzureTools implements AzureToolInterface

func (*FakeAzureTools) Create

func (c *FakeAzureTools) Create(azureTool *v1alpha1.AzureTool) (result *v1alpha1.AzureTool, err error)

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

func (*FakeAzureTools) Delete

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

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

func (*FakeAzureTools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAzureTools) Get

func (c *FakeAzureTools) Get(name string, options v1.GetOptions) (result *v1alpha1.AzureTool, err error)

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

func (*FakeAzureTools) List

func (c *FakeAzureTools) List(opts v1.ListOptions) (result *v1alpha1.AzureToolList, err error)

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

func (*FakeAzureTools) Patch

func (c *FakeAzureTools) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.AzureTool, err error)

Patch applies the patch and returns the patched azureTool.

func (*FakeAzureTools) Update

func (c *FakeAzureTools) Update(azureTool *v1alpha1.AzureTool) (result *v1alpha1.AzureTool, err error)

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

func (*FakeAzureTools) UpdateStatus

func (c *FakeAzureTools) UpdateStatus(azureTool *v1alpha1.AzureTool) (*v1alpha1.AzureTool, error)

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

func (*FakeAzureTools) Watch

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

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

type FakeToolingV1alpha1

type FakeToolingV1alpha1 struct {
	*testing.Fake
}

func (*FakeToolingV1alpha1) AzureTools

func (c *FakeToolingV1alpha1) AzureTools(namespace string) v1alpha1.AzureToolInterface

func (*FakeToolingV1alpha1) RESTClient

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

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

Jump to

Keyboard shortcuts

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