Documentation ¶
Index ¶
- Constants
- func AvailableRolePrivileges() []string
- func GetEnterpriseIds(keeperAuth auth.IKeeperAuth, numberRequested int) (eids []int64, err error)
- type EncryptedData
- type EnterpriseEntityData
- type EnterpriseSettings
- type IEnterpriseData
- type IEnterpriseEntity
- type IEnterpriseInfo
- type IEnterpriseLink
- type IEnterpriseLoader
- type IEnterpriseManagement
- type IEnterpriseStorage
- type IManagedNode
- type INode
- type INodeEdit
- type IRole
- type IRoleEdit
- type IRoleEnforcement
- type IRolePrivilege
- type IRolePrivilegeEdit
- type IRoleUser
- type ITeam
- type ITeamEdit
- type ITeamUser
- type IUser
- type LinkKey
Constants ¶
View Source
const ( RolePrivilege_ManageNodes = "MANAGE_NODES" RolePrivilege_ManageUsers = "MANAGE_USER" RolePrivilege_ManageLicences = "MANAGE_LICENCES" RolePrivilege_ManageRoles = "MANAGE_ROLES" RolePrivilege_ManageTeams = "MANAGE_TEAMS" RolePrivilege_RunSecurityReports = "RUN_REPORTS" RolePrivilege_ManageBridge = "MANAGE_BRIDGE" RolePrivilege_ApproveDevice = "APPROVE_DEVICE" RolePrivilege_ManageRecordTypes = "MANAGE_RECORD_TYPES" RolePrivilege_RunComplianceReports = "RUN_COMPLIANCE_REPORTS" RolePrivilege_ManageCompanies = "MANAGE_COMPANIES" RolePrivilege_TransferAccount = "TRANSFER_ACCOUNT" RolePrivilege_SharingAdministrator = "SHARING_ADMINISTRATOR" )
Variables ¶
This section is empty.
Functions ¶
func AvailableRolePrivileges ¶
func AvailableRolePrivileges() []string
func GetEnterpriseIds ¶
func GetEnterpriseIds(keeperAuth auth.IKeeperAuth, numberRequested int) (eids []int64, err error)
Types ¶
type EncryptedData ¶
type EncryptedData struct {
DisplayName string `json:"displayname,omitempty"`
}
type EnterpriseEntityData ¶
type EnterpriseSettings ¶
type EnterpriseSettings struct {
ContinuationToken []byte `db:"continuation_token"`
}
type IEnterpriseData ¶
type IEnterpriseData interface { EnterpriseInfo() IEnterpriseInfo Nodes() IEnterpriseEntity[INode, int64] Roles() IEnterpriseEntity[IRole, int64] Users() IEnterpriseEntity[IUser, int64] Teams() IEnterpriseEntity[ITeam, string] TeamUsers() IEnterpriseLink[ITeamUser, string, int64] RoleUsers() IEnterpriseLink[IRoleUser, int64, int64] RolePrivileges() IEnterpriseLink[IRolePrivilege, int64, int64] //RoleEnforcements() map[int64]*RoleEnforcement //ManagedNodes() map[int64][]*ManagedNode //GetRoleKey(roleId int64) []byte GetRootNode() INode }
type IEnterpriseEntity ¶
type IEnterpriseEntity[T interface{}, K comparable] interface { GetAllEntities(func(T) bool) GetEntity(K) T }
type IEnterpriseInfo ¶
type IEnterpriseInfo interface { EnterpriseName() string IsDistributor() bool TreeKey() []byte RsaPrivateKey() *rsa.PrivateKey EcPrivateKey() *ecdh.PrivateKey }
type IEnterpriseLink ¶
type IEnterpriseLink[T interface{}, KS comparable, KO comparable] interface { GetLink(KS, KO) T GetLinksBySubject(KS, func(T) bool) GetLinksByObject(KO, func(T) bool) GetAllLinks(func(T) bool) }
type IEnterpriseLoader ¶
type IEnterpriseLoader interface { Storage() IEnterpriseStorage EnterpriseData() IEnterpriseData KeeperAuth() auth.IKeeperAuth Load() error }
func NewEnterpriseLoader ¶
func NewEnterpriseLoader(keeperAuth auth.IKeeperAuth, storage IEnterpriseStorage) IEnterpriseLoader
type IEnterpriseManagement ¶
type IEnterpriseManagement interface { GetEnterpriseId() (int64, error) EnterpriseData() IEnterpriseData ModifyNodes(nodesToAdd []INode, nodesToUpdate []INode, nodesToDelete []int64) []error ModifyRoles(rolesToAdd []IRole, rolesToUpdate []IRole, rolesToDelete []int64) []error ModifyTeams(teamsToAdd []ITeam, teamsToUpdate []ITeam, teamsToDelete []string) []error ModifyTeamUsers(teamUsersToAdd []ITeamUser, teamUsersToRemove []ITeamUser) []error }
func NewSyncEnterpriseManagement ¶
func NewSyncEnterpriseManagement(loader IEnterpriseLoader) IEnterpriseManagement
type IEnterpriseStorage ¶
type IEnterpriseStorage interface { ContinuationToken() ([]byte, error) SetContinuationToken([]byte) error GetEntities(func(int32, []byte) bool) error PutEntity(int32, string, []byte) error DeleteEntity(int32, string) error Flush() error Clear() }
func NewSqliteEnterpriseStorage ¶
func NewSqliteEnterpriseStorage(getConnection func() *sqlx.DB, enterpriseId int64) (storage IEnterpriseStorage, err error)
type IManagedNode ¶
type IRoleEdit ¶
type IRoleEnforcement ¶
type IRolePrivilege ¶
type IRolePrivilegeEdit ¶
type IRolePrivilegeEdit interface { IRolePrivilege SetPrivilege(string) RemovePrivilege(string) }
type ITeamEdit ¶
type LinkKey ¶
type LinkKey[KS comparable, KO comparable] struct { V1 KS V2 KO }
Click to show internal directories.
Click to hide internal directories.