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 FakeIngressBackends
- func (c *FakeIngressBackends) Create(ctx context.Context, ingressBackend *v1alpha1.IngressBackend, ...) (result *v1alpha1.IngressBackend, err error)
- func (c *FakeIngressBackends) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeIngressBackends) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeIngressBackends) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.IngressBackend, err error)
- func (c *FakeIngressBackends) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IngressBackendList, err error)
- func (c *FakeIngressBackends) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.IngressBackend, err error)
- func (c *FakeIngressBackends) Update(ctx context.Context, ingressBackend *v1alpha1.IngressBackend, ...) (result *v1alpha1.IngressBackend, err error)
- func (c *FakeIngressBackends) UpdateStatus(ctx context.Context, ingressBackend *v1alpha1.IngressBackend, ...) (*v1alpha1.IngressBackend, error)
- func (c *FakeIngressBackends) 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 FakeIngressBackends ¶ added in v0.10.0
type FakeIngressBackends struct { Fake *FakePolicyV1alpha1 // contains filtered or unexported fields }
FakeIngressBackends implements IngressBackendInterface
func (*FakeIngressBackends) Create ¶ added in v0.10.0
func (c *FakeIngressBackends) Create(ctx context.Context, ingressBackend *v1alpha1.IngressBackend, opts v1.CreateOptions) (result *v1alpha1.IngressBackend, err error)
Create takes the representation of a ingressBackend and creates it. Returns the server's representation of the ingressBackend, and an error, if there is any.
func (*FakeIngressBackends) Delete ¶ added in v0.10.0
func (c *FakeIngressBackends) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the ingressBackend and deletes it. Returns an error if one occurs.
func (*FakeIngressBackends) DeleteCollection ¶ added in v0.10.0
func (c *FakeIngressBackends) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeIngressBackends) Get ¶ added in v0.10.0
func (c *FakeIngressBackends) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.IngressBackend, err error)
Get takes name of the ingressBackend, and returns the corresponding ingressBackend object, and an error if there is any.
func (*FakeIngressBackends) List ¶ added in v0.10.0
func (c *FakeIngressBackends) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IngressBackendList, err error)
List takes label and field selectors, and returns the list of IngressBackends that match those selectors.
func (*FakeIngressBackends) Patch ¶ added in v0.10.0
func (c *FakeIngressBackends) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.IngressBackend, err error)
Patch applies the patch and returns the patched ingressBackend.
func (*FakeIngressBackends) Update ¶ added in v0.10.0
func (c *FakeIngressBackends) Update(ctx context.Context, ingressBackend *v1alpha1.IngressBackend, opts v1.UpdateOptions) (result *v1alpha1.IngressBackend, err error)
Update takes the representation of a ingressBackend and updates it. Returns the server's representation of the ingressBackend, and an error, if there is any.
func (*FakeIngressBackends) UpdateStatus ¶ added in v0.10.0
func (c *FakeIngressBackends) UpdateStatus(ctx context.Context, ingressBackend *v1alpha1.IngressBackend, opts v1.UpdateOptions) (*v1alpha1.IngressBackend, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeIngressBackends) Watch ¶ added in v0.10.0
func (c *FakeIngressBackends) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested ingressBackends.
type FakePolicyV1alpha1 ¶
func (*FakePolicyV1alpha1) Egresses ¶
func (c *FakePolicyV1alpha1) Egresses(namespace string) v1alpha1.EgressInterface
func (*FakePolicyV1alpha1) IngressBackends ¶ added in v0.10.0
func (c *FakePolicyV1alpha1) IngressBackends(namespace string) v1alpha1.IngressBackendInterface
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.