client

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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) DeleteUserFromGroup

func (k *KeyClockClient) DeleteUserFromGroup(userID, groupID string) error

func (*KeyClockClient) GetClient

func (k *KeyClockClient) GetClient() *gocloak.GoCloak

func (*KeyClockClient) GetGroups

func (k *KeyClockClient) GetGroups() ([]*gocloak.Group, error)

func (*KeyClockClient) GetUser

func (k *KeyClockClient) GetUser(id string) (*gocloak.User, error)

GetUsers for listing all the users from keycloak

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL