fake

package
v0.10.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 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 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 FakeMulticlusterV1alpha1

type FakeMulticlusterV1alpha1 struct {
	*testing.Fake
}

func (*FakeMulticlusterV1alpha1) ClusterSummaries 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.

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.

Jump to

Keyboard shortcuts

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