Documentation
¶
Index ¶
- func NewService(params Params) (domain.Service, error)
- type Params
- type Service
- func (svc *Service) ChangePassword(ctx context.Context, userClaims *domain.Claims, ...) error
- func (svc *Service) CreateAdminUserIfNotExists(ctx context.Context, username, password string) error
- func (svc *Service) CreateNewUser(ctx context.Context, operator *domain.Claims, username, password string) error
- func (svc *Service) CreateRole(ctx context.Context, operator *domain.Claims, role *domain.Role) error
- func (svc *Service) CreateScheduleStrategy(ctx context.Context, operator *domain.Claims, ...) error
- func (svc *Service) CreateUser(ctx context.Context, operator domain.Claims, user *domain.User) error
- func (svc *Service) DeleteRole(ctx context.Context, operator *domain.Claims, roleID string) error
- func (svc *Service) DeleteScheduleIntents(ctx context.Context, operator *domain.Claims, intentIDs []string) error
- func (svc *Service) DeleteScheduleStrategy(ctx context.Context, operator *domain.Claims, strategyID string) error
- func (svc *Service) DeleteUser(ctx context.Context, operator domain.Claims, userID bson.ObjectID) error
- func (svc Service) ListAuditLogs(ctx context.Context, opt *domain.QueryAuditLogOptions) error
- func (svc *Service) ListScheduleIntents(ctx context.Context, filterOpts *domain.QueryIntentOptions) error
- func (svc *Service) ListScheduleStrategies(ctx context.Context, filterOpts *domain.QueryStrategyOptions) error
- func (svc *Service) Login(ctx context.Context, username, password string) (string, error)
- func (svc Service) QueryPermissions(ctx context.Context, opt *domain.QueryPermissionOptions) error
- func (svc *Service) QueryRoles(ctx context.Context, opt *domain.QueryRoleOptions) error
- func (svc *Service) QueryUsers(ctx context.Context, opt *domain.QueryUserOptions) error
- func (svc *Service) ResetPassword(ctx context.Context, operator *domain.Claims, id, newPassword string) error
- func (svc *Service) UpdateRole(ctx context.Context, operator *domain.Claims, roleID string, ...) error
- func (svc *Service) UpdateUser(ctx context.Context, operator domain.Claims, user *domain.User) error
- func (svc *Service) UpdateUserPermissions(ctx context.Context, operator *domain.Claims, id string, ...) error
- func (svc *Service) VerifyJWTToken(ctx context.Context, tokenString string, permissionKey domain.PermissionKey) (domain.Claims, domain.RolePolicy, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Params ¶
type Params struct {
fx.In
Repo domain.Repository
KeyConfig config.KeyConfig
AccountConfig config.AccountConfig
K8SAdapter domain.K8SAdapter
DMAdapter domain.DecisionMakerAdapter
}
type Service ¶
type Service struct {
K8SAdapter domain.K8SAdapter
DMAdapter domain.DecisionMakerAdapter
Repo domain.Repository
// contains filtered or unexported fields
}
func (*Service) ChangePassword ¶
func (*Service) CreateAdminUserIfNotExists ¶
func (*Service) CreateNewUser ¶
func (*Service) CreateRole ¶
func (*Service) CreateScheduleStrategy ¶
func (*Service) CreateUser ¶
func (*Service) DeleteRole ¶
func (*Service) DeleteScheduleIntents ¶ added in v1.1.0
func (*Service) DeleteScheduleStrategy ¶ added in v1.1.0
func (*Service) DeleteUser ¶
func (Service) ListAuditLogs ¶
func (*Service) ListScheduleIntents ¶
func (*Service) ListScheduleStrategies ¶
func (Service) QueryPermissions ¶
func (*Service) QueryRoles ¶
func (*Service) QueryUsers ¶
func (*Service) ResetPassword ¶
func (*Service) UpdateRole ¶
func (*Service) UpdateUser ¶
func (*Service) UpdateUserPermissions ¶
func (*Service) VerifyJWTToken ¶
Click to show internal directories.
Click to hide internal directories.