Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeFaasV1
- type FakeFunctions
- func (c *FakeFunctions) Create(function *faasv1.Function) (result *faasv1.Function, err error)
- func (c *FakeFunctions) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeFunctions) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeFunctions) Get(name string, options v1.GetOptions) (result *faasv1.Function, err error)
- func (c *FakeFunctions) List(opts v1.ListOptions) (result *faasv1.FunctionList, err error)
- func (c *FakeFunctions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *faasv1.Function, err error)
- func (c *FakeFunctions) Update(function *faasv1.Function) (result *faasv1.Function, err error)
- func (c *FakeFunctions) UpdateStatus(function *faasv1.Function) (*faasv1.Function, error)
- func (c *FakeFunctions) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeFaasV1 ¶
func (*FakeFaasV1) Functions ¶
func (c *FakeFaasV1) Functions(namespace string) v1.FunctionInterface
func (*FakeFaasV1) RESTClient ¶
func (c *FakeFaasV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeFunctions ¶
type FakeFunctions struct { Fake *FakeFaasV1 // contains filtered or unexported fields }
FakeFunctions implements FunctionInterface
func (*FakeFunctions) Create ¶
Create takes the representation of a function and creates it. Returns the server's representation of the function, and an error, if there is any.
func (*FakeFunctions) Delete ¶
func (c *FakeFunctions) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the function and deletes it. Returns an error if one occurs.
func (*FakeFunctions) DeleteCollection ¶
func (c *FakeFunctions) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeFunctions) Get ¶
func (c *FakeFunctions) Get(name string, options v1.GetOptions) (result *faasv1.Function, err error)
Get takes name of the function, and returns the corresponding function object, and an error if there is any.
func (*FakeFunctions) List ¶
func (c *FakeFunctions) List(opts v1.ListOptions) (result *faasv1.FunctionList, err error)
List takes label and field selectors, and returns the list of Functions that match those selectors.
func (*FakeFunctions) Patch ¶
func (c *FakeFunctions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *faasv1.Function, err error)
Patch applies the patch and returns the patched function.
func (*FakeFunctions) Update ¶
Update takes the representation of a function and updates it. Returns the server's representation of the function, and an error, if there is any.
func (*FakeFunctions) UpdateStatus ¶
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeFunctions) Watch ¶
func (c *FakeFunctions) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested functions.