Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeQuotaV1alpha2
- type FakeResourceQuotas
- func (c *FakeResourceQuotas) Create(ctx context.Context, resourceQuota *v1alpha2.ResourceQuota, ...) (result *v1alpha2.ResourceQuota, err error)
- func (c *FakeResourceQuotas) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeResourceQuotas) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeResourceQuotas) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ResourceQuota, err error)
- func (c *FakeResourceQuotas) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceQuotaList, err error)
- func (c *FakeResourceQuotas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha2.ResourceQuota, err error)
- func (c *FakeResourceQuotas) Update(ctx context.Context, resourceQuota *v1alpha2.ResourceQuota, ...) (result *v1alpha2.ResourceQuota, err error)
- func (c *FakeResourceQuotas) UpdateStatus(ctx context.Context, resourceQuota *v1alpha2.ResourceQuota, ...) (*v1alpha2.ResourceQuota, error)
- func (c *FakeResourceQuotas) 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 FakeQuotaV1alpha2 ¶
func (*FakeQuotaV1alpha2) RESTClient ¶
func (c *FakeQuotaV1alpha2) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeQuotaV1alpha2) ResourceQuotas ¶
func (c *FakeQuotaV1alpha2) ResourceQuotas() v1alpha2.ResourceQuotaInterface
type FakeResourceQuotas ¶
type FakeResourceQuotas struct {
Fake *FakeQuotaV1alpha2
}
FakeResourceQuotas implements ResourceQuotaInterface
func (*FakeResourceQuotas) Create ¶
func (c *FakeResourceQuotas) Create(ctx context.Context, resourceQuota *v1alpha2.ResourceQuota, opts v1.CreateOptions) (result *v1alpha2.ResourceQuota, err error)
Create takes the representation of a resourceQuota and creates it. Returns the server's representation of the resourceQuota, and an error, if there is any.
func (*FakeResourceQuotas) Delete ¶
func (c *FakeResourceQuotas) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the resourceQuota and deletes it. Returns an error if one occurs.
func (*FakeResourceQuotas) DeleteCollection ¶
func (c *FakeResourceQuotas) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeResourceQuotas) Get ¶
func (c *FakeResourceQuotas) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ResourceQuota, err error)
Get takes name of the resourceQuota, and returns the corresponding resourceQuota object, and an error if there is any.
func (*FakeResourceQuotas) List ¶
func (c *FakeResourceQuotas) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceQuotaList, err error)
List takes label and field selectors, and returns the list of ResourceQuotas that match those selectors.
func (*FakeResourceQuotas) Patch ¶
func (c *FakeResourceQuotas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.ResourceQuota, err error)
Patch applies the patch and returns the patched resourceQuota.
func (*FakeResourceQuotas) Update ¶
func (c *FakeResourceQuotas) Update(ctx context.Context, resourceQuota *v1alpha2.ResourceQuota, opts v1.UpdateOptions) (result *v1alpha2.ResourceQuota, err error)
Update takes the representation of a resourceQuota and updates it. Returns the server's representation of the resourceQuota, and an error, if there is any.
func (*FakeResourceQuotas) UpdateStatus ¶
func (c *FakeResourceQuotas) UpdateStatus(ctx context.Context, resourceQuota *v1alpha2.ResourceQuota, opts v1.UpdateOptions) (*v1alpha2.ResourceQuota, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeResourceQuotas) Watch ¶
func (c *FakeResourceQuotas) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested resourceQuotas.