Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DependentRolesError ¶
DependentRolesError indicates a role cannot be deleted because other roles extend it.
func (*DependentRolesError) Error ¶
func (e *DependentRolesError) Error() string
type RoleInUseError ¶
type RoleInUseError struct {
RoleID string
}
RoleInUseError indicates a role cannot be deleted because one or more workspaces currently have it assigned.
func (*RoleInUseError) Error ¶
func (e *RoleInUseError) Error() string
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service handles agent role CRUD, inheritance resolution, and validation.
func (*Service) CheckDelete ¶
CheckDelete validates that a role can be safely deleted. (Stress test 3.2: dependent-role check + workspace usage check)
func (*Service) ResolveEffective ¶
func (s *Service) ResolveEffective(ctx context.Context, roleID string) (*types.EffectiveAgentRole, error)
ResolveEffective walks the extends chain from leaf to root and merges configs. Returns the fully resolved role with the merged config.
Click to show internal directories.
Click to hide internal directories.