fake

package
v0.4.20 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 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 FakeAWSConfigs

type FakeAWSConfigs struct {
	Fake *FakeProviderV1alpha1
	// contains filtered or unexported fields
}

FakeAWSConfigs implements AWSConfigInterface

func (*FakeAWSConfigs) Create

func (c *FakeAWSConfigs) Create(aWSConfig *v1alpha1.AWSConfig) (result *v1alpha1.AWSConfig, err error)

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

func (*FakeAWSConfigs) Delete

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

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

func (*FakeAWSConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAWSConfigs) Get

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

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

func (*FakeAWSConfigs) List

func (c *FakeAWSConfigs) List(opts v1.ListOptions) (result *v1alpha1.AWSConfigList, err error)

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

func (*FakeAWSConfigs) Patch

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

Patch applies the patch and returns the patched aWSConfig.

func (*FakeAWSConfigs) Update

func (c *FakeAWSConfigs) Update(aWSConfig *v1alpha1.AWSConfig) (result *v1alpha1.AWSConfig, err error)

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

func (*FakeAWSConfigs) UpdateStatus

func (c *FakeAWSConfigs) UpdateStatus(aWSConfig *v1alpha1.AWSConfig) (*v1alpha1.AWSConfig, error)

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

func (*FakeAWSConfigs) Watch

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

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

type FakeAzureConfigs

type FakeAzureConfigs struct {
	Fake *FakeProviderV1alpha1
	// contains filtered or unexported fields
}

FakeAzureConfigs implements AzureConfigInterface

func (*FakeAzureConfigs) Create

func (c *FakeAzureConfigs) Create(azureConfig *v1alpha1.AzureConfig) (result *v1alpha1.AzureConfig, err error)

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

func (*FakeAzureConfigs) Delete

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

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

func (*FakeAzureConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAzureConfigs) Get

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

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

func (*FakeAzureConfigs) List

func (c *FakeAzureConfigs) List(opts v1.ListOptions) (result *v1alpha1.AzureConfigList, err error)

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

func (*FakeAzureConfigs) Patch

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

Patch applies the patch and returns the patched azureConfig.

func (*FakeAzureConfigs) Update

func (c *FakeAzureConfigs) Update(azureConfig *v1alpha1.AzureConfig) (result *v1alpha1.AzureConfig, err error)

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

func (*FakeAzureConfigs) UpdateStatus

func (c *FakeAzureConfigs) UpdateStatus(azureConfig *v1alpha1.AzureConfig) (*v1alpha1.AzureConfig, error)

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

func (*FakeAzureConfigs) Watch

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

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

type FakeKVMConfigs

type FakeKVMConfigs struct {
	Fake *FakeProviderV1alpha1
	// contains filtered or unexported fields
}

FakeKVMConfigs implements KVMConfigInterface

func (*FakeKVMConfigs) Create

func (c *FakeKVMConfigs) Create(kVMConfig *v1alpha1.KVMConfig) (result *v1alpha1.KVMConfig, err error)

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

func (*FakeKVMConfigs) Delete

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

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

func (*FakeKVMConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKVMConfigs) Get

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

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

func (*FakeKVMConfigs) List

func (c *FakeKVMConfigs) List(opts v1.ListOptions) (result *v1alpha1.KVMConfigList, err error)

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

func (*FakeKVMConfigs) Patch

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

Patch applies the patch and returns the patched kVMConfig.

func (*FakeKVMConfigs) Update

func (c *FakeKVMConfigs) Update(kVMConfig *v1alpha1.KVMConfig) (result *v1alpha1.KVMConfig, err error)

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

func (*FakeKVMConfigs) UpdateStatus

func (c *FakeKVMConfigs) UpdateStatus(kVMConfig *v1alpha1.KVMConfig) (*v1alpha1.KVMConfig, error)

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

func (*FakeKVMConfigs) Watch

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

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

type FakeProviderV1alpha1

type FakeProviderV1alpha1 struct {
	*testing.Fake
}

func (*FakeProviderV1alpha1) AWSConfigs

func (c *FakeProviderV1alpha1) AWSConfigs(namespace string) v1alpha1.AWSConfigInterface

func (*FakeProviderV1alpha1) AzureConfigs

func (c *FakeProviderV1alpha1) AzureConfigs(namespace string) v1alpha1.AzureConfigInterface

func (*FakeProviderV1alpha1) KVMConfigs

func (c *FakeProviderV1alpha1) KVMConfigs(namespace string) v1alpha1.KVMConfigInterface

func (*FakeProviderV1alpha1) RESTClient

func (c *FakeProviderV1alpha1) 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