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