fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 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 FakeCloudV1alpha1

type FakeCloudV1alpha1 struct {
	*testing.Fake
}

func (*FakeCloudV1alpha1) ProjectContainerregistries

func (c *FakeCloudV1alpha1) ProjectContainerregistries(namespace string) v1alpha1.ProjectContainerregistryInterface

func (*FakeCloudV1alpha1) ProjectContainerregistryUsers

func (c *FakeCloudV1alpha1) ProjectContainerregistryUsers(namespace string) v1alpha1.ProjectContainerregistryUserInterface

func (*FakeCloudV1alpha1) ProjectKubeNodepools

func (c *FakeCloudV1alpha1) ProjectKubeNodepools(namespace string) v1alpha1.ProjectKubeNodepoolInterface

func (*FakeCloudV1alpha1) ProjectKubes

func (c *FakeCloudV1alpha1) ProjectKubes(namespace string) v1alpha1.ProjectKubeInterface

func (*FakeCloudV1alpha1) ProjectNetworkPrivateSubnets

func (c *FakeCloudV1alpha1) ProjectNetworkPrivateSubnets(namespace string) v1alpha1.ProjectNetworkPrivateSubnetInterface

func (*FakeCloudV1alpha1) ProjectNetworkPrivates

func (c *FakeCloudV1alpha1) ProjectNetworkPrivates(namespace string) v1alpha1.ProjectNetworkPrivateInterface

func (*FakeCloudV1alpha1) ProjectUsers

func (c *FakeCloudV1alpha1) ProjectUsers(namespace string) v1alpha1.ProjectUserInterface

func (*FakeCloudV1alpha1) Projects

func (c *FakeCloudV1alpha1) Projects(namespace string) v1alpha1.ProjectInterface

func (*FakeCloudV1alpha1) RESTClient

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

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

type FakeProjectContainerregistries

type FakeProjectContainerregistries struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeProjectContainerregistries implements ProjectContainerregistryInterface

func (*FakeProjectContainerregistries) Create

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

func (*FakeProjectContainerregistries) Delete

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

func (*FakeProjectContainerregistries) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProjectContainerregistries) Get

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

func (*FakeProjectContainerregistries) List

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

func (*FakeProjectContainerregistries) Patch

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

Patch applies the patch and returns the patched projectContainerregistry.

func (*FakeProjectContainerregistries) Update

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

func (*FakeProjectContainerregistries) UpdateStatus

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

func (*FakeProjectContainerregistries) Watch

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

type FakeProjectContainerregistryUsers

type FakeProjectContainerregistryUsers struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeProjectContainerregistryUsers implements ProjectContainerregistryUserInterface

func (*FakeProjectContainerregistryUsers) Create

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

func (*FakeProjectContainerregistryUsers) Delete

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

func (*FakeProjectContainerregistryUsers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProjectContainerregistryUsers) Get

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

func (*FakeProjectContainerregistryUsers) List

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

func (*FakeProjectContainerregistryUsers) Patch

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

Patch applies the patch and returns the patched projectContainerregistryUser.

func (*FakeProjectContainerregistryUsers) Update

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

func (*FakeProjectContainerregistryUsers) UpdateStatus

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

func (*FakeProjectContainerregistryUsers) Watch

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

type FakeProjectKubeNodepools

type FakeProjectKubeNodepools struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeProjectKubeNodepools implements ProjectKubeNodepoolInterface

func (*FakeProjectKubeNodepools) Create

func (c *FakeProjectKubeNodepools) Create(ctx context.Context, projectKubeNodepool *v1alpha1.ProjectKubeNodepool, opts v1.CreateOptions) (result *v1alpha1.ProjectKubeNodepool, err error)

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

func (*FakeProjectKubeNodepools) Delete

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

func (*FakeProjectKubeNodepools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProjectKubeNodepools) Get

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

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

func (*FakeProjectKubeNodepools) List

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

func (*FakeProjectKubeNodepools) Patch

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

Patch applies the patch and returns the patched projectKubeNodepool.

func (*FakeProjectKubeNodepools) Update

func (c *FakeProjectKubeNodepools) Update(ctx context.Context, projectKubeNodepool *v1alpha1.ProjectKubeNodepool, opts v1.UpdateOptions) (result *v1alpha1.ProjectKubeNodepool, err error)

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

func (*FakeProjectKubeNodepools) UpdateStatus

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

func (*FakeProjectKubeNodepools) Watch

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

type FakeProjectKubes

type FakeProjectKubes struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeProjectKubes implements ProjectKubeInterface

func (*FakeProjectKubes) Create

func (c *FakeProjectKubes) Create(ctx context.Context, projectKube *v1alpha1.ProjectKube, opts v1.CreateOptions) (result *v1alpha1.ProjectKube, err error)

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

func (*FakeProjectKubes) Delete

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

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

func (*FakeProjectKubes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProjectKubes) Get

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

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

func (*FakeProjectKubes) List

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

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

func (*FakeProjectKubes) Patch

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

Patch applies the patch and returns the patched projectKube.

func (*FakeProjectKubes) Update

func (c *FakeProjectKubes) Update(ctx context.Context, projectKube *v1alpha1.ProjectKube, opts v1.UpdateOptions) (result *v1alpha1.ProjectKube, err error)

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

func (*FakeProjectKubes) UpdateStatus

func (c *FakeProjectKubes) UpdateStatus(ctx context.Context, projectKube *v1alpha1.ProjectKube, opts v1.UpdateOptions) (*v1alpha1.ProjectKube, error)

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

func (*FakeProjectKubes) Watch

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

type FakeProjectNetworkPrivateSubnets

type FakeProjectNetworkPrivateSubnets struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeProjectNetworkPrivateSubnets implements ProjectNetworkPrivateSubnetInterface

func (*FakeProjectNetworkPrivateSubnets) Create

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

func (*FakeProjectNetworkPrivateSubnets) Delete

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

func (*FakeProjectNetworkPrivateSubnets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProjectNetworkPrivateSubnets) Get

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

func (*FakeProjectNetworkPrivateSubnets) List

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

func (*FakeProjectNetworkPrivateSubnets) Patch

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

Patch applies the patch and returns the patched projectNetworkPrivateSubnet.

func (*FakeProjectNetworkPrivateSubnets) Update

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

func (*FakeProjectNetworkPrivateSubnets) UpdateStatus

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

func (*FakeProjectNetworkPrivateSubnets) Watch

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

type FakeProjectNetworkPrivates

type FakeProjectNetworkPrivates struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeProjectNetworkPrivates implements ProjectNetworkPrivateInterface

func (*FakeProjectNetworkPrivates) Create

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

func (*FakeProjectNetworkPrivates) Delete

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

func (*FakeProjectNetworkPrivates) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProjectNetworkPrivates) Get

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

func (*FakeProjectNetworkPrivates) List

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

func (*FakeProjectNetworkPrivates) Patch

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

Patch applies the patch and returns the patched projectNetworkPrivate.

func (*FakeProjectNetworkPrivates) Update

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

func (*FakeProjectNetworkPrivates) UpdateStatus

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

func (*FakeProjectNetworkPrivates) Watch

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

type FakeProjectUsers

type FakeProjectUsers struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeProjectUsers implements ProjectUserInterface

func (*FakeProjectUsers) Create

func (c *FakeProjectUsers) Create(ctx context.Context, projectUser *v1alpha1.ProjectUser, opts v1.CreateOptions) (result *v1alpha1.ProjectUser, err error)

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

func (*FakeProjectUsers) Delete

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

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

func (*FakeProjectUsers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProjectUsers) Get

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

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

func (*FakeProjectUsers) List

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

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

func (*FakeProjectUsers) Patch

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

Patch applies the patch and returns the patched projectUser.

func (*FakeProjectUsers) Update

func (c *FakeProjectUsers) Update(ctx context.Context, projectUser *v1alpha1.ProjectUser, opts v1.UpdateOptions) (result *v1alpha1.ProjectUser, err error)

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

func (*FakeProjectUsers) UpdateStatus

func (c *FakeProjectUsers) UpdateStatus(ctx context.Context, projectUser *v1alpha1.ProjectUser, opts v1.UpdateOptions) (*v1alpha1.ProjectUser, error)

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

func (*FakeProjectUsers) Watch

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

type FakeProjects

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

FakeProjects implements ProjectInterface

func (*FakeProjects) Create

func (c *FakeProjects) Create(ctx context.Context, project *v1alpha1.Project, opts v1.CreateOptions) (result *v1alpha1.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 *v1alpha1.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 *v1alpha1.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 *v1alpha1.Project, err error)

Patch applies the patch and returns the patched project.

func (*FakeProjects) Update

func (c *FakeProjects) Update(ctx context.Context, project *v1alpha1.Project, opts v1.UpdateOptions) (result *v1alpha1.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 *v1alpha1.Project, opts v1.UpdateOptions) (*v1alpha1.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.

Jump to

Keyboard shortcuts

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