Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FailingClusters
- func (f *FailingClusters) Create(e *v1.Cluster) (*v1.Cluster, error)
- func (f *FailingClusters) Delete(name string, options *metav1.DeleteOptions) error
- func (f *FailingClusters) Get(name string, options metav1.GetOptions) (*v1.Cluster, error)
- func (f *FailingClusters) List(opts metav1.ListOptions) (*v1.ClusterList, error)
- func (f *FailingClusters) Update(e *v1.Cluster) (*v1.Cluster, error)
- type FailingEndpoints
- func (f *FailingEndpoints) Create(e *v1.Endpoint) (*v1.Endpoint, error)
- func (f *FailingEndpoints) Delete(name string, options *metav1.DeleteOptions) error
- func (f *FailingEndpoints) Get(name string, options metav1.GetOptions) (*v1.Endpoint, error)
- func (f *FailingEndpoints) List(opts metav1.ListOptions) (*v1.EndpointList, error)
- func (f *FailingEndpoints) Update(e *v1.Endpoint) (*v1.Endpoint, error)
- type FailingGateways
- func (f *FailingGateways) Create(g *v1.Gateway) (*v1.Gateway, error)
- func (f *FailingGateways) Delete(name string, options *metav1.DeleteOptions) error
- func (f *FailingGateways) Get(name string, options metav1.GetOptions) (*v1.Gateway, error)
- func (f *FailingGateways) List(opts metav1.ListOptions) (*v1.GatewayList, error)
- func (f *FailingGateways) Update(g *v1.Gateway) (*v1.Gateway, error)
- type FakeClusters
- func (c *FakeClusters) Create(cluster *submarineriov1.Cluster) (result *submarineriov1.Cluster, err error)
- func (c *FakeClusters) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeClusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeClusters) Get(name string, options v1.GetOptions) (result *submarineriov1.Cluster, err error)
- func (c *FakeClusters) List(opts v1.ListOptions) (result *submarineriov1.ClusterList, err error)
- func (c *FakeClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *submarineriov1.Cluster, err error)
- func (c *FakeClusters) Update(cluster *submarineriov1.Cluster) (result *submarineriov1.Cluster, err error)
- func (c *FakeClusters) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeEndpoints
- func (c *FakeEndpoints) Create(endpoint *submarineriov1.Endpoint) (result *submarineriov1.Endpoint, err error)
- func (c *FakeEndpoints) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeEndpoints) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeEndpoints) Get(name string, options v1.GetOptions) (result *submarineriov1.Endpoint, err error)
- func (c *FakeEndpoints) List(opts v1.ListOptions) (result *submarineriov1.EndpointList, err error)
- func (c *FakeEndpoints) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *submarineriov1.Endpoint, err error)
- func (c *FakeEndpoints) Update(endpoint *submarineriov1.Endpoint) (result *submarineriov1.Endpoint, err error)
- func (c *FakeEndpoints) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeGateways
- func (c *FakeGateways) Create(gateway *submarineriov1.Gateway) (result *submarineriov1.Gateway, err error)
- func (c *FakeGateways) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeGateways) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeGateways) Get(name string, options v1.GetOptions) (result *submarineriov1.Gateway, err error)
- func (c *FakeGateways) List(opts v1.ListOptions) (result *submarineriov1.GatewayList, err error)
- func (c *FakeGateways) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *submarineriov1.Gateway, err error)
- func (c *FakeGateways) Update(gateway *submarineriov1.Gateway) (result *submarineriov1.Gateway, err error)
- func (c *FakeGateways) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeSubmarinerV1
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) Delete ¶ added in v0.2.0
func (f *FailingClusters) Delete(name string, options *metav1.DeleteOptions) error
func (*FailingClusters) Get ¶ added in v0.2.0
func (f *FailingClusters) Get(name string, options metav1.GetOptions) (*v1.Cluster, error)
func (*FailingClusters) List ¶ added in v0.2.0
func (f *FailingClusters) List(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) Delete ¶ added in v0.2.0
func (f *FailingEndpoints) Delete(name string, options *metav1.DeleteOptions) error
func (*FailingEndpoints) Get ¶ added in v0.2.0
func (f *FailingEndpoints) Get(name string, options metav1.GetOptions) (*v1.Endpoint, error)
func (*FailingEndpoints) List ¶ added in v0.2.0
func (f *FailingEndpoints) List(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) Delete ¶ added in v0.5.0
func (f *FailingGateways) Delete(name string, options *metav1.DeleteOptions) error
func (*FailingGateways) Get ¶ added in v0.5.0
func (f *FailingGateways) Get(name string, options metav1.GetOptions) (*v1.Gateway, error)
func (*FailingGateways) List ¶ added in v0.5.0
func (f *FailingGateways) List(opts metav1.ListOptions) (*v1.GatewayList, error)
type FakeClusters ¶
type FakeClusters struct { Fake *FakeSubmarinerV1 // contains filtered or unexported fields }
FakeClusters implements ClusterInterface
func (*FakeClusters) Create ¶
func (c *FakeClusters) Create(cluster *submarineriov1.Cluster) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusters) Get ¶
func (c *FakeClusters) Get(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(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *submarineriov1.Cluster, err error)
Patch applies the patch and returns the patched cluster.
func (*FakeClusters) Update ¶
func (c *FakeClusters) Update(cluster *submarineriov1.Cluster) (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(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(endpoint *submarineriov1.Endpoint) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeEndpoints) Get ¶
func (c *FakeEndpoints) Get(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(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *submarineriov1.Endpoint, err error)
Patch applies the patch and returns the patched endpoint.
func (*FakeEndpoints) Update ¶
func (c *FakeEndpoints) Update(endpoint *submarineriov1.Endpoint) (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(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(gateway *submarineriov1.Gateway) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeGateways) Get ¶ added in v0.3.0
func (c *FakeGateways) Get(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(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(name string, pt types.PatchType, data []byte, 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(gateway *submarineriov1.Gateway) (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(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested gateways.
type FakeSubmarinerV1 ¶
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) RESTClient ¶
func (c *FakeSubmarinerV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.