Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeApisixClusterConfigs
- func (c *FakeApisixClusterConfigs) Create(ctx context.Context, apisixClusterConfig *v2alpha1.ApisixClusterConfig, ...) (result *v2alpha1.ApisixClusterConfig, err error)
- func (c *FakeApisixClusterConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeApisixClusterConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeApisixClusterConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.ApisixClusterConfig, err error)
- func (c *FakeApisixClusterConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.ApisixClusterConfigList, err error)
- func (c *FakeApisixClusterConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v2alpha1.ApisixClusterConfig, err error)
- func (c *FakeApisixClusterConfigs) Update(ctx context.Context, apisixClusterConfig *v2alpha1.ApisixClusterConfig, ...) (result *v2alpha1.ApisixClusterConfig, err error)
- func (c *FakeApisixClusterConfigs) UpdateStatus(ctx context.Context, apisixClusterConfig *v2alpha1.ApisixClusterConfig, ...) (*v2alpha1.ApisixClusterConfig, error)
- func (c *FakeApisixClusterConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeApisixConsumers
- func (c *FakeApisixConsumers) Create(ctx context.Context, apisixConsumer *v2alpha1.ApisixConsumer, ...) (result *v2alpha1.ApisixConsumer, err error)
- func (c *FakeApisixConsumers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeApisixConsumers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeApisixConsumers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.ApisixConsumer, err error)
- func (c *FakeApisixConsumers) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.ApisixConsumerList, err error)
- func (c *FakeApisixConsumers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v2alpha1.ApisixConsumer, err error)
- func (c *FakeApisixConsumers) Update(ctx context.Context, apisixConsumer *v2alpha1.ApisixConsumer, ...) (result *v2alpha1.ApisixConsumer, err error)
- func (c *FakeApisixConsumers) UpdateStatus(ctx context.Context, apisixConsumer *v2alpha1.ApisixConsumer, ...) (*v2alpha1.ApisixConsumer, error)
- func (c *FakeApisixConsumers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeApisixRoutes
- func (c *FakeApisixRoutes) Create(ctx context.Context, apisixRoute *v2alpha1.ApisixRoute, opts v1.CreateOptions) (result *v2alpha1.ApisixRoute, err error)
- func (c *FakeApisixRoutes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeApisixRoutes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeApisixRoutes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.ApisixRoute, err error)
- func (c *FakeApisixRoutes) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.ApisixRouteList, err error)
- func (c *FakeApisixRoutes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v2alpha1.ApisixRoute, err error)
- func (c *FakeApisixRoutes) Update(ctx context.Context, apisixRoute *v2alpha1.ApisixRoute, opts v1.UpdateOptions) (result *v2alpha1.ApisixRoute, err error)
- func (c *FakeApisixRoutes) UpdateStatus(ctx context.Context, apisixRoute *v2alpha1.ApisixRoute, opts v1.UpdateOptions) (*v2alpha1.ApisixRoute, error)
- func (c *FakeApisixRoutes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeApisixV2alpha1
- func (c *FakeApisixV2alpha1) ApisixClusterConfigs() v2alpha1.ApisixClusterConfigInterface
- func (c *FakeApisixV2alpha1) ApisixConsumers(namespace string) v2alpha1.ApisixConsumerInterface
- func (c *FakeApisixV2alpha1) ApisixRoutes(namespace string) v2alpha1.ApisixRouteInterface
- func (c *FakeApisixV2alpha1) RESTClient() rest.Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeApisixClusterConfigs ¶ added in v1.0.0
type FakeApisixClusterConfigs struct {
Fake *FakeApisixV2alpha1
}
FakeApisixClusterConfigs implements ApisixClusterConfigInterface
func (*FakeApisixClusterConfigs) Create ¶ added in v1.0.0
func (c *FakeApisixClusterConfigs) Create(ctx context.Context, apisixClusterConfig *v2alpha1.ApisixClusterConfig, opts v1.CreateOptions) (result *v2alpha1.ApisixClusterConfig, err error)
Create takes the representation of a apisixClusterConfig and creates it. Returns the server's representation of the apisixClusterConfig, and an error, if there is any.
func (*FakeApisixClusterConfigs) Delete ¶ added in v1.0.0
func (c *FakeApisixClusterConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the apisixClusterConfig and deletes it. Returns an error if one occurs.
func (*FakeApisixClusterConfigs) DeleteCollection ¶ added in v1.0.0
func (c *FakeApisixClusterConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeApisixClusterConfigs) Get ¶ added in v1.0.0
func (c *FakeApisixClusterConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.ApisixClusterConfig, err error)
Get takes name of the apisixClusterConfig, and returns the corresponding apisixClusterConfig object, and an error if there is any.
func (*FakeApisixClusterConfigs) List ¶ added in v1.0.0
func (c *FakeApisixClusterConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.ApisixClusterConfigList, err error)
List takes label and field selectors, and returns the list of ApisixClusterConfigs that match those selectors.
func (*FakeApisixClusterConfigs) Patch ¶ added in v1.0.0
func (c *FakeApisixClusterConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.ApisixClusterConfig, err error)
Patch applies the patch and returns the patched apisixClusterConfig.
func (*FakeApisixClusterConfigs) Update ¶ added in v1.0.0
func (c *FakeApisixClusterConfigs) Update(ctx context.Context, apisixClusterConfig *v2alpha1.ApisixClusterConfig, opts v1.UpdateOptions) (result *v2alpha1.ApisixClusterConfig, err error)
Update takes the representation of a apisixClusterConfig and updates it. Returns the server's representation of the apisixClusterConfig, and an error, if there is any.
func (*FakeApisixClusterConfigs) UpdateStatus ¶ added in v1.0.0
func (c *FakeApisixClusterConfigs) UpdateStatus(ctx context.Context, apisixClusterConfig *v2alpha1.ApisixClusterConfig, opts v1.UpdateOptions) (*v2alpha1.ApisixClusterConfig, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeApisixClusterConfigs) Watch ¶ added in v1.0.0
func (c *FakeApisixClusterConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested apisixClusterConfigs.
type FakeApisixConsumers ¶ added in v1.0.0
type FakeApisixConsumers struct { Fake *FakeApisixV2alpha1 // contains filtered or unexported fields }
FakeApisixConsumers implements ApisixConsumerInterface
func (*FakeApisixConsumers) Create ¶ added in v1.0.0
func (c *FakeApisixConsumers) Create(ctx context.Context, apisixConsumer *v2alpha1.ApisixConsumer, opts v1.CreateOptions) (result *v2alpha1.ApisixConsumer, err error)
Create takes the representation of a apisixConsumer and creates it. Returns the server's representation of the apisixConsumer, and an error, if there is any.
func (*FakeApisixConsumers) Delete ¶ added in v1.0.0
func (c *FakeApisixConsumers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the apisixConsumer and deletes it. Returns an error if one occurs.
func (*FakeApisixConsumers) DeleteCollection ¶ added in v1.0.0
func (c *FakeApisixConsumers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeApisixConsumers) Get ¶ added in v1.0.0
func (c *FakeApisixConsumers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.ApisixConsumer, err error)
Get takes name of the apisixConsumer, and returns the corresponding apisixConsumer object, and an error if there is any.
func (*FakeApisixConsumers) List ¶ added in v1.0.0
func (c *FakeApisixConsumers) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.ApisixConsumerList, err error)
List takes label and field selectors, and returns the list of ApisixConsumers that match those selectors.
func (*FakeApisixConsumers) Patch ¶ added in v1.0.0
func (c *FakeApisixConsumers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.ApisixConsumer, err error)
Patch applies the patch and returns the patched apisixConsumer.
func (*FakeApisixConsumers) Update ¶ added in v1.0.0
func (c *FakeApisixConsumers) Update(ctx context.Context, apisixConsumer *v2alpha1.ApisixConsumer, opts v1.UpdateOptions) (result *v2alpha1.ApisixConsumer, err error)
Update takes the representation of a apisixConsumer and updates it. Returns the server's representation of the apisixConsumer, and an error, if there is any.
func (*FakeApisixConsumers) UpdateStatus ¶ added in v1.0.0
func (c *FakeApisixConsumers) UpdateStatus(ctx context.Context, apisixConsumer *v2alpha1.ApisixConsumer, opts v1.UpdateOptions) (*v2alpha1.ApisixConsumer, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeApisixConsumers) Watch ¶ added in v1.0.0
func (c *FakeApisixConsumers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested apisixConsumers.
type FakeApisixRoutes ¶
type FakeApisixRoutes struct { Fake *FakeApisixV2alpha1 // contains filtered or unexported fields }
FakeApisixRoutes implements ApisixRouteInterface
func (*FakeApisixRoutes) Create ¶
func (c *FakeApisixRoutes) Create(ctx context.Context, apisixRoute *v2alpha1.ApisixRoute, opts v1.CreateOptions) (result *v2alpha1.ApisixRoute, err error)
Create takes the representation of a apisixRoute and creates it. Returns the server's representation of the apisixRoute, and an error, if there is any.
func (*FakeApisixRoutes) Delete ¶
func (c *FakeApisixRoutes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the apisixRoute and deletes it. Returns an error if one occurs.
func (*FakeApisixRoutes) DeleteCollection ¶
func (c *FakeApisixRoutes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeApisixRoutes) Get ¶
func (c *FakeApisixRoutes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.ApisixRoute, err error)
Get takes name of the apisixRoute, and returns the corresponding apisixRoute object, and an error if there is any.
func (*FakeApisixRoutes) List ¶
func (c *FakeApisixRoutes) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.ApisixRouteList, err error)
List takes label and field selectors, and returns the list of ApisixRoutes that match those selectors.
func (*FakeApisixRoutes) Patch ¶
func (c *FakeApisixRoutes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.ApisixRoute, err error)
Patch applies the patch and returns the patched apisixRoute.
func (*FakeApisixRoutes) Update ¶
func (c *FakeApisixRoutes) Update(ctx context.Context, apisixRoute *v2alpha1.ApisixRoute, opts v1.UpdateOptions) (result *v2alpha1.ApisixRoute, err error)
Update takes the representation of a apisixRoute and updates it. Returns the server's representation of the apisixRoute, and an error, if there is any.
func (*FakeApisixRoutes) UpdateStatus ¶ added in v1.0.0
func (c *FakeApisixRoutes) UpdateStatus(ctx context.Context, apisixRoute *v2alpha1.ApisixRoute, opts v1.UpdateOptions) (*v2alpha1.ApisixRoute, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeApisixRoutes) Watch ¶
func (c *FakeApisixRoutes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested apisixRoutes.
type FakeApisixV2alpha1 ¶
func (*FakeApisixV2alpha1) ApisixClusterConfigs ¶ added in v1.0.0
func (c *FakeApisixV2alpha1) ApisixClusterConfigs() v2alpha1.ApisixClusterConfigInterface
func (*FakeApisixV2alpha1) ApisixConsumers ¶ added in v1.0.0
func (c *FakeApisixV2alpha1) ApisixConsumers(namespace string) v2alpha1.ApisixConsumerInterface
func (*FakeApisixV2alpha1) ApisixRoutes ¶
func (c *FakeApisixV2alpha1) ApisixRoutes(namespace string) v2alpha1.ApisixRouteInterface
func (*FakeApisixV2alpha1) RESTClient ¶
func (c *FakeApisixV2alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.