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