Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAutoscalingRules
- func (c *FakeAutoscalingRules) Create(autoscalingRule *autoscalingrulev1.AutoscalingRule) (result *autoscalingrulev1.AutoscalingRule, err error)
- func (c *FakeAutoscalingRules) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeAutoscalingRules) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeAutoscalingRules) Get(name string, options v1.GetOptions) (result *autoscalingrulev1.AutoscalingRule, err error)
- func (c *FakeAutoscalingRules) List(opts v1.ListOptions) (result *autoscalingrulev1.AutoscalingRuleList, err error)
- func (c *FakeAutoscalingRules) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *autoscalingrulev1.AutoscalingRule, err error)
- func (c *FakeAutoscalingRules) Update(autoscalingRule *autoscalingrulev1.AutoscalingRule) (result *autoscalingrulev1.AutoscalingRule, err error)
- func (c *FakeAutoscalingRules) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeBsinfoV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAutoscalingRules ¶
type FakeAutoscalingRules struct { Fake *FakeBsinfoV1 // contains filtered or unexported fields }
FakeAutoscalingRules implements AutoscalingRuleInterface
func (*FakeAutoscalingRules) Create ¶
func (c *FakeAutoscalingRules) Create(autoscalingRule *autoscalingrulev1.AutoscalingRule) (result *autoscalingrulev1.AutoscalingRule, err error)
Create takes the representation of a autoscalingRule and creates it. Returns the server's representation of the autoscalingRule, and an error, if there is any.
func (*FakeAutoscalingRules) Delete ¶
func (c *FakeAutoscalingRules) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the autoscalingRule and deletes it. Returns an error if one occurs.
func (*FakeAutoscalingRules) DeleteCollection ¶
func (c *FakeAutoscalingRules) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeAutoscalingRules) Get ¶
func (c *FakeAutoscalingRules) Get(name string, options v1.GetOptions) (result *autoscalingrulev1.AutoscalingRule, err error)
Get takes name of the autoscalingRule, and returns the corresponding autoscalingRule object, and an error if there is any.
func (*FakeAutoscalingRules) List ¶
func (c *FakeAutoscalingRules) List(opts v1.ListOptions) (result *autoscalingrulev1.AutoscalingRuleList, err error)
List takes label and field selectors, and returns the list of AutoscalingRules that match those selectors.
func (*FakeAutoscalingRules) Patch ¶
func (c *FakeAutoscalingRules) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *autoscalingrulev1.AutoscalingRule, err error)
Patch applies the patch and returns the patched autoscalingRule.
func (*FakeAutoscalingRules) Update ¶
func (c *FakeAutoscalingRules) Update(autoscalingRule *autoscalingrulev1.AutoscalingRule) (result *autoscalingrulev1.AutoscalingRule, err error)
Update takes the representation of a autoscalingRule and updates it. Returns the server's representation of the autoscalingRule, and an error, if there is any.
func (*FakeAutoscalingRules) Watch ¶
func (c *FakeAutoscalingRules) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested autoscalingRules.
type FakeBsinfoV1 ¶
func (*FakeBsinfoV1) AutoscalingRules ¶
func (c *FakeBsinfoV1) AutoscalingRules(namespace string) v1.AutoscalingRuleInterface
func (*FakeBsinfoV1) RESTClient ¶
func (c *FakeBsinfoV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.