Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeLoadbalancerV1alpha1
- type FakeLoadbalancers
- func (c *FakeLoadbalancers) Create(ctx context.Context, loadbalancer *v1alpha1.Loadbalancer, ...) (result *v1alpha1.Loadbalancer, err error)
- func (c *FakeLoadbalancers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeLoadbalancers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeLoadbalancers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Loadbalancer, err error)
- func (c *FakeLoadbalancers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.LoadbalancerList, err error)
- func (c *FakeLoadbalancers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Loadbalancer, err error)
- func (c *FakeLoadbalancers) Update(ctx context.Context, loadbalancer *v1alpha1.Loadbalancer, ...) (result *v1alpha1.Loadbalancer, err error)
- func (c *FakeLoadbalancers) UpdateStatus(ctx context.Context, loadbalancer *v1alpha1.Loadbalancer, ...) (*v1alpha1.Loadbalancer, error)
- func (c *FakeLoadbalancers) 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 FakeLoadbalancerV1alpha1 ¶
func (*FakeLoadbalancerV1alpha1) Loadbalancers ¶
func (c *FakeLoadbalancerV1alpha1) Loadbalancers(namespace string) v1alpha1.LoadbalancerInterface
func (*FakeLoadbalancerV1alpha1) RESTClient ¶
func (c *FakeLoadbalancerV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeLoadbalancers ¶
type FakeLoadbalancers struct { Fake *FakeLoadbalancerV1alpha1 // contains filtered or unexported fields }
FakeLoadbalancers implements LoadbalancerInterface
func (*FakeLoadbalancers) Create ¶
func (c *FakeLoadbalancers) Create(ctx context.Context, loadbalancer *v1alpha1.Loadbalancer, opts v1.CreateOptions) (result *v1alpha1.Loadbalancer, err error)
Create takes the representation of a loadbalancer and creates it. Returns the server's representation of the loadbalancer, and an error, if there is any.
func (*FakeLoadbalancers) Delete ¶
func (c *FakeLoadbalancers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the loadbalancer and deletes it. Returns an error if one occurs.
func (*FakeLoadbalancers) DeleteCollection ¶
func (c *FakeLoadbalancers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeLoadbalancers) Get ¶
func (c *FakeLoadbalancers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Loadbalancer, err error)
Get takes name of the loadbalancer, and returns the corresponding loadbalancer object, and an error if there is any.
func (*FakeLoadbalancers) List ¶
func (c *FakeLoadbalancers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.LoadbalancerList, err error)
List takes label and field selectors, and returns the list of Loadbalancers that match those selectors.
func (*FakeLoadbalancers) Patch ¶
func (c *FakeLoadbalancers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Loadbalancer, err error)
Patch applies the patch and returns the patched loadbalancer.
func (*FakeLoadbalancers) Update ¶
func (c *FakeLoadbalancers) Update(ctx context.Context, loadbalancer *v1alpha1.Loadbalancer, opts v1.UpdateOptions) (result *v1alpha1.Loadbalancer, err error)
Update takes the representation of a loadbalancer and updates it. Returns the server's representation of the loadbalancer, and an error, if there is any.
func (*FakeLoadbalancers) UpdateStatus ¶
func (c *FakeLoadbalancers) UpdateStatus(ctx context.Context, loadbalancer *v1alpha1.Loadbalancer, opts v1.UpdateOptions) (*v1alpha1.Loadbalancer, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeLoadbalancers) Watch ¶
func (c *FakeLoadbalancers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested loadbalancers.