fake

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 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 FakeAssignments

type FakeAssignments struct {
	Fake *FakeLighthouseV1alpha1
	// contains filtered or unexported fields
}

FakeAssignments implements AssignmentInterface

func (*FakeAssignments) Create

func (c *FakeAssignments) Create(ctx context.Context, assignment *v1alpha1.Assignment, opts v1.CreateOptions) (result *v1alpha1.Assignment, err error)

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

func (*FakeAssignments) Delete

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

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

func (*FakeAssignments) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAssignments) Get

func (c *FakeAssignments) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Assignment, err error)

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

func (*FakeAssignments) List

func (c *FakeAssignments) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.AssignmentList, err error)

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

func (*FakeAssignments) Patch

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

Patch applies the patch and returns the patched assignment.

func (*FakeAssignments) Update

func (c *FakeAssignments) Update(ctx context.Context, assignment *v1alpha1.Assignment, opts v1.UpdateOptions) (result *v1alpha1.Assignment, err error)

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

func (*FakeAssignments) UpdateStatus

func (c *FakeAssignments) UpdateStatus(ctx context.Context, assignment *v1alpha1.Assignment, opts v1.UpdateOptions) (*v1alpha1.Assignment, error)

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

func (*FakeAssignments) Watch

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

type FakeDefinitions

type FakeDefinitions struct {
	Fake *FakeLighthouseV1alpha1
	// contains filtered or unexported fields
}

FakeDefinitions implements DefinitionInterface

func (*FakeDefinitions) Create

func (c *FakeDefinitions) Create(ctx context.Context, definition *v1alpha1.Definition, opts v1.CreateOptions) (result *v1alpha1.Definition, err error)

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

func (*FakeDefinitions) Delete

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

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

func (*FakeDefinitions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDefinitions) Get

func (c *FakeDefinitions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Definition, err error)

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

func (*FakeDefinitions) List

func (c *FakeDefinitions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.DefinitionList, err error)

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

func (*FakeDefinitions) Patch

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

Patch applies the patch and returns the patched definition.

func (*FakeDefinitions) Update

func (c *FakeDefinitions) Update(ctx context.Context, definition *v1alpha1.Definition, opts v1.UpdateOptions) (result *v1alpha1.Definition, err error)

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

func (*FakeDefinitions) UpdateStatus

func (c *FakeDefinitions) UpdateStatus(ctx context.Context, definition *v1alpha1.Definition, opts v1.UpdateOptions) (*v1alpha1.Definition, error)

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

func (*FakeDefinitions) Watch

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

type FakeLighthouseV1alpha1

type FakeLighthouseV1alpha1 struct {
	*testing.Fake
}

func (*FakeLighthouseV1alpha1) Assignments

func (c *FakeLighthouseV1alpha1) Assignments(namespace string) v1alpha1.AssignmentInterface

func (*FakeLighthouseV1alpha1) Definitions

func (c *FakeLighthouseV1alpha1) Definitions(namespace string) v1alpha1.DefinitionInterface

func (*FakeLighthouseV1alpha1) RESTClient

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

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

Jump to

Keyboard shortcuts

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