Documentation ¶
Index ¶
- type Client
- func (keyCloakClient Client) AddMemberToGroup(userid string, groupID string) error
- func (keyCloakClient Client) CreateGroup(groupName string, tenant string) error
- func (keyCloakClient Client) CreateUser(user *gocloak.User) error
- func (keyCloakClient Client) GetAllUsers() ([]*gocloak.User, error)
- func (keyCloakClient Client) GetGroupID(groupName string) (string, error)
- func (keyCloakClient Client) GetGroupMembers(groupID string) ([]*gocloak.User, error)
- func (keyCloakClient Client) GetGroups() ([]*gocloak.Group, error)
- func (keyCloakClient Client) GetUser(username string) (*gocloak.User, error)
- func (keyCloakClient Client) GetUserCount() (int, error)
- func (keyCloakClient Client) GetUserID(username string) (string, error)
- func (keyCloakClient Client) RemoveGroup(groupID string) error
- func (keyCloakClient Client) RemoveMemberFromGroup(userid string, groupID string) error
- func (keyCloakClient Client) SearchUser(username string) (*gocloak.User, error)
- func (keyCloakClient Client) UserExists(username string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client struct with api methods and accesstoken
func NewKeyCloakClient ¶
NewKeyCloakClient initializes a new Client struct and connects to Keycloak
func (Client) AddMemberToGroup ¶
AddMemberToGroup adds a member to a Group
func (Client) CreateGroup ¶
CreateGroup creates a group in KeyCloak
func (Client) CreateUser ¶
CreateUser creates a user in KeyCloak
func (Client) GetAllUsers ¶
GetAllUsers gets all Users from Keycloak
func (Client) GetGroupID ¶
GetGroupID gets a group from KeyCloak and returns the ID
func (Client) GetGroupMembers ¶
GetGroupMembers gets members of a Group
func (Client) GetUserCount ¶ added in v0.2.1
func (Client) RemoveGroup ¶
RemoveGroup removes a group from KeyCloak
func (Client) RemoveMemberFromGroup ¶
RemoveMemberFromGroup removes a member from a Group
func (Client) SearchUser ¶
SearchUser searches a User in KeyCloak
Click to show internal directories.
Click to hide internal directories.