Documentation
¶
Index ¶
- Variables
- type ACL
- type ACLDiff
- type Config
- type ConfigDiff
- func (a *ConfigDiff) Add(vs ...interface{})
- func (a *ConfigDiff) Delete(vs ...interface{})
- func (a *ConfigDiff) GetUpdateData() []byte
- func (a *ConfigDiff) ToAdd() []interface{}
- func (a *ConfigDiff) ToDelete() []interface{}
- func (a *ConfigDiff) ToUpdate() []interface{}
- func (a *ConfigDiff) Update(vs ...interface{})
- 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 ¶
Functions ¶
This section is empty.
Types ¶
type ACL ¶
func (*ACL) IsMergeable ¶
IsMergeable tests if two user can be mergeable whose the same login name and auth source
type ACLDiff ¶
type ACLDiff struct {
// contains filtered or unexported fields
}
type Config ¶
func (*Config) IsMergeable ¶
test if two user can be mergeable whose the same login name and auth source
type ConfigDiff ¶
type ConfigDiff struct {
// contains filtered or unexported fields
}
func (*ConfigDiff) Add ¶
func (a *ConfigDiff) Add(vs ...interface{})
func (*ConfigDiff) Delete ¶
func (a *ConfigDiff) Delete(vs ...interface{})
func (*ConfigDiff) GetUpdateData ¶
func (a *ConfigDiff) GetUpdateData() []byte
func (*ConfigDiff) ToAdd ¶
func (a *ConfigDiff) ToAdd() []interface{}
func (*ConfigDiff) ToDelete ¶
func (a *ConfigDiff) ToDelete() []interface{}
func (*ConfigDiff) ToUpdate ¶
func (a *ConfigDiff) ToUpdate() []interface{}
func (*ConfigDiff) Update ¶
func (a *ConfigDiff) Update(vs ...interface{})
type Diff ¶
type Diff interface { Add(...interface{}) Update(...interface{}) Delete(...interface{}) ToAdd() []interface{} ToUpdate() []interface{} ToDelete() []interface{} }
type Differ ¶
type GroupDiff ¶
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 { ListConfig(context.Context, map[string]interface{}) (*source.ChangeSet, error) 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 Role ¶
type RoleDiff ¶
type ShareDiff ¶
type ShareDiff struct {
// contains filtered or unexported fields
}
type SyncShare ¶
type SyncShare struct {}
type User ¶
func (*User) IsMergeable ¶
IsMergeable test if two user can be mergeable whose the same login name and auth source
type 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 PutConfig(context.Context, *source.ChangeSet) error }
WritableStore defines the function required to write to a store
Source Files
¶
- acl.go
- config.go
- diff.go
- merge-options.go
- php-meta.go
- role.go
- share.go
- stores.go
- user.go
Click to show internal directories.
Click to hide internal directories.