identity

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUserModelFromCS3

func CreateUserModelFromCS3(u *cs3.User) *msgraph.User

Types

type Backend

type Backend interface {
	GetUser(ctx context.Context, nameOrId string) (*msgraph.User, error)
	GetUsers(ctx context.Context, queryParam url.Values) ([]*msgraph.User, error)

	GetGroup(ctx context.Context, nameOrId string) (*msgraph.Group, error)
	GetGroups(ctx context.Context, queryParam url.Values) ([]*msgraph.Group, error)
}

type CS3

type CS3 struct {
	Config *config.Reva
	Logger *log.Logger
}

func (*CS3) GetGroup

func (i *CS3) GetGroup(ctx context.Context, groupID string) (*msgraph.Group, error)

func (*CS3) GetGroups

func (i *CS3) GetGroups(ctx context.Context, queryParam url.Values) ([]*msgraph.Group, error)

func (*CS3) GetUser

func (i *CS3) GetUser(ctx context.Context, userID string) (*msgraph.User, error)

func (*CS3) GetUsers

func (i *CS3) GetUsers(ctx context.Context, queryParam url.Values) ([]*msgraph.User, error)

type LDAP

type LDAP struct {
	// contains filtered or unexported fields
}

func NewLDAPBackend

func NewLDAPBackend(lc ldap.Client, config config.LDAP, logger *log.Logger) (*LDAP, error)

func (*LDAP) GetGroup

func (i *LDAP) GetGroup(ctx context.Context, groupID string) (*msgraph.Group, error)

func (*LDAP) GetGroups

func (i *LDAP) GetGroups(ctx context.Context, queryParam url.Values) ([]*msgraph.Group, error)

func (*LDAP) GetUser

func (i *LDAP) GetUser(ctx context.Context, userID string) (*msgraph.User, error)

func (*LDAP) GetUsers

func (i *LDAP) GetUsers(ctx context.Context, queryParam url.Values) ([]*msgraph.User, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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