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