Documentation ¶
Index ¶
Constants ¶
View Source
const AuditEntity = "policy"
Variables ¶
View Source
var ( ErrNotExist = errors.New("policies doesn't exist") ErrInvalidUUID = errors.New("invalid syntax of uuid") ErrInvalidID = errors.New("policy id is invalid") ErrConflict = errors.New("policy already exist") ErrInvalidDetail = errors.New("invalid policy detail") ErrLogActivity = errors.New("error while logging activity") )
View Source
var DefinitionCreateProject = Policy{ NamespaceID: namespace.DefinitionOrg.ID, RoleID: role.DefinitionOrganizationAdmin.ID, ActionID: action.DefinitionCreateProject.ID, }
View Source
var DefinitionCreateTeam = Policy{ NamespaceID: namespace.DefinitionOrg.ID, RoleID: role.DefinitionOrganizationAdmin.ID, ActionID: action.DefinitionCreateTeam.ID, }
View Source
var DefinitionManageProject = Policy{ NamespaceID: namespace.DefinitionProject.ID, RoleID: role.DefinitionProjectAdmin.ID, ActionID: action.DefinitionManageProject.ID, }
View Source
var DefinitionManageProjectOrg = Policy{ NamespaceID: namespace.DefinitionProject.ID, RoleID: role.DefinitionOrganizationAdmin.ID, ActionID: action.DefinitionManageProject.ID, }
View Source
var DefinitionManageTeam = Policy{ NamespaceID: namespace.DefinitionTeam.ID, RoleID: role.DefinitionTeamAdmin.ID, ActionID: action.DefinitionManageTeam.ID, }
View Source
var DefinitionManageTeamOrgAdmin = Policy{ NamespaceID: namespace.DefinitionTeam.ID, RoleID: role.DefinitionOrganizationAdmin.ID, ActionID: action.DefinitionManageTeam.ID, }
View Source
var DefinitionOrganizationManage = Policy{ NamespaceID: namespace.DefinitionOrg.ID, RoleID: role.DefinitionOrganizationAdmin.ID, ActionID: action.DefinitionManageOrganization.ID, }
View Source
var DefinitionProjectOrgAdmin = Policy{ NamespaceID: namespace.DefinitionTeam.ID, RoleID: role.DefinitionProjectAdmin.ID, ActionID: action.DefinitionTeamAll.ID, }
View Source
var DefinitionTeamOrgAdmin = Policy{ NamespaceID: namespace.DefinitionTeam.ID, RoleID: role.DefinitionOrganizationAdmin.ID, ActionID: action.DefinitionTeamAll.ID, }
View Source
var DefinitionViewTeamAdmin = Policy{ NamespaceID: namespace.DefinitionTeam.ID, RoleID: role.DefinitionTeamAdmin.ID, ActionID: action.DefinitionViewTeam.ID, }
View Source
var DefinitionViewTeamMember = Policy{ NamespaceID: namespace.DefinitionTeam.ID, RoleID: role.DefinitionTeamMember.ID, ActionID: action.DefinitionViewTeam.ID, }
Functions ¶
This section is empty.
Types ¶
type ActivityService ¶ added in v0.6.15
type AuthzRepository ¶
type Repository ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(logger log.Logger, repository Repository, userService UserService, activityService ActivityService) *Service
Click to show internal directories.
Click to hide internal directories.