fake

package
v1.59.8 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 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 FakeDeckhouseV1alpha1

type FakeDeckhouseV1alpha1 struct {
	*testing.Fake
}

func (*FakeDeckhouseV1alpha1) ModuleConfigs

func (*FakeDeckhouseV1alpha1) ModulePullOverrides added in v1.56.0

func (*FakeDeckhouseV1alpha1) ModuleReleases added in v1.56.0

func (*FakeDeckhouseV1alpha1) ModuleSources added in v1.56.0

func (*FakeDeckhouseV1alpha1) ModuleUpdatePolicies added in v1.56.0

func (*FakeDeckhouseV1alpha1) Modules added in v1.56.0

func (*FakeDeckhouseV1alpha1) RESTClient

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

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

type FakeModuleConfigs

type FakeModuleConfigs struct {
	Fake *FakeDeckhouseV1alpha1
}

FakeModuleConfigs implements ModuleConfigInterface

func (*FakeModuleConfigs) Create

func (c *FakeModuleConfigs) Create(ctx context.Context, moduleConfig *v1alpha1.ModuleConfig, opts v1.CreateOptions) (result *v1alpha1.ModuleConfig, err error)

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

func (*FakeModuleConfigs) Delete

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

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

func (*FakeModuleConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeModuleConfigs) Get

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

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

func (*FakeModuleConfigs) List

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

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

func (*FakeModuleConfigs) Patch

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

Patch applies the patch and returns the patched moduleConfig.

func (*FakeModuleConfigs) Update

func (c *FakeModuleConfigs) Update(ctx context.Context, moduleConfig *v1alpha1.ModuleConfig, opts v1.UpdateOptions) (result *v1alpha1.ModuleConfig, err error)

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

func (*FakeModuleConfigs) UpdateStatus

func (c *FakeModuleConfigs) UpdateStatus(ctx context.Context, moduleConfig *v1alpha1.ModuleConfig, opts v1.UpdateOptions) (*v1alpha1.ModuleConfig, error)

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

func (*FakeModuleConfigs) Watch

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

type FakeModulePullOverrides added in v1.56.0

type FakeModulePullOverrides struct {
	Fake *FakeDeckhouseV1alpha1
}

FakeModulePullOverrides implements ModulePullOverrideInterface

func (*FakeModulePullOverrides) Create added in v1.56.0

func (c *FakeModulePullOverrides) Create(ctx context.Context, modulePullOverride *v1alpha1.ModulePullOverride, opts v1.CreateOptions) (result *v1alpha1.ModulePullOverride, err error)

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

func (*FakeModulePullOverrides) Delete added in v1.56.0

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

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

func (*FakeModulePullOverrides) DeleteCollection added in v1.56.0

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

DeleteCollection deletes a collection of objects.

func (*FakeModulePullOverrides) Get added in v1.56.0

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

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

func (*FakeModulePullOverrides) List added in v1.56.0

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

func (*FakeModulePullOverrides) Patch added in v1.56.0

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

Patch applies the patch and returns the patched modulePullOverride.

func (*FakeModulePullOverrides) Update added in v1.56.0

func (c *FakeModulePullOverrides) Update(ctx context.Context, modulePullOverride *v1alpha1.ModulePullOverride, opts v1.UpdateOptions) (result *v1alpha1.ModulePullOverride, err error)

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

func (*FakeModulePullOverrides) UpdateStatus added in v1.56.0

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

func (*FakeModulePullOverrides) Watch added in v1.56.0

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

type FakeModuleReleases added in v1.56.0

type FakeModuleReleases struct {
	Fake *FakeDeckhouseV1alpha1
}

FakeModuleReleases implements ModuleReleaseInterface

func (*FakeModuleReleases) Create added in v1.56.0

func (c *FakeModuleReleases) Create(ctx context.Context, moduleRelease *v1alpha1.ModuleRelease, opts v1.CreateOptions) (result *v1alpha1.ModuleRelease, err error)

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

func (*FakeModuleReleases) Delete added in v1.56.0

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

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

func (*FakeModuleReleases) DeleteCollection added in v1.56.0

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

DeleteCollection deletes a collection of objects.

func (*FakeModuleReleases) Get added in v1.56.0

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

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

func (*FakeModuleReleases) List added in v1.56.0

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

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

func (*FakeModuleReleases) Patch added in v1.56.0

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

Patch applies the patch and returns the patched moduleRelease.

func (*FakeModuleReleases) Update added in v1.56.0

func (c *FakeModuleReleases) Update(ctx context.Context, moduleRelease *v1alpha1.ModuleRelease, opts v1.UpdateOptions) (result *v1alpha1.ModuleRelease, err error)

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

func (*FakeModuleReleases) UpdateStatus added in v1.56.0

func (c *FakeModuleReleases) UpdateStatus(ctx context.Context, moduleRelease *v1alpha1.ModuleRelease, opts v1.UpdateOptions) (*v1alpha1.ModuleRelease, error)

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

func (*FakeModuleReleases) Watch added in v1.56.0

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

type FakeModuleSources added in v1.56.0

type FakeModuleSources struct {
	Fake *FakeDeckhouseV1alpha1
}

FakeModuleSources implements ModuleSourceInterface

func (*FakeModuleSources) Create added in v1.56.0

func (c *FakeModuleSources) Create(ctx context.Context, moduleSource *v1alpha1.ModuleSource, opts v1.CreateOptions) (result *v1alpha1.ModuleSource, err error)

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

func (*FakeModuleSources) Delete added in v1.56.0

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

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

func (*FakeModuleSources) DeleteCollection added in v1.56.0

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

DeleteCollection deletes a collection of objects.

func (*FakeModuleSources) Get added in v1.56.0

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

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

func (*FakeModuleSources) List added in v1.56.0

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

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

func (*FakeModuleSources) Patch added in v1.56.0

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

Patch applies the patch and returns the patched moduleSource.

func (*FakeModuleSources) Update added in v1.56.0

func (c *FakeModuleSources) Update(ctx context.Context, moduleSource *v1alpha1.ModuleSource, opts v1.UpdateOptions) (result *v1alpha1.ModuleSource, err error)

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

func (*FakeModuleSources) UpdateStatus added in v1.56.0

func (c *FakeModuleSources) UpdateStatus(ctx context.Context, moduleSource *v1alpha1.ModuleSource, opts v1.UpdateOptions) (*v1alpha1.ModuleSource, error)

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

func (*FakeModuleSources) Watch added in v1.56.0

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

type FakeModuleUpdatePolicies added in v1.56.0

type FakeModuleUpdatePolicies struct {
	Fake *FakeDeckhouseV1alpha1
}

FakeModuleUpdatePolicies implements ModuleUpdatePolicyInterface

func (*FakeModuleUpdatePolicies) Create added in v1.56.0

func (c *FakeModuleUpdatePolicies) Create(ctx context.Context, moduleUpdatePolicy *v1alpha1.ModuleUpdatePolicy, opts v1.CreateOptions) (result *v1alpha1.ModuleUpdatePolicy, err error)

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

func (*FakeModuleUpdatePolicies) Delete added in v1.56.0

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

func (*FakeModuleUpdatePolicies) DeleteCollection added in v1.56.0

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

DeleteCollection deletes a collection of objects.

func (*FakeModuleUpdatePolicies) Get added in v1.56.0

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

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

func (*FakeModuleUpdatePolicies) List added in v1.56.0

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

func (*FakeModuleUpdatePolicies) Patch added in v1.56.0

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

Patch applies the patch and returns the patched moduleUpdatePolicy.

func (*FakeModuleUpdatePolicies) Update added in v1.56.0

func (c *FakeModuleUpdatePolicies) Update(ctx context.Context, moduleUpdatePolicy *v1alpha1.ModuleUpdatePolicy, opts v1.UpdateOptions) (result *v1alpha1.ModuleUpdatePolicy, err error)

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

func (*FakeModuleUpdatePolicies) Watch added in v1.56.0

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

type FakeModules added in v1.56.0

type FakeModules struct {
	Fake *FakeDeckhouseV1alpha1
}

FakeModules implements ModuleInterface

func (*FakeModules) Create added in v1.56.0

func (c *FakeModules) Create(ctx context.Context, module *v1alpha1.Module, opts v1.CreateOptions) (result *v1alpha1.Module, err error)

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

func (*FakeModules) Delete added in v1.56.0

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

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

func (*FakeModules) DeleteCollection added in v1.56.0

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

DeleteCollection deletes a collection of objects.

func (*FakeModules) Get added in v1.56.0

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

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

func (*FakeModules) List added in v1.56.0

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

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

func (*FakeModules) Patch added in v1.56.0

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

Patch applies the patch and returns the patched module.

func (*FakeModules) Update added in v1.56.0

func (c *FakeModules) Update(ctx context.Context, module *v1alpha1.Module, opts v1.UpdateOptions) (result *v1alpha1.Module, err error)

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

func (*FakeModules) UpdateStatus added in v1.59.0

func (c *FakeModules) UpdateStatus(ctx context.Context, module *v1alpha1.Module, opts v1.UpdateOptions) (*v1alpha1.Module, error)

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

func (*FakeModules) Watch added in v1.56.0

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

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

Jump to

Keyboard shortcuts

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