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