fake

package
v1.72.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 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 FakeFolders

type FakeFolders struct {
	Fake *FakeResourcemanagerV1beta1
	// contains filtered or unexported fields
}

FakeFolders implements FolderInterface

func (*FakeFolders) Create

func (c *FakeFolders) Create(ctx context.Context, folder *v1beta1.Folder, opts v1.CreateOptions) (result *v1beta1.Folder, err error)

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

func (*FakeFolders) Delete

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

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

func (*FakeFolders) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFolders) Get

func (c *FakeFolders) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Folder, err error)

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

func (*FakeFolders) List

func (c *FakeFolders) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.FolderList, err error)

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

func (*FakeFolders) Patch

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

Patch applies the patch and returns the patched folder.

func (*FakeFolders) Update

func (c *FakeFolders) Update(ctx context.Context, folder *v1beta1.Folder, opts v1.UpdateOptions) (result *v1beta1.Folder, err error)

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

func (*FakeFolders) UpdateStatus

func (c *FakeFolders) UpdateStatus(ctx context.Context, folder *v1beta1.Folder, opts v1.UpdateOptions) (*v1beta1.Folder, error)

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

func (*FakeFolders) Watch

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

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

type FakeProjects

type FakeProjects struct {
	Fake *FakeResourcemanagerV1beta1
	// contains filtered or unexported fields
}

FakeProjects implements ProjectInterface

func (*FakeProjects) Create

func (c *FakeProjects) Create(ctx context.Context, project *v1beta1.Project, opts v1.CreateOptions) (result *v1beta1.Project, err error)

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

func (*FakeProjects) Delete

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

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

func (*FakeProjects) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProjects) Get

func (c *FakeProjects) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Project, err error)

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

func (*FakeProjects) List

func (c *FakeProjects) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ProjectList, err error)

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

func (*FakeProjects) Patch

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

Patch applies the patch and returns the patched project.

func (*FakeProjects) Update

func (c *FakeProjects) Update(ctx context.Context, project *v1beta1.Project, opts v1.UpdateOptions) (result *v1beta1.Project, err error)

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

func (*FakeProjects) UpdateStatus

func (c *FakeProjects) UpdateStatus(ctx context.Context, project *v1beta1.Project, opts v1.UpdateOptions) (*v1beta1.Project, error)

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

func (*FakeProjects) Watch

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

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

type FakeResourceManagerLiens

type FakeResourceManagerLiens struct {
	Fake *FakeResourcemanagerV1beta1
	// contains filtered or unexported fields
}

FakeResourceManagerLiens implements ResourceManagerLienInterface

func (*FakeResourceManagerLiens) Create

func (c *FakeResourceManagerLiens) Create(ctx context.Context, resourceManagerLien *v1beta1.ResourceManagerLien, opts v1.CreateOptions) (result *v1beta1.ResourceManagerLien, err error)

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

func (*FakeResourceManagerLiens) Delete

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

func (*FakeResourceManagerLiens) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceManagerLiens) Get

func (c *FakeResourceManagerLiens) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ResourceManagerLien, err error)

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

func (*FakeResourceManagerLiens) List

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

func (*FakeResourceManagerLiens) Patch

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

Patch applies the patch and returns the patched resourceManagerLien.

func (*FakeResourceManagerLiens) Update

func (c *FakeResourceManagerLiens) Update(ctx context.Context, resourceManagerLien *v1beta1.ResourceManagerLien, opts v1.UpdateOptions) (result *v1beta1.ResourceManagerLien, err error)

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

func (*FakeResourceManagerLiens) UpdateStatus

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

func (*FakeResourceManagerLiens) Watch

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

type FakeResourceManagerPolicies

type FakeResourceManagerPolicies struct {
	Fake *FakeResourcemanagerV1beta1
	// contains filtered or unexported fields
}

FakeResourceManagerPolicies implements ResourceManagerPolicyInterface

func (*FakeResourceManagerPolicies) Create

func (c *FakeResourceManagerPolicies) Create(ctx context.Context, resourceManagerPolicy *v1beta1.ResourceManagerPolicy, opts v1.CreateOptions) (result *v1beta1.ResourceManagerPolicy, err error)

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

func (*FakeResourceManagerPolicies) Delete

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

func (*FakeResourceManagerPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceManagerPolicies) Get

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

func (*FakeResourceManagerPolicies) List

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

func (*FakeResourceManagerPolicies) Patch

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

Patch applies the patch and returns the patched resourceManagerPolicy.

func (*FakeResourceManagerPolicies) Update

func (c *FakeResourceManagerPolicies) Update(ctx context.Context, resourceManagerPolicy *v1beta1.ResourceManagerPolicy, opts v1.UpdateOptions) (result *v1beta1.ResourceManagerPolicy, err error)

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

func (*FakeResourceManagerPolicies) UpdateStatus

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

func (*FakeResourceManagerPolicies) Watch

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

type FakeResourcemanagerV1beta1

type FakeResourcemanagerV1beta1 struct {
	*testing.Fake
}

func (*FakeResourcemanagerV1beta1) Folders

func (*FakeResourcemanagerV1beta1) Projects

func (*FakeResourcemanagerV1beta1) RESTClient

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

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

func (*FakeResourcemanagerV1beta1) ResourceManagerLiens

func (c *FakeResourcemanagerV1beta1) ResourceManagerLiens(namespace string) v1beta1.ResourceManagerLienInterface

func (*FakeResourcemanagerV1beta1) ResourceManagerPolicies

func (c *FakeResourcemanagerV1beta1) ResourceManagerPolicies(namespace string) v1beta1.ResourceManagerPolicyInterface

Jump to

Keyboard shortcuts

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