import "admiralty.io/multicluster-scheduler/pkg/generated/clientset/versioned/typed/multicluster/v1alpha1/fake"
Package fake has the automatically generated clients.
doc.go fake_clustersource.go fake_clustersummary.go fake_clustertarget.go fake_multicluster_client.go fake_podchaperon.go fake_source.go fake_target.go
type FakeClusterSources struct { Fake *FakeMulticlusterV1alpha1 }
FakeClusterSources implements ClusterSourceInterface
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 (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 (c *FakeClusterSources) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
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 (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 (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 (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 (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 (c *FakeClusterSources) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterSources.
type FakeClusterSummaries struct { Fake *FakeMulticlusterV1alpha1 }
FakeClusterSummaries implements ClusterSummaryInterface
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 (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 (c *FakeClusterSummaries) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
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 (c *FakeClusterSummaries) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterSummaryList, err error)
List takes label and field selectors, and returns the list of ClusterSummaries that match those selectors.
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 (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 (c *FakeClusterSummaries) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterSummaries.
type FakeClusterTargets struct { Fake *FakeMulticlusterV1alpha1 }
FakeClusterTargets implements ClusterTargetInterface
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 (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 (c *FakeClusterTargets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
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 (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 (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 (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 (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 (c *FakeClusterTargets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterTargets.
func (c *FakeMulticlusterV1alpha1) ClusterSources() v1alpha1.ClusterSourceInterface
func (c *FakeMulticlusterV1alpha1) ClusterSummaries() v1alpha1.ClusterSummaryInterface
func (c *FakeMulticlusterV1alpha1) ClusterTargets() v1alpha1.ClusterTargetInterface
func (c *FakeMulticlusterV1alpha1) PodChaperons(namespace string) v1alpha1.PodChaperonInterface
func (c *FakeMulticlusterV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (c *FakeMulticlusterV1alpha1) Sources(namespace string) v1alpha1.SourceInterface
func (c *FakeMulticlusterV1alpha1) Targets(namespace string) v1alpha1.TargetInterface
type FakePodChaperons struct { Fake *FakeMulticlusterV1alpha1 // contains filtered or unexported fields }
FakePodChaperons implements PodChaperonInterface
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 (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 (c *FakePodChaperons) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
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 (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 (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 (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 (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 (c *FakePodChaperons) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested podChaperons.
type FakeSources struct { Fake *FakeMulticlusterV1alpha1 // contains filtered or unexported fields }
FakeSources implements SourceInterface
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 (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 (c *FakeSources) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
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 (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 (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 (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 (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 (c *FakeSources) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested sources.
type FakeTargets struct { Fake *FakeMulticlusterV1alpha1 // contains filtered or unexported fields }
FakeTargets implements TargetInterface
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 (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 (c *FakeTargets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
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 (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 (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 (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 (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 (c *FakeTargets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested targets.
Package fake imports 10 packages (graph) and is imported by 1 packages. Updated 2020-07-20. Refresh now. Tools for package owners.