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