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