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