fake

package
Version: v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 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 FakeClusterInfoImports added in v1.7.0

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

FakeClusterInfoImports implements ClusterInfoImportInterface

func (*FakeClusterInfoImports) Create added in v1.7.0

func (c *FakeClusterInfoImports) Create(ctx context.Context, clusterInfoImport *v1alpha1.ClusterInfoImport, opts v1.CreateOptions) (result *v1alpha1.ClusterInfoImport, err error)

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

func (*FakeClusterInfoImports) Delete added in v1.7.0

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

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

func (*FakeClusterInfoImports) DeleteCollection added in v1.7.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterInfoImports) Get added in v1.7.0

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

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

func (*FakeClusterInfoImports) List added in v1.7.0

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

func (*FakeClusterInfoImports) Patch added in v1.7.0

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

Patch applies the patch and returns the patched clusterInfoImport.

func (*FakeClusterInfoImports) Update added in v1.7.0

func (c *FakeClusterInfoImports) Update(ctx context.Context, clusterInfoImport *v1alpha1.ClusterInfoImport, opts v1.UpdateOptions) (result *v1alpha1.ClusterInfoImport, err error)

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

func (*FakeClusterInfoImports) UpdateStatus added in v1.7.0

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

func (*FakeClusterInfoImports) Watch added in v1.7.0

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

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 FakeGateways added in v1.7.0

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

FakeGateways implements GatewayInterface

func (*FakeGateways) Create added in v1.7.0

func (c *FakeGateways) Create(ctx context.Context, gateway *v1alpha1.Gateway, opts v1.CreateOptions) (result *v1alpha1.Gateway, err error)

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

func (*FakeGateways) Delete added in v1.7.0

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

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

func (*FakeGateways) DeleteCollection added in v1.7.0

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

DeleteCollection deletes a collection of objects.

func (*FakeGateways) Get added in v1.7.0

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

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

func (*FakeGateways) List added in v1.7.0

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

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

func (*FakeGateways) Patch added in v1.7.0

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

Patch applies the patch and returns the patched gateway.

func (*FakeGateways) Update added in v1.7.0

func (c *FakeGateways) Update(ctx context.Context, gateway *v1alpha1.Gateway, opts v1.UpdateOptions) (result *v1alpha1.Gateway, err error)

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

func (*FakeGateways) Watch added in v1.7.0

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

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

type FakeLabelIdentities added in v1.9.0

type FakeLabelIdentities struct {
	Fake *FakeMulticlusterV1alpha1
}

FakeLabelIdentities implements LabelIdentityInterface

func (*FakeLabelIdentities) Create added in v1.9.0

func (c *FakeLabelIdentities) Create(ctx context.Context, labelIdentity *v1alpha1.LabelIdentity, opts v1.CreateOptions) (result *v1alpha1.LabelIdentity, err error)

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

func (*FakeLabelIdentities) Delete added in v1.9.0

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

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

func (*FakeLabelIdentities) DeleteCollection added in v1.9.0

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

DeleteCollection deletes a collection of objects.

func (*FakeLabelIdentities) Get added in v1.9.0

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

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

func (*FakeLabelIdentities) List added in v1.9.0

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

func (*FakeLabelIdentities) Patch added in v1.9.0

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

Patch applies the patch and returns the patched labelIdentity.

func (*FakeLabelIdentities) Update added in v1.9.0

func (c *FakeLabelIdentities) Update(ctx context.Context, labelIdentity *v1alpha1.LabelIdentity, opts v1.UpdateOptions) (result *v1alpha1.LabelIdentity, err error)

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

func (*FakeLabelIdentities) Watch added in v1.9.0

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

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) ClusterInfoImports added in v1.7.0

func (c *FakeMulticlusterV1alpha1) ClusterInfoImports(namespace string) v1alpha1.ClusterInfoImportInterface

func (*FakeMulticlusterV1alpha1) ClusterSets

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

func (*FakeMulticlusterV1alpha1) Gateways added in v1.7.0

func (*FakeMulticlusterV1alpha1) LabelIdentities added in v1.9.0

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) ResourceExports

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

func (*FakeMulticlusterV1alpha1) ResourceImports

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

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 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