fake

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeTestTriggers

type FakeTestTriggers struct {
	Fake *FakeTestsV1
	// contains filtered or unexported fields
}

FakeTestTriggers implements TestTriggerInterface

func (*FakeTestTriggers) Create

func (c *FakeTestTriggers) Create(ctx context.Context, testTrigger *testtriggersv1.TestTrigger, opts v1.CreateOptions) (result *testtriggersv1.TestTrigger, err error)

Create takes the representation of a testTrigger and creates it. Returns the server's representation of the testTrigger, and an error, if there is any.

func (*FakeTestTriggers) Delete

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

Delete takes name of the testTrigger and deletes it. Returns an error if one occurs.

func (*FakeTestTriggers) DeleteCollection

func (c *FakeTestTriggers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeTestTriggers) Get

func (c *FakeTestTriggers) Get(ctx context.Context, name string, options v1.GetOptions) (result *testtriggersv1.TestTrigger, err error)

Get takes name of the testTrigger, and returns the corresponding testTrigger object, and an error if there is any.

func (*FakeTestTriggers) List

List takes label and field selectors, and returns the list of TestTriggers that match those selectors.

func (*FakeTestTriggers) Patch

func (c *FakeTestTriggers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *testtriggersv1.TestTrigger, err error)

Patch applies the patch and returns the patched testTrigger.

func (*FakeTestTriggers) Update

func (c *FakeTestTriggers) Update(ctx context.Context, testTrigger *testtriggersv1.TestTrigger, opts v1.UpdateOptions) (result *testtriggersv1.TestTrigger, err error)

Update takes the representation of a testTrigger and updates it. Returns the server's representation of the testTrigger, and an error, if there is any.

func (*FakeTestTriggers) UpdateStatus

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeTestTriggers) Watch

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

type FakeTestsV1

type FakeTestsV1 struct {
	*testing.Fake
}

func (*FakeTestsV1) RESTClient

func (c *FakeTestsV1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeTestsV1) TestTriggers

func (c *FakeTestsV1) TestTriggers(namespace string) v1.TestTriggerInterface

Jump to

Keyboard shortcuts

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