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