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