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