Documentation ¶
Index ¶
- type ACL
- type ACLDiff
- type Diff
- type Differ
- type GroupDiff
- type MergeOptions
- type MergeSyncType
- type PhpUserMeta
- type ReadableStore
- type Role
- type RoleDiff
- type ShareDiff
- type SyncShare
- func (s *SyncShare) Equals(o Differ) bool
- func (s *SyncShare) GetInternalData() interface{}
- func (s *SyncShare) GetUniqueId() string
- func (s *SyncShare) IsDeletable(m map[string]string) bool
- func (s *SyncShare) IsMergeable(o Differ) bool
- func (s *SyncShare) Merge(o Differ, options map[string]string) (Differ, error)
- type User
- type UserDiff
- type WritableStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACL ¶
func (*ACL) GetUniqueId ¶
func (*ACL) IsMergeable ¶
IsMergeable tests if two user can be mergeable whose the same login name and auth source
type Diff ¶
type Diff interface { Add(...interface{}) Update(...interface{}) Delete(...interface{}) ToAdd() []interface{} ToUpdate() []interface{} ToDelete() []interface{} }
type MergeOptions ¶
type MergeOptions struct { SyncType MergeSyncType Origin string AuthSource string RolePrefix string }
func (*MergeOptions) ToMap ¶
func (m *MergeOptions) ToMap() map[string]string
type MergeSyncType ¶
type MergeSyncType int
const ( FULLSYNC MergeSyncType = iota CREATEONLYSYNC NODELETESYNC )
type PhpUserMeta ¶
func Map2LocalMeta ¶
func Map2LocalMeta(m map[string]interface{}) (out []*PhpUserMeta, e error)
func UserMetasFromPhpData ¶
func UserMetasFromPhpData(serializedData []byte) (metas []*PhpUserMeta, outErr error)
type ReadableStore ¶
type ReadableStore interface { ListUsers(context.Context, map[string]interface{}, chan float32) (map[string]*idm.User, error) ListGroups(context.Context, map[string]interface{}) ([]*idm.User, error) ListRoles(context.Context, ReadableStore, map[string]interface{}) ([]*idm.Role, error) ListACLs(context.Context, map[string]interface{}) ([]*idm.ACL, error) GetUserInfo(c context.Context, userName string, params map[string]interface{}) (u *idm.User, aclCtxt context.Context, e error) GetGroupInfo(c context.Context, groupPath string, params map[string]interface{}) (u *idm.User, e error) ReadNode(c context.Context, wsUuid string, wsPath string) (*tree.Node, error) }
ReadableStore interface defines the objects to be able to list from a store
type RoleDiff ¶
type RoleDiff struct { // List of user to be updated Updates map[string]*idm.Role // List of user to be deleted Deletes map[string]*idm.Role // List of user to be created Creates map[string]*idm.Role }
func NewRolesDiff ¶
func NewRolesDiff() *RoleDiff
type SyncShare ¶
type SyncShare struct {}
func (*SyncShare) GetInternalData ¶
func (s *SyncShare) GetInternalData() interface{}
func (*SyncShare) GetUniqueId ¶
func (*SyncShare) IsMergeable ¶
type User ¶
func (*User) GetUniqueId ¶
func (*User) IsMergeable ¶
IsMergeable test if two user can be mergeable whose the same login name and auth source
type UserDiff ¶
type UserDiff struct { // List of user to be updated Update map[string]*idm.User // List of user to be deleted Delete map[string]*idm.User // List of user to be created Create map[string]*idm.User }
func NewUserDiff ¶
func NewUserDiff() *UserDiff
type WritableStore ¶
type WritableStore interface { ReadableStore CreateUser(context.Context, *idm.User) (*idm.User, error) UpdateUser(context.Context, *idm.User) (*idm.User, error) DeleteUser(context.Context, *idm.User) error PutGroup(context.Context, *idm.User) error DeleteGroup(context.Context, *idm.User) error PutRole(context.Context, *idm.Role) (*idm.Role, error) DeleteRole(context.Context, *idm.Role) error PutACL(context.Context, *idm.ACL) error DeleteACL(context.Context, *idm.ACL) error }
WritableStore defines the function required to write to a store
Click to show internal directories.
Click to hide internal directories.