fake

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 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 FakeManagementV3

type FakeManagementV3 struct {
	*testing.Fake
}

func (*FakeManagementV3) RESTClient

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

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

func (*FakeManagementV3) Settings

func (c *FakeManagementV3) Settings() v3.SettingInterface

func (*FakeManagementV3) Users

func (c *FakeManagementV3) Users() v3.UserInterface

type FakeSettings

type FakeSettings struct {
	Fake *FakeManagementV3
}

FakeSettings implements SettingInterface

func (*FakeSettings) Create

func (c *FakeSettings) Create(setting *v3.Setting) (result *v3.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(name string, options *v1.DeleteOptions) error

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

func (*FakeSettings) DeleteCollection

func (c *FakeSettings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeSettings) Get

func (c *FakeSettings) Get(name string, options v1.GetOptions) (result *v3.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(opts v1.ListOptions) (result *v3.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(name string, pt types.PatchType, data []byte, subresources ...string) (result *v3.Setting, err error)

Patch applies the patch and returns the patched setting.

func (*FakeSettings) Update

func (c *FakeSettings) Update(setting *v3.Setting) (result *v3.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) Watch

func (c *FakeSettings) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeUsers

type FakeUsers struct {
	Fake *FakeManagementV3
}

FakeUsers implements UserInterface

func (*FakeUsers) Create

func (c *FakeUsers) Create(user *v3.User) (result *v3.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(name string, options *v1.DeleteOptions) error

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

func (*FakeUsers) DeleteCollection

func (c *FakeUsers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeUsers) Get

func (c *FakeUsers) Get(name string, options v1.GetOptions) (result *v3.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(opts v1.ListOptions) (result *v3.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(name string, pt types.PatchType, data []byte, subresources ...string) (result *v3.User, err error)

Patch applies the patch and returns the patched user.

func (*FakeUsers) Update

func (c *FakeUsers) Update(user *v3.User) (result *v3.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) UpdateStatus

func (c *FakeUsers) UpdateStatus(user *v3.User) (*v3.User, error)

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

func (*FakeUsers) Watch

func (c *FakeUsers) Watch(opts v1.ListOptions) (watch.Interface, error)

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