fake

package
v3.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MPL-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 FakeClusterQuotas

type FakeClusterQuotas struct {
	Fake *FakeStorageV1
}

FakeClusterQuotas implements ClusterQuotaInterface

func (*FakeClusterQuotas) Create

func (c *FakeClusterQuotas) Create(ctx context.Context, clusterQuota *v1.ClusterQuota, opts metav1.CreateOptions) (result *v1.ClusterQuota, err error)

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

func (*FakeClusterQuotas) Delete

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

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

func (*FakeClusterQuotas) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterQuotas) Get

func (c *FakeClusterQuotas) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterQuota, err error)

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

func (*FakeClusterQuotas) List

func (c *FakeClusterQuotas) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterQuotaList, err error)

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

func (*FakeClusterQuotas) Patch

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

Patch applies the patch and returns the patched clusterQuota.

func (*FakeClusterQuotas) Update

func (c *FakeClusterQuotas) Update(ctx context.Context, clusterQuota *v1.ClusterQuota, opts metav1.UpdateOptions) (result *v1.ClusterQuota, err error)

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

func (*FakeClusterQuotas) UpdateStatus

func (c *FakeClusterQuotas) UpdateStatus(ctx context.Context, clusterQuota *v1.ClusterQuota, opts metav1.UpdateOptions) (*v1.ClusterQuota, error)

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

func (*FakeClusterQuotas) Watch

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

type FakeLocalClusterAccesses

type FakeLocalClusterAccesses struct {
	Fake *FakeStorageV1
}

FakeLocalClusterAccesses implements LocalClusterAccessInterface

func (*FakeLocalClusterAccesses) Create

func (c *FakeLocalClusterAccesses) Create(ctx context.Context, localClusterAccess *v1.LocalClusterAccess, opts metav1.CreateOptions) (result *v1.LocalClusterAccess, err error)

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

func (*FakeLocalClusterAccesses) Delete

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

func (*FakeLocalClusterAccesses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeLocalClusterAccesses) Get

func (c *FakeLocalClusterAccesses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.LocalClusterAccess, err error)

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

func (*FakeLocalClusterAccesses) List

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

func (*FakeLocalClusterAccesses) Patch

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

Patch applies the patch and returns the patched localClusterAccess.

func (*FakeLocalClusterAccesses) Update

func (c *FakeLocalClusterAccesses) Update(ctx context.Context, localClusterAccess *v1.LocalClusterAccess, opts metav1.UpdateOptions) (result *v1.LocalClusterAccess, err error)

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

func (*FakeLocalClusterAccesses) UpdateStatus

func (c *FakeLocalClusterAccesses) UpdateStatus(ctx context.Context, localClusterAccess *v1.LocalClusterAccess, opts metav1.UpdateOptions) (*v1.LocalClusterAccess, error)

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

func (*FakeLocalClusterAccesses) Watch

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

type FakeLocalTeams

type FakeLocalTeams struct {
	Fake *FakeStorageV1
}

FakeLocalTeams implements LocalTeamInterface

func (*FakeLocalTeams) Create

func (c *FakeLocalTeams) Create(ctx context.Context, localTeam *v1.LocalTeam, opts metav1.CreateOptions) (result *v1.LocalTeam, err error)

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

func (*FakeLocalTeams) Delete

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

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

func (*FakeLocalTeams) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeLocalTeams) Get

func (c *FakeLocalTeams) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.LocalTeam, err error)

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

func (*FakeLocalTeams) List

func (c *FakeLocalTeams) List(ctx context.Context, opts metav1.ListOptions) (result *v1.LocalTeamList, err error)

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

func (*FakeLocalTeams) Patch

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

Patch applies the patch and returns the patched localTeam.

func (*FakeLocalTeams) Update

func (c *FakeLocalTeams) Update(ctx context.Context, localTeam *v1.LocalTeam, opts metav1.UpdateOptions) (result *v1.LocalTeam, err error)

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

func (*FakeLocalTeams) UpdateStatus

func (c *FakeLocalTeams) UpdateStatus(ctx context.Context, localTeam *v1.LocalTeam, opts metav1.UpdateOptions) (*v1.LocalTeam, error)

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

func (*FakeLocalTeams) Watch

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

type FakeLocalUsers

type FakeLocalUsers struct {
	Fake *FakeStorageV1
}

FakeLocalUsers implements LocalUserInterface

func (*FakeLocalUsers) Create

func (c *FakeLocalUsers) Create(ctx context.Context, localUser *v1.LocalUser, opts metav1.CreateOptions) (result *v1.LocalUser, err error)

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

func (*FakeLocalUsers) Delete

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

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

func (*FakeLocalUsers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeLocalUsers) Get

func (c *FakeLocalUsers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.LocalUser, err error)

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

func (*FakeLocalUsers) List

func (c *FakeLocalUsers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.LocalUserList, err error)

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

func (*FakeLocalUsers) Patch

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

Patch applies the patch and returns the patched localUser.

func (*FakeLocalUsers) Update

func (c *FakeLocalUsers) Update(ctx context.Context, localUser *v1.LocalUser, opts metav1.UpdateOptions) (result *v1.LocalUser, err error)

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

func (*FakeLocalUsers) UpdateStatus

func (c *FakeLocalUsers) UpdateStatus(ctx context.Context, localUser *v1.LocalUser, opts metav1.UpdateOptions) (*v1.LocalUser, error)

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

func (*FakeLocalUsers) Watch

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

type FakeStorageV1

type FakeStorageV1 struct {
	*testing.Fake
}

func (*FakeStorageV1) ClusterQuotas

func (c *FakeStorageV1) ClusterQuotas() v1.ClusterQuotaInterface

func (*FakeStorageV1) LocalClusterAccesses

func (c *FakeStorageV1) LocalClusterAccesses() v1.LocalClusterAccessInterface

func (*FakeStorageV1) LocalTeams

func (c *FakeStorageV1) LocalTeams() v1.LocalTeamInterface

func (*FakeStorageV1) LocalUsers

func (c *FakeStorageV1) LocalUsers() v1.LocalUserInterface

func (*FakeStorageV1) RESTClient

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

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

func (*FakeStorageV1) VirtualClusters

func (c *FakeStorageV1) VirtualClusters(namespace string) v1.VirtualClusterInterface

type FakeVirtualClusters

type FakeVirtualClusters struct {
	Fake *FakeStorageV1
	// contains filtered or unexported fields
}

FakeVirtualClusters implements VirtualClusterInterface

func (*FakeVirtualClusters) Create

func (c *FakeVirtualClusters) Create(ctx context.Context, virtualCluster *v1.VirtualCluster, opts metav1.CreateOptions) (result *v1.VirtualCluster, err error)

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

func (*FakeVirtualClusters) Delete

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

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

func (*FakeVirtualClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualClusters) Get

func (c *FakeVirtualClusters) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VirtualCluster, err error)

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

func (*FakeVirtualClusters) List

func (c *FakeVirtualClusters) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VirtualClusterList, err error)

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

func (*FakeVirtualClusters) Patch

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

Patch applies the patch and returns the patched virtualCluster.

func (*FakeVirtualClusters) Update

func (c *FakeVirtualClusters) Update(ctx context.Context, virtualCluster *v1.VirtualCluster, opts metav1.UpdateOptions) (result *v1.VirtualCluster, err error)

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

func (*FakeVirtualClusters) UpdateStatus

func (c *FakeVirtualClusters) UpdateStatus(ctx context.Context, virtualCluster *v1.VirtualCluster, opts metav1.UpdateOptions) (*v1.VirtualCluster, error)

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

func (*FakeVirtualClusters) Watch

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

Jump to

Keyboard shortcuts

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