fake

package
v3.7.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2017 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 FakeGroups added in v3.7.0

type FakeGroups struct {
	Fake *FakeUser
}

FakeGroups implements GroupInterface

func (*FakeGroups) Create added in v3.7.0

func (c *FakeGroups) Create(group *user.Group) (result *user.Group, err error)

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

func (*FakeGroups) Delete added in v3.7.0

func (c *FakeGroups) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeGroups) DeleteCollection added in v3.7.0

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

DeleteCollection deletes a collection of objects.

func (*FakeGroups) Get added in v3.7.0

func (c *FakeGroups) Get(name string, options v1.GetOptions) (result *user.Group, err error)

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

func (*FakeGroups) List added in v3.7.0

func (c *FakeGroups) List(opts v1.ListOptions) (result *user.GroupList, err error)

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

func (*FakeGroups) Patch added in v3.7.0

func (c *FakeGroups) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *user.Group, err error)

Patch applies the patch and returns the patched group.

func (*FakeGroups) Update added in v3.7.0

func (c *FakeGroups) Update(group *user.Group) (result *user.Group, err error)

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

func (*FakeGroups) Watch added in v3.7.0

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

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

type FakeIdentities added in v3.7.0

type FakeIdentities struct {
	Fake *FakeUser
}

FakeIdentities implements IdentityInterface

func (*FakeIdentities) Create added in v3.7.0

func (c *FakeIdentities) Create(identity *user.Identity) (result *user.Identity, err error)

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

func (*FakeIdentities) Delete added in v3.7.0

func (c *FakeIdentities) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeIdentities) DeleteCollection added in v3.7.0

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

DeleteCollection deletes a collection of objects.

func (*FakeIdentities) Get added in v3.7.0

func (c *FakeIdentities) Get(name string, options v1.GetOptions) (result *user.Identity, err error)

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

func (*FakeIdentities) List added in v3.7.0

func (c *FakeIdentities) List(opts v1.ListOptions) (result *user.IdentityList, err error)

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

func (*FakeIdentities) Patch added in v3.7.0

func (c *FakeIdentities) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *user.Identity, err error)

Patch applies the patch and returns the patched identity.

func (*FakeIdentities) Update added in v3.7.0

func (c *FakeIdentities) Update(identity *user.Identity) (result *user.Identity, err error)

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

func (*FakeIdentities) Watch added in v3.7.0

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

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

type FakeUser

type FakeUser struct {
	*testing.Fake
}

func (*FakeUser) Groups added in v3.7.0

func (*FakeUser) Identities added in v3.7.0

func (c *FakeUser) Identities() internalversion.IdentityInterface

func (*FakeUser) RESTClient

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

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

func (*FakeUser) UserIdentityMappings added in v3.7.0

func (c *FakeUser) UserIdentityMappings() internalversion.UserIdentityMappingInterface

func (*FakeUser) Users

type FakeUserIdentityMappings added in v3.7.0

type FakeUserIdentityMappings struct {
	Fake *FakeUser
}

FakeUserIdentityMappings implements UserIdentityMappingInterface

func (*FakeUserIdentityMappings) Create added in v3.7.0

func (c *FakeUserIdentityMappings) Create(userIdentityMapping *user.UserIdentityMapping) (result *user.UserIdentityMapping, err error)

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

func (*FakeUserIdentityMappings) Delete added in v3.7.0

func (c *FakeUserIdentityMappings) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeUserIdentityMappings) Get added in v3.7.0

func (c *FakeUserIdentityMappings) Get(name string, options v1.GetOptions) (result *user.UserIdentityMapping, err error)

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

func (*FakeUserIdentityMappings) Update added in v3.7.0

func (c *FakeUserIdentityMappings) Update(userIdentityMapping *user.UserIdentityMapping) (result *user.UserIdentityMapping, err error)

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

type FakeUsers

type FakeUsers struct {
	Fake *FakeUser
}

FakeUsers implements UserResourceInterface

func (*FakeUsers) Create

func (c *FakeUsers) Create(userResource *user.User) (result *user.User, err error)

Create takes the representation of a userResource and creates it. Returns the server's representation of the userResource, 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 userResource 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 *user.User, err error)

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

func (*FakeUsers) List

func (c *FakeUsers) List(opts v1.ListOptions) (result *user.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 *user.User, err error)

Patch applies the patch and returns the patched userResource.

func (*FakeUsers) Update

func (c *FakeUsers) Update(userResource *user.User) (result *user.User, err error)

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

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