fake

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 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 FakeClusterSources added in v0.10.0

type FakeClusterSources struct {
	Fake *FakeMulticlusterV1alpha1
}

FakeClusterSources implements ClusterSourceInterface

func (*FakeClusterSources) Create added in v0.10.0

func (c *FakeClusterSources) Create(ctx context.Context, clusterSource *v1alpha1.ClusterSource, opts v1.CreateOptions) (result *v1alpha1.ClusterSource, err error)

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

func (*FakeClusterSources) Delete added in v0.10.0

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

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

func (*FakeClusterSources) DeleteCollection added in v0.10.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterSources) Get added in v0.10.0

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

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

func (*FakeClusterSources) List added in v0.10.0

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

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

func (*FakeClusterSources) Patch added in v0.10.0

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

Patch applies the patch and returns the patched clusterSource.

func (*FakeClusterSources) Update added in v0.10.0

func (c *FakeClusterSources) Update(ctx context.Context, clusterSource *v1alpha1.ClusterSource, opts v1.UpdateOptions) (result *v1alpha1.ClusterSource, err error)

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

func (*FakeClusterSources) UpdateStatus added in v0.10.0

func (c *FakeClusterSources) UpdateStatus(ctx context.Context, clusterSource *v1alpha1.ClusterSource, opts v1.UpdateOptions) (*v1alpha1.ClusterSource, error)

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

func (*FakeClusterSources) Watch added in v0.10.0

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

type FakeClusterSummaries added in v0.10.0

type FakeClusterSummaries struct {
	Fake *FakeMulticlusterV1alpha1
}

FakeClusterSummaries implements ClusterSummaryInterface

func (*FakeClusterSummaries) Create added in v0.10.0

func (c *FakeClusterSummaries) Create(ctx context.Context, clusterSummary *v1alpha1.ClusterSummary, opts v1.CreateOptions) (result *v1alpha1.ClusterSummary, err error)

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

func (*FakeClusterSummaries) Delete added in v0.10.0

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

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

func (*FakeClusterSummaries) DeleteCollection added in v0.10.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterSummaries) Get added in v0.10.0

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

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

func (*FakeClusterSummaries) List added in v0.10.0

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

func (*FakeClusterSummaries) Patch added in v0.10.0

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

Patch applies the patch and returns the patched clusterSummary.

func (*FakeClusterSummaries) Update added in v0.10.0

func (c *FakeClusterSummaries) Update(ctx context.Context, clusterSummary *v1alpha1.ClusterSummary, opts v1.UpdateOptions) (result *v1alpha1.ClusterSummary, err error)

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

func (*FakeClusterSummaries) Watch added in v0.10.0

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

type FakeClusterTargets added in v0.10.0

type FakeClusterTargets struct {
	Fake *FakeMulticlusterV1alpha1
}

FakeClusterTargets implements ClusterTargetInterface

func (*FakeClusterTargets) Create added in v0.10.0

func (c *FakeClusterTargets) Create(ctx context.Context, clusterTarget *v1alpha1.ClusterTarget, opts v1.CreateOptions) (result *v1alpha1.ClusterTarget, err error)

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

func (*FakeClusterTargets) Delete added in v0.10.0

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

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

func (*FakeClusterTargets) DeleteCollection added in v0.10.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterTargets) Get added in v0.10.0

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

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

func (*FakeClusterTargets) List added in v0.10.0

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

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

func (*FakeClusterTargets) Patch added in v0.10.0

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

Patch applies the patch and returns the patched clusterTarget.

func (*FakeClusterTargets) Update added in v0.10.0

func (c *FakeClusterTargets) Update(ctx context.Context, clusterTarget *v1alpha1.ClusterTarget, opts v1.UpdateOptions) (result *v1alpha1.ClusterTarget, err error)

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

func (*FakeClusterTargets) UpdateStatus added in v0.10.0

func (c *FakeClusterTargets) UpdateStatus(ctx context.Context, clusterTarget *v1alpha1.ClusterTarget, opts v1.UpdateOptions) (*v1alpha1.ClusterTarget, error)

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

func (*FakeClusterTargets) Watch added in v0.10.0

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

type FakeMulticlusterV1alpha1

type FakeMulticlusterV1alpha1 struct {
	*testing.Fake
}

func (*FakeMulticlusterV1alpha1) ClusterSources added in v0.10.0

func (*FakeMulticlusterV1alpha1) ClusterSummaries added in v0.10.0

func (*FakeMulticlusterV1alpha1) ClusterTargets added in v0.10.0

func (*FakeMulticlusterV1alpha1) PodChaperons

func (c *FakeMulticlusterV1alpha1) PodChaperons(namespace string) v1alpha1.PodChaperonInterface

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) Sources added in v0.10.0

func (*FakeMulticlusterV1alpha1) Targets added in v0.10.0

type FakePodChaperons

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

FakePodChaperons implements PodChaperonInterface

func (*FakePodChaperons) Create

func (c *FakePodChaperons) Create(ctx context.Context, podChaperon *v1alpha1.PodChaperon, opts v1.CreateOptions) (result *v1alpha1.PodChaperon, err error)

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

func (*FakePodChaperons) Delete

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

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

func (*FakePodChaperons) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePodChaperons) Get

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

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

func (*FakePodChaperons) List

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

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

func (*FakePodChaperons) Patch

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

Patch applies the patch and returns the patched podChaperon.

func (*FakePodChaperons) Update

func (c *FakePodChaperons) Update(ctx context.Context, podChaperon *v1alpha1.PodChaperon, opts v1.UpdateOptions) (result *v1alpha1.PodChaperon, err error)

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

func (*FakePodChaperons) UpdateStatus

func (c *FakePodChaperons) UpdateStatus(ctx context.Context, podChaperon *v1alpha1.PodChaperon, opts v1.UpdateOptions) (*v1alpha1.PodChaperon, error)

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

func (*FakePodChaperons) Watch

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

type FakeSources added in v0.10.0

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

FakeSources implements SourceInterface

func (*FakeSources) Create added in v0.10.0

func (c *FakeSources) Create(ctx context.Context, source *v1alpha1.Source, opts v1.CreateOptions) (result *v1alpha1.Source, err error)

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

func (*FakeSources) Delete added in v0.10.0

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

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

func (*FakeSources) DeleteCollection added in v0.10.0

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

DeleteCollection deletes a collection of objects.

func (*FakeSources) Get added in v0.10.0

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

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

func (*FakeSources) List added in v0.10.0

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

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

func (*FakeSources) Patch added in v0.10.0

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

Patch applies the patch and returns the patched source.

func (*FakeSources) Update added in v0.10.0

func (c *FakeSources) Update(ctx context.Context, source *v1alpha1.Source, opts v1.UpdateOptions) (result *v1alpha1.Source, err error)

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

func (*FakeSources) UpdateStatus added in v0.10.0

func (c *FakeSources) UpdateStatus(ctx context.Context, source *v1alpha1.Source, opts v1.UpdateOptions) (*v1alpha1.Source, error)

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

func (*FakeSources) Watch added in v0.10.0

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

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

type FakeTargets added in v0.10.0

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

FakeTargets implements TargetInterface

func (*FakeTargets) Create added in v0.10.0

func (c *FakeTargets) Create(ctx context.Context, target *v1alpha1.Target, opts v1.CreateOptions) (result *v1alpha1.Target, err error)

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

func (*FakeTargets) Delete added in v0.10.0

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

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

func (*FakeTargets) DeleteCollection added in v0.10.0

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

DeleteCollection deletes a collection of objects.

func (*FakeTargets) Get added in v0.10.0

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

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

func (*FakeTargets) List added in v0.10.0

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

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

func (*FakeTargets) Patch added in v0.10.0

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

Patch applies the patch and returns the patched target.

func (*FakeTargets) Update added in v0.10.0

func (c *FakeTargets) Update(ctx context.Context, target *v1alpha1.Target, opts v1.UpdateOptions) (result *v1alpha1.Target, err error)

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

func (*FakeTargets) UpdateStatus added in v0.10.0

func (c *FakeTargets) UpdateStatus(ctx context.Context, target *v1alpha1.Target, opts v1.UpdateOptions) (*v1alpha1.Target, error)

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

func (*FakeTargets) Watch added in v0.10.0

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

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

Jump to

Keyboard shortcuts

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