Documentation ¶
Index ¶
- type RoleManagerAuthorizationMiddleware
- func (ram RoleManagerAuthorizationMiddleware) AddRole(ctx context.Context, session authn.Session, entityID, roleName string, ...) (roles.Role, error)
- func (ram RoleManagerAuthorizationMiddleware) ListAvailableActions(ctx context.Context, session authn.Session) ([]string, error)
- func (ram RoleManagerAuthorizationMiddleware) RemoveMemberFromAllRoles(ctx context.Context, session authn.Session, memberID string) (err error)
- func (ram RoleManagerAuthorizationMiddleware) RemoveRole(ctx context.Context, session authn.Session, entityID, roleName string) error
- func (ram RoleManagerAuthorizationMiddleware) RetrieveAllRoles(ctx context.Context, session authn.Session, entityID string, ...) (roles.RolePage, error)
- func (ram RoleManagerAuthorizationMiddleware) RetrieveRole(ctx context.Context, session authn.Session, entityID, roleName string) (roles.Role, error)
- func (ram RoleManagerAuthorizationMiddleware) RoleAddActions(ctx context.Context, session authn.Session, entityID, roleName string, ...) (ops []string, err error)
- func (ram RoleManagerAuthorizationMiddleware) RoleAddMembers(ctx context.Context, session authn.Session, entityID, roleName string, ...) ([]string, error)
- func (ram RoleManagerAuthorizationMiddleware) RoleCheckActionsExists(ctx context.Context, session authn.Session, entityID, roleName string, ...) (bool, error)
- func (ram RoleManagerAuthorizationMiddleware) RoleCheckMembersExists(ctx context.Context, session authn.Session, entityID, roleName string, ...) (bool, error)
- func (ram RoleManagerAuthorizationMiddleware) RoleListActions(ctx context.Context, session authn.Session, entityID, roleName string) ([]string, error)
- func (ram RoleManagerAuthorizationMiddleware) RoleListMembers(ctx context.Context, session authn.Session, entityID, roleName string, ...) (roles.MembersPage, error)
- func (ram RoleManagerAuthorizationMiddleware) RoleRemoveActions(ctx context.Context, session authn.Session, entityID, roleName string, ...) (err error)
- func (ram RoleManagerAuthorizationMiddleware) RoleRemoveAllActions(ctx context.Context, session authn.Session, entityID, roleName string) error
- func (ram RoleManagerAuthorizationMiddleware) RoleRemoveAllMembers(ctx context.Context, session authn.Session, entityID, roleName string) (err error)
- func (ram RoleManagerAuthorizationMiddleware) RoleRemoveMembers(ctx context.Context, session authn.Session, entityID, roleName string, ...) (err error)
- func (ram RoleManagerAuthorizationMiddleware) UpdateRoleName(ctx context.Context, session authn.Session, ...) (roles.Role, error)
- type RoleManagerLoggingMiddleware
- func (lm *RoleManagerLoggingMiddleware) AddRole(ctx context.Context, session authn.Session, entityID, roleName string, ...) (ro roles.Role, err error)
- func (lm *RoleManagerLoggingMiddleware) ListAvailableActions(ctx context.Context, session authn.Session) (acts []string, err error)
- func (lm *RoleManagerLoggingMiddleware) RemoveMemberFromAllRoles(ctx context.Context, session authn.Session, memberID string) (err error)
- func (lm *RoleManagerLoggingMiddleware) RemoveRole(ctx context.Context, session authn.Session, entityID, roleName string) (err error)
- func (lm *RoleManagerLoggingMiddleware) RetrieveAllRoles(ctx context.Context, session authn.Session, entityID string, ...) (rp roles.RolePage, err error)
- func (lm *RoleManagerLoggingMiddleware) RetrieveRole(ctx context.Context, session authn.Session, entityID, roleName string) (ro roles.Role, err error)
- func (lm *RoleManagerLoggingMiddleware) RoleAddActions(ctx context.Context, session authn.Session, entityID, roleName string, ...) (caps []string, err error)
- func (lm *RoleManagerLoggingMiddleware) RoleAddMembers(ctx context.Context, session authn.Session, entityID, roleName string, ...) (mems []string, err error)
- func (lm *RoleManagerLoggingMiddleware) RoleCheckActionsExists(ctx context.Context, session authn.Session, entityID, roleName string, ...) (bool, error)
- func (lm *RoleManagerLoggingMiddleware) RoleCheckMembersExists(ctx context.Context, session authn.Session, entityID, roleName string, ...) (bool, error)
- func (lm *RoleManagerLoggingMiddleware) RoleListActions(ctx context.Context, session authn.Session, entityID, roleName string) (roOps []string, err error)
- func (lm *RoleManagerLoggingMiddleware) RoleListMembers(ctx context.Context, session authn.Session, entityID, roleName string, ...) (mp roles.MembersPage, err error)
- func (lm *RoleManagerLoggingMiddleware) RoleRemoveActions(ctx context.Context, session authn.Session, entityID, roleName string, ...) (err error)
- func (lm *RoleManagerLoggingMiddleware) RoleRemoveAllActions(ctx context.Context, session authn.Session, entityID, roleName string) (err error)
- func (lm *RoleManagerLoggingMiddleware) RoleRemoveAllMembers(ctx context.Context, session authn.Session, entityID, roleName string) (err error)
- func (lm *RoleManagerLoggingMiddleware) RoleRemoveMembers(ctx context.Context, session authn.Session, entityID, roleName string, ...) (err error)
- func (lm *RoleManagerLoggingMiddleware) UpdateRoleName(ctx context.Context, session authn.Session, ...) (ro roles.Role, err error)
- type RoleManagerMetricsMiddleware
- func (rmm *RoleManagerMetricsMiddleware) AddRole(ctx context.Context, session authn.Session, entityID, roleName string, ...) (roles.Role, error)
- func (rmm *RoleManagerMetricsMiddleware) ListAvailableActions(ctx context.Context, session authn.Session) ([]string, error)
- func (rmm *RoleManagerMetricsMiddleware) RemoveMemberFromAllRoles(ctx context.Context, session authn.Session, memberID string) (err error)
- func (rmm *RoleManagerMetricsMiddleware) RemoveRole(ctx context.Context, session authn.Session, entityID, roleName string) error
- func (rmm *RoleManagerMetricsMiddleware) RetrieveAllRoles(ctx context.Context, session authn.Session, entityID string, ...) (roles.RolePage, error)
- func (rmm *RoleManagerMetricsMiddleware) RetrieveRole(ctx context.Context, session authn.Session, entityID, roleName string) (roles.Role, error)
- func (rmm *RoleManagerMetricsMiddleware) RoleAddActions(ctx context.Context, session authn.Session, entityID, roleName string, ...) (caps []string, err error)
- func (rmm *RoleManagerMetricsMiddleware) RoleAddMembers(ctx context.Context, session authn.Session, entityID, roleName string, ...) ([]string, error)
- func (rmm *RoleManagerMetricsMiddleware) RoleCheckActionsExists(ctx context.Context, session authn.Session, entityID, roleName string, ...) (bool, error)
- func (rmm *RoleManagerMetricsMiddleware) RoleCheckMembersExists(ctx context.Context, session authn.Session, entityID, roleName string, ...) (bool, error)
- func (rmm *RoleManagerMetricsMiddleware) RoleListActions(ctx context.Context, session authn.Session, entityID, roleName string) ([]string, error)
- func (rmm *RoleManagerMetricsMiddleware) RoleListMembers(ctx context.Context, session authn.Session, entityID, roleName string, ...) (roles.MembersPage, error)
- func (rmm *RoleManagerMetricsMiddleware) RoleRemoveActions(ctx context.Context, session authn.Session, entityID, roleName string, ...) (err error)
- func (rmm *RoleManagerMetricsMiddleware) RoleRemoveAllActions(ctx context.Context, session authn.Session, entityID, roleName string) error
- func (rmm *RoleManagerMetricsMiddleware) RoleRemoveAllMembers(ctx context.Context, session authn.Session, entityID, roleName string) (err error)
- func (rmm *RoleManagerMetricsMiddleware) RoleRemoveMembers(ctx context.Context, session authn.Session, entityID, roleName string, ...) (err error)
- func (rmm *RoleManagerMetricsMiddleware) UpdateRoleName(ctx context.Context, session authn.Session, ...) (roles.Role, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoleManagerAuthorizationMiddleware ¶
type RoleManagerAuthorizationMiddleware struct {
// contains filtered or unexported fields
}
func NewRoleManagerAuthorizationMiddleware ¶
func NewRoleManagerAuthorizationMiddleware(entityType string, svc roles.RoleManager, authz smqauthz.Authorization, opPerm map[svcutil.Operation]svcutil.Permission) (RoleManagerAuthorizationMiddleware, error)
AuthorizationMiddleware adds authorization to the clients service.
func (RoleManagerAuthorizationMiddleware) ListAvailableActions ¶
func (RoleManagerAuthorizationMiddleware) RemoveMemberFromAllRoles ¶
func (RoleManagerAuthorizationMiddleware) RemoveRole ¶
func (RoleManagerAuthorizationMiddleware) RetrieveAllRoles ¶
func (RoleManagerAuthorizationMiddleware) RetrieveRole ¶
func (RoleManagerAuthorizationMiddleware) RoleAddActions ¶
func (RoleManagerAuthorizationMiddleware) RoleAddMembers ¶
func (RoleManagerAuthorizationMiddleware) RoleCheckActionsExists ¶
func (RoleManagerAuthorizationMiddleware) RoleCheckMembersExists ¶
func (RoleManagerAuthorizationMiddleware) RoleListActions ¶
func (RoleManagerAuthorizationMiddleware) RoleListMembers ¶
func (ram RoleManagerAuthorizationMiddleware) RoleListMembers(ctx context.Context, session authn.Session, entityID, roleName string, limit, offset uint64) (roles.MembersPage, error)
func (RoleManagerAuthorizationMiddleware) RoleRemoveActions ¶
func (RoleManagerAuthorizationMiddleware) RoleRemoveAllActions ¶
func (RoleManagerAuthorizationMiddleware) RoleRemoveAllMembers ¶
func (RoleManagerAuthorizationMiddleware) RoleRemoveMembers ¶
type RoleManagerLoggingMiddleware ¶
type RoleManagerLoggingMiddleware struct {
// contains filtered or unexported fields
}
func NewRoleManagerLoggingMiddleware ¶
func NewRoleManagerLoggingMiddleware(svcName string, svc roles.RoleManager, logger *slog.Logger) RoleManagerLoggingMiddleware
func (*RoleManagerLoggingMiddleware) ListAvailableActions ¶
func (*RoleManagerLoggingMiddleware) RemoveMemberFromAllRoles ¶
func (*RoleManagerLoggingMiddleware) RemoveRole ¶
func (*RoleManagerLoggingMiddleware) RetrieveAllRoles ¶
func (*RoleManagerLoggingMiddleware) RetrieveRole ¶
func (*RoleManagerLoggingMiddleware) RoleAddActions ¶
func (*RoleManagerLoggingMiddleware) RoleAddMembers ¶
func (*RoleManagerLoggingMiddleware) RoleCheckActionsExists ¶
func (*RoleManagerLoggingMiddleware) RoleCheckMembersExists ¶
func (*RoleManagerLoggingMiddleware) RoleListActions ¶
func (*RoleManagerLoggingMiddleware) RoleListMembers ¶
func (lm *RoleManagerLoggingMiddleware) RoleListMembers(ctx context.Context, session authn.Session, entityID, roleName string, limit, offset uint64) (mp roles.MembersPage, err error)
func (*RoleManagerLoggingMiddleware) RoleRemoveActions ¶
func (*RoleManagerLoggingMiddleware) RoleRemoveAllActions ¶
func (*RoleManagerLoggingMiddleware) RoleRemoveAllMembers ¶
func (*RoleManagerLoggingMiddleware) RoleRemoveMembers ¶
type RoleManagerMetricsMiddleware ¶
type RoleManagerMetricsMiddleware struct {
// contains filtered or unexported fields
}
func NewRoleManagerMetricsMiddleware ¶
func NewRoleManagerMetricsMiddleware(svcName string, svc roles.RoleManager, counter metrics.Counter, latency metrics.Histogram) RoleManagerMetricsMiddleware
func (*RoleManagerMetricsMiddleware) ListAvailableActions ¶
func (*RoleManagerMetricsMiddleware) RemoveMemberFromAllRoles ¶
func (*RoleManagerMetricsMiddleware) RemoveRole ¶
func (*RoleManagerMetricsMiddleware) RetrieveAllRoles ¶
func (*RoleManagerMetricsMiddleware) RetrieveRole ¶
func (*RoleManagerMetricsMiddleware) RoleAddActions ¶
func (*RoleManagerMetricsMiddleware) RoleAddMembers ¶
func (*RoleManagerMetricsMiddleware) RoleCheckActionsExists ¶
func (*RoleManagerMetricsMiddleware) RoleCheckMembersExists ¶
func (*RoleManagerMetricsMiddleware) RoleListActions ¶
func (*RoleManagerMetricsMiddleware) RoleListMembers ¶
func (rmm *RoleManagerMetricsMiddleware) RoleListMembers(ctx context.Context, session authn.Session, entityID, roleName string, limit, offset uint64) (roles.MembersPage, error)
func (*RoleManagerMetricsMiddleware) RoleRemoveActions ¶
func (*RoleManagerMetricsMiddleware) RoleRemoveAllActions ¶
func (*RoleManagerMetricsMiddleware) RoleRemoveAllMembers ¶
func (*RoleManagerMetricsMiddleware) RoleRemoveMembers ¶
Click to show internal directories.
Click to hide internal directories.