fake

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 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 FakeClusterSecretses

type FakeClusterSecretses struct {
	Fake *FakePicchuV1alpha1
	// contains filtered or unexported fields
}

FakeClusterSecretses implements ClusterSecretsInterface

func (*FakeClusterSecretses) Create

func (c *FakeClusterSecretses) Create(ctx context.Context, clusterSecrets *v1alpha1.ClusterSecrets, opts v1.CreateOptions) (result *v1alpha1.ClusterSecrets, err error)

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

func (*FakeClusterSecretses) Delete

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

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

func (*FakeClusterSecretses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterSecretses) Get

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

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

func (*FakeClusterSecretses) List

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

func (*FakeClusterSecretses) Patch

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

Patch applies the patch and returns the patched clusterSecrets.

func (*FakeClusterSecretses) Update

func (c *FakeClusterSecretses) Update(ctx context.Context, clusterSecrets *v1alpha1.ClusterSecrets, opts v1.UpdateOptions) (result *v1alpha1.ClusterSecrets, err error)

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

func (*FakeClusterSecretses) UpdateStatus

func (c *FakeClusterSecretses) UpdateStatus(ctx context.Context, clusterSecrets *v1alpha1.ClusterSecrets, opts v1.UpdateOptions) (*v1alpha1.ClusterSecrets, error)

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

func (*FakeClusterSecretses) Watch

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

type FakeClusters

type FakeClusters struct {
	Fake *FakePicchuV1alpha1
	// contains filtered or unexported fields
}

FakeClusters implements ClusterInterface

func (*FakeClusters) Create

func (c *FakeClusters) Create(ctx context.Context, cluster *v1alpha1.Cluster, opts v1.CreateOptions) (result *v1alpha1.Cluster, err error)

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

func (*FakeClusters) Delete

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

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

func (*FakeClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusters) Get

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

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

func (*FakeClusters) List

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

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

func (*FakeClusters) Patch

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

Patch applies the patch and returns the patched cluster.

func (*FakeClusters) Update

func (c *FakeClusters) Update(ctx context.Context, cluster *v1alpha1.Cluster, opts v1.UpdateOptions) (result *v1alpha1.Cluster, err error)

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

func (*FakeClusters) UpdateStatus

func (c *FakeClusters) UpdateStatus(ctx context.Context, cluster *v1alpha1.Cluster, opts v1.UpdateOptions) (*v1alpha1.Cluster, error)

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

func (*FakeClusters) Watch

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

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

type FakeFaultInjectors

type FakeFaultInjectors struct {
	Fake *FakePicchuV1alpha1
	// contains filtered or unexported fields
}

FakeFaultInjectors implements FaultInjectorInterface

func (*FakeFaultInjectors) Create

func (c *FakeFaultInjectors) Create(ctx context.Context, faultInjector *v1alpha1.FaultInjector, opts v1.CreateOptions) (result *v1alpha1.FaultInjector, err error)

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

func (*FakeFaultInjectors) Delete

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

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

func (*FakeFaultInjectors) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFaultInjectors) Get

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

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

func (*FakeFaultInjectors) List

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

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

func (*FakeFaultInjectors) Patch

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

Patch applies the patch and returns the patched faultInjector.

func (*FakeFaultInjectors) Update

func (c *FakeFaultInjectors) Update(ctx context.Context, faultInjector *v1alpha1.FaultInjector, opts v1.UpdateOptions) (result *v1alpha1.FaultInjector, err error)

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

func (*FakeFaultInjectors) UpdateStatus

func (c *FakeFaultInjectors) UpdateStatus(ctx context.Context, faultInjector *v1alpha1.FaultInjector, opts v1.UpdateOptions) (*v1alpha1.FaultInjector, error)

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

func (*FakeFaultInjectors) Watch

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

type FakeMirrors

type FakeMirrors struct {
	Fake *FakePicchuV1alpha1
	// contains filtered or unexported fields
}

FakeMirrors implements MirrorInterface

func (*FakeMirrors) Create

func (c *FakeMirrors) Create(ctx context.Context, mirror *v1alpha1.Mirror, opts v1.CreateOptions) (result *v1alpha1.Mirror, err error)

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

func (*FakeMirrors) Delete

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

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

func (*FakeMirrors) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMirrors) Get

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

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

func (*FakeMirrors) List

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

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

func (*FakeMirrors) Patch

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

Patch applies the patch and returns the patched mirror.

func (*FakeMirrors) Update

func (c *FakeMirrors) Update(ctx context.Context, mirror *v1alpha1.Mirror, opts v1.UpdateOptions) (result *v1alpha1.Mirror, err error)

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

func (*FakeMirrors) UpdateStatus

func (c *FakeMirrors) UpdateStatus(ctx context.Context, mirror *v1alpha1.Mirror, opts v1.UpdateOptions) (*v1alpha1.Mirror, error)

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

func (*FakeMirrors) Watch

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

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

type FakePicchuV1alpha1

type FakePicchuV1alpha1 struct {
	*testing.Fake
}

func (*FakePicchuV1alpha1) ClusterSecretses

func (c *FakePicchuV1alpha1) ClusterSecretses(namespace string) v1alpha1.ClusterSecretsInterface

func (*FakePicchuV1alpha1) Clusters

func (c *FakePicchuV1alpha1) Clusters(namespace string) v1alpha1.ClusterInterface

func (*FakePicchuV1alpha1) FaultInjectors

func (c *FakePicchuV1alpha1) FaultInjectors(namespace string) v1alpha1.FaultInjectorInterface

func (*FakePicchuV1alpha1) Mirrors

func (c *FakePicchuV1alpha1) Mirrors(namespace string) v1alpha1.MirrorInterface

func (*FakePicchuV1alpha1) RESTClient

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

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

func (*FakePicchuV1alpha1) ReleaseManagers

func (c *FakePicchuV1alpha1) ReleaseManagers(namespace string) v1alpha1.ReleaseManagerInterface

func (*FakePicchuV1alpha1) Revisions

func (c *FakePicchuV1alpha1) Revisions(namespace string) v1alpha1.RevisionInterface

type FakeReleaseManagers

type FakeReleaseManagers struct {
	Fake *FakePicchuV1alpha1
	// contains filtered or unexported fields
}

FakeReleaseManagers implements ReleaseManagerInterface

func (*FakeReleaseManagers) Create

func (c *FakeReleaseManagers) Create(ctx context.Context, releaseManager *v1alpha1.ReleaseManager, opts v1.CreateOptions) (result *v1alpha1.ReleaseManager, err error)

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

func (*FakeReleaseManagers) Delete

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

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

func (*FakeReleaseManagers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeReleaseManagers) Get

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

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

func (*FakeReleaseManagers) List

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

func (*FakeReleaseManagers) Patch

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

Patch applies the patch and returns the patched releaseManager.

func (*FakeReleaseManagers) Update

func (c *FakeReleaseManagers) Update(ctx context.Context, releaseManager *v1alpha1.ReleaseManager, opts v1.UpdateOptions) (result *v1alpha1.ReleaseManager, err error)

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

func (*FakeReleaseManagers) UpdateStatus

func (c *FakeReleaseManagers) UpdateStatus(ctx context.Context, releaseManager *v1alpha1.ReleaseManager, opts v1.UpdateOptions) (*v1alpha1.ReleaseManager, error)

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

func (*FakeReleaseManagers) Watch

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

type FakeRevisions

type FakeRevisions struct {
	Fake *FakePicchuV1alpha1
	// contains filtered or unexported fields
}

FakeRevisions implements RevisionInterface

func (*FakeRevisions) Create

func (c *FakeRevisions) Create(ctx context.Context, revision *v1alpha1.Revision, opts v1.CreateOptions) (result *v1alpha1.Revision, err error)

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

func (*FakeRevisions) Delete

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

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

func (*FakeRevisions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRevisions) Get

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

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

func (*FakeRevisions) List

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

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

func (*FakeRevisions) Patch

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

Patch applies the patch and returns the patched revision.

func (*FakeRevisions) Update

func (c *FakeRevisions) Update(ctx context.Context, revision *v1alpha1.Revision, opts v1.UpdateOptions) (result *v1alpha1.Revision, err error)

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

func (*FakeRevisions) UpdateStatus

func (c *FakeRevisions) UpdateStatus(ctx context.Context, revision *v1alpha1.Revision, opts v1.UpdateOptions) (*v1alpha1.Revision, error)

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

func (*FakeRevisions) Watch

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

Jump to

Keyboard shortcuts

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