Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeClusterGroups
- func (c *FakeClusterGroups) Create(ctx context.Context, clusterGroup *v1alpha2.ClusterGroup, ...) (result *v1alpha2.ClusterGroup, err error)
- func (c *FakeClusterGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeClusterGroups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeClusterGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ClusterGroup, err error)
- func (c *FakeClusterGroups) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ClusterGroupList, err error)
- func (c *FakeClusterGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha2.ClusterGroup, err error)
- func (c *FakeClusterGroups) Update(ctx context.Context, clusterGroup *v1alpha2.ClusterGroup, ...) (result *v1alpha2.ClusterGroup, err error)
- func (c *FakeClusterGroups) UpdateStatus(ctx context.Context, clusterGroup *v1alpha2.ClusterGroup, ...) (*v1alpha2.ClusterGroup, error)
- func (c *FakeClusterGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeCrdV1alpha2
- func (c *FakeCrdV1alpha2) ClusterGroups() v1alpha2.ClusterGroupInterface
- func (c *FakeCrdV1alpha2) Egresses() v1alpha2.EgressInterface
- func (c *FakeCrdV1alpha2) ExternalEntities(namespace string) v1alpha2.ExternalEntityInterface
- func (c *FakeCrdV1alpha2) ExternalIPPools() v1alpha2.ExternalIPPoolInterface
- func (c *FakeCrdV1alpha2) RESTClient() rest.Interface
- type FakeEgresses
- func (c *FakeEgresses) Create(ctx context.Context, egress *v1alpha2.Egress, opts v1.CreateOptions) (result *v1alpha2.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 *v1alpha2.Egress, err error)
- func (c *FakeEgresses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.EgressList, err error)
- func (c *FakeEgresses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha2.Egress, err error)
- func (c *FakeEgresses) Update(ctx context.Context, egress *v1alpha2.Egress, opts v1.UpdateOptions) (result *v1alpha2.Egress, err error)
- func (c *FakeEgresses) UpdateStatus(ctx context.Context, egress *v1alpha2.Egress, opts v1.UpdateOptions) (*v1alpha2.Egress, error)
- func (c *FakeEgresses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeExternalEntities
- func (c *FakeExternalEntities) Create(ctx context.Context, externalEntity *v1alpha2.ExternalEntity, ...) (result *v1alpha2.ExternalEntity, err error)
- func (c *FakeExternalEntities) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeExternalEntities) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeExternalEntities) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ExternalEntity, err error)
- func (c *FakeExternalEntities) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ExternalEntityList, err error)
- func (c *FakeExternalEntities) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha2.ExternalEntity, err error)
- func (c *FakeExternalEntities) Update(ctx context.Context, externalEntity *v1alpha2.ExternalEntity, ...) (result *v1alpha2.ExternalEntity, err error)
- func (c *FakeExternalEntities) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeExternalIPPools
- func (c *FakeExternalIPPools) Create(ctx context.Context, externalIPPool *v1alpha2.ExternalIPPool, ...) (result *v1alpha2.ExternalIPPool, err error)
- func (c *FakeExternalIPPools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeExternalIPPools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeExternalIPPools) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ExternalIPPool, err error)
- func (c *FakeExternalIPPools) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ExternalIPPoolList, err error)
- func (c *FakeExternalIPPools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha2.ExternalIPPool, err error)
- func (c *FakeExternalIPPools) Update(ctx context.Context, externalIPPool *v1alpha2.ExternalIPPool, ...) (result *v1alpha2.ExternalIPPool, err error)
- func (c *FakeExternalIPPools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClusterGroups ¶
type FakeClusterGroups struct {
Fake *FakeCrdV1alpha2
}
FakeClusterGroups implements ClusterGroupInterface
func (*FakeClusterGroups) Create ¶
func (c *FakeClusterGroups) Create(ctx context.Context, clusterGroup *v1alpha2.ClusterGroup, opts v1.CreateOptions) (result *v1alpha2.ClusterGroup, err error)
Create takes the representation of a clusterGroup and creates it. Returns the server's representation of the clusterGroup, and an error, if there is any.
func (*FakeClusterGroups) Delete ¶
func (c *FakeClusterGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the clusterGroup and deletes it. Returns an error if one occurs.
func (*FakeClusterGroups) DeleteCollection ¶
func (c *FakeClusterGroups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusterGroups) Get ¶
func (c *FakeClusterGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ClusterGroup, err error)
Get takes name of the clusterGroup, and returns the corresponding clusterGroup object, and an error if there is any.
func (*FakeClusterGroups) List ¶
func (c *FakeClusterGroups) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ClusterGroupList, err error)
List takes label and field selectors, and returns the list of ClusterGroups that match those selectors.
func (*FakeClusterGroups) Patch ¶
func (c *FakeClusterGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.ClusterGroup, err error)
Patch applies the patch and returns the patched clusterGroup.
func (*FakeClusterGroups) Update ¶
func (c *FakeClusterGroups) Update(ctx context.Context, clusterGroup *v1alpha2.ClusterGroup, opts v1.UpdateOptions) (result *v1alpha2.ClusterGroup, err error)
Update takes the representation of a clusterGroup and updates it. Returns the server's representation of the clusterGroup, and an error, if there is any.
func (*FakeClusterGroups) UpdateStatus ¶
func (c *FakeClusterGroups) UpdateStatus(ctx context.Context, clusterGroup *v1alpha2.ClusterGroup, opts v1.UpdateOptions) (*v1alpha2.ClusterGroup, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeClusterGroups) Watch ¶
func (c *FakeClusterGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterGroups.
type FakeCrdV1alpha2 ¶
func (*FakeCrdV1alpha2) ClusterGroups ¶
func (c *FakeCrdV1alpha2) ClusterGroups() v1alpha2.ClusterGroupInterface
func (*FakeCrdV1alpha2) Egresses ¶
func (c *FakeCrdV1alpha2) Egresses() v1alpha2.EgressInterface
func (*FakeCrdV1alpha2) ExternalEntities ¶
func (c *FakeCrdV1alpha2) ExternalEntities(namespace string) v1alpha2.ExternalEntityInterface
func (*FakeCrdV1alpha2) ExternalIPPools ¶ added in v1.2.0
func (c *FakeCrdV1alpha2) ExternalIPPools() v1alpha2.ExternalIPPoolInterface
func (*FakeCrdV1alpha2) RESTClient ¶
func (c *FakeCrdV1alpha2) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeEgresses ¶
type FakeEgresses struct {
Fake *FakeCrdV1alpha2
}
FakeEgresses implements EgressInterface
func (*FakeEgresses) Create ¶
func (c *FakeEgresses) Create(ctx context.Context, egress *v1alpha2.Egress, opts v1.CreateOptions) (result *v1alpha2.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 *v1alpha2.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 *v1alpha2.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 *v1alpha2.Egress, err error)
Patch applies the patch and returns the patched egress.
func (*FakeEgresses) Update ¶
func (c *FakeEgresses) Update(ctx context.Context, egress *v1alpha2.Egress, opts v1.UpdateOptions) (result *v1alpha2.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) UpdateStatus ¶ added in v1.2.0
func (c *FakeEgresses) UpdateStatus(ctx context.Context, egress *v1alpha2.Egress, opts v1.UpdateOptions) (*v1alpha2.Egress, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
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 FakeExternalEntities ¶
type FakeExternalEntities struct { Fake *FakeCrdV1alpha2 // contains filtered or unexported fields }
FakeExternalEntities implements ExternalEntityInterface
func (*FakeExternalEntities) Create ¶
func (c *FakeExternalEntities) Create(ctx context.Context, externalEntity *v1alpha2.ExternalEntity, opts v1.CreateOptions) (result *v1alpha2.ExternalEntity, err error)
Create takes the representation of a externalEntity and creates it. Returns the server's representation of the externalEntity, and an error, if there is any.
func (*FakeExternalEntities) Delete ¶
func (c *FakeExternalEntities) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the externalEntity and deletes it. Returns an error if one occurs.
func (*FakeExternalEntities) DeleteCollection ¶
func (c *FakeExternalEntities) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeExternalEntities) Get ¶
func (c *FakeExternalEntities) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ExternalEntity, err error)
Get takes name of the externalEntity, and returns the corresponding externalEntity object, and an error if there is any.
func (*FakeExternalEntities) List ¶
func (c *FakeExternalEntities) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ExternalEntityList, err error)
List takes label and field selectors, and returns the list of ExternalEntities that match those selectors.
func (*FakeExternalEntities) Patch ¶
func (c *FakeExternalEntities) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.ExternalEntity, err error)
Patch applies the patch and returns the patched externalEntity.
func (*FakeExternalEntities) Update ¶
func (c *FakeExternalEntities) Update(ctx context.Context, externalEntity *v1alpha2.ExternalEntity, opts v1.UpdateOptions) (result *v1alpha2.ExternalEntity, err error)
Update takes the representation of a externalEntity and updates it. Returns the server's representation of the externalEntity, and an error, if there is any.
func (*FakeExternalEntities) Watch ¶
func (c *FakeExternalEntities) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested externalEntities.
type FakeExternalIPPools ¶ added in v1.2.0
type FakeExternalIPPools struct {
Fake *FakeCrdV1alpha2
}
FakeExternalIPPools implements ExternalIPPoolInterface
func (*FakeExternalIPPools) Create ¶ added in v1.2.0
func (c *FakeExternalIPPools) Create(ctx context.Context, externalIPPool *v1alpha2.ExternalIPPool, opts v1.CreateOptions) (result *v1alpha2.ExternalIPPool, err error)
Create takes the representation of a externalIPPool and creates it. Returns the server's representation of the externalIPPool, and an error, if there is any.
func (*FakeExternalIPPools) Delete ¶ added in v1.2.0
func (c *FakeExternalIPPools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the externalIPPool and deletes it. Returns an error if one occurs.
func (*FakeExternalIPPools) DeleteCollection ¶ added in v1.2.0
func (c *FakeExternalIPPools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeExternalIPPools) Get ¶ added in v1.2.0
func (c *FakeExternalIPPools) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ExternalIPPool, err error)
Get takes name of the externalIPPool, and returns the corresponding externalIPPool object, and an error if there is any.
func (*FakeExternalIPPools) List ¶ added in v1.2.0
func (c *FakeExternalIPPools) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ExternalIPPoolList, err error)
List takes label and field selectors, and returns the list of ExternalIPPools that match those selectors.
func (*FakeExternalIPPools) Patch ¶ added in v1.2.0
func (c *FakeExternalIPPools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.ExternalIPPool, err error)
Patch applies the patch and returns the patched externalIPPool.
func (*FakeExternalIPPools) Update ¶ added in v1.2.0
func (c *FakeExternalIPPools) Update(ctx context.Context, externalIPPool *v1alpha2.ExternalIPPool, opts v1.UpdateOptions) (result *v1alpha2.ExternalIPPool, err error)
Update takes the representation of a externalIPPool and updates it. Returns the server's representation of the externalIPPool, and an error, if there is any.
func (*FakeExternalIPPools) Watch ¶ added in v1.2.0
func (c *FakeExternalIPPools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested externalIPPools.