fake

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeEiriniV1

type FakeEiriniV1 struct {
	*testing.Fake
}

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

func (c *FakeLRPs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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().

func (*FakeLRPs) Watch

func (c *FakeLRPs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested lRPs.

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

func (c *FakeTasks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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().

func (*FakeTasks) Watch

func (c *FakeTasks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested tasks.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL