Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrLastAdmin = errors.New("cannot demote the last admin")
ErrLastAdmin is returned when trying to demote the only remaining admin.
var ErrSystemEntityImmutable = errors.New("entity is system-tagged and cannot be modified from the admin UI")
ErrSystemEntityImmutable is returned when an admin tries to mutate (disable/hide/retag) a tool/job/connector that carries any System tag. System-tagged entities are owned by code — see entity.Tag godoc.
var ErrSystemTagAssignment = errors.New("system tags cannot be assigned to users")
ErrSystemTagAssignment is returned when an admin tries to attach a tag flagged IsSystem to a user. System tags are code-owned and exist solely to gate built-in maintenance items behind a tag no end user can carry — see entity.Tag godoc.
var ErrSystemTagImmutable = errors.New("system tags are read-only and cannot be modified")
ErrSystemTagImmutable is returned when an admin tries to edit, delete, or otherwise mutate a Tag whose IsSystem flag is true. System tags are owned by code (seeded via tool/job DefaultTags) and changing them from the UI would desync the seed catalog from the DB.
var ErrTagNameTaken = errors.New("a tag with that name already exists")
ErrTagNameTaken is returned when creating or renaming a tag to an existing name.
var ErrUserNotApproved = errors.New("user must be approved before assigning tags")
ErrUserNotApproved is returned when trying to assign tags to an unapproved user.
var StaticFS embed.FS
Functions ¶
This section is empty.
Types ¶
type JobListProvider ¶
JobListProvider is the subset of manager.Service that the admin panel needs.