fake

package
v0.0.0-...-d0cda72 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 9 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 FakeManagementV1

type FakeManagementV1 struct {
	*testing.Fake
}

func (*FakeManagementV1) RESTClient

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

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

func (*FakeManagementV1) Settings

func (c *FakeManagementV1) Settings() v1.SettingInterface

func (*FakeManagementV1) Users

func (c *FakeManagementV1) Users() v1.UserInterface

type FakeSettings

type FakeSettings struct {
	Fake *FakeManagementV1
}

FakeSettings implements SettingInterface

func (*FakeSettings) Create

func (c *FakeSettings) Create(ctx context.Context, setting *v1.Setting, opts metav1.CreateOptions) (result *v1.Setting, err error)

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

func (*FakeSettings) Delete

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

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

func (*FakeSettings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSettings) Get

func (c *FakeSettings) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Setting, err error)

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

func (*FakeSettings) List

func (c *FakeSettings) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SettingList, err error)

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

func (*FakeSettings) Patch

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

Patch applies the patch and returns the patched setting.

func (*FakeSettings) Update

func (c *FakeSettings) Update(ctx context.Context, setting *v1.Setting, opts metav1.UpdateOptions) (result *v1.Setting, err error)

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

func (*FakeSettings) UpdateStatus

func (c *FakeSettings) UpdateStatus(ctx context.Context, setting *v1.Setting, opts metav1.UpdateOptions) (*v1.Setting, error)

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

func (*FakeSettings) Watch

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

type FakeUsers

type FakeUsers struct {
	Fake *FakeManagementV1
}

FakeUsers implements UserInterface

func (*FakeUsers) Create

func (c *FakeUsers) Create(ctx context.Context, user *v1.User, opts metav1.CreateOptions) (result *v1.User, err error)

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

func (*FakeUsers) Delete

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

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

func (*FakeUsers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUsers) Get

func (c *FakeUsers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.User, err error)

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

func (*FakeUsers) List

func (c *FakeUsers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.UserList, err error)

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

func (*FakeUsers) Patch

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

Patch applies the patch and returns the patched user.

func (*FakeUsers) Update

func (c *FakeUsers) Update(ctx context.Context, user *v1.User, opts metav1.UpdateOptions) (result *v1.User, err error)

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

func (*FakeUsers) Watch

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

Jump to

Keyboard shortcuts

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