fake

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 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 FakeClusterClaims

type FakeClusterClaims struct {
	Fake *FakeMulticlusterV1alpha1
	// contains filtered or unexported fields
}

FakeClusterClaims implements ClusterClaimInterface

func (*FakeClusterClaims) Create

func (c *FakeClusterClaims) Create(ctx context.Context, clusterClaim *v1alpha1.ClusterClaim, opts v1.CreateOptions) (result *v1alpha1.ClusterClaim, err error)

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

func (*FakeClusterClaims) Delete

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

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

func (*FakeClusterClaims) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterClaims) Get

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

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

func (*FakeClusterClaims) List

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

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

func (*FakeClusterClaims) Patch

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

Patch applies the patch and returns the patched clusterClaim.

func (*FakeClusterClaims) Update

func (c *FakeClusterClaims) Update(ctx context.Context, clusterClaim *v1alpha1.ClusterClaim, opts v1.UpdateOptions) (result *v1alpha1.ClusterClaim, err error)

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

func (*FakeClusterClaims) Watch

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

type FakeClusterSets

type FakeClusterSets struct {
	Fake *FakeMulticlusterV1alpha1
	// contains filtered or unexported fields
}

FakeClusterSets implements ClusterSetInterface

func (*FakeClusterSets) Create

func (c *FakeClusterSets) Create(ctx context.Context, clusterSet *v1alpha1.ClusterSet, opts v1.CreateOptions) (result *v1alpha1.ClusterSet, err error)

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

func (*FakeClusterSets) Delete

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

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

func (*FakeClusterSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterSets) Get

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

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

func (*FakeClusterSets) List

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

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

func (*FakeClusterSets) Patch

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

Patch applies the patch and returns the patched clusterSet.

func (*FakeClusterSets) Update

func (c *FakeClusterSets) Update(ctx context.Context, clusterSet *v1alpha1.ClusterSet, opts v1.UpdateOptions) (result *v1alpha1.ClusterSet, err error)

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

func (*FakeClusterSets) UpdateStatus

func (c *FakeClusterSets) UpdateStatus(ctx context.Context, clusterSet *v1alpha1.ClusterSet, opts v1.UpdateOptions) (*v1alpha1.ClusterSet, error)

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

func (*FakeClusterSets) Watch

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

type FakeMemberClusterAnnounces

type FakeMemberClusterAnnounces struct {
	Fake *FakeMulticlusterV1alpha1
	// contains filtered or unexported fields
}

FakeMemberClusterAnnounces implements MemberClusterAnnounceInterface

func (*FakeMemberClusterAnnounces) Create

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

func (*FakeMemberClusterAnnounces) Delete

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

func (*FakeMemberClusterAnnounces) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMemberClusterAnnounces) Get

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

func (*FakeMemberClusterAnnounces) List

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

func (*FakeMemberClusterAnnounces) Patch

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

Patch applies the patch and returns the patched memberClusterAnnounce.

func (*FakeMemberClusterAnnounces) Update

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

func (*FakeMemberClusterAnnounces) Watch

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

type FakeMulticlusterV1alpha1

type FakeMulticlusterV1alpha1 struct {
	*testing.Fake
}

func (*FakeMulticlusterV1alpha1) ClusterClaims

func (c *FakeMulticlusterV1alpha1) ClusterClaims(namespace string) v1alpha1.ClusterClaimInterface

func (*FakeMulticlusterV1alpha1) ClusterSets

func (c *FakeMulticlusterV1alpha1) ClusterSets(namespace string) v1alpha1.ClusterSetInterface

func (*FakeMulticlusterV1alpha1) MemberClusterAnnounces

func (c *FakeMulticlusterV1alpha1) MemberClusterAnnounces(namespace string) v1alpha1.MemberClusterAnnounceInterface

func (*FakeMulticlusterV1alpha1) RESTClient

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

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

func (*FakeMulticlusterV1alpha1) ResourceExportFilters

func (c *FakeMulticlusterV1alpha1) ResourceExportFilters(namespace string) v1alpha1.ResourceExportFilterInterface

func (*FakeMulticlusterV1alpha1) ResourceExports

func (c *FakeMulticlusterV1alpha1) ResourceExports(namespace string) v1alpha1.ResourceExportInterface

func (*FakeMulticlusterV1alpha1) ResourceImportFilters

func (c *FakeMulticlusterV1alpha1) ResourceImportFilters(namespace string) v1alpha1.ResourceImportFilterInterface

func (*FakeMulticlusterV1alpha1) ResourceImports

func (c *FakeMulticlusterV1alpha1) ResourceImports(namespace string) v1alpha1.ResourceImportInterface

type FakeResourceExportFilters

type FakeResourceExportFilters struct {
	Fake *FakeMulticlusterV1alpha1
	// contains filtered or unexported fields
}

FakeResourceExportFilters implements ResourceExportFilterInterface

func (*FakeResourceExportFilters) Create

func (c *FakeResourceExportFilters) Create(ctx context.Context, resourceExportFilter *v1alpha1.ResourceExportFilter, opts v1.CreateOptions) (result *v1alpha1.ResourceExportFilter, err error)

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

func (*FakeResourceExportFilters) Delete

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

func (*FakeResourceExportFilters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceExportFilters) Get

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

func (*FakeResourceExportFilters) List

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

func (*FakeResourceExportFilters) Patch

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

Patch applies the patch and returns the patched resourceExportFilter.

func (*FakeResourceExportFilters) Update

func (c *FakeResourceExportFilters) Update(ctx context.Context, resourceExportFilter *v1alpha1.ResourceExportFilter, opts v1.UpdateOptions) (result *v1alpha1.ResourceExportFilter, err error)

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

func (*FakeResourceExportFilters) UpdateStatus

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

func (*FakeResourceExportFilters) Watch

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

type FakeResourceExports

type FakeResourceExports struct {
	Fake *FakeMulticlusterV1alpha1
	// contains filtered or unexported fields
}

FakeResourceExports implements ResourceExportInterface

func (*FakeResourceExports) Create

func (c *FakeResourceExports) Create(ctx context.Context, resourceExport *v1alpha1.ResourceExport, opts v1.CreateOptions) (result *v1alpha1.ResourceExport, err error)

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

func (*FakeResourceExports) Delete

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

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

func (*FakeResourceExports) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceExports) Get

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

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

func (*FakeResourceExports) List

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

func (*FakeResourceExports) Patch

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

Patch applies the patch and returns the patched resourceExport.

func (*FakeResourceExports) Update

func (c *FakeResourceExports) Update(ctx context.Context, resourceExport *v1alpha1.ResourceExport, opts v1.UpdateOptions) (result *v1alpha1.ResourceExport, err error)

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

func (*FakeResourceExports) UpdateStatus

func (c *FakeResourceExports) UpdateStatus(ctx context.Context, resourceExport *v1alpha1.ResourceExport, opts v1.UpdateOptions) (*v1alpha1.ResourceExport, error)

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

func (*FakeResourceExports) Watch

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

type FakeResourceImportFilters

type FakeResourceImportFilters struct {
	Fake *FakeMulticlusterV1alpha1
	// contains filtered or unexported fields
}

FakeResourceImportFilters implements ResourceImportFilterInterface

func (*FakeResourceImportFilters) Create

func (c *FakeResourceImportFilters) Create(ctx context.Context, resourceImportFilter *v1alpha1.ResourceImportFilter, opts v1.CreateOptions) (result *v1alpha1.ResourceImportFilter, err error)

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

func (*FakeResourceImportFilters) Delete

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

func (*FakeResourceImportFilters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceImportFilters) Get

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

func (*FakeResourceImportFilters) List

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

func (*FakeResourceImportFilters) Patch

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

Patch applies the patch and returns the patched resourceImportFilter.

func (*FakeResourceImportFilters) Update

func (c *FakeResourceImportFilters) Update(ctx context.Context, resourceImportFilter *v1alpha1.ResourceImportFilter, opts v1.UpdateOptions) (result *v1alpha1.ResourceImportFilter, err error)

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

func (*FakeResourceImportFilters) UpdateStatus

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

func (*FakeResourceImportFilters) Watch

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

type FakeResourceImports

type FakeResourceImports struct {
	Fake *FakeMulticlusterV1alpha1
	// contains filtered or unexported fields
}

FakeResourceImports implements ResourceImportInterface

func (*FakeResourceImports) Create

func (c *FakeResourceImports) Create(ctx context.Context, resourceImport *v1alpha1.ResourceImport, opts v1.CreateOptions) (result *v1alpha1.ResourceImport, err error)

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

func (*FakeResourceImports) Delete

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

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

func (*FakeResourceImports) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceImports) Get

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

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

func (*FakeResourceImports) List

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

func (*FakeResourceImports) Patch

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

Patch applies the patch and returns the patched resourceImport.

func (*FakeResourceImports) Update

func (c *FakeResourceImports) Update(ctx context.Context, resourceImport *v1alpha1.ResourceImport, opts v1.UpdateOptions) (result *v1alpha1.ResourceImport, err error)

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

func (*FakeResourceImports) UpdateStatus

func (c *FakeResourceImports) UpdateStatus(ctx context.Context, resourceImport *v1alpha1.ResourceImport, opts v1.UpdateOptions) (*v1alpha1.ResourceImport, error)

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

func (*FakeResourceImports) Watch

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

Jump to

Keyboard shortcuts

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