fake

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 10 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(ctx context.Context, aWSConfig *v1alpha1.AWSConfig, opts v1.CreateOptions) (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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeAWSConfigs) Get

func (c *FakeAWSConfigs) Get(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.AWSConfig, err error)

Patch applies the patch and returns the patched aWSConfig.

func (*FakeAWSConfigs) Update

func (c *FakeAWSConfigs) Update(ctx context.Context, aWSConfig *v1alpha1.AWSConfig, opts v1.UpdateOptions) (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(ctx context.Context, aWSConfig *v1alpha1.AWSConfig, opts v1.UpdateOptions) (*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

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(ctx context.Context, azureConfig *v1alpha1.AzureConfig, opts v1.CreateOptions) (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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeAzureConfigs) Get

func (c *FakeAzureConfigs) Get(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.AzureConfig, err error)

Patch applies the patch and returns the patched azureConfig.

func (*FakeAzureConfigs) Update

func (c *FakeAzureConfigs) Update(ctx context.Context, azureConfig *v1alpha1.AzureConfig, opts v1.UpdateOptions) (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(ctx context.Context, azureConfig *v1alpha1.AzureConfig, opts v1.UpdateOptions) (*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

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(ctx context.Context, kVMConfig *v1alpha1.KVMConfig, opts v1.CreateOptions) (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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeKVMConfigs) Get

func (c *FakeKVMConfigs) Get(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.KVMConfig, err error)

Patch applies the patch and returns the patched kVMConfig.

func (*FakeKVMConfigs) Update

func (c *FakeKVMConfigs) Update(ctx context.Context, kVMConfig *v1alpha1.KVMConfig, opts v1.UpdateOptions) (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(ctx context.Context, kVMConfig *v1alpha1.KVMConfig, opts v1.UpdateOptions) (*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

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