Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
SPDX-License-Identifier: Apache-2.0
Copyright Contributors to the Submariner project.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
SPDX-License-Identifier: Apache-2.0
Copyright Contributors to the Submariner project.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
SPDX-License-Identifier: Apache-2.0
Copyright Contributors to the Submariner project.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type FailingClusters
- func (f *FailingClusters) Create(ctx context.Context, e *v1.Cluster, options metav1.CreateOptions) (*v1.Cluster, error)
- func (f *FailingClusters) Delete(ctx context.Context, name string, options metav1.DeleteOptions) error
- func (f *FailingClusters) Get(ctx context.Context, name string, options metav1.GetOptions) (*v1.Cluster, error)
- func (f *FailingClusters) List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterList, error)
- func (f *FailingClusters) Update(ctx context.Context, e *v1.Cluster, options metav1.UpdateOptions) (*v1.Cluster, error)
- type FailingEndpoints
- func (f *FailingEndpoints) Create(ctx context.Context, e *v1.Endpoint, options metav1.CreateOptions) (*v1.Endpoint, error)
- func (f *FailingEndpoints) Delete(ctx context.Context, name string, options metav1.DeleteOptions) error
- func (f *FailingEndpoints) Get(ctx context.Context, name string, options metav1.GetOptions) (*v1.Endpoint, error)
- func (f *FailingEndpoints) List(ctx context.Context, opts metav1.ListOptions) (*v1.EndpointList, error)
- func (f *FailingEndpoints) Update(ctx context.Context, e *v1.Endpoint, options metav1.UpdateOptions) (*v1.Endpoint, error)
- type FailingGateways
- func (f *FailingGateways) Create(ctx context.Context, g *v1.Gateway, options metav1.CreateOptions) (*v1.Gateway, error)
- func (f *FailingGateways) Delete(ctx context.Context, name string, options metav1.DeleteOptions) error
- func (f *FailingGateways) Get(ctx context.Context, name string, options metav1.GetOptions) (*v1.Gateway, error)
- func (f *FailingGateways) List(ctx context.Context, opts metav1.ListOptions) (*v1.GatewayList, error)
- func (f *FailingGateways) Update(ctx context.Context, g *v1.Gateway, options metav1.UpdateOptions) (*v1.Gateway, error)
- type FakeClusterGlobalEgressIPs
- func (c *FakeClusterGlobalEgressIPs) Create(ctx context.Context, ...) (result *submarineriov1.ClusterGlobalEgressIP, err error)
- func (c *FakeClusterGlobalEgressIPs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeClusterGlobalEgressIPs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeClusterGlobalEgressIPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.ClusterGlobalEgressIP, err error)
- func (c *FakeClusterGlobalEgressIPs) List(ctx context.Context, opts v1.ListOptions) (result *submarineriov1.ClusterGlobalEgressIPList, err error)
- func (c *FakeClusterGlobalEgressIPs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *submarineriov1.ClusterGlobalEgressIP, err error)
- func (c *FakeClusterGlobalEgressIPs) Update(ctx context.Context, ...) (result *submarineriov1.ClusterGlobalEgressIP, err error)
- func (c *FakeClusterGlobalEgressIPs) UpdateStatus(ctx context.Context, ...) (*submarineriov1.ClusterGlobalEgressIP, error)
- func (c *FakeClusterGlobalEgressIPs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeClusters
- func (c *FakeClusters) Create(ctx context.Context, cluster *submarineriov1.Cluster, opts v1.CreateOptions) (result *submarineriov1.Cluster, err error)
- func (c *FakeClusters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeClusters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.Cluster, err error)
- func (c *FakeClusters) List(ctx context.Context, opts v1.ListOptions) (result *submarineriov1.ClusterList, err error)
- func (c *FakeClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *submarineriov1.Cluster, err error)
- func (c *FakeClusters) Update(ctx context.Context, cluster *submarineriov1.Cluster, opts v1.UpdateOptions) (result *submarineriov1.Cluster, err error)
- func (c *FakeClusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeEndpoints
- func (c *FakeEndpoints) Create(ctx context.Context, endpoint *submarineriov1.Endpoint, opts v1.CreateOptions) (result *submarineriov1.Endpoint, err error)
- func (c *FakeEndpoints) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeEndpoints) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeEndpoints) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.Endpoint, err error)
- func (c *FakeEndpoints) List(ctx context.Context, opts v1.ListOptions) (result *submarineriov1.EndpointList, err error)
- func (c *FakeEndpoints) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *submarineriov1.Endpoint, err error)
- func (c *FakeEndpoints) Update(ctx context.Context, endpoint *submarineriov1.Endpoint, opts v1.UpdateOptions) (result *submarineriov1.Endpoint, err error)
- func (c *FakeEndpoints) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeGateways
- func (c *FakeGateways) Create(ctx context.Context, gateway *submarineriov1.Gateway, opts v1.CreateOptions) (result *submarineriov1.Gateway, err error)
- func (c *FakeGateways) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeGateways) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeGateways) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.Gateway, err error)
- func (c *FakeGateways) List(ctx context.Context, opts v1.ListOptions) (result *submarineriov1.GatewayList, err error)
- func (c *FakeGateways) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *submarineriov1.Gateway, err error)
- func (c *FakeGateways) Update(ctx context.Context, gateway *submarineriov1.Gateway, opts v1.UpdateOptions) (result *submarineriov1.Gateway, err error)
- func (c *FakeGateways) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeGlobalEgressIPs
- func (c *FakeGlobalEgressIPs) Create(ctx context.Context, globalEgressIP *submarineriov1.GlobalEgressIP, ...) (result *submarineriov1.GlobalEgressIP, err error)
- func (c *FakeGlobalEgressIPs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeGlobalEgressIPs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeGlobalEgressIPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.GlobalEgressIP, err error)
- func (c *FakeGlobalEgressIPs) List(ctx context.Context, opts v1.ListOptions) (result *submarineriov1.GlobalEgressIPList, err error)
- func (c *FakeGlobalEgressIPs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *submarineriov1.GlobalEgressIP, err error)
- func (c *FakeGlobalEgressIPs) Update(ctx context.Context, globalEgressIP *submarineriov1.GlobalEgressIP, ...) (result *submarineriov1.GlobalEgressIP, err error)
- func (c *FakeGlobalEgressIPs) UpdateStatus(ctx context.Context, globalEgressIP *submarineriov1.GlobalEgressIP, ...) (*submarineriov1.GlobalEgressIP, error)
- func (c *FakeGlobalEgressIPs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeGlobalIngressIPs
- func (c *FakeGlobalIngressIPs) Create(ctx context.Context, globalIngressIP *submarineriov1.GlobalIngressIP, ...) (result *submarineriov1.GlobalIngressIP, err error)
- func (c *FakeGlobalIngressIPs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeGlobalIngressIPs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeGlobalIngressIPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.GlobalIngressIP, err error)
- func (c *FakeGlobalIngressIPs) List(ctx context.Context, opts v1.ListOptions) (result *submarineriov1.GlobalIngressIPList, err error)
- func (c *FakeGlobalIngressIPs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *submarineriov1.GlobalIngressIP, err error)
- func (c *FakeGlobalIngressIPs) Update(ctx context.Context, globalIngressIP *submarineriov1.GlobalIngressIP, ...) (result *submarineriov1.GlobalIngressIP, err error)
- func (c *FakeGlobalIngressIPs) UpdateStatus(ctx context.Context, globalIngressIP *submarineriov1.GlobalIngressIP, ...) (*submarineriov1.GlobalIngressIP, error)
- func (c *FakeGlobalIngressIPs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeSubmarinerV1
- func (c *FakeSubmarinerV1) ClusterGlobalEgressIPs(namespace string) v1.ClusterGlobalEgressIPInterface
- func (c *FakeSubmarinerV1) Clusters(namespace string) v1.ClusterInterface
- func (c *FakeSubmarinerV1) Endpoints(namespace string) v1.EndpointInterface
- func (c *FakeSubmarinerV1) Gateways(namespace string) v1.GatewayInterface
- func (c *FakeSubmarinerV1) GlobalEgressIPs(namespace string) v1.GlobalEgressIPInterface
- func (c *FakeSubmarinerV1) GlobalIngressIPs(namespace string) v1.GlobalIngressIPInterface
- func (c *FakeSubmarinerV1) RESTClient() rest.Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FailingClusters ¶ added in v0.2.0
type FailingClusters struct { submarinerClientsetv1.ClusterInterface FailOnCreate error FailOnUpdate error FailOnDelete error FailOnGet error FailOnList error }
func (*FailingClusters) Create ¶ added in v0.2.0
func (f *FailingClusters) Create(ctx context.Context, e *v1.Cluster, options metav1.CreateOptions) (*v1.Cluster, error)
func (*FailingClusters) Delete ¶ added in v0.2.0
func (f *FailingClusters) Delete(ctx context.Context, name string, options metav1.DeleteOptions) error
func (*FailingClusters) Get ¶ added in v0.2.0
func (f *FailingClusters) Get(ctx context.Context, name string, options metav1.GetOptions) (*v1.Cluster, error)
func (*FailingClusters) List ¶ added in v0.2.0
func (f *FailingClusters) List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterList, error)
type FailingEndpoints ¶ added in v0.2.0
type FailingEndpoints struct { submarinerClientsetv1.EndpointInterface FailOnCreate error FailOnUpdate error FailOnDelete error FailOnGet error FailOnList error }
func (*FailingEndpoints) Create ¶ added in v0.2.0
func (f *FailingEndpoints) Create(ctx context.Context, e *v1.Endpoint, options metav1.CreateOptions) (*v1.Endpoint, error)
func (*FailingEndpoints) Delete ¶ added in v0.2.0
func (f *FailingEndpoints) Delete(ctx context.Context, name string, options metav1.DeleteOptions) error
func (*FailingEndpoints) Get ¶ added in v0.2.0
func (f *FailingEndpoints) Get(ctx context.Context, name string, options metav1.GetOptions) (*v1.Endpoint, error)
func (*FailingEndpoints) List ¶ added in v0.2.0
func (f *FailingEndpoints) List(ctx context.Context, opts metav1.ListOptions) (*v1.EndpointList, error)
type FailingGateways ¶ added in v0.5.0
type FailingGateways struct { submarinerClientsetv1.GatewayInterface FailOnCreate error FailOnUpdate error FailOnDelete error FailOnGet error FailOnList error }
func (*FailingGateways) Create ¶ added in v0.5.0
func (f *FailingGateways) Create(ctx context.Context, g *v1.Gateway, options metav1.CreateOptions) (*v1.Gateway, error)
func (*FailingGateways) Delete ¶ added in v0.5.0
func (f *FailingGateways) Delete(ctx context.Context, name string, options metav1.DeleteOptions) error
func (*FailingGateways) Get ¶ added in v0.5.0
func (f *FailingGateways) Get(ctx context.Context, name string, options metav1.GetOptions) (*v1.Gateway, error)
func (*FailingGateways) List ¶ added in v0.5.0
func (f *FailingGateways) List(ctx context.Context, opts metav1.ListOptions) (*v1.GatewayList, error)
type FakeClusterGlobalEgressIPs ¶ added in v0.10.1
type FakeClusterGlobalEgressIPs struct { Fake *FakeSubmarinerV1 // contains filtered or unexported fields }
FakeClusterGlobalEgressIPs implements ClusterGlobalEgressIPInterface
func (*FakeClusterGlobalEgressIPs) Create ¶ added in v0.10.1
func (c *FakeClusterGlobalEgressIPs) Create(ctx context.Context, clusterGlobalEgressIP *submarineriov1.ClusterGlobalEgressIP, opts v1.CreateOptions) (result *submarineriov1.ClusterGlobalEgressIP, err error)
Create takes the representation of a clusterGlobalEgressIP and creates it. Returns the server's representation of the clusterGlobalEgressIP, and an error, if there is any.
func (*FakeClusterGlobalEgressIPs) Delete ¶ added in v0.10.1
func (c *FakeClusterGlobalEgressIPs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the clusterGlobalEgressIP and deletes it. Returns an error if one occurs.
func (*FakeClusterGlobalEgressIPs) DeleteCollection ¶ added in v0.10.1
func (c *FakeClusterGlobalEgressIPs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusterGlobalEgressIPs) Get ¶ added in v0.10.1
func (c *FakeClusterGlobalEgressIPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.ClusterGlobalEgressIP, err error)
Get takes name of the clusterGlobalEgressIP, and returns the corresponding clusterGlobalEgressIP object, and an error if there is any.
func (*FakeClusterGlobalEgressIPs) List ¶ added in v0.10.1
func (c *FakeClusterGlobalEgressIPs) List(ctx context.Context, opts v1.ListOptions) (result *submarineriov1.ClusterGlobalEgressIPList, err error)
List takes label and field selectors, and returns the list of ClusterGlobalEgressIPs that match those selectors.
func (*FakeClusterGlobalEgressIPs) Patch ¶ added in v0.10.1
func (c *FakeClusterGlobalEgressIPs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *submarineriov1.ClusterGlobalEgressIP, err error)
Patch applies the patch and returns the patched clusterGlobalEgressIP.
func (*FakeClusterGlobalEgressIPs) Update ¶ added in v0.10.1
func (c *FakeClusterGlobalEgressIPs) Update(ctx context.Context, clusterGlobalEgressIP *submarineriov1.ClusterGlobalEgressIP, opts v1.UpdateOptions) (result *submarineriov1.ClusterGlobalEgressIP, err error)
Update takes the representation of a clusterGlobalEgressIP and updates it. Returns the server's representation of the clusterGlobalEgressIP, and an error, if there is any.
func (*FakeClusterGlobalEgressIPs) UpdateStatus ¶ added in v0.10.1
func (c *FakeClusterGlobalEgressIPs) UpdateStatus(ctx context.Context, clusterGlobalEgressIP *submarineriov1.ClusterGlobalEgressIP, opts v1.UpdateOptions) (*submarineriov1.ClusterGlobalEgressIP, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeClusterGlobalEgressIPs) Watch ¶ added in v0.10.1
func (c *FakeClusterGlobalEgressIPs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterGlobalEgressIPs.
type FakeClusters ¶
type FakeClusters struct { Fake *FakeSubmarinerV1 // contains filtered or unexported fields }
FakeClusters implements ClusterInterface
func (*FakeClusters) Create ¶
func (c *FakeClusters) Create(ctx context.Context, cluster *submarineriov1.Cluster, opts v1.CreateOptions) (result *submarineriov1.Cluster, err error)
Create takes the representation of a cluster and creates it. Returns the server's representation of the cluster, and an error, if there is any.
func (*FakeClusters) Delete ¶
func (c *FakeClusters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the cluster and deletes it. Returns an error if one occurs.
func (*FakeClusters) DeleteCollection ¶
func (c *FakeClusters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusters) Get ¶
func (c *FakeClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.Cluster, err error)
Get takes name of the cluster, and returns the corresponding cluster object, and an error if there is any.
func (*FakeClusters) List ¶
func (c *FakeClusters) List(ctx context.Context, opts v1.ListOptions) (result *submarineriov1.ClusterList, err error)
List takes label and field selectors, and returns the list of Clusters that match those selectors.
func (*FakeClusters) Patch ¶
func (c *FakeClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *submarineriov1.Cluster, err error)
Patch applies the patch and returns the patched cluster.
func (*FakeClusters) Update ¶
func (c *FakeClusters) Update(ctx context.Context, cluster *submarineriov1.Cluster, opts v1.UpdateOptions) (result *submarineriov1.Cluster, err error)
Update takes the representation of a cluster and updates it. Returns the server's representation of the cluster, and an error, if there is any.
func (*FakeClusters) Watch ¶
func (c *FakeClusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusters.
type FakeEndpoints ¶
type FakeEndpoints struct { Fake *FakeSubmarinerV1 // contains filtered or unexported fields }
FakeEndpoints implements EndpointInterface
func (*FakeEndpoints) Create ¶
func (c *FakeEndpoints) Create(ctx context.Context, endpoint *submarineriov1.Endpoint, opts v1.CreateOptions) (result *submarineriov1.Endpoint, err error)
Create takes the representation of a endpoint and creates it. Returns the server's representation of the endpoint, and an error, if there is any.
func (*FakeEndpoints) Delete ¶
func (c *FakeEndpoints) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the endpoint and deletes it. Returns an error if one occurs.
func (*FakeEndpoints) DeleteCollection ¶
func (c *FakeEndpoints) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeEndpoints) Get ¶
func (c *FakeEndpoints) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.Endpoint, err error)
Get takes name of the endpoint, and returns the corresponding endpoint object, and an error if there is any.
func (*FakeEndpoints) List ¶
func (c *FakeEndpoints) List(ctx context.Context, opts v1.ListOptions) (result *submarineriov1.EndpointList, err error)
List takes label and field selectors, and returns the list of Endpoints that match those selectors.
func (*FakeEndpoints) Patch ¶
func (c *FakeEndpoints) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *submarineriov1.Endpoint, err error)
Patch applies the patch and returns the patched endpoint.
func (*FakeEndpoints) Update ¶
func (c *FakeEndpoints) Update(ctx context.Context, endpoint *submarineriov1.Endpoint, opts v1.UpdateOptions) (result *submarineriov1.Endpoint, err error)
Update takes the representation of a endpoint and updates it. Returns the server's representation of the endpoint, and an error, if there is any.
func (*FakeEndpoints) Watch ¶
func (c *FakeEndpoints) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested endpoints.
type FakeGateways ¶ added in v0.3.0
type FakeGateways struct { Fake *FakeSubmarinerV1 // contains filtered or unexported fields }
FakeGateways implements GatewayInterface
func (*FakeGateways) Create ¶ added in v0.3.0
func (c *FakeGateways) Create(ctx context.Context, gateway *submarineriov1.Gateway, opts v1.CreateOptions) (result *submarineriov1.Gateway, err error)
Create takes the representation of a gateway and creates it. Returns the server's representation of the gateway, and an error, if there is any.
func (*FakeGateways) Delete ¶ added in v0.3.0
func (c *FakeGateways) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the gateway and deletes it. Returns an error if one occurs.
func (*FakeGateways) DeleteCollection ¶ added in v0.3.0
func (c *FakeGateways) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeGateways) Get ¶ added in v0.3.0
func (c *FakeGateways) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.Gateway, err error)
Get takes name of the gateway, and returns the corresponding gateway object, and an error if there is any.
func (*FakeGateways) List ¶ added in v0.3.0
func (c *FakeGateways) List(ctx context.Context, opts v1.ListOptions) (result *submarineriov1.GatewayList, err error)
List takes label and field selectors, and returns the list of Gateways that match those selectors.
func (*FakeGateways) Patch ¶ added in v0.3.0
func (c *FakeGateways) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *submarineriov1.Gateway, err error)
Patch applies the patch and returns the patched gateway.
func (*FakeGateways) Update ¶ added in v0.3.0
func (c *FakeGateways) Update(ctx context.Context, gateway *submarineriov1.Gateway, opts v1.UpdateOptions) (result *submarineriov1.Gateway, err error)
Update takes the representation of a gateway and updates it. Returns the server's representation of the gateway, and an error, if there is any.
func (*FakeGateways) Watch ¶ added in v0.3.0
func (c *FakeGateways) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested gateways.
type FakeGlobalEgressIPs ¶ added in v0.10.1
type FakeGlobalEgressIPs struct { Fake *FakeSubmarinerV1 // contains filtered or unexported fields }
FakeGlobalEgressIPs implements GlobalEgressIPInterface
func (*FakeGlobalEgressIPs) Create ¶ added in v0.10.1
func (c *FakeGlobalEgressIPs) Create(ctx context.Context, globalEgressIP *submarineriov1.GlobalEgressIP, opts v1.CreateOptions) (result *submarineriov1.GlobalEgressIP, err error)
Create takes the representation of a globalEgressIP and creates it. Returns the server's representation of the globalEgressIP, and an error, if there is any.
func (*FakeGlobalEgressIPs) Delete ¶ added in v0.10.1
func (c *FakeGlobalEgressIPs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the globalEgressIP and deletes it. Returns an error if one occurs.
func (*FakeGlobalEgressIPs) DeleteCollection ¶ added in v0.10.1
func (c *FakeGlobalEgressIPs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeGlobalEgressIPs) Get ¶ added in v0.10.1
func (c *FakeGlobalEgressIPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.GlobalEgressIP, err error)
Get takes name of the globalEgressIP, and returns the corresponding globalEgressIP object, and an error if there is any.
func (*FakeGlobalEgressIPs) List ¶ added in v0.10.1
func (c *FakeGlobalEgressIPs) List(ctx context.Context, opts v1.ListOptions) (result *submarineriov1.GlobalEgressIPList, err error)
List takes label and field selectors, and returns the list of GlobalEgressIPs that match those selectors.
func (*FakeGlobalEgressIPs) Patch ¶ added in v0.10.1
func (c *FakeGlobalEgressIPs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *submarineriov1.GlobalEgressIP, err error)
Patch applies the patch and returns the patched globalEgressIP.
func (*FakeGlobalEgressIPs) Update ¶ added in v0.10.1
func (c *FakeGlobalEgressIPs) Update(ctx context.Context, globalEgressIP *submarineriov1.GlobalEgressIP, opts v1.UpdateOptions) (result *submarineriov1.GlobalEgressIP, err error)
Update takes the representation of a globalEgressIP and updates it. Returns the server's representation of the globalEgressIP, and an error, if there is any.
func (*FakeGlobalEgressIPs) UpdateStatus ¶ added in v0.10.1
func (c *FakeGlobalEgressIPs) UpdateStatus(ctx context.Context, globalEgressIP *submarineriov1.GlobalEgressIP, opts v1.UpdateOptions) (*submarineriov1.GlobalEgressIP, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeGlobalEgressIPs) Watch ¶ added in v0.10.1
func (c *FakeGlobalEgressIPs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested globalEgressIPs.
type FakeGlobalIngressIPs ¶ added in v0.10.1
type FakeGlobalIngressIPs struct { Fake *FakeSubmarinerV1 // contains filtered or unexported fields }
FakeGlobalIngressIPs implements GlobalIngressIPInterface
func (*FakeGlobalIngressIPs) Create ¶ added in v0.10.1
func (c *FakeGlobalIngressIPs) Create(ctx context.Context, globalIngressIP *submarineriov1.GlobalIngressIP, opts v1.CreateOptions) (result *submarineriov1.GlobalIngressIP, err error)
Create takes the representation of a globalIngressIP and creates it. Returns the server's representation of the globalIngressIP, and an error, if there is any.
func (*FakeGlobalIngressIPs) Delete ¶ added in v0.10.1
func (c *FakeGlobalIngressIPs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the globalIngressIP and deletes it. Returns an error if one occurs.
func (*FakeGlobalIngressIPs) DeleteCollection ¶ added in v0.10.1
func (c *FakeGlobalIngressIPs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeGlobalIngressIPs) Get ¶ added in v0.10.1
func (c *FakeGlobalIngressIPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.GlobalIngressIP, err error)
Get takes name of the globalIngressIP, and returns the corresponding globalIngressIP object, and an error if there is any.
func (*FakeGlobalIngressIPs) List ¶ added in v0.10.1
func (c *FakeGlobalIngressIPs) List(ctx context.Context, opts v1.ListOptions) (result *submarineriov1.GlobalIngressIPList, err error)
List takes label and field selectors, and returns the list of GlobalIngressIPs that match those selectors.
func (*FakeGlobalIngressIPs) Patch ¶ added in v0.10.1
func (c *FakeGlobalIngressIPs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *submarineriov1.GlobalIngressIP, err error)
Patch applies the patch and returns the patched globalIngressIP.
func (*FakeGlobalIngressIPs) Update ¶ added in v0.10.1
func (c *FakeGlobalIngressIPs) Update(ctx context.Context, globalIngressIP *submarineriov1.GlobalIngressIP, opts v1.UpdateOptions) (result *submarineriov1.GlobalIngressIP, err error)
Update takes the representation of a globalIngressIP and updates it. Returns the server's representation of the globalIngressIP, and an error, if there is any.
func (*FakeGlobalIngressIPs) UpdateStatus ¶ added in v0.10.1
func (c *FakeGlobalIngressIPs) UpdateStatus(ctx context.Context, globalIngressIP *submarineriov1.GlobalIngressIP, opts v1.UpdateOptions) (*submarineriov1.GlobalIngressIP, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeGlobalIngressIPs) Watch ¶ added in v0.10.1
func (c *FakeGlobalIngressIPs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested globalIngressIPs.
type FakeSubmarinerV1 ¶
func (*FakeSubmarinerV1) ClusterGlobalEgressIPs ¶ added in v0.10.1
func (c *FakeSubmarinerV1) ClusterGlobalEgressIPs(namespace string) v1.ClusterGlobalEgressIPInterface
func (*FakeSubmarinerV1) Clusters ¶
func (c *FakeSubmarinerV1) Clusters(namespace string) v1.ClusterInterface
func (*FakeSubmarinerV1) Endpoints ¶
func (c *FakeSubmarinerV1) Endpoints(namespace string) v1.EndpointInterface
func (*FakeSubmarinerV1) Gateways ¶ added in v0.3.0
func (c *FakeSubmarinerV1) Gateways(namespace string) v1.GatewayInterface
func (*FakeSubmarinerV1) GlobalEgressIPs ¶ added in v0.10.1
func (c *FakeSubmarinerV1) GlobalEgressIPs(namespace string) v1.GlobalEgressIPInterface
func (*FakeSubmarinerV1) GlobalIngressIPs ¶ added in v0.10.1
func (c *FakeSubmarinerV1) GlobalIngressIPs(namespace string) v1.GlobalIngressIPInterface
func (*FakeSubmarinerV1) RESTClient ¶
func (c *FakeSubmarinerV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.