Documentation ¶
Index ¶
- type Action
- type IdentityRegistry
- func (r *IdentityRegistry) Create(u *userapi.Identity) (*userapi.Identity, error)
- func (r *IdentityRegistry) Get(name string, options metav1.GetOptions) (*userapi.Identity, error)
- func (r *IdentityRegistry) List(options metav1.ListOptions) (*userapi.IdentityList, error)
- func (r *IdentityRegistry) Update(u *userapi.Identity) (*userapi.Identity, error)
- type UserIdentityMappingRegistry
- type UserRegistry
- func (r *UserRegistry) Create(u *userapi.User) (*userapi.User, error)
- func (r *UserRegistry) Get(name string, options metav1.GetOptions) (*userapi.User, error)
- func (r *UserRegistry) List(options metav1.ListOptions) (*userapi.UserList, error)
- func (r *UserRegistry) Update(u *userapi.User) (*userapi.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentityRegistry ¶
type IdentityRegistry struct { *fake.FakeIdentities GetErr map[string]error GetIdentities map[string]*userapi.Identity CreateErr error CreateIdentity *userapi.Identity UpdateErr error UpdateIdentity *userapi.Identity ListErr error ListIdentity *userapi.IdentityList Actions *[]Action }
func (*IdentityRegistry) Get ¶
func (r *IdentityRegistry) Get(name string, options metav1.GetOptions) (*userapi.Identity, error)
func (*IdentityRegistry) List ¶
func (r *IdentityRegistry) List(options metav1.ListOptions) (*userapi.IdentityList, error)
type UserIdentityMappingRegistry ¶
type UserIdentityMappingRegistry struct { Err error Created bool UserIdentityMapping *userapi.UserIdentityMapping CreatedUserIdentityMapping *userapi.UserIdentityMapping }
func (*UserIdentityMappingRegistry) CreateOrUpdateUserIdentityMapping ¶
func (r *UserIdentityMappingRegistry) CreateOrUpdateUserIdentityMapping(mapping *userapi.UserIdentityMapping) (*userapi.UserIdentityMapping, bool, error)
func (*UserIdentityMappingRegistry) GetUserIdentityMapping ¶
func (r *UserIdentityMappingRegistry) GetUserIdentityMapping(name string) (*userapi.UserIdentityMapping, error)
type UserRegistry ¶
type UserRegistry struct { // included to fill out the interface for testing *fake.FakeUsers GetErr map[string]error GetUsers map[string]*userapi.User CreateErr error CreateUser *userapi.User UpdateErr map[string]error UpdateUser *userapi.User ListErr error ListUsers *userapi.UserList Actions *[]Action }
func (*UserRegistry) Get ¶
func (r *UserRegistry) Get(name string, options metav1.GetOptions) (*userapi.User, error)
func (*UserRegistry) List ¶
func (r *UserRegistry) List(options metav1.ListOptions) (*userapi.UserList, error)
Click to show internal directories.
Click to hide internal directories.