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 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 ¶
View Source
var (
ErrDifferentArgumentsTypes = errors.New("src and dst must be of same type")
)
Functions ¶
This section is empty.
Types ¶
type ACL ¶
func (*ACL) GetUniqueId ¶
func (*ACL) IsMergeable ¶
test if two user can be mergeable whose the same login name and auth source
type Config ¶
func (*Config) GetUniqueId ¶
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 MergeOptions ¶
func (*MergeOptions) ToMap ¶
func (m *MergeOptions) ToMap() map[string]string
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 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 ¶
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 PutConfig(context.Context, *source.ChangeSet) error }
WritableStore defines the function required to write to a store
Click to show internal directories.
Click to hide internal directories.