Documentation
¶
Index ¶
- Variables
- type KeyClockClient
- func (k *KeyClockClient) AddUserToGroup(userID, groupID string) error
- func (k *KeyClockClient) DeleteUser(userID string) error
- func (k *KeyClockClient) DeleteUserFromGroup(userID, groupID string) error
- func (k *KeyClockClient) GetClient() *gocloak.GoCloak
- func (k *KeyClockClient) GetGroups() ([]*gocloak.Group, error)
- func (k *KeyClockClient) GetUser(id string) (*gocloak.User, error)
- func (k *KeyClockClient) GetUserGroups(userID string) ([]*gocloak.Group, error)
- func (k *KeyClockClient) GetUserID() string
- func (k *KeyClockClient) GetUserInfo() (*gocloak.UserInfo, error)
- func (k *KeyClockClient) GetUsers() ([]*gocloak.User, error)
- func (k *KeyClockClient) IsRole(name string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorGroupNotFound = errors.New("group not found") ErrorUserNotFound = errors.New("user not found") )
Functions ¶
This section is empty.
Types ¶
type KeyClockClient ¶
type KeyClockClient struct {
// contains filtered or unexported fields
}
func NewKeyClockClient ¶
func NewKeyClockClient(ctx context.Context) *KeyClockClient
func (*KeyClockClient) AddUserToGroup ¶
func (k *KeyClockClient) AddUserToGroup(userID, groupID string) error
func (*KeyClockClient) DeleteUser ¶ added in v0.4.1
func (k *KeyClockClient) DeleteUser(userID string) error
func (*KeyClockClient) DeleteUserFromGroup ¶
func (k *KeyClockClient) DeleteUserFromGroup(userID, groupID string) error
func (*KeyClockClient) GetClient ¶
func (k *KeyClockClient) GetClient() *gocloak.GoCloak
func (*KeyClockClient) GetUser ¶
func (k *KeyClockClient) GetUser(id string) (*gocloak.User, error)
GetUsers for listing all the users from keycloak
func (*KeyClockClient) GetUserGroups ¶ added in v0.4.0
func (k *KeyClockClient) GetUserGroups(userID string) ([]*gocloak.Group, error)
func (*KeyClockClient) GetUserID ¶
func (k *KeyClockClient) GetUserID() string
func (*KeyClockClient) GetUserInfo ¶
func (k *KeyClockClient) GetUserInfo() (*gocloak.UserInfo, error)
func (*KeyClockClient) GetUsers ¶
func (k *KeyClockClient) GetUsers() ([]*gocloak.User, error)
GetUsers for listing all the users from keycloak
func (*KeyClockClient) IsRole ¶
func (k *KeyClockClient) IsRole(name string) bool
Click to show internal directories.
Click to hide internal directories.