Documentation
¶
Index ¶
- type Session
- type UI
- func (ui *UI) AddMember(ctx context.Context, kthID, roleID, memberKTHID string, startDate time.Time, ...) error
- func (ui *UI) AddPermissionToRole(ctx context.Context, kthID, roleID string, system, permission, scope string) error
- func (ui *UI) AddScopeToPermission(ctx context.Context, system, permission, defaultScope, kthID string) error
- func (ui *UI) AddSubrole(ctx context.Context, kthID, roleID, subroleID string) error
- func (ui *UI) CreatePermission(ctx context.Context, system, permission string, hasScope bool, kthID string) error
- func (ui *UI) CreateRole(ctx context.Context, kthID, id, displayName, description, ownerID string) error
- func (ui *UI) CreateSystem(ctx context.Context, id, kthID string) error
- func (ui *UI) DeletePermission(ctx context.Context, system, permission, kthID string) error
- func (ui *UI) DeleteRole(ctx context.Context, kthID, roleID string) error
- func (ui *UI) DeleteSession(sessionID string) error
- func (ui *UI) DeleteSystem(ctx context.Context, id, kthID string) error
- func (ui *UI) GetAllRoles(ctx context.Context) ([]string, error)
- func (ui *UI) GetAllSystems(ctx context.Context) ([]string, error)
- func (ui *UI) GetPermissions(ctx context.Context, system string) ([]models.Permission, error)
- func (ui *UI) GetRole(ctx context.Context, id string) (*models.Role, error)
- func (ui *UI) GetRoleMembers(ctx context.Context, id string, includeExpired bool, includeIndirect bool) ([]models.Member, error)
- func (ui *UI) GetRolePermissions(ctx context.Context, id string) ([]models.SystemPermissionInstances, error)
- func (ui *UI) GetSession(r *http.Request) (Session, error)
- func (ui *UI) GetSubroles(ctx context.Context, id string) ([]models.Role, error)
- func (ui *UI) GetUserRoles(ctx context.Context, kthID string) ([]models.Role, error)
- func (ui *UI) ListRoles(ctx context.Context) ([]models.Role, error)
- func (ui *UI) Login(code string) (string, error)
- func (ui *UI) LoginFrontendURL() string
- func (ui *UI) MayAddPermissions(ctx context.Context, kthID string) (bool, error)
- func (ui *UI) MayCreateRoles(ctx context.Context, kthID string) (bool, error)
- func (ui *UI) MayCreateSystems(ctx context.Context, kthID string) (bool, error)
- func (ui *UI) MayDeleteRole(ctx context.Context, kthID, roleID string) (bool, error)
- func (ui *UI) MayDeleteRoles(ctx context.Context, kthID string) (map[string]struct{}, error)
- func (ui *UI) MayDeleteSystems(ctx context.Context, kthID string) (bool, error)
- func (ui *UI) MayUpdatePermissionsInSystem(ctx context.Context, kthID, system string) (bool, error)
- func (ui *UI) MayUpdatePermissionsInSystems(ctx context.Context, kthID string, systems ...[]string) (map[string]struct{}, error)
- func (ui *UI) MayUpdateRole(ctx context.Context, kthID, roleID string) (bool, error)
- func (ui *UI) PermissionHasScope(ctx context.Context, system, permission string) (bool, error)
- func (ui *UI) RemoveMember(ctx context.Context, kthID, roleID string, memberID uuid.UUID) error
- func (ui *UI) RemovePermission(ctx context.Context, kthID string, permissionInstanceID uuid.UUID) error
- func (ui *UI) RemoveScopeFromPermission(ctx context.Context, system, permission, kthID string) error
- func (ui *UI) RemoveSubrole(ctx context.Context, kthID, roleID, subroleID string) error
- func (ui *UI) UpdateMember(ctx context.Context, kthID, roleID string, memberID uuid.UUID, ...) error
- func (ui *UI) UpdateRole(ctx context.Context, kthID, roleID, displayName, description string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UI ¶
type UI struct {
// contains filtered or unexported fields
}
func (*UI) AddPermissionToRole ¶
func (*UI) AddScopeToPermission ¶
func (*UI) AddSubrole ¶
func (*UI) CreatePermission ¶
func (*UI) CreateRole ¶
func (*UI) DeletePermission ¶
func (*UI) DeleteRole ¶
func (*UI) DeleteSession ¶
func (*UI) GetPermissions ¶
func (*UI) GetRoleMembers ¶
func (*UI) GetRolePermissions ¶
func (*UI) GetSession ¶
Returns the kth id and display name of the logged in user, or the zero value if no user is logged in.
func (*UI) GetSubroles ¶
func (*UI) GetUserRoles ¶
func (*UI) LoginFrontendURL ¶
func (*UI) MayAddPermissions ¶
func (*UI) MayCreateRoles ¶
func (*UI) MayCreateSystems ¶
func (*UI) MayDeleteRole ¶
func (*UI) MayDeleteRoles ¶
func (*UI) MayDeleteSystems ¶
func (*UI) MayUpdatePermissionsInSystem ¶
func (*UI) MayUpdatePermissionsInSystems ¶
func (*UI) MayUpdateRole ¶
func (*UI) PermissionHasScope ¶
func (*UI) RemoveMember ¶
func (*UI) RemovePermission ¶
func (*UI) RemoveScopeFromPermission ¶
func (*UI) RemoveSubrole ¶
func (*UI) UpdateMember ¶
Click to show internal directories.
Click to hide internal directories.