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