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