Documentation ¶
Index ¶
- func AddEndpoint(projectProvider provider.ProjectProvider, ...) endpoint.Endpoint
- func DecodeAddReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodeDeleteReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodeEditReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodePatchSettingsReq(c context.Context, r *http.Request) (interface{}, error)
- func DeleteEndpoint(projectProvider provider.ProjectProvider, ...) endpoint.Endpoint
- func EditEndpoint(projectProvider provider.ProjectProvider, ...) endpoint.Endpoint
- func GetEndpoint(memberMapper provider.ProjectMemberMapper) endpoint.Endpoint
- func GetSettingsEndpoint(memberMapper provider.ProjectMemberMapper) endpoint.Endpoint
- func ListEndpoint(projectProvider provider.ProjectProvider, ...) endpoint.Endpoint
- func LogoutEndpoint(userProvider provider.UserProvider) endpoint.Endpoint
- func PatchSettingsEndpoint(userProvider provider.UserProvider) endpoint.Endpoint
- type AddReq
- type DeleteReq
- type EditReq
- type IDReq
- type PatchSettingsReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEndpoint ¶
func AddEndpoint(projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, userProvider provider.UserProvider, memberProvider provider.ProjectMemberProvider, privilegedMemberProvider provider.PrivilegedProjectMemberProvider, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
AddEndpoint adds the given user to the given group within the given project
func DecodeAddReq ¶
DecodeAddReq decodes an HTTP request into AddReq
func DecodeDeleteReq ¶
DecodeDeleteReq decodes an HTTP request into DeleteReq
func DecodeEditReq ¶
DecodeEditReq decodes an HTTP request into EditReq
func DecodePatchSettingsReq ¶
DecodePatchSettingsReq decodes an HTTP request into PatchSettingsReq
func DeleteEndpoint ¶
func DeleteEndpoint(projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, userProvider provider.UserProvider, memberProvider provider.ProjectMemberProvider, privilegedMemberProvider provider.PrivilegedProjectMemberProvider, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
DeleteEndpoint deletes the given user/member from the given project
func EditEndpoint ¶
func EditEndpoint(projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, userProvider provider.UserProvider, memberProvider provider.ProjectMemberProvider, privilegedMemberProvider provider.PrivilegedProjectMemberProvider, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
EditEndpoint changes the group the given user/member belongs in the given project
func GetEndpoint ¶
func GetEndpoint(memberMapper provider.ProjectMemberMapper) endpoint.Endpoint
GetEndpoint returns info about the current user
func GetSettingsEndpoint ¶
func GetSettingsEndpoint(memberMapper provider.ProjectMemberMapper) endpoint.Endpoint
GetSettingsEndpoint returns settings of the current user
func ListEndpoint ¶
func ListEndpoint(projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, userProvider provider.UserProvider, memberProvider provider.ProjectMemberProvider, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
ListEndpoint returns user/members of the given project
func LogoutEndpoint ¶
func LogoutEndpoint(userProvider provider.UserProvider) endpoint.Endpoint
LogoutEndpoint
func PatchSettingsEndpoint ¶
func PatchSettingsEndpoint(userProvider provider.UserProvider) endpoint.Endpoint
PatchSettingsEndpoint patches settings of the current user
Types ¶
type AddReq ¶
type AddReq struct { common.ProjectReq // in: body Body apiv1.User }
AddReq defines HTTP request for addUserToProject swagger:parameters addUserToProject
type DeleteReq ¶
type DeleteReq struct { common.ProjectReq IDReq }
DeleteReq defines HTTP request for deleteUserFromProject swagger:parameters deleteUserFromProject
type EditReq ¶
EditReq defines HTTP request for editUserInProject swagger:parameters editUserInProject
type IDReq ¶
type IDReq struct { // in: path UserID string `json:"user_id"` }
IDReq represents a request that contains userID in the path
type PatchSettingsReq ¶
type PatchSettingsReq struct { // in: body Patch json.RawMessage }
PatchSettingsReq defines HTTP request for patchCurrentUserSettings swagger:parameters patchCurrentUserSettings