Documentation
¶
Index ¶
- Constants
- func AvailableRoleEnforcements(cb func(IEnforcement) bool)
- func AvailableRolePrivileges() []string
- func GetEnterpriseIds(keeperAuth auth.IKeeperAuth, numberRequested int) (eids []int64, err error)
- func ToEnforcementValue(loader IEnterpriseLoader, eType string, eValue string) (value string, shouldRemove bool, err error)
- type IBridge
- type IEmailProvision
- type IEnforcement
- type IEnterpriseData
- type IEnterpriseEntity
- type IEnterpriseInfo
- type IEnterpriseLink
- type IEnterpriseLoader
- type IEnterpriseManagement
- type IEnterpriseStorage
- type ILicense
- type ILicenseAddOn
- type IManageNodeEdit
- type IManagedCompany
- type IManagedNode
- type IMcDefault
- type IMspContact
- type IMspPermits
- type INode
- type INodeEdit
- type IQueuedTeam
- type IQueuedTeamUser
- type IRole
- type IRoleEdit
- type IRoleEnforcement
- type IRoleEnforcementEdit
- type IRolePrivilege
- type IRolePrivilegeEdit
- type IRoleTeam
- type IRoleUser
- type IScim
- type ISsoService
- type ITeam
- type ITeamEdit
- type ITeamUser
- type ITeamUserEdit
- type IUser
- type IUserAlias
- type IUserEdit
- type LinkKey
- type UserLock
- type UserStatus
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 AvailableRoleEnforcements ¶
func AvailableRoleEnforcements(cb func(IEnforcement) bool)
func AvailableRolePrivileges ¶
func AvailableRolePrivileges() []string
func GetEnterpriseIds ¶
func GetEnterpriseIds(keeperAuth auth.IKeeperAuth, numberRequested int) (eids []int64, err error)
func ToEnforcementValue ¶
Types ¶
type IEmailProvision ¶
type IEnforcement ¶
const (
RoleEnforcementGroup_LoginSettings = "LOGIN_SETTINGS" RoleEnforcementGroup_AccountSettings = "ACCOUNT_SETTINGS" RoleEnforcementGroup_TwoFactorAuthentication = "TWO_FACTOR_AUTHENTICATION" RoleEnforcementGroup_PlatformRestriction = "PLATFORM_RESTRICTION" RoleEnforcementGroup_VaultFeatures = "VAULT_FEATURES" RoleEnforcementGroup_RecordTypes = "RECORD_TYPES" RoleEnforcementGroup_SharingAndUploading = "SHARING_AND_UPLOADING" RoleEnforcementGroup_SharingAndCreating = "CREATING_AND_SHARING" RoleEnforcementGroup_KeeperFill = "KEEPER_FILL" RoleEnforcementGroup_Allow_IP_List = "ALLOW_IP_LIST"
) const (
RoleEnforcementType_Boolean = "BOOLEAN" RoleEnforcementType_Long = "LONG" RoleEnforcementType_String = "STRING" RoleEnforcementType_Json = "JSON" RoleEnforcementType_JsonArray = "JSONARRAY" RoleEnforcementType_TernaryDen = "TERNARY_DEN" RoleEnforcementType_TernaryEdn = "TERNARY_EDN" RoleEnforcementType_AccountShare = "ACCOUNT_SHARE" RoleEnforcementType_IP_WhiteList = "IP_WHITELIST" RoleEnforcementType_TwoFactorDuration = "TWO_FACTOR_DURATION" RoleEnforcementType_RecordTypes = "RECORD_TYPES"
)
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] QueuedTeams() IEnterpriseEntity[IQueuedTeam, string] QueuedTeamUsers() IEnterpriseLink[IQueuedTeamUser, string, int64] RoleUsers() IEnterpriseLink[IRoleUser, int64, int64] RoleTeams() IEnterpriseLink[IRoleTeam, int64, string] ManagedNodes() IEnterpriseLink[IManagedNode, int64, int64] RolePrivileges() IEnterpriseLink[IRolePrivilege, int64, int64] RoleEnforcements() IEnterpriseLink[IRoleEnforcement, int64, string] Licenses() IEnterpriseEntity[ILicense, int64] UserAliases() IEnterpriseLink[IUserAlias, int64, string] SsoServices() IEnterpriseEntity[ISsoService, int64] Bridges() IEnterpriseEntity[IBridge, int64] Scims() IEnterpriseEntity[IScim, int64] ManagedCompanies() IEnterpriseEntity[IManagedCompany, int64] RecordTypes() IEnterpriseEntity[vault.IRecordType, string] RootNode() INode }
type IEnterpriseEntity ¶
type IEnterpriseInfo ¶
type IEnterpriseInfo interface { EnterpriseName() string IsDistributor() bool TreeKey() []byte RsaPrivateKey() *rsa.PrivateKey EcPrivateKey() *ecdh.PrivateKey }
type IEnterpriseLink ¶
type IEnterpriseLoader ¶
type IEnterpriseLoader interface { Storage() IEnterpriseStorage EnterpriseData() IEnterpriseData KeeperAuth() auth.IKeeperAuth LoadRoleKeys(map[int64][]byte) error 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 ModifyRoleUsers(roleUsersToAdd []IRoleUser, roleUsersToRemove []IRoleUser) []error ModifyRoleTeams(roleTeamsToAdd []IRoleTeam, roleTeamsToRemove []IRoleTeam) []error ModifyManagedNodes(managedNodesToAdd []IManagedNode, managedNodesToUpdate []IManagedNode, managedNodesToRemove []IManagedNode) []error ModifyRolePrivileges(privileges []IRolePrivilege) []error ModifyRoleEnforcements(enforcementsToSet []IRoleEnforcement) []error Commit() []error }
func NewSyncEnterpriseManagement ¶
func NewSyncEnterpriseManagement(loader IEnterpriseLoader) IEnterpriseManagement
type IEnterpriseStorage ¶
type IEnterpriseStorage interface { ContinuationToken() ([]byte, error) SetContinuationToken([]byte) error EnterpriseIds() ([]int64, error) SetEnterpriseIds([]int64) error GetEntities(func(int32, []byte) bool) error PutEntity(int32, string, []byte) error DeleteEntity(int32, string, []byte) error Flush() error Clear() }
func NewSqliteEnterpriseStorage ¶
func NewSqliteEnterpriseStorage(getConnection func() *sqlx.DB, enterpriseId int64) (storage IEnterpriseStorage, err error)
type ILicense ¶
type ILicense interface { EnterpriseLicenseId() int64 LicenseKeyId() int32 ProductTypeId() int32 FilePlanId() int32 Name() string NumberOfSeats() int32 SeatsAllocated() int32 SeatsPending() int32 AddOns() []ILicenseAddOn LicenseStatus() string NextBillingDate() int64 Expiration() int64 StorageExpiration() int64 Distributor() bool MspPermits() []IMspPermits ManagedBy() IMspContact storage.IUid[int64] }
type ILicenseAddOn ¶
type IManageNodeEdit ¶
type IManageNodeEdit interface { IManagedNode SetCascadeNodeManagement(bool) }
func NewManagedNode ¶
func NewManagedNode(roleId int64, nodeId int64) IManageNodeEdit
type IManagedCompany ¶
type IManagedNode ¶
type IMcDefault ¶
type IMspContact ¶
type IMspPermits ¶
type INodeEdit ¶
type IQueuedTeam ¶
type IQueuedTeamUser ¶
type IRoleEdit ¶
type IRoleEnforcement ¶
type IRoleEnforcementEdit ¶
type IRoleEnforcementEdit interface { IRoleEnforcement SetValue(string) }
func CloneRoleEnforcement ¶
func CloneRoleEnforcement(other IRoleEnforcement) IRoleEnforcementEdit
func NewRoleEnforcement ¶
func NewRoleEnforcement(roleId int64, enforcementType string) IRoleEnforcementEdit
type IRolePrivilege ¶
type IRolePrivilege interface { RoleId() int64 ManagedNodeId() int64 ManageNodes() bool ManageUsers() bool ManageRoles() bool ManageTeams() bool RunReports() bool ManageBridge() bool ApproveDevices() bool ManageRecordTypes() bool SharingAdministrator() bool RunComplianceReport() bool TransferAccount() bool ManageCompanies() bool ToSet() api.Set[string] storage.IUidLink[int64, int64] }
type IRolePrivilegeEdit ¶
type IRolePrivilegeEdit interface { IRolePrivilege SetManageNodes(bool) SetManageUsers(bool) SetManageRoles(bool) SetManageTeams(bool) SetRunReports(bool) SetManageBridge(bool) SetApproveDevices(bool) SetManageRecordTypes(bool) SetSharingAdministrator(bool) SetRunComplianceReport(bool) SetTransferAccount(bool) SetManageCompanies(bool) SetPrivilege(string, bool) }
func NewRolePrivilege ¶
func NewRolePrivilege(roleId int64, nodeId int64) IRolePrivilegeEdit
type IRoleTeam ¶
func NewRoleTeam ¶
type IRoleUser ¶
func NewRoleUser ¶
type ISsoService ¶
type ITeamEdit ¶
type ITeamUserEdit ¶
func NewTeamUser ¶
func NewTeamUser(teamUid string, enterpriseUserId int64) ITeamUserEdit
type IUserAlias ¶
type IUserEdit ¶
type UserStatus ¶
type UserStatus string
const ( UserStatus_Active UserStatus = "active" UserStatus_Inactive UserStatus = "inactive" )
Click to show internal directories.
Click to hide internal directories.