Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeIngressClasses
- func (c *FakeIngressClasses) Apply(ctx context.Context, ...) (result *networkingv1.IngressClass, err error)
- func (c *FakeIngressClasses) Create(ctx context.Context, ingressClass *networkingv1.IngressClass, ...) (result *networkingv1.IngressClass, err error)
- func (c *FakeIngressClasses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeIngressClasses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeIngressClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkingv1.IngressClass, err error)
- func (c *FakeIngressClasses) List(ctx context.Context, opts v1.ListOptions) (result *networkingv1.IngressClassList, err error)
- func (c *FakeIngressClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *networkingv1.IngressClass, err error)
- func (c *FakeIngressClasses) Update(ctx context.Context, ingressClass *networkingv1.IngressClass, ...) (result *networkingv1.IngressClass, err error)
- func (c *FakeIngressClasses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeIngresses
- func (c *FakeIngresses) Apply(ctx context.Context, ...) (result *networkingv1.Ingress, err error)
- func (c *FakeIngresses) ApplyStatus(ctx context.Context, ...) (result *networkingv1.Ingress, err error)
- func (c *FakeIngresses) Create(ctx context.Context, ingress *networkingv1.Ingress, opts v1.CreateOptions) (result *networkingv1.Ingress, err error)
- func (c *FakeIngresses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeIngresses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeIngresses) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkingv1.Ingress, err error)
- func (c *FakeIngresses) List(ctx context.Context, opts v1.ListOptions) (result *networkingv1.IngressList, err error)
- func (c *FakeIngresses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *networkingv1.Ingress, err error)
- func (c *FakeIngresses) Update(ctx context.Context, ingress *networkingv1.Ingress, opts v1.UpdateOptions) (result *networkingv1.Ingress, err error)
- func (c *FakeIngresses) UpdateStatus(ctx context.Context, ingress *networkingv1.Ingress, opts v1.UpdateOptions) (*networkingv1.Ingress, error)
- func (c *FakeIngresses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeNetworkPolicies
- func (c *FakeNetworkPolicies) Apply(ctx context.Context, ...) (result *networkingv1.NetworkPolicy, err error)
- func (c *FakeNetworkPolicies) ApplyStatus(ctx context.Context, ...) (result *networkingv1.NetworkPolicy, err error)
- func (c *FakeNetworkPolicies) Create(ctx context.Context, networkPolicy *networkingv1.NetworkPolicy, ...) (result *networkingv1.NetworkPolicy, err error)
- func (c *FakeNetworkPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeNetworkPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeNetworkPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkingv1.NetworkPolicy, err error)
- func (c *FakeNetworkPolicies) List(ctx context.Context, opts v1.ListOptions) (result *networkingv1.NetworkPolicyList, err error)
- func (c *FakeNetworkPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *networkingv1.NetworkPolicy, err error)
- func (c *FakeNetworkPolicies) Update(ctx context.Context, networkPolicy *networkingv1.NetworkPolicy, ...) (result *networkingv1.NetworkPolicy, err error)
- func (c *FakeNetworkPolicies) UpdateStatus(ctx context.Context, networkPolicy *networkingv1.NetworkPolicy, ...) (*networkingv1.NetworkPolicy, error)
- func (c *FakeNetworkPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeNetworkingV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeIngressClasses ¶ added in v0.19.0
type FakeIngressClasses struct {
Fake *FakeNetworkingV1
}
FakeIngressClasses implements IngressClassInterface
func (*FakeIngressClasses) Apply ¶ added in v0.21.0
func (c *FakeIngressClasses) Apply(ctx context.Context, ingressClass *applyconfigurationsnetworkingv1.IngressClassApplyConfiguration, opts v1.ApplyOptions) (result *networkingv1.IngressClass, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied ingressClass.
func (*FakeIngressClasses) Create ¶ added in v0.19.0
func (c *FakeIngressClasses) Create(ctx context.Context, ingressClass *networkingv1.IngressClass, opts v1.CreateOptions) (result *networkingv1.IngressClass, err error)
Create takes the representation of a ingressClass and creates it. Returns the server's representation of the ingressClass, and an error, if there is any.
func (*FakeIngressClasses) Delete ¶ added in v0.19.0
func (c *FakeIngressClasses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the ingressClass and deletes it. Returns an error if one occurs.
func (*FakeIngressClasses) DeleteCollection ¶ added in v0.19.0
func (c *FakeIngressClasses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeIngressClasses) Get ¶ added in v0.19.0
func (c *FakeIngressClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkingv1.IngressClass, err error)
Get takes name of the ingressClass, and returns the corresponding ingressClass object, and an error if there is any.
func (*FakeIngressClasses) List ¶ added in v0.19.0
func (c *FakeIngressClasses) List(ctx context.Context, opts v1.ListOptions) (result *networkingv1.IngressClassList, err error)
List takes label and field selectors, and returns the list of IngressClasses that match those selectors.
func (*FakeIngressClasses) Patch ¶ added in v0.19.0
func (c *FakeIngressClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networkingv1.IngressClass, err error)
Patch applies the patch and returns the patched ingressClass.
func (*FakeIngressClasses) Update ¶ added in v0.19.0
func (c *FakeIngressClasses) Update(ctx context.Context, ingressClass *networkingv1.IngressClass, opts v1.UpdateOptions) (result *networkingv1.IngressClass, err error)
Update takes the representation of a ingressClass and updates it. Returns the server's representation of the ingressClass, and an error, if there is any.
func (*FakeIngressClasses) Watch ¶ added in v0.19.0
func (c *FakeIngressClasses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested ingressClasses.
type FakeIngresses ¶ added in v0.19.0
type FakeIngresses struct { Fake *FakeNetworkingV1 // contains filtered or unexported fields }
FakeIngresses implements IngressInterface
func (*FakeIngresses) Apply ¶ added in v0.21.0
func (c *FakeIngresses) Apply(ctx context.Context, ingress *applyconfigurationsnetworkingv1.IngressApplyConfiguration, opts v1.ApplyOptions) (result *networkingv1.Ingress, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied ingress.
func (*FakeIngresses) ApplyStatus ¶ added in v0.21.0
func (c *FakeIngresses) ApplyStatus(ctx context.Context, ingress *applyconfigurationsnetworkingv1.IngressApplyConfiguration, opts v1.ApplyOptions) (result *networkingv1.Ingress, err error)
ApplyStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
func (*FakeIngresses) Create ¶ added in v0.19.0
func (c *FakeIngresses) Create(ctx context.Context, ingress *networkingv1.Ingress, opts v1.CreateOptions) (result *networkingv1.Ingress, err error)
Create takes the representation of a ingress and creates it. Returns the server's representation of the ingress, and an error, if there is any.
func (*FakeIngresses) Delete ¶ added in v0.19.0
func (c *FakeIngresses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the ingress and deletes it. Returns an error if one occurs.
func (*FakeIngresses) DeleteCollection ¶ added in v0.19.0
func (c *FakeIngresses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeIngresses) Get ¶ added in v0.19.0
func (c *FakeIngresses) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkingv1.Ingress, err error)
Get takes name of the ingress, and returns the corresponding ingress object, and an error if there is any.
func (*FakeIngresses) List ¶ added in v0.19.0
func (c *FakeIngresses) List(ctx context.Context, opts v1.ListOptions) (result *networkingv1.IngressList, err error)
List takes label and field selectors, and returns the list of Ingresses that match those selectors.
func (*FakeIngresses) Patch ¶ added in v0.19.0
func (c *FakeIngresses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networkingv1.Ingress, err error)
Patch applies the patch and returns the patched ingress.
func (*FakeIngresses) Update ¶ added in v0.19.0
func (c *FakeIngresses) Update(ctx context.Context, ingress *networkingv1.Ingress, opts v1.UpdateOptions) (result *networkingv1.Ingress, err error)
Update takes the representation of a ingress and updates it. Returns the server's representation of the ingress, and an error, if there is any.
func (*FakeIngresses) UpdateStatus ¶ added in v0.19.0
func (c *FakeIngresses) UpdateStatus(ctx context.Context, ingress *networkingv1.Ingress, opts v1.UpdateOptions) (*networkingv1.Ingress, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeIngresses) Watch ¶ added in v0.19.0
func (c *FakeIngresses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested ingresses.
type FakeNetworkPolicies ¶
type FakeNetworkPolicies struct { Fake *FakeNetworkingV1 // contains filtered or unexported fields }
FakeNetworkPolicies implements NetworkPolicyInterface
func (*FakeNetworkPolicies) Apply ¶ added in v0.21.0
func (c *FakeNetworkPolicies) Apply(ctx context.Context, networkPolicy *applyconfigurationsnetworkingv1.NetworkPolicyApplyConfiguration, opts v1.ApplyOptions) (result *networkingv1.NetworkPolicy, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied networkPolicy.
func (*FakeNetworkPolicies) ApplyStatus ¶ added in v0.24.0
func (c *FakeNetworkPolicies) ApplyStatus(ctx context.Context, networkPolicy *applyconfigurationsnetworkingv1.NetworkPolicyApplyConfiguration, opts v1.ApplyOptions) (result *networkingv1.NetworkPolicy, err error)
ApplyStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
func (*FakeNetworkPolicies) Create ¶
func (c *FakeNetworkPolicies) Create(ctx context.Context, networkPolicy *networkingv1.NetworkPolicy, opts v1.CreateOptions) (result *networkingv1.NetworkPolicy, err error)
Create takes the representation of a networkPolicy and creates it. Returns the server's representation of the networkPolicy, and an error, if there is any.
func (*FakeNetworkPolicies) Delete ¶
func (c *FakeNetworkPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the networkPolicy and deletes it. Returns an error if one occurs.
func (*FakeNetworkPolicies) DeleteCollection ¶
func (c *FakeNetworkPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeNetworkPolicies) Get ¶
func (c *FakeNetworkPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *networkingv1.NetworkPolicy, err error)
Get takes name of the networkPolicy, and returns the corresponding networkPolicy object, and an error if there is any.
func (*FakeNetworkPolicies) List ¶
func (c *FakeNetworkPolicies) List(ctx context.Context, opts v1.ListOptions) (result *networkingv1.NetworkPolicyList, err error)
List takes label and field selectors, and returns the list of NetworkPolicies that match those selectors.
func (*FakeNetworkPolicies) Patch ¶
func (c *FakeNetworkPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *networkingv1.NetworkPolicy, err error)
Patch applies the patch and returns the patched networkPolicy.
func (*FakeNetworkPolicies) Update ¶
func (c *FakeNetworkPolicies) Update(ctx context.Context, networkPolicy *networkingv1.NetworkPolicy, opts v1.UpdateOptions) (result *networkingv1.NetworkPolicy, err error)
Update takes the representation of a networkPolicy and updates it. Returns the server's representation of the networkPolicy, and an error, if there is any.
func (*FakeNetworkPolicies) UpdateStatus ¶ added in v0.24.0
func (c *FakeNetworkPolicies) UpdateStatus(ctx context.Context, networkPolicy *networkingv1.NetworkPolicy, opts v1.UpdateOptions) (*networkingv1.NetworkPolicy, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeNetworkPolicies) Watch ¶
func (c *FakeNetworkPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested networkPolicies.
type FakeNetworkingV1 ¶
func (*FakeNetworkingV1) IngressClasses ¶ added in v0.19.0
func (c *FakeNetworkingV1) IngressClasses() v1.IngressClassInterface
func (*FakeNetworkingV1) Ingresses ¶ added in v0.19.0
func (c *FakeNetworkingV1) Ingresses(namespace string) v1.IngressInterface
func (*FakeNetworkingV1) NetworkPolicies ¶
func (c *FakeNetworkingV1) NetworkPolicies(namespace string) v1.NetworkPolicyInterface
func (*FakeNetworkingV1) RESTClient ¶
func (c *FakeNetworkingV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.