fake

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 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 FakeConfigSets

type FakeConfigSets struct {
	Fake *FakeConfigV1alpha1
	// contains filtered or unexported fields
}

FakeConfigSets implements ConfigSetInterface

func (*FakeConfigSets) Create

func (c *FakeConfigSets) Create(ctx context.Context, configSet *v1alpha1.ConfigSet, opts v1.CreateOptions) (result *v1alpha1.ConfigSet, err error)

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

func (*FakeConfigSets) Delete

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

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

func (*FakeConfigSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeConfigSets) Get

func (c *FakeConfigSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ConfigSet, err error)

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

func (*FakeConfigSets) List

func (c *FakeConfigSets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ConfigSetList, err error)

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

func (*FakeConfigSets) Patch

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

Patch applies the patch and returns the patched configSet.

func (*FakeConfigSets) Update

func (c *FakeConfigSets) Update(ctx context.Context, configSet *v1alpha1.ConfigSet, opts v1.UpdateOptions) (result *v1alpha1.ConfigSet, err error)

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

func (*FakeConfigSets) UpdateStatus

func (c *FakeConfigSets) UpdateStatus(ctx context.Context, configSet *v1alpha1.ConfigSet, opts v1.UpdateOptions) (*v1alpha1.ConfigSet, error)

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

func (*FakeConfigSets) Watch

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

type FakeConfigV1alpha1

type FakeConfigV1alpha1 struct {
	*testing.Fake
}

func (*FakeConfigV1alpha1) ConfigSets

func (c *FakeConfigV1alpha1) ConfigSets(namespace string) v1alpha1.ConfigSetInterface

func (*FakeConfigV1alpha1) Configs

func (c *FakeConfigV1alpha1) Configs(namespace string) v1alpha1.ConfigInterface

func (*FakeConfigV1alpha1) RESTClient

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

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

func (*FakeConfigV1alpha1) RunningConfigs

func (c *FakeConfigV1alpha1) RunningConfigs(namespace string) v1alpha1.RunningConfigInterface

func (*FakeConfigV1alpha1) UnManagedConfigs

func (c *FakeConfigV1alpha1) UnManagedConfigs(namespace string) v1alpha1.UnManagedConfigInterface

type FakeConfigs

type FakeConfigs struct {
	Fake *FakeConfigV1alpha1
	// contains filtered or unexported fields
}

FakeConfigs implements ConfigInterface

func (*FakeConfigs) Create

func (c *FakeConfigs) Create(ctx context.Context, config *v1alpha1.Config, opts v1.CreateOptions) (result *v1alpha1.Config, err error)

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

func (*FakeConfigs) Delete

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

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

func (*FakeConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeConfigs) Get

func (c *FakeConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Config, err error)

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

func (*FakeConfigs) List

func (c *FakeConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ConfigList, err error)

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

func (*FakeConfigs) Patch

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

Patch applies the patch and returns the patched config.

func (*FakeConfigs) Update

func (c *FakeConfigs) Update(ctx context.Context, config *v1alpha1.Config, opts v1.UpdateOptions) (result *v1alpha1.Config, err error)

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

func (*FakeConfigs) UpdateStatus

func (c *FakeConfigs) UpdateStatus(ctx context.Context, config *v1alpha1.Config, opts v1.UpdateOptions) (*v1alpha1.Config, error)

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

func (*FakeConfigs) Watch

func (c *FakeConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeRunningConfigs

type FakeRunningConfigs struct {
	Fake *FakeConfigV1alpha1
	// contains filtered or unexported fields
}

FakeRunningConfigs implements RunningConfigInterface

func (*FakeRunningConfigs) Create

func (c *FakeRunningConfigs) Create(ctx context.Context, runningConfig *v1alpha1.RunningConfig, opts v1.CreateOptions) (result *v1alpha1.RunningConfig, err error)

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

func (*FakeRunningConfigs) Delete

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

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

func (*FakeRunningConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRunningConfigs) Get

func (c *FakeRunningConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RunningConfig, err error)

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

func (*FakeRunningConfigs) List

func (c *FakeRunningConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RunningConfigList, err error)

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

func (*FakeRunningConfigs) Patch

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

Patch applies the patch and returns the patched runningConfig.

func (*FakeRunningConfigs) Update

func (c *FakeRunningConfigs) Update(ctx context.Context, runningConfig *v1alpha1.RunningConfig, opts v1.UpdateOptions) (result *v1alpha1.RunningConfig, err error)

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

func (*FakeRunningConfigs) UpdateStatus

func (c *FakeRunningConfigs) UpdateStatus(ctx context.Context, runningConfig *v1alpha1.RunningConfig, opts v1.UpdateOptions) (*v1alpha1.RunningConfig, error)

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

func (*FakeRunningConfigs) Watch

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

type FakeUnManagedConfigs

type FakeUnManagedConfigs struct {
	Fake *FakeConfigV1alpha1
	// contains filtered or unexported fields
}

FakeUnManagedConfigs implements UnManagedConfigInterface

func (*FakeUnManagedConfigs) Create

func (c *FakeUnManagedConfigs) Create(ctx context.Context, unManagedConfig *v1alpha1.UnManagedConfig, opts v1.CreateOptions) (result *v1alpha1.UnManagedConfig, err error)

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

func (*FakeUnManagedConfigs) Delete

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

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

func (*FakeUnManagedConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUnManagedConfigs) Get

func (c *FakeUnManagedConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.UnManagedConfig, err error)

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

func (*FakeUnManagedConfigs) List

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

func (*FakeUnManagedConfigs) Patch

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

Patch applies the patch and returns the patched unManagedConfig.

func (*FakeUnManagedConfigs) Update

func (c *FakeUnManagedConfigs) Update(ctx context.Context, unManagedConfig *v1alpha1.UnManagedConfig, opts v1.UpdateOptions) (result *v1alpha1.UnManagedConfig, err error)

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

func (*FakeUnManagedConfigs) UpdateStatus

func (c *FakeUnManagedConfigs) UpdateStatus(ctx context.Context, unManagedConfig *v1alpha1.UnManagedConfig, opts v1.UpdateOptions) (*v1alpha1.UnManagedConfig, error)

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

func (*FakeUnManagedConfigs) Watch

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

Jump to

Keyboard shortcuts

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