Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCreatorV1
- type FakeServices
- func (c *FakeServices) Create(service *creatorv1.Service) (result *creatorv1.Service, err error)
- func (c *FakeServices) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeServices) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeServices) Get(name string, options v1.GetOptions) (result *creatorv1.Service, err error)
- func (c *FakeServices) List(opts v1.ListOptions) (result *creatorv1.ServiceList, err error)
- func (c *FakeServices) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *creatorv1.Service, err error)
- func (c *FakeServices) Update(service *creatorv1.Service) (result *creatorv1.Service, err error)
- func (c *FakeServices) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCreatorV1 ¶
func (*FakeCreatorV1) RESTClient ¶
func (c *FakeCreatorV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeCreatorV1) Services ¶
func (c *FakeCreatorV1) Services() v1.ServiceInterface
type FakeServices ¶
type FakeServices struct {
Fake *FakeCreatorV1
}
FakeServices implements ServiceInterface
func (*FakeServices) Create ¶
Create takes the representation of a service and creates it. Returns the server's representation of the service, and an error, if there is any.
func (*FakeServices) Delete ¶
func (c *FakeServices) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the service and deletes it. Returns an error if one occurs.
func (*FakeServices) DeleteCollection ¶
func (c *FakeServices) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeServices) Get ¶
func (c *FakeServices) Get(name string, options v1.GetOptions) (result *creatorv1.Service, err error)
Get takes name of the service, and returns the corresponding service object, and an error if there is any.
func (*FakeServices) List ¶
func (c *FakeServices) List(opts v1.ListOptions) (result *creatorv1.ServiceList, err error)
List takes label and field selectors, and returns the list of Services that match those selectors.
func (*FakeServices) Patch ¶
func (c *FakeServices) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *creatorv1.Service, err error)
Patch applies the patch and returns the patched service.
func (*FakeServices) Update ¶
Update takes the representation of a service and updates it. Returns the server's representation of the service, and an error, if there is any.
func (*FakeServices) Watch ¶
func (c *FakeServices) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested services.