fake

package
v1.10.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 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 FakeConfigurationRevisions

type FakeConfigurationRevisions struct {
	Fake *FakePkgV1
}

FakeConfigurationRevisions implements ConfigurationRevisionInterface

func (*FakeConfigurationRevisions) Create

func (c *FakeConfigurationRevisions) Create(ctx context.Context, configurationRevision *pkgv1.ConfigurationRevision, opts v1.CreateOptions) (result *pkgv1.ConfigurationRevision, err error)

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

func (*FakeConfigurationRevisions) Delete

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

func (*FakeConfigurationRevisions) DeleteCollection

func (c *FakeConfigurationRevisions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeConfigurationRevisions) Get

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

func (*FakeConfigurationRevisions) List

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

func (*FakeConfigurationRevisions) Patch

func (c *FakeConfigurationRevisions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *pkgv1.ConfigurationRevision, err error)

Patch applies the patch and returns the patched configurationRevision.

func (*FakeConfigurationRevisions) Update

func (c *FakeConfigurationRevisions) Update(ctx context.Context, configurationRevision *pkgv1.ConfigurationRevision, opts v1.UpdateOptions) (result *pkgv1.ConfigurationRevision, err error)

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

func (*FakeConfigurationRevisions) UpdateStatus

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

func (*FakeConfigurationRevisions) Watch

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

type FakeConfigurations

type FakeConfigurations struct {
	Fake *FakePkgV1
}

FakeConfigurations implements ConfigurationInterface

func (*FakeConfigurations) Create

func (c *FakeConfigurations) Create(ctx context.Context, configuration *pkgv1.Configuration, opts v1.CreateOptions) (result *pkgv1.Configuration, err error)

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

func (*FakeConfigurations) Delete

func (c *FakeConfigurations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeConfigurations) DeleteCollection

func (c *FakeConfigurations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeConfigurations) Get

func (c *FakeConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *pkgv1.Configuration, err error)

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

func (*FakeConfigurations) List

func (c *FakeConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *pkgv1.ConfigurationList, err error)

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

func (*FakeConfigurations) Patch

func (c *FakeConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *pkgv1.Configuration, err error)

Patch applies the patch and returns the patched configuration.

func (*FakeConfigurations) Update

func (c *FakeConfigurations) Update(ctx context.Context, configuration *pkgv1.Configuration, opts v1.UpdateOptions) (result *pkgv1.Configuration, err error)

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

func (*FakeConfigurations) UpdateStatus

func (c *FakeConfigurations) UpdateStatus(ctx context.Context, configuration *pkgv1.Configuration, opts v1.UpdateOptions) (*pkgv1.Configuration, error)

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

func (*FakeConfigurations) Watch

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

type FakePkgV1

type FakePkgV1 struct {
	*testing.Fake
}

func (*FakePkgV1) ConfigurationRevisions

func (c *FakePkgV1) ConfigurationRevisions() v1.ConfigurationRevisionInterface

func (*FakePkgV1) Configurations

func (c *FakePkgV1) Configurations() v1.ConfigurationInterface

func (*FakePkgV1) ProviderRevisions

func (c *FakePkgV1) ProviderRevisions() v1.ProviderRevisionInterface

func (*FakePkgV1) Providers

func (c *FakePkgV1) Providers() v1.ProviderInterface

func (*FakePkgV1) RESTClient

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

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

type FakeProviderRevisions

type FakeProviderRevisions struct {
	Fake *FakePkgV1
}

FakeProviderRevisions implements ProviderRevisionInterface

func (*FakeProviderRevisions) Create

func (c *FakeProviderRevisions) Create(ctx context.Context, providerRevision *pkgv1.ProviderRevision, opts v1.CreateOptions) (result *pkgv1.ProviderRevision, err error)

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

func (*FakeProviderRevisions) Delete

func (c *FakeProviderRevisions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeProviderRevisions) DeleteCollection

func (c *FakeProviderRevisions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeProviderRevisions) Get

func (c *FakeProviderRevisions) Get(ctx context.Context, name string, options v1.GetOptions) (result *pkgv1.ProviderRevision, err error)

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

func (*FakeProviderRevisions) List

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

func (*FakeProviderRevisions) Patch

func (c *FakeProviderRevisions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *pkgv1.ProviderRevision, err error)

Patch applies the patch and returns the patched providerRevision.

func (*FakeProviderRevisions) Update

func (c *FakeProviderRevisions) Update(ctx context.Context, providerRevision *pkgv1.ProviderRevision, opts v1.UpdateOptions) (result *pkgv1.ProviderRevision, err error)

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

func (*FakeProviderRevisions) UpdateStatus

func (c *FakeProviderRevisions) UpdateStatus(ctx context.Context, providerRevision *pkgv1.ProviderRevision, opts v1.UpdateOptions) (*pkgv1.ProviderRevision, error)

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

func (*FakeProviderRevisions) Watch

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

type FakeProviders

type FakeProviders struct {
	Fake *FakePkgV1
}

FakeProviders implements ProviderInterface

func (*FakeProviders) Create

func (c *FakeProviders) Create(ctx context.Context, provider *pkgv1.Provider, opts v1.CreateOptions) (result *pkgv1.Provider, err error)

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

func (*FakeProviders) Delete

func (c *FakeProviders) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeProviders) DeleteCollection

func (c *FakeProviders) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeProviders) Get

func (c *FakeProviders) Get(ctx context.Context, name string, options v1.GetOptions) (result *pkgv1.Provider, err error)

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

func (*FakeProviders) List

func (c *FakeProviders) List(ctx context.Context, opts v1.ListOptions) (result *pkgv1.ProviderList, err error)

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

func (*FakeProviders) Patch

func (c *FakeProviders) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *pkgv1.Provider, err error)

Patch applies the patch and returns the patched provider.

func (*FakeProviders) Update

func (c *FakeProviders) Update(ctx context.Context, provider *pkgv1.Provider, opts v1.UpdateOptions) (result *pkgv1.Provider, err error)

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

func (*FakeProviders) UpdateStatus

func (c *FakeProviders) UpdateStatus(ctx context.Context, provider *pkgv1.Provider, opts v1.UpdateOptions) (*pkgv1.Provider, error)

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

func (*FakeProviders) Watch

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

Jump to

Keyboard shortcuts

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