Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeManagementV3
- type FakeSettings
- func (c *FakeSettings) Create(setting *v3.Setting) (result *v3.Setting, err error)
- func (c *FakeSettings) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeSettings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeSettings) Get(name string, options v1.GetOptions) (result *v3.Setting, err error)
- func (c *FakeSettings) List(opts v1.ListOptions) (result *v3.SettingList, err error)
- func (c *FakeSettings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v3.Setting, err error)
- func (c *FakeSettings) Update(setting *v3.Setting) (result *v3.Setting, err error)
- func (c *FakeSettings) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeUsers
- func (c *FakeUsers) Create(user *v3.User) (result *v3.User, err error)
- func (c *FakeUsers) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeUsers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeUsers) Get(name string, options v1.GetOptions) (result *v3.User, err error)
- func (c *FakeUsers) List(opts v1.ListOptions) (result *v3.UserList, err error)
- func (c *FakeUsers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v3.User, err error)
- func (c *FakeUsers) Update(user *v3.User) (result *v3.User, err error)
- func (c *FakeUsers) UpdateStatus(user *v3.User) (*v3.User, error)
- func (c *FakeUsers) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeManagementV3 ¶
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 ¶
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 ¶
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 ¶
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 ¶
Get takes name of the user, and returns the corresponding user object, and an error if there is any.
func (*FakeUsers) List ¶
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 ¶
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 ¶
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().