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