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