Documentation ¶
Index ¶
Constants ¶
View Source
const AuditEntity = "namespace"
Variables ¶
View Source
var ( ErrInvalidID = errors.New("namespace id is invalid") ErrNotExist = errors.New("namespace doesn't exist") ErrConflict = errors.New("namespace name already exist") ErrInvalidDetail = errors.New("invalid namespace detail") ErrLogActivity = errors.New("error while logging activity") )
View Source
var DefinitionOrg = Namespace{
ID: "shield/organization",
Name: "Organization",
}
View Source
var DefinitionProject = Namespace{
ID: "shield/project",
Name: "Project",
}
View Source
var DefinitionTeam = Namespace{
ID: "shield/group",
Name: "Group",
}
View Source
var DefinitionUser = Namespace{
ID: "shield/user",
Name: "User",
}
Functions ¶
func IsSystemNamespaceID ¶
Types ¶
type ActivityService ¶ added in v0.6.15
type Namespace ¶
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.