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