fake

package
v0.0.0-...-00984ce Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 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

type FakeGroups struct {
	Fake *FakeUser
}

FakeGroups implements GroupInterface

func (*FakeGroups) Create

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

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

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

DeleteCollection deletes a collection of objects.

func (*FakeGroups) Get

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

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

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

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

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

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

type FakeIdentities

type FakeIdentities struct {
	Fake *FakeUser
}

FakeIdentities implements IdentityInterface

func (*FakeIdentities) Create

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

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

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

DeleteCollection deletes a collection of objects.

func (*FakeIdentities) Get

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

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

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

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

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

func (*FakeUser) Identities

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

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

func (*FakeUser) Users

type FakeUserIdentityMappings

type FakeUserIdentityMappings struct {
	Fake *FakeUser
}

FakeUserIdentityMappings implements UserIdentityMappingInterface

func (*FakeUserIdentityMappings) Create

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

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

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

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