Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAciV1
- type FakeSnatPolicies
- func (c *FakeSnatPolicies) Create(ctx context.Context, snatPolicy *acisnatv1.SnatPolicy, opts v1.CreateOptions) (result *acisnatv1.SnatPolicy, err error)
- func (c *FakeSnatPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeSnatPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeSnatPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *acisnatv1.SnatPolicy, err error)
- func (c *FakeSnatPolicies) List(ctx context.Context, opts v1.ListOptions) (result *acisnatv1.SnatPolicyList, err error)
- func (c *FakeSnatPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *acisnatv1.SnatPolicy, err error)
- func (c *FakeSnatPolicies) Update(ctx context.Context, snatPolicy *acisnatv1.SnatPolicy, opts v1.UpdateOptions) (result *acisnatv1.SnatPolicy, err error)
- func (c *FakeSnatPolicies) UpdateStatus(ctx context.Context, snatPolicy *acisnatv1.SnatPolicy, opts v1.UpdateOptions) (*acisnatv1.SnatPolicy, error)
- func (c *FakeSnatPolicies) 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 FakeAciV1 ¶
func (*FakeAciV1) RESTClient ¶
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeAciV1) SnatPolicies ¶
func (c *FakeAciV1) SnatPolicies() v1.SnatPolicyInterface
type FakeSnatPolicies ¶
type FakeSnatPolicies struct {
Fake *FakeAciV1
}
FakeSnatPolicies implements SnatPolicyInterface
func (*FakeSnatPolicies) Create ¶
func (c *FakeSnatPolicies) Create(ctx context.Context, snatPolicy *acisnatv1.SnatPolicy, opts v1.CreateOptions) (result *acisnatv1.SnatPolicy, err error)
Create takes the representation of a snatPolicy and creates it. Returns the server's representation of the snatPolicy, and an error, if there is any.
func (*FakeSnatPolicies) Delete ¶
func (c *FakeSnatPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the snatPolicy and deletes it. Returns an error if one occurs.
func (*FakeSnatPolicies) DeleteCollection ¶
func (c *FakeSnatPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeSnatPolicies) Get ¶
func (c *FakeSnatPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *acisnatv1.SnatPolicy, err error)
Get takes name of the snatPolicy, and returns the corresponding snatPolicy object, and an error if there is any.
func (*FakeSnatPolicies) List ¶
func (c *FakeSnatPolicies) List(ctx context.Context, opts v1.ListOptions) (result *acisnatv1.SnatPolicyList, err error)
List takes label and field selectors, and returns the list of SnatPolicies that match those selectors.
func (*FakeSnatPolicies) Patch ¶
func (c *FakeSnatPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *acisnatv1.SnatPolicy, err error)
Patch applies the patch and returns the patched snatPolicy.
func (*FakeSnatPolicies) Update ¶
func (c *FakeSnatPolicies) Update(ctx context.Context, snatPolicy *acisnatv1.SnatPolicy, opts v1.UpdateOptions) (result *acisnatv1.SnatPolicy, err error)
Update takes the representation of a snatPolicy and updates it. Returns the server's representation of the snatPolicy, and an error, if there is any.
func (*FakeSnatPolicies) UpdateStatus ¶
func (c *FakeSnatPolicies) UpdateStatus(ctx context.Context, snatPolicy *acisnatv1.SnatPolicy, opts v1.UpdateOptions) (*acisnatv1.SnatPolicy, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeSnatPolicies) Watch ¶
func (c *FakeSnatPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested snatPolicies.