Documentation ¶
Index ¶
- func CheckOrgRequirements(uc biz.OCIRepositoryReader, logger *log.Helper) middleware.Middleware
- func CheckUserInAllowList(allowList []string) middleware.Middleware
- func WithCurrentRobotAccount(robotAccountUseCase *biz.RobotAccountUseCase, logger *log.Helper) middleware.Middleware
- func WithCurrentUserAndOrgMiddleware(userUseCase biz.UserOrgFinder, logger *log.Helper) middleware.Middleware
- type Org
- type RobotAccount
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckOrgRequirements ¶
func CheckOrgRequirements(uc biz.OCIRepositoryReader, logger *log.Helper) middleware.Middleware
func CheckUserInAllowList ¶
func CheckUserInAllowList(allowList []string) middleware.Middleware
Middleware that checks that the user is defined in the allow list
func WithCurrentRobotAccount ¶
func WithCurrentRobotAccount(robotAccountUseCase *biz.RobotAccountUseCase, logger *log.Helper) middleware.Middleware
Middleware that injects the current user to the context
func WithCurrentUserAndOrgMiddleware ¶
func WithCurrentUserAndOrgMiddleware(userUseCase biz.UserOrgFinder, logger *log.Helper) middleware.Middleware
Middleware that injects the current user to the context
Types ¶
type Org ¶
func CurrentOrg ¶
RequestID tries to retrieve requestID from the given context. If it doesn't exist, an empty string is returned.
type RobotAccount ¶
type RobotAccount struct {
ID, WorkflowID, OrgID string
}
func CurrentRobotAccount ¶
func CurrentRobotAccount(ctx context.Context) *RobotAccount
Click to show internal directories.
Click to hide internal directories.