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