Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeGroups
- func (c *FakeGroups) Create(group *user.Group) (result *user.Group, err error)
- func (c *FakeGroups) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeGroups) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeGroups) Get(name string, options v1.GetOptions) (result *user.Group, err error)
- func (c *FakeGroups) List(opts v1.ListOptions) (result *user.GroupList, err error)
- func (c *FakeGroups) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *user.Group, err error)
- func (c *FakeGroups) Update(group *user.Group) (result *user.Group, err error)
- func (c *FakeGroups) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeIdentities
- func (c *FakeIdentities) Create(identity *user.Identity) (result *user.Identity, err error)
- func (c *FakeIdentities) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeIdentities) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeIdentities) Get(name string, options v1.GetOptions) (result *user.Identity, err error)
- func (c *FakeIdentities) List(opts v1.ListOptions) (result *user.IdentityList, err error)
- func (c *FakeIdentities) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *user.Identity, err error)
- func (c *FakeIdentities) Update(identity *user.Identity) (result *user.Identity, err error)
- func (c *FakeIdentities) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeUser
- func (c *FakeUser) Groups() internalversion.GroupInterface
- func (c *FakeUser) Identities() internalversion.IdentityInterface
- func (c *FakeUser) RESTClient() rest.Interface
- func (c *FakeUser) UserIdentityMappings() internalversion.UserIdentityMappingInterface
- func (c *FakeUser) Users() internalversion.UserResourceInterface
- type FakeUserIdentityMappings
- func (c *FakeUserIdentityMappings) Create(userIdentityMapping *user.UserIdentityMapping) (result *user.UserIdentityMapping, err error)
- func (c *FakeUserIdentityMappings) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeUserIdentityMappings) Get(name string, options v1.GetOptions) (result *user.UserIdentityMapping, err error)
- func (c *FakeUserIdentityMappings) Update(userIdentityMapping *user.UserIdentityMapping) (result *user.UserIdentityMapping, err error)
- type FakeUsers
- func (c *FakeUsers) Create(userResource *user.User) (result *user.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 *user.User, err error)
- func (c *FakeUsers) List(opts v1.ListOptions) (result *user.UserList, err error)
- func (c *FakeUsers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *user.User, err error)
- func (c *FakeUsers) Update(userResource *user.User) (result *user.User, err 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 FakeGroups ¶
type FakeGroups struct {
Fake *FakeUser
}
FakeGroups implements GroupInterface
func (*FakeGroups) Create ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (*FakeUser) Groups ¶
func (c *FakeUser) Groups() internalversion.GroupInterface
func (*FakeUser) Identities ¶
func (c *FakeUser) Identities() internalversion.IdentityInterface
func (*FakeUser) RESTClient ¶
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 ¶
func (c *FakeUser) Users() internalversion.UserResourceInterface
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 ¶
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 ¶
Get takes name of the userResource, and returns the corresponding userResource 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 *user.User, err error)
Patch applies the patch and returns the patched userResource.