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