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