Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeClusterQuotas
- func (c *FakeClusterQuotas) Create(ctx context.Context, clusterQuota *v1.ClusterQuota, opts metav1.CreateOptions) (result *v1.ClusterQuota, err error)
- func (c *FakeClusterQuotas) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *FakeClusterQuotas) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (c *FakeClusterQuotas) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterQuota, err error)
- func (c *FakeClusterQuotas) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterQuotaList, err error)
- func (c *FakeClusterQuotas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1.ClusterQuota, err error)
- func (c *FakeClusterQuotas) Update(ctx context.Context, clusterQuota *v1.ClusterQuota, opts metav1.UpdateOptions) (result *v1.ClusterQuota, err error)
- func (c *FakeClusterQuotas) UpdateStatus(ctx context.Context, clusterQuota *v1.ClusterQuota, opts metav1.UpdateOptions) (*v1.ClusterQuota, error)
- func (c *FakeClusterQuotas) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type FakeStorageV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClusterQuotas ¶
type FakeClusterQuotas struct {
Fake *FakeStorageV1
}
FakeClusterQuotas implements ClusterQuotaInterface
func (*FakeClusterQuotas) Create ¶
func (c *FakeClusterQuotas) Create(ctx context.Context, clusterQuota *v1.ClusterQuota, opts metav1.CreateOptions) (result *v1.ClusterQuota, err error)
Create takes the representation of a clusterQuota and creates it. Returns the server's representation of the clusterQuota, and an error, if there is any.
func (*FakeClusterQuotas) Delete ¶
func (c *FakeClusterQuotas) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
Delete takes name of the clusterQuota and deletes it. Returns an error if one occurs.
func (*FakeClusterQuotas) DeleteCollection ¶
func (c *FakeClusterQuotas) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusterQuotas) Get ¶
func (c *FakeClusterQuotas) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterQuota, err error)
Get takes name of the clusterQuota, and returns the corresponding clusterQuota object, and an error if there is any.
func (*FakeClusterQuotas) List ¶
func (c *FakeClusterQuotas) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterQuotaList, err error)
List takes label and field selectors, and returns the list of ClusterQuotas that match those selectors.
func (*FakeClusterQuotas) Patch ¶
func (c *FakeClusterQuotas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterQuota, err error)
Patch applies the patch and returns the patched clusterQuota.
func (*FakeClusterQuotas) Update ¶
func (c *FakeClusterQuotas) Update(ctx context.Context, clusterQuota *v1.ClusterQuota, opts metav1.UpdateOptions) (result *v1.ClusterQuota, err error)
Update takes the representation of a clusterQuota and updates it. Returns the server's representation of the clusterQuota, and an error, if there is any.
func (*FakeClusterQuotas) UpdateStatus ¶
func (c *FakeClusterQuotas) UpdateStatus(ctx context.Context, clusterQuota *v1.ClusterQuota, opts metav1.UpdateOptions) (*v1.ClusterQuota, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeClusterQuotas) Watch ¶
func (c *FakeClusterQuotas) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterQuotas.
type FakeStorageV1 ¶
func (*FakeStorageV1) ClusterQuotas ¶
func (c *FakeStorageV1) ClusterQuotas() v1.ClusterQuotaInterface
func (*FakeStorageV1) RESTClient ¶
func (c *FakeStorageV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.