Documentation ¶
Overview ¶
Package v1 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
Index ¶
- Constants
- func FromPtr[T any](v *T) T
- func GetSwagger() (swagger *openapi3.T, err error)
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- func Notify(w http.ResponseWriter, notification Notification)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func ToPtr[T any](v T) *T
- type API
- func (a *API) AttachTeamToUser(ctx context.Context, request AttachTeamToUserRequestObject) (AttachTeamToUserResponseObject, error)
- func (a *API) AttachUserToTeam(ctx context.Context, request AttachUserToTeamRequestObject) (AttachUserToTeamResponseObject, error)
- func (a *API) CreateTeam(ctx context.Context, request CreateTeamRequestObject) (CreateTeamResponseObject, error)
- func (a *API) CreateUser(ctx context.Context, request CreateUserRequestObject) (CreateUserResponseObject, error)
- func (a *API) DeleteTeam(ctx context.Context, request DeleteTeamRequestObject) (DeleteTeamResponseObject, error)
- func (a *API) DeleteTeamFromUser(ctx context.Context, request DeleteTeamFromUserRequestObject) (DeleteTeamFromUserResponseObject, error)
- func (a *API) DeleteUser(ctx context.Context, request DeleteUserRequestObject) (DeleteUserResponseObject, error)
- func (a *API) DeleteUserFromTeam(ctx context.Context, request DeleteUserFromTeamRequestObject) (DeleteUserFromTeamResponseObject, error)
- func (a *API) ExternalCallback(ctx context.Context, request ExternalCallbackRequestObject) (ExternalCallbackResponseObject, error)
- func (a *API) ExternalInitialize(ctx context.Context, request ExternalInitializeRequestObject) (ExternalInitializeResponseObject, error)
- func (a *API) ListTeamUsers(ctx context.Context, request ListTeamUsersRequestObject) (ListTeamUsersResponseObject, error)
- func (a *API) ListTeams(ctx context.Context, request ListTeamsRequestObject) (ListTeamsResponseObject, error)
- func (a *API) ListUserTeams(ctx context.Context, request ListUserTeamsRequestObject) (ListUserTeamsResponseObject, error)
- func (a *API) ListUsers(ctx context.Context, request ListUsersRequestObject) (ListUsersResponseObject, error)
- func (a *API) LoginAuth(ctx context.Context, request LoginAuthRequestObject) (LoginAuthResponseObject, error)
- func (a *API) PermitTeamUser(ctx context.Context, request PermitTeamUserRequestObject) (PermitTeamUserResponseObject, error)
- func (a *API) PermitUserTeam(ctx context.Context, request PermitUserTeamRequestObject) (PermitUserTeamResponseObject, error)
- func (a *API) RefreshAuth(ctx context.Context, _ RefreshAuthRequestObject) (RefreshAuthResponseObject, error)
- func (a *API) ShowProfile(ctx context.Context, _ ShowProfileRequestObject) (ShowProfileResponseObject, error)
- func (a *API) ShowTeam(ctx context.Context, request ShowTeamRequestObject) (ShowTeamResponseObject, error)
- func (a *API) ShowUser(ctx context.Context, request ShowUserRequestObject) (ShowUserResponseObject, error)
- func (a *API) TokenProfile(ctx context.Context, _ TokenProfileRequestObject) (TokenProfileResponseObject, error)
- func (a *API) UpdateProfile(ctx context.Context, request UpdateProfileRequestObject) (UpdateProfileResponseObject, error)
- func (a *API) UpdateTeam(ctx context.Context, request UpdateTeamRequestObject) (UpdateTeamResponseObject, error)
- func (a *API) UpdateUser(ctx context.Context, request UpdateUserRequestObject) (UpdateUserResponseObject, error)
- func (a *API) VerifyAuth(ctx context.Context, _ VerifyAuthRequestObject) (VerifyAuthResponseObject, error)
- type AttachTeamToUser200JSONResponse
- type AttachTeamToUser403JSONResponse
- type AttachTeamToUser404JSONResponse
- type AttachTeamToUser412JSONResponse
- type AttachTeamToUser422JSONResponse
- type AttachTeamToUser500JSONResponse
- type AttachTeamToUserJSONRequestBody
- type AttachTeamToUserRequestObject
- type AttachTeamToUserResponseObject
- type AttachTeamToUserdefaultJSONResponse
- type AttachUserToTeam200JSONResponse
- type AttachUserToTeam403JSONResponse
- type AttachUserToTeam404JSONResponse
- type AttachUserToTeam412JSONResponse
- type AttachUserToTeam422JSONResponse
- type AttachUserToTeam500JSONResponse
- type AttachUserToTeamJSONRequestBody
- type AttachUserToTeamRequestObject
- type AttachUserToTeamResponseObject
- type AttachUserToTeamdefaultJSONResponse
- type AuthLogin
- type AuthToken
- type AuthVerify
- type ChiServerOptions
- type CreateTeam200JSONResponse
- type CreateTeam403JSONResponse
- type CreateTeam422JSONResponse
- type CreateTeam500JSONResponse
- type CreateTeamJSONRequestBody
- type CreateTeamRequestObject
- type CreateTeamResponseObject
- type CreateTeamdefaultJSONResponse
- type CreateUser200JSONResponse
- type CreateUser403JSONResponse
- type CreateUser422JSONResponse
- type CreateUser500JSONResponse
- type CreateUserJSONRequestBody
- type CreateUserRequestObject
- type CreateUserResponseObject
- type CreateUserdefaultJSONResponse
- type DeleteTeam200JSONResponse
- type DeleteTeam400JSONResponse
- type DeleteTeam403JSONResponse
- type DeleteTeam404JSONResponse
- type DeleteTeam500JSONResponse
- type DeleteTeamFromUser200JSONResponse
- type DeleteTeamFromUser403JSONResponse
- type DeleteTeamFromUser404JSONResponse
- type DeleteTeamFromUser412JSONResponse
- type DeleteTeamFromUser500JSONResponse
- type DeleteTeamFromUserJSONRequestBody
- type DeleteTeamFromUserRequestObject
- type DeleteTeamFromUserResponseObject
- type DeleteTeamFromUserdefaultJSONResponse
- type DeleteTeamRequestObject
- type DeleteTeamResponseObject
- type DeleteTeamdefaultJSONResponse
- type DeleteUser200JSONResponse
- type DeleteUser400JSONResponse
- type DeleteUser403JSONResponse
- type DeleteUser404JSONResponse
- type DeleteUser500JSONResponse
- type DeleteUserFromTeam200JSONResponse
- type DeleteUserFromTeam403JSONResponse
- type DeleteUserFromTeam404JSONResponse
- type DeleteUserFromTeam412JSONResponse
- type DeleteUserFromTeam500JSONResponse
- type DeleteUserFromTeamJSONRequestBody
- type DeleteUserFromTeamRequestObject
- type DeleteUserFromTeamResponseObject
- type DeleteUserFromTeamdefaultJSONResponse
- type DeleteUserRequestObject
- type DeleteUserResponseObject
- type DeleteUserdefaultJSONResponse
- type ExternalCallback307Response
- type ExternalCallback404JSONResponse
- type ExternalCallback412JSONResponse
- type ExternalCallbackParams
- type ExternalCallbackRedirectResponse
- type ExternalCallbackRequestObject
- type ExternalCallbackResponseObject
- type ExternalCallbackdefaultJSONResponse
- type ExternalInitialize307Response
- type ExternalInitialize404JSONResponse
- type ExternalInitialize412JSONResponse
- type ExternalInitializeParams
- type ExternalInitializeRedirectResponse
- type ExternalInitializeRequestObject
- type ExternalInitializeResponseObject
- type ExternalInitializedefaultJSONResponse
- type InvalidParamFormatError
- type ListTeamUsers200JSONResponse
- type ListTeamUsers403JSONResponse
- type ListTeamUsers404JSONResponse
- type ListTeamUsers500JSONResponse
- type ListTeamUsersParams
- type ListTeamUsersParamsOrder
- type ListTeamUsersParamsSort
- type ListTeamUsersRequestObject
- type ListTeamUsersResponseObject
- type ListTeamUsersdefaultJSONResponse
- type ListTeams200JSONResponse
- type ListTeams403JSONResponse
- type ListTeams500JSONResponse
- type ListTeamsParams
- type ListTeamsParamsOrder
- type ListTeamsParamsSort
- type ListTeamsRequestObject
- type ListTeamsResponseObject
- type ListTeamsdefaultJSONResponse
- type ListUserTeams200JSONResponse
- type ListUserTeams403JSONResponse
- type ListUserTeams404JSONResponse
- type ListUserTeams500JSONResponse
- type ListUserTeamsParams
- type ListUserTeamsParamsOrder
- type ListUserTeamsParamsSort
- type ListUserTeamsRequestObject
- type ListUserTeamsResponseObject
- type ListUserTeamsdefaultJSONResponse
- type ListUsers200JSONResponse
- type ListUsers403JSONResponse
- type ListUsers500JSONResponse
- type ListUsersParams
- type ListUsersParamsOrder
- type ListUsersParamsSort
- type ListUsersRequestObject
- type ListUsersResponseObject
- type ListUsersdefaultJSONResponse
- type LoginAuth200JSONResponse
- type LoginAuth401JSONResponse
- type LoginAuth500JSONResponse
- type LoginAuthJSONRequestBody
- type LoginAuthRequestObject
- type LoginAuthResponseObject
- type LoginAuthdefaultJSONResponse
- type MiddlewareFunc
- type Notification
- type PermitTeamUser200JSONResponse
- type PermitTeamUser403JSONResponse
- type PermitTeamUser404JSONResponse
- type PermitTeamUser412JSONResponse
- type PermitTeamUser422JSONResponse
- type PermitTeamUser500JSONResponse
- type PermitTeamUserJSONRequestBody
- type PermitTeamUserRequestObject
- type PermitTeamUserResponseObject
- type PermitTeamUserdefaultJSONResponse
- type PermitUserTeam200JSONResponse
- type PermitUserTeam403JSONResponse
- type PermitUserTeam404JSONResponse
- type PermitUserTeam412JSONResponse
- type PermitUserTeam422JSONResponse
- type PermitUserTeam500JSONResponse
- type PermitUserTeamJSONRequestBody
- type PermitUserTeamRequestObject
- type PermitUserTeamResponseObject
- type PermitUserTeamdefaultJSONResponse
- type Profile
- type RefreshAuth200JSONResponse
- type RefreshAuth401JSONResponse
- type RefreshAuth500JSONResponse
- type RefreshAuthRequestObject
- type RefreshAuthResponseObject
- type RefreshAuthdefaultJSONResponse
- type RequiredHeaderError
- type RequiredParamError
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) AttachTeamToUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AttachUserToTeam(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateTeam(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteTeam(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteTeamFromUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteUserFromTeam(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ExternalCallback(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ExternalInitialize(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListTeamUsers(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListTeams(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListUserTeams(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) LoginAuth(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PermitTeamUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PermitUserTeam(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RefreshAuth(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ShowProfile(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ShowTeam(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ShowUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) TokenProfile(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateProfile(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateTeam(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) VerifyAuth(w http.ResponseWriter, r *http.Request)
- type ShowProfile200JSONResponse
- type ShowProfile403JSONResponse
- type ShowProfile500JSONResponse
- type ShowProfileRequestObject
- type ShowProfileResponseObject
- type ShowProfiledefaultJSONResponse
- type ShowTeam200JSONResponse
- type ShowTeam403JSONResponse
- type ShowTeam404JSONResponse
- type ShowTeam500JSONResponse
- type ShowTeamRequestObject
- type ShowTeamResponseObject
- type ShowTeamdefaultJSONResponse
- type ShowUser200JSONResponse
- type ShowUser403JSONResponse
- type ShowUser404JSONResponse
- type ShowUser500JSONResponse
- type ShowUserRequestObject
- type ShowUserResponseObject
- type ShowUserdefaultJSONResponse
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type Team
- type TeamUserParams
- type TeamUserParamsPerm
- type TeamUsers
- type Teams
- type TokenProfile200JSONResponse
- type TokenProfile403JSONResponse
- type TokenProfile500JSONResponse
- type TokenProfileRequestObject
- type TokenProfileResponseObject
- type TokenProfiledefaultJSONResponse
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) AttachTeamToUser(w http.ResponseWriter, r *http.Request, teamId string)
- func (_ Unimplemented) AttachUserToTeam(w http.ResponseWriter, r *http.Request, userId string)
- func (_ Unimplemented) CreateTeam(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CreateUser(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) DeleteTeam(w http.ResponseWriter, r *http.Request, teamId string)
- func (_ Unimplemented) DeleteTeamFromUser(w http.ResponseWriter, r *http.Request, teamId string)
- func (_ Unimplemented) DeleteUser(w http.ResponseWriter, r *http.Request, userId string)
- func (_ Unimplemented) DeleteUserFromTeam(w http.ResponseWriter, r *http.Request, userId string)
- func (_ Unimplemented) ExternalCallback(w http.ResponseWriter, r *http.Request, provider string, ...)
- func (_ Unimplemented) ExternalInitialize(w http.ResponseWriter, r *http.Request, provider string, ...)
- func (_ Unimplemented) ListTeamUsers(w http.ResponseWriter, r *http.Request, teamId string, ...)
- func (_ Unimplemented) ListTeams(w http.ResponseWriter, r *http.Request, params ListTeamsParams)
- func (_ Unimplemented) ListUserTeams(w http.ResponseWriter, r *http.Request, userId string, ...)
- func (_ Unimplemented) ListUsers(w http.ResponseWriter, r *http.Request, params ListUsersParams)
- func (_ Unimplemented) LoginAuth(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) PermitTeamUser(w http.ResponseWriter, r *http.Request, teamId string)
- func (_ Unimplemented) PermitUserTeam(w http.ResponseWriter, r *http.Request, userId string)
- func (_ Unimplemented) RefreshAuth(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ShowProfile(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ShowTeam(w http.ResponseWriter, r *http.Request, teamId string)
- func (_ Unimplemented) ShowUser(w http.ResponseWriter, r *http.Request, userId string)
- func (_ Unimplemented) TokenProfile(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) UpdateProfile(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) UpdateTeam(w http.ResponseWriter, r *http.Request, teamId string)
- func (_ Unimplemented) UpdateUser(w http.ResponseWriter, r *http.Request, userId string)
- func (_ Unimplemented) VerifyAuth(w http.ResponseWriter, r *http.Request)
- type UnmarshalingParamError
- type UpdateProfile200JSONResponse
- type UpdateProfile403JSONResponse
- type UpdateProfile422JSONResponse
- type UpdateProfile500JSONResponse
- type UpdateProfileJSONRequestBody
- type UpdateProfileRequestObject
- type UpdateProfileResponseObject
- type UpdateProfiledefaultJSONResponse
- type UpdateTeam200JSONResponse
- type UpdateTeam403JSONResponse
- type UpdateTeam404JSONResponse
- type UpdateTeam422JSONResponse
- type UpdateTeam500JSONResponse
- type UpdateTeamJSONRequestBody
- type UpdateTeamRequestObject
- type UpdateTeamResponseObject
- type UpdateTeamdefaultJSONResponse
- type UpdateUser200JSONResponse
- type UpdateUser403JSONResponse
- type UpdateUser404JSONResponse
- type UpdateUser422JSONResponse
- type UpdateUser500JSONResponse
- type UpdateUserJSONRequestBody
- type UpdateUserRequestObject
- type UpdateUserResponseObject
- type UpdateUserdefaultJSONResponse
- type User
- type UserAuth
- type UserTeam
- type UserTeamParams
- type UserTeamParamsPerm
- type UserTeamPerm
- type UserTeams
- type Users
- type Validation
- type VerifyAuth200JSONResponse
- type VerifyAuth401JSONResponse
- type VerifyAuth500JSONResponse
- type VerifyAuthRequestObject
- type VerifyAuthResponseObject
- type VerifyAuthdefaultJSONResponse
Constants ¶
const ( BasicScopes contextKey = "Basic.Scopes" BearerScopes contextKey = "Bearer.Scopes" CookieScopes contextKey = "Cookie.Scopes" HeaderScopes contextKey = "Header.Scopes" )
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func Notify ¶
func Notify(w http.ResponseWriter, notification Notification)
Notify simply processes a notification.
func PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API provides the http.Handler for the OpenAPI implementation.
func New ¶
func New( cfg *config.Config, registry *metrics.Metrics, sess *session.Session, uploads upload.Upload, storage store.Store, teamsService teams.Service, usersService users.Service, userteamsService userteams.Service, ) *API
New creates a new API that adds the handler implementations.
func (*API) AttachTeamToUser ¶
func (a *API) AttachTeamToUser(ctx context.Context, request AttachTeamToUserRequestObject) (AttachTeamToUserResponseObject, error)
AttachTeamToUser implements the v1.ServerInterface.
func (*API) AttachUserToTeam ¶
func (a *API) AttachUserToTeam(ctx context.Context, request AttachUserToTeamRequestObject) (AttachUserToTeamResponseObject, error)
AttachUserToTeam implements the v1.ServerInterface.
func (*API) CreateTeam ¶
func (a *API) CreateTeam(ctx context.Context, request CreateTeamRequestObject) (CreateTeamResponseObject, error)
CreateTeam implements the v1.ServerInterface.
func (*API) CreateUser ¶
func (a *API) CreateUser(ctx context.Context, request CreateUserRequestObject) (CreateUserResponseObject, error)
CreateUser implements the v1.ServerInterface.
func (*API) DeleteTeam ¶
func (a *API) DeleteTeam(ctx context.Context, request DeleteTeamRequestObject) (DeleteTeamResponseObject, error)
DeleteTeam implements the v1.ServerInterface.
func (*API) DeleteTeamFromUser ¶
func (a *API) DeleteTeamFromUser(ctx context.Context, request DeleteTeamFromUserRequestObject) (DeleteTeamFromUserResponseObject, error)
DeleteTeamFromUser implements the v1.ServerInterface.
func (*API) DeleteUser ¶
func (a *API) DeleteUser(ctx context.Context, request DeleteUserRequestObject) (DeleteUserResponseObject, error)
DeleteUser implements the v1.ServerInterface.
func (*API) DeleteUserFromTeam ¶
func (a *API) DeleteUserFromTeam(ctx context.Context, request DeleteUserFromTeamRequestObject) (DeleteUserFromTeamResponseObject, error)
DeleteUserFromTeam implements the v1.ServerInterface.
func (*API) ExternalCallback ¶
func (a *API) ExternalCallback(ctx context.Context, request ExternalCallbackRequestObject) (ExternalCallbackResponseObject, error)
ExternalCallback implements the v1.ServerInterface.
func (*API) ExternalInitialize ¶
func (a *API) ExternalInitialize(ctx context.Context, request ExternalInitializeRequestObject) (ExternalInitializeResponseObject, error)
ExternalInitialize implements the v1.ServerInterface.
func (*API) ListTeamUsers ¶
func (a *API) ListTeamUsers(ctx context.Context, request ListTeamUsersRequestObject) (ListTeamUsersResponseObject, error)
ListTeamUsers implements the v1.ServerInterface.
func (*API) ListTeams ¶
func (a *API) ListTeams(ctx context.Context, request ListTeamsRequestObject) (ListTeamsResponseObject, error)
ListTeams implements the v1.ServerInterface.
func (*API) ListUserTeams ¶
func (a *API) ListUserTeams(ctx context.Context, request ListUserTeamsRequestObject) (ListUserTeamsResponseObject, error)
ListUserTeams implements the v1.ServerInterface.
func (*API) ListUsers ¶
func (a *API) ListUsers(ctx context.Context, request ListUsersRequestObject) (ListUsersResponseObject, error)
ListUsers implements the v1.ServerInterface.
func (*API) LoginAuth ¶
func (a *API) LoginAuth(ctx context.Context, request LoginAuthRequestObject) (LoginAuthResponseObject, error)
LoginAuth implements the v1.ServerInterface.
func (*API) PermitTeamUser ¶
func (a *API) PermitTeamUser(ctx context.Context, request PermitTeamUserRequestObject) (PermitTeamUserResponseObject, error)
PermitTeamUser implements the v1.ServerInterface.
func (*API) PermitUserTeam ¶
func (a *API) PermitUserTeam(ctx context.Context, request PermitUserTeamRequestObject) (PermitUserTeamResponseObject, error)
PermitUserTeam implements the v1.ServerInterface.
func (*API) RefreshAuth ¶
func (a *API) RefreshAuth(ctx context.Context, _ RefreshAuthRequestObject) (RefreshAuthResponseObject, error)
RefreshAuth implements the v1.ServerInterface.
func (*API) ShowProfile ¶
func (a *API) ShowProfile(ctx context.Context, _ ShowProfileRequestObject) (ShowProfileResponseObject, error)
ShowProfile implements the v1.ServerInterface.
func (*API) ShowTeam ¶
func (a *API) ShowTeam(ctx context.Context, request ShowTeamRequestObject) (ShowTeamResponseObject, error)
ShowTeam implements the v1.ServerInterface.
func (*API) ShowUser ¶
func (a *API) ShowUser(ctx context.Context, request ShowUserRequestObject) (ShowUserResponseObject, error)
ShowUser implements the v1.ServerInterface.
func (*API) TokenProfile ¶
func (a *API) TokenProfile(ctx context.Context, _ TokenProfileRequestObject) (TokenProfileResponseObject, error)
TokenProfile implements the v1.ServerInterface.
func (*API) UpdateProfile ¶
func (a *API) UpdateProfile(ctx context.Context, request UpdateProfileRequestObject) (UpdateProfileResponseObject, error)
UpdateProfile implements the v1.ServerInterface.
func (*API) UpdateTeam ¶
func (a *API) UpdateTeam(ctx context.Context, request UpdateTeamRequestObject) (UpdateTeamResponseObject, error)
UpdateTeam implements the v1.ServerInterface.
func (*API) UpdateUser ¶
func (a *API) UpdateUser(ctx context.Context, request UpdateUserRequestObject) (UpdateUserResponseObject, error)
UpdateUser implements the v1.ServerInterface.
func (*API) VerifyAuth ¶
func (a *API) VerifyAuth(ctx context.Context, _ VerifyAuthRequestObject) (VerifyAuthResponseObject, error)
VerifyAuth implements the v1.ServerInterface.
type AttachTeamToUser200JSONResponse ¶
type AttachTeamToUser200JSONResponse Notification
func (AttachTeamToUser200JSONResponse) VisitAttachTeamToUserResponse ¶
func (response AttachTeamToUser200JSONResponse) VisitAttachTeamToUserResponse(w http.ResponseWriter) error
type AttachTeamToUser403JSONResponse ¶
type AttachTeamToUser403JSONResponse Notification
func (AttachTeamToUser403JSONResponse) VisitAttachTeamToUserResponse ¶
func (response AttachTeamToUser403JSONResponse) VisitAttachTeamToUserResponse(w http.ResponseWriter) error
type AttachTeamToUser404JSONResponse ¶
type AttachTeamToUser404JSONResponse Notification
func (AttachTeamToUser404JSONResponse) VisitAttachTeamToUserResponse ¶
func (response AttachTeamToUser404JSONResponse) VisitAttachTeamToUserResponse(w http.ResponseWriter) error
type AttachTeamToUser412JSONResponse ¶
type AttachTeamToUser412JSONResponse Notification
func (AttachTeamToUser412JSONResponse) VisitAttachTeamToUserResponse ¶
func (response AttachTeamToUser412JSONResponse) VisitAttachTeamToUserResponse(w http.ResponseWriter) error
type AttachTeamToUser422JSONResponse ¶
type AttachTeamToUser422JSONResponse Notification
func (AttachTeamToUser422JSONResponse) VisitAttachTeamToUserResponse ¶
func (response AttachTeamToUser422JSONResponse) VisitAttachTeamToUserResponse(w http.ResponseWriter) error
type AttachTeamToUser500JSONResponse ¶
type AttachTeamToUser500JSONResponse Notification
func (AttachTeamToUser500JSONResponse) VisitAttachTeamToUserResponse ¶
func (response AttachTeamToUser500JSONResponse) VisitAttachTeamToUserResponse(w http.ResponseWriter) error
type AttachTeamToUserJSONRequestBody ¶
type AttachTeamToUserJSONRequestBody = TeamUserParams
AttachTeamToUserJSONRequestBody defines body for AttachTeamToUser for application/json ContentType.
type AttachTeamToUserRequestObject ¶
type AttachTeamToUserRequestObject struct { TeamId string `json:"team_id"` Body *AttachTeamToUserJSONRequestBody }
type AttachTeamToUserResponseObject ¶
type AttachTeamToUserResponseObject interface {
VisitAttachTeamToUserResponse(w http.ResponseWriter) error
}
type AttachTeamToUserdefaultJSONResponse ¶
type AttachTeamToUserdefaultJSONResponse struct { Body Notification StatusCode int }
func (AttachTeamToUserdefaultJSONResponse) VisitAttachTeamToUserResponse ¶
func (response AttachTeamToUserdefaultJSONResponse) VisitAttachTeamToUserResponse(w http.ResponseWriter) error
type AttachUserToTeam200JSONResponse ¶
type AttachUserToTeam200JSONResponse Notification
func (AttachUserToTeam200JSONResponse) VisitAttachUserToTeamResponse ¶
func (response AttachUserToTeam200JSONResponse) VisitAttachUserToTeamResponse(w http.ResponseWriter) error
type AttachUserToTeam403JSONResponse ¶
type AttachUserToTeam403JSONResponse Notification
func (AttachUserToTeam403JSONResponse) VisitAttachUserToTeamResponse ¶
func (response AttachUserToTeam403JSONResponse) VisitAttachUserToTeamResponse(w http.ResponseWriter) error
type AttachUserToTeam404JSONResponse ¶
type AttachUserToTeam404JSONResponse Notification
func (AttachUserToTeam404JSONResponse) VisitAttachUserToTeamResponse ¶
func (response AttachUserToTeam404JSONResponse) VisitAttachUserToTeamResponse(w http.ResponseWriter) error
type AttachUserToTeam412JSONResponse ¶
type AttachUserToTeam412JSONResponse Notification
func (AttachUserToTeam412JSONResponse) VisitAttachUserToTeamResponse ¶
func (response AttachUserToTeam412JSONResponse) VisitAttachUserToTeamResponse(w http.ResponseWriter) error
type AttachUserToTeam422JSONResponse ¶
type AttachUserToTeam422JSONResponse Notification
func (AttachUserToTeam422JSONResponse) VisitAttachUserToTeamResponse ¶
func (response AttachUserToTeam422JSONResponse) VisitAttachUserToTeamResponse(w http.ResponseWriter) error
type AttachUserToTeam500JSONResponse ¶
type AttachUserToTeam500JSONResponse Notification
func (AttachUserToTeam500JSONResponse) VisitAttachUserToTeamResponse ¶
func (response AttachUserToTeam500JSONResponse) VisitAttachUserToTeamResponse(w http.ResponseWriter) error
type AttachUserToTeamJSONRequestBody ¶
type AttachUserToTeamJSONRequestBody = UserTeamParams
AttachUserToTeamJSONRequestBody defines body for AttachUserToTeam for application/json ContentType.
type AttachUserToTeamRequestObject ¶
type AttachUserToTeamRequestObject struct { UserId string `json:"user_id"` Body *AttachUserToTeamJSONRequestBody }
type AttachUserToTeamResponseObject ¶
type AttachUserToTeamResponseObject interface {
VisitAttachUserToTeamResponse(w http.ResponseWriter) error
}
type AttachUserToTeamdefaultJSONResponse ¶
type AttachUserToTeamdefaultJSONResponse struct { Body Notification StatusCode int }
func (AttachUserToTeamdefaultJSONResponse) VisitAttachUserToTeamResponse ¶
func (response AttachUserToTeamdefaultJSONResponse) VisitAttachUserToTeamResponse(w http.ResponseWriter) error
type AuthToken ¶
type AuthToken struct { ExpiresAt *time.Time `json:"expires_at,omitempty"` Token *string `json:"token,omitempty"` }
AuthToken defines model for auth_token.
type AuthVerify ¶
type AuthVerify struct { CreatedAt *time.Time `json:"created_at,omitempty"` Username *string `json:"username,omitempty"` }
AuthVerify defines model for auth_verify.
type ChiServerOptions ¶
type ChiServerOptions struct { BaseURL string BaseRouter chi.Router Middlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
type CreateTeam200JSONResponse ¶
type CreateTeam200JSONResponse Team
func (CreateTeam200JSONResponse) VisitCreateTeamResponse ¶
func (response CreateTeam200JSONResponse) VisitCreateTeamResponse(w http.ResponseWriter) error
type CreateTeam403JSONResponse ¶
type CreateTeam403JSONResponse Notification
func (CreateTeam403JSONResponse) VisitCreateTeamResponse ¶
func (response CreateTeam403JSONResponse) VisitCreateTeamResponse(w http.ResponseWriter) error
type CreateTeam422JSONResponse ¶
type CreateTeam422JSONResponse Notification
func (CreateTeam422JSONResponse) VisitCreateTeamResponse ¶
func (response CreateTeam422JSONResponse) VisitCreateTeamResponse(w http.ResponseWriter) error
type CreateTeam500JSONResponse ¶
type CreateTeam500JSONResponse Notification
func (CreateTeam500JSONResponse) VisitCreateTeamResponse ¶
func (response CreateTeam500JSONResponse) VisitCreateTeamResponse(w http.ResponseWriter) error
type CreateTeamJSONRequestBody ¶
type CreateTeamJSONRequestBody = Team
CreateTeamJSONRequestBody defines body for CreateTeam for application/json ContentType.
type CreateTeamRequestObject ¶
type CreateTeamRequestObject struct {
Body *CreateTeamJSONRequestBody
}
type CreateTeamResponseObject ¶
type CreateTeamResponseObject interface {
VisitCreateTeamResponse(w http.ResponseWriter) error
}
type CreateTeamdefaultJSONResponse ¶
type CreateTeamdefaultJSONResponse struct { Body Notification StatusCode int }
func (CreateTeamdefaultJSONResponse) VisitCreateTeamResponse ¶
func (response CreateTeamdefaultJSONResponse) VisitCreateTeamResponse(w http.ResponseWriter) error
type CreateUser200JSONResponse ¶
type CreateUser200JSONResponse User
func (CreateUser200JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser200JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUser403JSONResponse ¶
type CreateUser403JSONResponse Notification
func (CreateUser403JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser403JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUser422JSONResponse ¶
type CreateUser422JSONResponse Notification
func (CreateUser422JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser422JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUser500JSONResponse ¶
type CreateUser500JSONResponse Notification
func (CreateUser500JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser500JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUserJSONRequestBody ¶
type CreateUserJSONRequestBody = User
CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.
type CreateUserRequestObject ¶
type CreateUserRequestObject struct {
Body *CreateUserJSONRequestBody
}
type CreateUserResponseObject ¶
type CreateUserResponseObject interface {
VisitCreateUserResponse(w http.ResponseWriter) error
}
type CreateUserdefaultJSONResponse ¶
type CreateUserdefaultJSONResponse struct { Body Notification StatusCode int }
func (CreateUserdefaultJSONResponse) VisitCreateUserResponse ¶
func (response CreateUserdefaultJSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type DeleteTeam200JSONResponse ¶
type DeleteTeam200JSONResponse Notification
func (DeleteTeam200JSONResponse) VisitDeleteTeamResponse ¶
func (response DeleteTeam200JSONResponse) VisitDeleteTeamResponse(w http.ResponseWriter) error
type DeleteTeam400JSONResponse ¶
type DeleteTeam400JSONResponse Notification
func (DeleteTeam400JSONResponse) VisitDeleteTeamResponse ¶
func (response DeleteTeam400JSONResponse) VisitDeleteTeamResponse(w http.ResponseWriter) error
type DeleteTeam403JSONResponse ¶
type DeleteTeam403JSONResponse Notification
func (DeleteTeam403JSONResponse) VisitDeleteTeamResponse ¶
func (response DeleteTeam403JSONResponse) VisitDeleteTeamResponse(w http.ResponseWriter) error
type DeleteTeam404JSONResponse ¶
type DeleteTeam404JSONResponse Notification
func (DeleteTeam404JSONResponse) VisitDeleteTeamResponse ¶
func (response DeleteTeam404JSONResponse) VisitDeleteTeamResponse(w http.ResponseWriter) error
type DeleteTeam500JSONResponse ¶
type DeleteTeam500JSONResponse Notification
func (DeleteTeam500JSONResponse) VisitDeleteTeamResponse ¶
func (response DeleteTeam500JSONResponse) VisitDeleteTeamResponse(w http.ResponseWriter) error
type DeleteTeamFromUser200JSONResponse ¶
type DeleteTeamFromUser200JSONResponse Notification
func (DeleteTeamFromUser200JSONResponse) VisitDeleteTeamFromUserResponse ¶
func (response DeleteTeamFromUser200JSONResponse) VisitDeleteTeamFromUserResponse(w http.ResponseWriter) error
type DeleteTeamFromUser403JSONResponse ¶
type DeleteTeamFromUser403JSONResponse Notification
func (DeleteTeamFromUser403JSONResponse) VisitDeleteTeamFromUserResponse ¶
func (response DeleteTeamFromUser403JSONResponse) VisitDeleteTeamFromUserResponse(w http.ResponseWriter) error
type DeleteTeamFromUser404JSONResponse ¶
type DeleteTeamFromUser404JSONResponse Notification
func (DeleteTeamFromUser404JSONResponse) VisitDeleteTeamFromUserResponse ¶
func (response DeleteTeamFromUser404JSONResponse) VisitDeleteTeamFromUserResponse(w http.ResponseWriter) error
type DeleteTeamFromUser412JSONResponse ¶
type DeleteTeamFromUser412JSONResponse Notification
func (DeleteTeamFromUser412JSONResponse) VisitDeleteTeamFromUserResponse ¶
func (response DeleteTeamFromUser412JSONResponse) VisitDeleteTeamFromUserResponse(w http.ResponseWriter) error
type DeleteTeamFromUser500JSONResponse ¶
type DeleteTeamFromUser500JSONResponse Notification
func (DeleteTeamFromUser500JSONResponse) VisitDeleteTeamFromUserResponse ¶
func (response DeleteTeamFromUser500JSONResponse) VisitDeleteTeamFromUserResponse(w http.ResponseWriter) error
type DeleteTeamFromUserJSONRequestBody ¶
type DeleteTeamFromUserJSONRequestBody = TeamUserParams
DeleteTeamFromUserJSONRequestBody defines body for DeleteTeamFromUser for application/json ContentType.
type DeleteTeamFromUserRequestObject ¶
type DeleteTeamFromUserRequestObject struct { TeamId string `json:"team_id"` Body *DeleteTeamFromUserJSONRequestBody }
type DeleteTeamFromUserResponseObject ¶
type DeleteTeamFromUserResponseObject interface {
VisitDeleteTeamFromUserResponse(w http.ResponseWriter) error
}
type DeleteTeamFromUserdefaultJSONResponse ¶
type DeleteTeamFromUserdefaultJSONResponse struct { Body Notification StatusCode int }
func (DeleteTeamFromUserdefaultJSONResponse) VisitDeleteTeamFromUserResponse ¶
func (response DeleteTeamFromUserdefaultJSONResponse) VisitDeleteTeamFromUserResponse(w http.ResponseWriter) error
type DeleteTeamRequestObject ¶
type DeleteTeamRequestObject struct {
TeamId string `json:"team_id"`
}
type DeleteTeamResponseObject ¶
type DeleteTeamResponseObject interface {
VisitDeleteTeamResponse(w http.ResponseWriter) error
}
type DeleteTeamdefaultJSONResponse ¶
type DeleteTeamdefaultJSONResponse struct { Body Notification StatusCode int }
func (DeleteTeamdefaultJSONResponse) VisitDeleteTeamResponse ¶
func (response DeleteTeamdefaultJSONResponse) VisitDeleteTeamResponse(w http.ResponseWriter) error
type DeleteUser200JSONResponse ¶
type DeleteUser200JSONResponse Notification
func (DeleteUser200JSONResponse) VisitDeleteUserResponse ¶
func (response DeleteUser200JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUser400JSONResponse ¶
type DeleteUser400JSONResponse Notification
func (DeleteUser400JSONResponse) VisitDeleteUserResponse ¶
func (response DeleteUser400JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUser403JSONResponse ¶
type DeleteUser403JSONResponse Notification
func (DeleteUser403JSONResponse) VisitDeleteUserResponse ¶
func (response DeleteUser403JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUser404JSONResponse ¶
type DeleteUser404JSONResponse Notification
func (DeleteUser404JSONResponse) VisitDeleteUserResponse ¶
func (response DeleteUser404JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUser500JSONResponse ¶
type DeleteUser500JSONResponse Notification
func (DeleteUser500JSONResponse) VisitDeleteUserResponse ¶
func (response DeleteUser500JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUserFromTeam200JSONResponse ¶
type DeleteUserFromTeam200JSONResponse Notification
func (DeleteUserFromTeam200JSONResponse) VisitDeleteUserFromTeamResponse ¶
func (response DeleteUserFromTeam200JSONResponse) VisitDeleteUserFromTeamResponse(w http.ResponseWriter) error
type DeleteUserFromTeam403JSONResponse ¶
type DeleteUserFromTeam403JSONResponse Notification
func (DeleteUserFromTeam403JSONResponse) VisitDeleteUserFromTeamResponse ¶
func (response DeleteUserFromTeam403JSONResponse) VisitDeleteUserFromTeamResponse(w http.ResponseWriter) error
type DeleteUserFromTeam404JSONResponse ¶
type DeleteUserFromTeam404JSONResponse Notification
func (DeleteUserFromTeam404JSONResponse) VisitDeleteUserFromTeamResponse ¶
func (response DeleteUserFromTeam404JSONResponse) VisitDeleteUserFromTeamResponse(w http.ResponseWriter) error
type DeleteUserFromTeam412JSONResponse ¶
type DeleteUserFromTeam412JSONResponse Notification
func (DeleteUserFromTeam412JSONResponse) VisitDeleteUserFromTeamResponse ¶
func (response DeleteUserFromTeam412JSONResponse) VisitDeleteUserFromTeamResponse(w http.ResponseWriter) error
type DeleteUserFromTeam500JSONResponse ¶
type DeleteUserFromTeam500JSONResponse Notification
func (DeleteUserFromTeam500JSONResponse) VisitDeleteUserFromTeamResponse ¶
func (response DeleteUserFromTeam500JSONResponse) VisitDeleteUserFromTeamResponse(w http.ResponseWriter) error
type DeleteUserFromTeamJSONRequestBody ¶
type DeleteUserFromTeamJSONRequestBody = UserTeamParams
DeleteUserFromTeamJSONRequestBody defines body for DeleteUserFromTeam for application/json ContentType.
type DeleteUserFromTeamRequestObject ¶
type DeleteUserFromTeamRequestObject struct { UserId string `json:"user_id"` Body *DeleteUserFromTeamJSONRequestBody }
type DeleteUserFromTeamResponseObject ¶
type DeleteUserFromTeamResponseObject interface {
VisitDeleteUserFromTeamResponse(w http.ResponseWriter) error
}
type DeleteUserFromTeamdefaultJSONResponse ¶
type DeleteUserFromTeamdefaultJSONResponse struct { Body Notification StatusCode int }
func (DeleteUserFromTeamdefaultJSONResponse) VisitDeleteUserFromTeamResponse ¶
func (response DeleteUserFromTeamdefaultJSONResponse) VisitDeleteUserFromTeamResponse(w http.ResponseWriter) error
type DeleteUserRequestObject ¶
type DeleteUserRequestObject struct {
UserId string `json:"user_id"`
}
type DeleteUserResponseObject ¶
type DeleteUserResponseObject interface {
VisitDeleteUserResponse(w http.ResponseWriter) error
}
type DeleteUserdefaultJSONResponse ¶
type DeleteUserdefaultJSONResponse struct { Body Notification StatusCode int }
func (DeleteUserdefaultJSONResponse) VisitDeleteUserResponse ¶
func (response DeleteUserdefaultJSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type ExternalCallback307Response ¶
type ExternalCallback307Response struct { }
func (ExternalCallback307Response) VisitExternalCallbackResponse ¶
func (response ExternalCallback307Response) VisitExternalCallbackResponse(w http.ResponseWriter) error
type ExternalCallback404JSONResponse ¶
type ExternalCallback404JSONResponse Notification
func (ExternalCallback404JSONResponse) VisitExternalCallbackResponse ¶
func (response ExternalCallback404JSONResponse) VisitExternalCallbackResponse(w http.ResponseWriter) error
type ExternalCallback412JSONResponse ¶
type ExternalCallback412JSONResponse Notification
func (ExternalCallback412JSONResponse) VisitExternalCallbackResponse ¶
func (response ExternalCallback412JSONResponse) VisitExternalCallbackResponse(w http.ResponseWriter) error
type ExternalCallbackParams ¶
type ExternalCallbackParams struct { // State Auth state State *string `form:"state,omitempty" json:"state,omitempty"` // Code Auth code Code *string `form:"code,omitempty" json:"code,omitempty"` }
ExternalCallbackParams defines parameters for ExternalCallback.
type ExternalCallbackRedirectResponse ¶
type ExternalCallbackRedirectResponse struct {
// contains filtered or unexported fields
}
ExternalCallbackRedirectResponse defines the response to redirect to a defined URL.
func (ExternalCallbackRedirectResponse) VisitExternalCallbackResponse ¶
func (r ExternalCallbackRedirectResponse) VisitExternalCallbackResponse(w http.ResponseWriter) error
VisitExternalCallbackResponse implements the middleware.Responder interface for redirects.
type ExternalCallbackRequestObject ¶
type ExternalCallbackRequestObject struct { Provider string `json:"provider"` Params ExternalCallbackParams }
type ExternalCallbackResponseObject ¶
type ExternalCallbackResponseObject interface {
VisitExternalCallbackResponse(w http.ResponseWriter) error
}
type ExternalCallbackdefaultJSONResponse ¶
type ExternalCallbackdefaultJSONResponse struct { Body Notification StatusCode int }
func (ExternalCallbackdefaultJSONResponse) VisitExternalCallbackResponse ¶
func (response ExternalCallbackdefaultJSONResponse) VisitExternalCallbackResponse(w http.ResponseWriter) error
type ExternalInitialize307Response ¶
type ExternalInitialize307Response struct { }
func (ExternalInitialize307Response) VisitExternalInitializeResponse ¶
func (response ExternalInitialize307Response) VisitExternalInitializeResponse(w http.ResponseWriter) error
type ExternalInitialize404JSONResponse ¶
type ExternalInitialize404JSONResponse Notification
func (ExternalInitialize404JSONResponse) VisitExternalInitializeResponse ¶
func (response ExternalInitialize404JSONResponse) VisitExternalInitializeResponse(w http.ResponseWriter) error
type ExternalInitialize412JSONResponse ¶
type ExternalInitialize412JSONResponse Notification
func (ExternalInitialize412JSONResponse) VisitExternalInitializeResponse ¶
func (response ExternalInitialize412JSONResponse) VisitExternalInitializeResponse(w http.ResponseWriter) error
type ExternalInitializeParams ¶
type ExternalInitializeParams struct { // State Auth state State *string `form:"state,omitempty" json:"state,omitempty"` }
ExternalInitializeParams defines parameters for ExternalInitialize.
type ExternalInitializeRedirectResponse ¶
type ExternalInitializeRedirectResponse struct {
// contains filtered or unexported fields
}
ExternalInitializeRedirectResponse defines the response to redirect to a defined URL.
func (ExternalInitializeRedirectResponse) VisitExternalInitializeResponse ¶
func (r ExternalInitializeRedirectResponse) VisitExternalInitializeResponse(w http.ResponseWriter) error
VisitExternalInitializeResponse implements the middleware.Responder interface for redirects.
type ExternalInitializeRequestObject ¶
type ExternalInitializeRequestObject struct { Provider string `json:"provider"` Params ExternalInitializeParams }
type ExternalInitializeResponseObject ¶
type ExternalInitializeResponseObject interface {
VisitExternalInitializeResponse(w http.ResponseWriter) error
}
type ExternalInitializedefaultJSONResponse ¶
type ExternalInitializedefaultJSONResponse struct { Body Notification StatusCode int }
func (ExternalInitializedefaultJSONResponse) VisitExternalInitializeResponse ¶
func (response ExternalInitializedefaultJSONResponse) VisitExternalInitializeResponse(w http.ResponseWriter) error
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type ListTeamUsers200JSONResponse ¶
type ListTeamUsers200JSONResponse TeamUsers
func (ListTeamUsers200JSONResponse) VisitListTeamUsersResponse ¶
func (response ListTeamUsers200JSONResponse) VisitListTeamUsersResponse(w http.ResponseWriter) error
type ListTeamUsers403JSONResponse ¶
type ListTeamUsers403JSONResponse Notification
func (ListTeamUsers403JSONResponse) VisitListTeamUsersResponse ¶
func (response ListTeamUsers403JSONResponse) VisitListTeamUsersResponse(w http.ResponseWriter) error
type ListTeamUsers404JSONResponse ¶
type ListTeamUsers404JSONResponse Notification
func (ListTeamUsers404JSONResponse) VisitListTeamUsersResponse ¶
func (response ListTeamUsers404JSONResponse) VisitListTeamUsersResponse(w http.ResponseWriter) error
type ListTeamUsers500JSONResponse ¶
type ListTeamUsers500JSONResponse Notification
func (ListTeamUsers500JSONResponse) VisitListTeamUsersResponse ¶
func (response ListTeamUsers500JSONResponse) VisitListTeamUsersResponse(w http.ResponseWriter) error
type ListTeamUsersParams ¶
type ListTeamUsersParams struct { // Search Search query Search *string `form:"search,omitempty" json:"search,omitempty"` // Sort Sorting column Sort *ListTeamUsersParamsSort `form:"sort,omitempty" json:"sort,omitempty"` // Order Sorting order Order *ListTeamUsersParamsOrder `form:"order,omitempty" json:"order,omitempty"` // Limit Paging limit Limit *int `form:"limit,omitempty" json:"limit,omitempty"` // Offset Paging offset Offset *int `form:"offset,omitempty" json:"offset,omitempty"` }
ListTeamUsersParams defines parameters for ListTeamUsers.
type ListTeamUsersParamsOrder ¶
type ListTeamUsersParamsOrder string
ListTeamUsersParamsOrder defines parameters for ListTeamUsers.
const ( ListTeamUsersParamsOrderAsc ListTeamUsersParamsOrder = "asc" ListTeamUsersParamsOrderDesc ListTeamUsersParamsOrder = "desc" )
Defines values for ListTeamUsersParamsOrder.
type ListTeamUsersParamsSort ¶
type ListTeamUsersParamsSort string
ListTeamUsersParamsSort defines parameters for ListTeamUsers.
const ( ListTeamUsersParamsSortActive ListTeamUsersParamsSort = "active" ListTeamUsersParamsSortAdmin ListTeamUsersParamsSort = "admin" ListTeamUsersParamsSortEmail ListTeamUsersParamsSort = "email" ListTeamUsersParamsSortFullname ListTeamUsersParamsSort = "fullname" ListTeamUsersParamsSortUsername ListTeamUsersParamsSort = "username" )
Defines values for ListTeamUsersParamsSort.
type ListTeamUsersRequestObject ¶
type ListTeamUsersRequestObject struct { TeamId string `json:"team_id"` Params ListTeamUsersParams }
type ListTeamUsersResponseObject ¶
type ListTeamUsersResponseObject interface {
VisitListTeamUsersResponse(w http.ResponseWriter) error
}
type ListTeamUsersdefaultJSONResponse ¶
type ListTeamUsersdefaultJSONResponse struct { Body Notification StatusCode int }
func (ListTeamUsersdefaultJSONResponse) VisitListTeamUsersResponse ¶
func (response ListTeamUsersdefaultJSONResponse) VisitListTeamUsersResponse(w http.ResponseWriter) error
type ListTeams200JSONResponse ¶
type ListTeams200JSONResponse Teams
func (ListTeams200JSONResponse) VisitListTeamsResponse ¶
func (response ListTeams200JSONResponse) VisitListTeamsResponse(w http.ResponseWriter) error
type ListTeams403JSONResponse ¶
type ListTeams403JSONResponse Notification
func (ListTeams403JSONResponse) VisitListTeamsResponse ¶
func (response ListTeams403JSONResponse) VisitListTeamsResponse(w http.ResponseWriter) error
type ListTeams500JSONResponse ¶
type ListTeams500JSONResponse Notification
func (ListTeams500JSONResponse) VisitListTeamsResponse ¶
func (response ListTeams500JSONResponse) VisitListTeamsResponse(w http.ResponseWriter) error
type ListTeamsParams ¶
type ListTeamsParams struct { // Search Search query Search *string `form:"search,omitempty" json:"search,omitempty"` // Sort Sorting column Sort *ListTeamsParamsSort `form:"sort,omitempty" json:"sort,omitempty"` // Order Sorting order Order *ListTeamsParamsOrder `form:"order,omitempty" json:"order,omitempty"` // Limit Paging limit Limit *int `form:"limit,omitempty" json:"limit,omitempty"` // Offset Paging offset Offset *int `form:"offset,omitempty" json:"offset,omitempty"` }
ListTeamsParams defines parameters for ListTeams.
type ListTeamsParamsOrder ¶
type ListTeamsParamsOrder string
ListTeamsParamsOrder defines parameters for ListTeams.
const ( ListTeamsParamsOrderAsc ListTeamsParamsOrder = "asc" ListTeamsParamsOrderDesc ListTeamsParamsOrder = "desc" )
Defines values for ListTeamsParamsOrder.
type ListTeamsParamsSort ¶
type ListTeamsParamsSort string
ListTeamsParamsSort defines parameters for ListTeams.
const ( ListTeamsParamsSortName ListTeamsParamsSort = "name" ListTeamsParamsSortSlug ListTeamsParamsSort = "slug" )
Defines values for ListTeamsParamsSort.
type ListTeamsRequestObject ¶
type ListTeamsRequestObject struct {
Params ListTeamsParams
}
type ListTeamsResponseObject ¶
type ListTeamsResponseObject interface {
VisitListTeamsResponse(w http.ResponseWriter) error
}
type ListTeamsdefaultJSONResponse ¶
type ListTeamsdefaultJSONResponse struct { Body Notification StatusCode int }
func (ListTeamsdefaultJSONResponse) VisitListTeamsResponse ¶
func (response ListTeamsdefaultJSONResponse) VisitListTeamsResponse(w http.ResponseWriter) error
type ListUserTeams200JSONResponse ¶
type ListUserTeams200JSONResponse UserTeams
func (ListUserTeams200JSONResponse) VisitListUserTeamsResponse ¶
func (response ListUserTeams200JSONResponse) VisitListUserTeamsResponse(w http.ResponseWriter) error
type ListUserTeams403JSONResponse ¶
type ListUserTeams403JSONResponse Notification
func (ListUserTeams403JSONResponse) VisitListUserTeamsResponse ¶
func (response ListUserTeams403JSONResponse) VisitListUserTeamsResponse(w http.ResponseWriter) error
type ListUserTeams404JSONResponse ¶
type ListUserTeams404JSONResponse Notification
func (ListUserTeams404JSONResponse) VisitListUserTeamsResponse ¶
func (response ListUserTeams404JSONResponse) VisitListUserTeamsResponse(w http.ResponseWriter) error
type ListUserTeams500JSONResponse ¶
type ListUserTeams500JSONResponse Notification
func (ListUserTeams500JSONResponse) VisitListUserTeamsResponse ¶
func (response ListUserTeams500JSONResponse) VisitListUserTeamsResponse(w http.ResponseWriter) error
type ListUserTeamsParams ¶
type ListUserTeamsParams struct { // Search Search query Search *string `form:"search,omitempty" json:"search,omitempty"` // Sort Sorting column Sort *ListUserTeamsParamsSort `form:"sort,omitempty" json:"sort,omitempty"` // Order Sorting order Order *ListUserTeamsParamsOrder `form:"order,omitempty" json:"order,omitempty"` // Limit Paging limit Limit *int `form:"limit,omitempty" json:"limit,omitempty"` // Offset Paging offset Offset *int `form:"offset,omitempty" json:"offset,omitempty"` }
ListUserTeamsParams defines parameters for ListUserTeams.
type ListUserTeamsParamsOrder ¶
type ListUserTeamsParamsOrder string
ListUserTeamsParamsOrder defines parameters for ListUserTeams.
const ( ListUserTeamsParamsOrderAsc ListUserTeamsParamsOrder = "asc" ListUserTeamsParamsOrderDesc ListUserTeamsParamsOrder = "desc" )
Defines values for ListUserTeamsParamsOrder.
type ListUserTeamsParamsSort ¶
type ListUserTeamsParamsSort string
ListUserTeamsParamsSort defines parameters for ListUserTeams.
const ( ListUserTeamsParamsSortName ListUserTeamsParamsSort = "name" ListUserTeamsParamsSortSlug ListUserTeamsParamsSort = "slug" )
Defines values for ListUserTeamsParamsSort.
type ListUserTeamsRequestObject ¶
type ListUserTeamsRequestObject struct { UserId string `json:"user_id"` Params ListUserTeamsParams }
type ListUserTeamsResponseObject ¶
type ListUserTeamsResponseObject interface {
VisitListUserTeamsResponse(w http.ResponseWriter) error
}
type ListUserTeamsdefaultJSONResponse ¶
type ListUserTeamsdefaultJSONResponse struct { Body Notification StatusCode int }
func (ListUserTeamsdefaultJSONResponse) VisitListUserTeamsResponse ¶
func (response ListUserTeamsdefaultJSONResponse) VisitListUserTeamsResponse(w http.ResponseWriter) error
type ListUsers200JSONResponse ¶
type ListUsers200JSONResponse Users
func (ListUsers200JSONResponse) VisitListUsersResponse ¶
func (response ListUsers200JSONResponse) VisitListUsersResponse(w http.ResponseWriter) error
type ListUsers403JSONResponse ¶
type ListUsers403JSONResponse Notification
func (ListUsers403JSONResponse) VisitListUsersResponse ¶
func (response ListUsers403JSONResponse) VisitListUsersResponse(w http.ResponseWriter) error
type ListUsers500JSONResponse ¶
type ListUsers500JSONResponse Notification
func (ListUsers500JSONResponse) VisitListUsersResponse ¶
func (response ListUsers500JSONResponse) VisitListUsersResponse(w http.ResponseWriter) error
type ListUsersParams ¶
type ListUsersParams struct { // Search Search query Search *string `form:"search,omitempty" json:"search,omitempty"` // Sort Sorting column Sort *ListUsersParamsSort `form:"sort,omitempty" json:"sort,omitempty"` // Order Sorting order Order *ListUsersParamsOrder `form:"order,omitempty" json:"order,omitempty"` // Limit Paging limit Limit *int `form:"limit,omitempty" json:"limit,omitempty"` // Offset Paging offset Offset *int `form:"offset,omitempty" json:"offset,omitempty"` }
ListUsersParams defines parameters for ListUsers.
type ListUsersParamsOrder ¶
type ListUsersParamsOrder string
ListUsersParamsOrder defines parameters for ListUsers.
const ( ListUsersParamsOrderAsc ListUsersParamsOrder = "asc" ListUsersParamsOrderDesc ListUsersParamsOrder = "desc" )
Defines values for ListUsersParamsOrder.
type ListUsersParamsSort ¶
type ListUsersParamsSort string
ListUsersParamsSort defines parameters for ListUsers.
const ( Active ListUsersParamsSort = "active" Admin ListUsersParamsSort = "admin" Email ListUsersParamsSort = "email" Fullname ListUsersParamsSort = "fullname" Username ListUsersParamsSort = "username" )
Defines values for ListUsersParamsSort.
type ListUsersRequestObject ¶
type ListUsersRequestObject struct {
Params ListUsersParams
}
type ListUsersResponseObject ¶
type ListUsersResponseObject interface {
VisitListUsersResponse(w http.ResponseWriter) error
}
type ListUsersdefaultJSONResponse ¶
type ListUsersdefaultJSONResponse struct { Body Notification StatusCode int }
func (ListUsersdefaultJSONResponse) VisitListUsersResponse ¶
func (response ListUsersdefaultJSONResponse) VisitListUsersResponse(w http.ResponseWriter) error
type LoginAuth200JSONResponse ¶
type LoginAuth200JSONResponse AuthToken
func (LoginAuth200JSONResponse) VisitLoginAuthResponse ¶
func (response LoginAuth200JSONResponse) VisitLoginAuthResponse(w http.ResponseWriter) error
type LoginAuth401JSONResponse ¶
type LoginAuth401JSONResponse Notification
func (LoginAuth401JSONResponse) VisitLoginAuthResponse ¶
func (response LoginAuth401JSONResponse) VisitLoginAuthResponse(w http.ResponseWriter) error
type LoginAuth500JSONResponse ¶
type LoginAuth500JSONResponse Notification
func (LoginAuth500JSONResponse) VisitLoginAuthResponse ¶
func (response LoginAuth500JSONResponse) VisitLoginAuthResponse(w http.ResponseWriter) error
type LoginAuthJSONRequestBody ¶
type LoginAuthJSONRequestBody = AuthLogin
LoginAuthJSONRequestBody defines body for LoginAuth for application/json ContentType.
type LoginAuthRequestObject ¶
type LoginAuthRequestObject struct {
Body *LoginAuthJSONRequestBody
}
type LoginAuthResponseObject ¶
type LoginAuthResponseObject interface {
VisitLoginAuthResponse(w http.ResponseWriter) error
}
type LoginAuthdefaultJSONResponse ¶
type LoginAuthdefaultJSONResponse struct { Body Notification StatusCode int }
func (LoginAuthdefaultJSONResponse) VisitLoginAuthResponse ¶
func (response LoginAuthdefaultJSONResponse) VisitLoginAuthResponse(w http.ResponseWriter) error
type Notification ¶
type Notification struct { Errors *[]Validation `json:"errors,omitempty"` Message *string `json:"message,omitempty"` Status *int `json:"status,omitempty"` }
Notification Generic response for errors and validations
type PermitTeamUser200JSONResponse ¶
type PermitTeamUser200JSONResponse Notification
func (PermitTeamUser200JSONResponse) VisitPermitTeamUserResponse ¶
func (response PermitTeamUser200JSONResponse) VisitPermitTeamUserResponse(w http.ResponseWriter) error
type PermitTeamUser403JSONResponse ¶
type PermitTeamUser403JSONResponse Notification
func (PermitTeamUser403JSONResponse) VisitPermitTeamUserResponse ¶
func (response PermitTeamUser403JSONResponse) VisitPermitTeamUserResponse(w http.ResponseWriter) error
type PermitTeamUser404JSONResponse ¶
type PermitTeamUser404JSONResponse Notification
func (PermitTeamUser404JSONResponse) VisitPermitTeamUserResponse ¶
func (response PermitTeamUser404JSONResponse) VisitPermitTeamUserResponse(w http.ResponseWriter) error
type PermitTeamUser412JSONResponse ¶
type PermitTeamUser412JSONResponse Notification
func (PermitTeamUser412JSONResponse) VisitPermitTeamUserResponse ¶
func (response PermitTeamUser412JSONResponse) VisitPermitTeamUserResponse(w http.ResponseWriter) error
type PermitTeamUser422JSONResponse ¶
type PermitTeamUser422JSONResponse Notification
func (PermitTeamUser422JSONResponse) VisitPermitTeamUserResponse ¶
func (response PermitTeamUser422JSONResponse) VisitPermitTeamUserResponse(w http.ResponseWriter) error
type PermitTeamUser500JSONResponse ¶
type PermitTeamUser500JSONResponse Notification
func (PermitTeamUser500JSONResponse) VisitPermitTeamUserResponse ¶
func (response PermitTeamUser500JSONResponse) VisitPermitTeamUserResponse(w http.ResponseWriter) error
type PermitTeamUserJSONRequestBody ¶
type PermitTeamUserJSONRequestBody = TeamUserParams
PermitTeamUserJSONRequestBody defines body for PermitTeamUser for application/json ContentType.
type PermitTeamUserRequestObject ¶
type PermitTeamUserRequestObject struct { TeamId string `json:"team_id"` Body *PermitTeamUserJSONRequestBody }
type PermitTeamUserResponseObject ¶
type PermitTeamUserResponseObject interface {
VisitPermitTeamUserResponse(w http.ResponseWriter) error
}
type PermitTeamUserdefaultJSONResponse ¶
type PermitTeamUserdefaultJSONResponse struct { Body Notification StatusCode int }
func (PermitTeamUserdefaultJSONResponse) VisitPermitTeamUserResponse ¶
func (response PermitTeamUserdefaultJSONResponse) VisitPermitTeamUserResponse(w http.ResponseWriter) error
type PermitUserTeam200JSONResponse ¶
type PermitUserTeam200JSONResponse Notification
func (PermitUserTeam200JSONResponse) VisitPermitUserTeamResponse ¶
func (response PermitUserTeam200JSONResponse) VisitPermitUserTeamResponse(w http.ResponseWriter) error
type PermitUserTeam403JSONResponse ¶
type PermitUserTeam403JSONResponse Notification
func (PermitUserTeam403JSONResponse) VisitPermitUserTeamResponse ¶
func (response PermitUserTeam403JSONResponse) VisitPermitUserTeamResponse(w http.ResponseWriter) error
type PermitUserTeam404JSONResponse ¶
type PermitUserTeam404JSONResponse Notification
func (PermitUserTeam404JSONResponse) VisitPermitUserTeamResponse ¶
func (response PermitUserTeam404JSONResponse) VisitPermitUserTeamResponse(w http.ResponseWriter) error
type PermitUserTeam412JSONResponse ¶
type PermitUserTeam412JSONResponse Notification
func (PermitUserTeam412JSONResponse) VisitPermitUserTeamResponse ¶
func (response PermitUserTeam412JSONResponse) VisitPermitUserTeamResponse(w http.ResponseWriter) error
type PermitUserTeam422JSONResponse ¶
type PermitUserTeam422JSONResponse Notification
func (PermitUserTeam422JSONResponse) VisitPermitUserTeamResponse ¶
func (response PermitUserTeam422JSONResponse) VisitPermitUserTeamResponse(w http.ResponseWriter) error
type PermitUserTeam500JSONResponse ¶
type PermitUserTeam500JSONResponse Notification
func (PermitUserTeam500JSONResponse) VisitPermitUserTeamResponse ¶
func (response PermitUserTeam500JSONResponse) VisitPermitUserTeamResponse(w http.ResponseWriter) error
type PermitUserTeamJSONRequestBody ¶
type PermitUserTeamJSONRequestBody = UserTeamParams
PermitUserTeamJSONRequestBody defines body for PermitUserTeam for application/json ContentType.
type PermitUserTeamRequestObject ¶
type PermitUserTeamRequestObject struct { UserId string `json:"user_id"` Body *PermitUserTeamJSONRequestBody }
type PermitUserTeamResponseObject ¶
type PermitUserTeamResponseObject interface {
VisitPermitUserTeamResponse(w http.ResponseWriter) error
}
type PermitUserTeamdefaultJSONResponse ¶
type PermitUserTeamdefaultJSONResponse struct { Body Notification StatusCode int }
func (PermitUserTeamdefaultJSONResponse) VisitPermitUserTeamResponse ¶
func (response PermitUserTeamdefaultJSONResponse) VisitPermitUserTeamResponse(w http.ResponseWriter) error
type Profile ¶
type Profile struct { Active *bool `json:"active,omitempty"` Admin *bool `json:"admin,omitempty"` Auths *[]UserAuth `json:"auths,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` Email *string `json:"email,omitempty"` Fullname *string `json:"fullname,omitempty"` Id *string `json:"id,omitempty"` Password *string `json:"password,omitempty"` Profile *string `json:"profile,omitempty"` Teams *[]UserTeam `json:"teams,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` Username *string `json:"username,omitempty"` }
Profile Model to represent profile
type RefreshAuth200JSONResponse ¶
type RefreshAuth200JSONResponse AuthToken
func (RefreshAuth200JSONResponse) VisitRefreshAuthResponse ¶
func (response RefreshAuth200JSONResponse) VisitRefreshAuthResponse(w http.ResponseWriter) error
type RefreshAuth401JSONResponse ¶
type RefreshAuth401JSONResponse Notification
func (RefreshAuth401JSONResponse) VisitRefreshAuthResponse ¶
func (response RefreshAuth401JSONResponse) VisitRefreshAuthResponse(w http.ResponseWriter) error
type RefreshAuth500JSONResponse ¶
type RefreshAuth500JSONResponse Notification
func (RefreshAuth500JSONResponse) VisitRefreshAuthResponse ¶
func (response RefreshAuth500JSONResponse) VisitRefreshAuthResponse(w http.ResponseWriter) error
type RefreshAuthRequestObject ¶
type RefreshAuthRequestObject struct { }
type RefreshAuthResponseObject ¶
type RefreshAuthResponseObject interface {
VisitRefreshAuthResponse(w http.ResponseWriter) error
}
type RefreshAuthdefaultJSONResponse ¶
type RefreshAuthdefaultJSONResponse struct { Body Notification StatusCode int }
func (RefreshAuthdefaultJSONResponse) VisitRefreshAuthResponse ¶
func (response RefreshAuthdefaultJSONResponse) VisitRefreshAuthResponse(w http.ResponseWriter) error
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ServerInterface ¶
type ServerInterface interface { // Authenticate an user by credentials // (POST /auth/login) LoginAuth(w http.ResponseWriter, r *http.Request) // Refresh an auth token before it expires // (GET /auth/refresh) RefreshAuth(w http.ResponseWriter, r *http.Request) // Verify validity for an authentication token // (GET /auth/verify) VerifyAuth(w http.ResponseWriter, r *http.Request) // Callback for external authentication // (GET /auth/{provider}/callback) ExternalCallback(w http.ResponseWriter, r *http.Request, provider string, params ExternalCallbackParams) // Initialize the external authentication // (GET /auth/{provider}/initialize) ExternalInitialize(w http.ResponseWriter, r *http.Request, provider string, params ExternalInitializeParams) // Fetch profile details of the personal account // (GET /profile/self) ShowProfile(w http.ResponseWriter, r *http.Request) // Update your own profile information // (PUT /profile/self) UpdateProfile(w http.ResponseWriter, r *http.Request) // Retrieve an unlimited auth token // (GET /profile/token) TokenProfile(w http.ResponseWriter, r *http.Request) // Fetch all available teams // (GET /teams) ListTeams(w http.ResponseWriter, r *http.Request, params ListTeamsParams) // Create a new team // (POST /teams) CreateTeam(w http.ResponseWriter, r *http.Request) // Delete a specific team // (DELETE /teams/{team_id}) DeleteTeam(w http.ResponseWriter, r *http.Request, teamId string) // Fetch a specific team // (GET /teams/{team_id}) ShowTeam(w http.ResponseWriter, r *http.Request, teamId string) // Update a specific team // (PUT /teams/{team_id}) UpdateTeam(w http.ResponseWriter, r *http.Request, teamId string) // Unlink a user from team // (DELETE /teams/{team_id}/users) DeleteTeamFromUser(w http.ResponseWriter, r *http.Request, teamId string) // Fetch all users attached to team // (GET /teams/{team_id}/users) ListTeamUsers(w http.ResponseWriter, r *http.Request, teamId string, params ListTeamUsersParams) // Attach a user to team // (POST /teams/{team_id}/users) AttachTeamToUser(w http.ResponseWriter, r *http.Request, teamId string) // Update user perms for team // (PUT /teams/{team_id}/users) PermitTeamUser(w http.ResponseWriter, r *http.Request, teamId string) // Fetch all available users // (GET /users) ListUsers(w http.ResponseWriter, r *http.Request, params ListUsersParams) // Create a new user // (POST /users) CreateUser(w http.ResponseWriter, r *http.Request) // Delete a specific user // (DELETE /users/{user_id}) DeleteUser(w http.ResponseWriter, r *http.Request, userId string) // Fetch a specific user // (GET /users/{user_id}) ShowUser(w http.ResponseWriter, r *http.Request, userId string) // Update a specific user // (PUT /users/{user_id}) UpdateUser(w http.ResponseWriter, r *http.Request, userId string) // Unlink a team from user // (DELETE /users/{user_id}/teams) DeleteUserFromTeam(w http.ResponseWriter, r *http.Request, userId string) // Fetch all teams attached to user // (GET /users/{user_id}/teams) ListUserTeams(w http.ResponseWriter, r *http.Request, userId string, params ListUserTeamsParams) // Attach a team to user // (POST /users/{user_id}/teams) AttachUserToTeam(w http.ResponseWriter, r *http.Request, userId string) // Update team perms for user // (PUT /users/{user_id}/teams) PermitUserTeam(w http.ResponseWriter, r *http.Request, userId string) }
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
func NewStrictHandlerWithOptions ¶
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct { Handler ServerInterface HandlerMiddlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) AttachTeamToUser ¶
func (siw *ServerInterfaceWrapper) AttachTeamToUser(w http.ResponseWriter, r *http.Request)
AttachTeamToUser operation middleware
func (*ServerInterfaceWrapper) AttachUserToTeam ¶
func (siw *ServerInterfaceWrapper) AttachUserToTeam(w http.ResponseWriter, r *http.Request)
AttachUserToTeam operation middleware
func (*ServerInterfaceWrapper) CreateTeam ¶
func (siw *ServerInterfaceWrapper) CreateTeam(w http.ResponseWriter, r *http.Request)
CreateTeam operation middleware
func (*ServerInterfaceWrapper) CreateUser ¶
func (siw *ServerInterfaceWrapper) CreateUser(w http.ResponseWriter, r *http.Request)
CreateUser operation middleware
func (*ServerInterfaceWrapper) DeleteTeam ¶
func (siw *ServerInterfaceWrapper) DeleteTeam(w http.ResponseWriter, r *http.Request)
DeleteTeam operation middleware
func (*ServerInterfaceWrapper) DeleteTeamFromUser ¶
func (siw *ServerInterfaceWrapper) DeleteTeamFromUser(w http.ResponseWriter, r *http.Request)
DeleteTeamFromUser operation middleware
func (*ServerInterfaceWrapper) DeleteUser ¶
func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request)
DeleteUser operation middleware
func (*ServerInterfaceWrapper) DeleteUserFromTeam ¶
func (siw *ServerInterfaceWrapper) DeleteUserFromTeam(w http.ResponseWriter, r *http.Request)
DeleteUserFromTeam operation middleware
func (*ServerInterfaceWrapper) ExternalCallback ¶
func (siw *ServerInterfaceWrapper) ExternalCallback(w http.ResponseWriter, r *http.Request)
ExternalCallback operation middleware
func (*ServerInterfaceWrapper) ExternalInitialize ¶
func (siw *ServerInterfaceWrapper) ExternalInitialize(w http.ResponseWriter, r *http.Request)
ExternalInitialize operation middleware
func (*ServerInterfaceWrapper) ListTeamUsers ¶
func (siw *ServerInterfaceWrapper) ListTeamUsers(w http.ResponseWriter, r *http.Request)
ListTeamUsers operation middleware
func (*ServerInterfaceWrapper) ListTeams ¶
func (siw *ServerInterfaceWrapper) ListTeams(w http.ResponseWriter, r *http.Request)
ListTeams operation middleware
func (*ServerInterfaceWrapper) ListUserTeams ¶
func (siw *ServerInterfaceWrapper) ListUserTeams(w http.ResponseWriter, r *http.Request)
ListUserTeams operation middleware
func (*ServerInterfaceWrapper) ListUsers ¶
func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Request)
ListUsers operation middleware
func (*ServerInterfaceWrapper) LoginAuth ¶
func (siw *ServerInterfaceWrapper) LoginAuth(w http.ResponseWriter, r *http.Request)
LoginAuth operation middleware
func (*ServerInterfaceWrapper) PermitTeamUser ¶
func (siw *ServerInterfaceWrapper) PermitTeamUser(w http.ResponseWriter, r *http.Request)
PermitTeamUser operation middleware
func (*ServerInterfaceWrapper) PermitUserTeam ¶
func (siw *ServerInterfaceWrapper) PermitUserTeam(w http.ResponseWriter, r *http.Request)
PermitUserTeam operation middleware
func (*ServerInterfaceWrapper) RefreshAuth ¶
func (siw *ServerInterfaceWrapper) RefreshAuth(w http.ResponseWriter, r *http.Request)
RefreshAuth operation middleware
func (*ServerInterfaceWrapper) ShowProfile ¶
func (siw *ServerInterfaceWrapper) ShowProfile(w http.ResponseWriter, r *http.Request)
ShowProfile operation middleware
func (*ServerInterfaceWrapper) ShowTeam ¶
func (siw *ServerInterfaceWrapper) ShowTeam(w http.ResponseWriter, r *http.Request)
ShowTeam operation middleware
func (*ServerInterfaceWrapper) ShowUser ¶
func (siw *ServerInterfaceWrapper) ShowUser(w http.ResponseWriter, r *http.Request)
ShowUser operation middleware
func (*ServerInterfaceWrapper) TokenProfile ¶
func (siw *ServerInterfaceWrapper) TokenProfile(w http.ResponseWriter, r *http.Request)
TokenProfile operation middleware
func (*ServerInterfaceWrapper) UpdateProfile ¶
func (siw *ServerInterfaceWrapper) UpdateProfile(w http.ResponseWriter, r *http.Request)
UpdateProfile operation middleware
func (*ServerInterfaceWrapper) UpdateTeam ¶
func (siw *ServerInterfaceWrapper) UpdateTeam(w http.ResponseWriter, r *http.Request)
UpdateTeam operation middleware
func (*ServerInterfaceWrapper) UpdateUser ¶
func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Request)
UpdateUser operation middleware
func (*ServerInterfaceWrapper) VerifyAuth ¶
func (siw *ServerInterfaceWrapper) VerifyAuth(w http.ResponseWriter, r *http.Request)
VerifyAuth operation middleware
type ShowProfile200JSONResponse ¶
type ShowProfile200JSONResponse Profile
func (ShowProfile200JSONResponse) VisitShowProfileResponse ¶
func (response ShowProfile200JSONResponse) VisitShowProfileResponse(w http.ResponseWriter) error
type ShowProfile403JSONResponse ¶
type ShowProfile403JSONResponse Notification
func (ShowProfile403JSONResponse) VisitShowProfileResponse ¶
func (response ShowProfile403JSONResponse) VisitShowProfileResponse(w http.ResponseWriter) error
type ShowProfile500JSONResponse ¶
type ShowProfile500JSONResponse Notification
func (ShowProfile500JSONResponse) VisitShowProfileResponse ¶
func (response ShowProfile500JSONResponse) VisitShowProfileResponse(w http.ResponseWriter) error
type ShowProfileRequestObject ¶
type ShowProfileRequestObject struct { }
type ShowProfileResponseObject ¶
type ShowProfileResponseObject interface {
VisitShowProfileResponse(w http.ResponseWriter) error
}
type ShowProfiledefaultJSONResponse ¶
type ShowProfiledefaultJSONResponse struct { Body Notification StatusCode int }
func (ShowProfiledefaultJSONResponse) VisitShowProfileResponse ¶
func (response ShowProfiledefaultJSONResponse) VisitShowProfileResponse(w http.ResponseWriter) error
type ShowTeam200JSONResponse ¶
type ShowTeam200JSONResponse Team
func (ShowTeam200JSONResponse) VisitShowTeamResponse ¶
func (response ShowTeam200JSONResponse) VisitShowTeamResponse(w http.ResponseWriter) error
type ShowTeam403JSONResponse ¶
type ShowTeam403JSONResponse Notification
func (ShowTeam403JSONResponse) VisitShowTeamResponse ¶
func (response ShowTeam403JSONResponse) VisitShowTeamResponse(w http.ResponseWriter) error
type ShowTeam404JSONResponse ¶
type ShowTeam404JSONResponse Notification
func (ShowTeam404JSONResponse) VisitShowTeamResponse ¶
func (response ShowTeam404JSONResponse) VisitShowTeamResponse(w http.ResponseWriter) error
type ShowTeam500JSONResponse ¶
type ShowTeam500JSONResponse Notification
func (ShowTeam500JSONResponse) VisitShowTeamResponse ¶
func (response ShowTeam500JSONResponse) VisitShowTeamResponse(w http.ResponseWriter) error
type ShowTeamRequestObject ¶
type ShowTeamRequestObject struct {
TeamId string `json:"team_id"`
}
type ShowTeamResponseObject ¶
type ShowTeamResponseObject interface {
VisitShowTeamResponse(w http.ResponseWriter) error
}
type ShowTeamdefaultJSONResponse ¶
type ShowTeamdefaultJSONResponse struct { Body Notification StatusCode int }
func (ShowTeamdefaultJSONResponse) VisitShowTeamResponse ¶
func (response ShowTeamdefaultJSONResponse) VisitShowTeamResponse(w http.ResponseWriter) error
type ShowUser200JSONResponse ¶
type ShowUser200JSONResponse User
func (ShowUser200JSONResponse) VisitShowUserResponse ¶
func (response ShowUser200JSONResponse) VisitShowUserResponse(w http.ResponseWriter) error
type ShowUser403JSONResponse ¶
type ShowUser403JSONResponse Notification
func (ShowUser403JSONResponse) VisitShowUserResponse ¶
func (response ShowUser403JSONResponse) VisitShowUserResponse(w http.ResponseWriter) error
type ShowUser404JSONResponse ¶
type ShowUser404JSONResponse Notification
func (ShowUser404JSONResponse) VisitShowUserResponse ¶
func (response ShowUser404JSONResponse) VisitShowUserResponse(w http.ResponseWriter) error
type ShowUser500JSONResponse ¶
type ShowUser500JSONResponse Notification
func (ShowUser500JSONResponse) VisitShowUserResponse ¶
func (response ShowUser500JSONResponse) VisitShowUserResponse(w http.ResponseWriter) error
type ShowUserRequestObject ¶
type ShowUserRequestObject struct {
UserId string `json:"user_id"`
}
type ShowUserResponseObject ¶
type ShowUserResponseObject interface {
VisitShowUserResponse(w http.ResponseWriter) error
}
type ShowUserdefaultJSONResponse ¶
type ShowUserdefaultJSONResponse struct { Body Notification StatusCode int }
func (ShowUserdefaultJSONResponse) VisitShowUserResponse ¶
func (response ShowUserdefaultJSONResponse) VisitShowUserResponse(w http.ResponseWriter) error
type StrictHTTPServerOptions ¶
type StrictHTTPServerOptions struct { RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictnethttp.StrictHTTPHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictnethttp.StrictHTTPMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface { // Authenticate an user by credentials // (POST /auth/login) LoginAuth(ctx context.Context, request LoginAuthRequestObject) (LoginAuthResponseObject, error) // Refresh an auth token before it expires // (GET /auth/refresh) RefreshAuth(ctx context.Context, request RefreshAuthRequestObject) (RefreshAuthResponseObject, error) // Verify validity for an authentication token // (GET /auth/verify) VerifyAuth(ctx context.Context, request VerifyAuthRequestObject) (VerifyAuthResponseObject, error) // Callback for external authentication // (GET /auth/{provider}/callback) ExternalCallback(ctx context.Context, request ExternalCallbackRequestObject) (ExternalCallbackResponseObject, error) // Initialize the external authentication // (GET /auth/{provider}/initialize) ExternalInitialize(ctx context.Context, request ExternalInitializeRequestObject) (ExternalInitializeResponseObject, error) // Fetch profile details of the personal account // (GET /profile/self) ShowProfile(ctx context.Context, request ShowProfileRequestObject) (ShowProfileResponseObject, error) // Update your own profile information // (PUT /profile/self) UpdateProfile(ctx context.Context, request UpdateProfileRequestObject) (UpdateProfileResponseObject, error) // Retrieve an unlimited auth token // (GET /profile/token) TokenProfile(ctx context.Context, request TokenProfileRequestObject) (TokenProfileResponseObject, error) // Fetch all available teams // (GET /teams) ListTeams(ctx context.Context, request ListTeamsRequestObject) (ListTeamsResponseObject, error) // Create a new team // (POST /teams) CreateTeam(ctx context.Context, request CreateTeamRequestObject) (CreateTeamResponseObject, error) // Delete a specific team // (DELETE /teams/{team_id}) DeleteTeam(ctx context.Context, request DeleteTeamRequestObject) (DeleteTeamResponseObject, error) // Fetch a specific team // (GET /teams/{team_id}) ShowTeam(ctx context.Context, request ShowTeamRequestObject) (ShowTeamResponseObject, error) // Update a specific team // (PUT /teams/{team_id}) UpdateTeam(ctx context.Context, request UpdateTeamRequestObject) (UpdateTeamResponseObject, error) // Unlink a user from team // (DELETE /teams/{team_id}/users) DeleteTeamFromUser(ctx context.Context, request DeleteTeamFromUserRequestObject) (DeleteTeamFromUserResponseObject, error) // Fetch all users attached to team // (GET /teams/{team_id}/users) ListTeamUsers(ctx context.Context, request ListTeamUsersRequestObject) (ListTeamUsersResponseObject, error) // Attach a user to team // (POST /teams/{team_id}/users) AttachTeamToUser(ctx context.Context, request AttachTeamToUserRequestObject) (AttachTeamToUserResponseObject, error) // Update user perms for team // (PUT /teams/{team_id}/users) PermitTeamUser(ctx context.Context, request PermitTeamUserRequestObject) (PermitTeamUserResponseObject, error) // Fetch all available users // (GET /users) ListUsers(ctx context.Context, request ListUsersRequestObject) (ListUsersResponseObject, error) // Create a new user // (POST /users) CreateUser(ctx context.Context, request CreateUserRequestObject) (CreateUserResponseObject, error) // Delete a specific user // (DELETE /users/{user_id}) DeleteUser(ctx context.Context, request DeleteUserRequestObject) (DeleteUserResponseObject, error) // Fetch a specific user // (GET /users/{user_id}) ShowUser(ctx context.Context, request ShowUserRequestObject) (ShowUserResponseObject, error) // Update a specific user // (PUT /users/{user_id}) UpdateUser(ctx context.Context, request UpdateUserRequestObject) (UpdateUserResponseObject, error) // Unlink a team from user // (DELETE /users/{user_id}/teams) DeleteUserFromTeam(ctx context.Context, request DeleteUserFromTeamRequestObject) (DeleteUserFromTeamResponseObject, error) // Fetch all teams attached to user // (GET /users/{user_id}/teams) ListUserTeams(ctx context.Context, request ListUserTeamsRequestObject) (ListUserTeamsResponseObject, error) // Attach a team to user // (POST /users/{user_id}/teams) AttachUserToTeam(ctx context.Context, request AttachUserToTeamRequestObject) (AttachUserToTeamResponseObject, error) // Update team perms for user // (PUT /users/{user_id}/teams) PermitUserTeam(ctx context.Context, request PermitUserTeamRequestObject) (PermitUserTeamResponseObject, error) }
StrictServerInterface represents all server handlers.
type Team ¶
type Team struct { CreatedAt *time.Time `json:"created_at,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Slug *string `json:"slug,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` Users *[]UserTeam `json:"users,omitempty"` }
Team Model to represent team
type TeamUserParams ¶
type TeamUserParams struct { Perm *TeamUserParamsPerm `json:"perm,omitempty"` User string `json:"user"` }
TeamUserParams Parameters to attach or unlink team user
type TeamUserParamsPerm ¶
type TeamUserParamsPerm string
TeamUserParamsPerm defines model for TeamUserParams.Perm.
const ( TeamUserParamsPermAdmin TeamUserParamsPerm = "admin" TeamUserParamsPermOwner TeamUserParamsPerm = "owner" TeamUserParamsPermUser TeamUserParamsPerm = "user" )
Defines values for TeamUserParamsPerm.
type TeamUsers ¶
type TeamUsers struct { // Team Model to represent team Team *Team `json:"team,omitempty"` Total *int64 `json:"total,omitempty"` Users *[]UserTeam `json:"users,omitempty"` }
TeamUsers Model to represent team users
type TokenProfile200JSONResponse ¶
type TokenProfile200JSONResponse AuthToken
func (TokenProfile200JSONResponse) VisitTokenProfileResponse ¶
func (response TokenProfile200JSONResponse) VisitTokenProfileResponse(w http.ResponseWriter) error
type TokenProfile403JSONResponse ¶
type TokenProfile403JSONResponse Notification
func (TokenProfile403JSONResponse) VisitTokenProfileResponse ¶
func (response TokenProfile403JSONResponse) VisitTokenProfileResponse(w http.ResponseWriter) error
type TokenProfile500JSONResponse ¶
type TokenProfile500JSONResponse Notification
func (TokenProfile500JSONResponse) VisitTokenProfileResponse ¶
func (response TokenProfile500JSONResponse) VisitTokenProfileResponse(w http.ResponseWriter) error
type TokenProfileRequestObject ¶
type TokenProfileRequestObject struct { }
type TokenProfileResponseObject ¶
type TokenProfileResponseObject interface {
VisitTokenProfileResponse(w http.ResponseWriter) error
}
type TokenProfiledefaultJSONResponse ¶
type TokenProfiledefaultJSONResponse struct { Body Notification StatusCode int }
func (TokenProfiledefaultJSONResponse) VisitTokenProfileResponse ¶
func (response TokenProfiledefaultJSONResponse) VisitTokenProfileResponse(w http.ResponseWriter) error
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type Unimplemented ¶
type Unimplemented struct{}
func (Unimplemented) AttachTeamToUser ¶
func (_ Unimplemented) AttachTeamToUser(w http.ResponseWriter, r *http.Request, teamId string)
Attach a user to team (POST /teams/{team_id}/users)
func (Unimplemented) AttachUserToTeam ¶
func (_ Unimplemented) AttachUserToTeam(w http.ResponseWriter, r *http.Request, userId string)
Attach a team to user (POST /users/{user_id}/teams)
func (Unimplemented) CreateTeam ¶
func (_ Unimplemented) CreateTeam(w http.ResponseWriter, r *http.Request)
Create a new team (POST /teams)
func (Unimplemented) CreateUser ¶
func (_ Unimplemented) CreateUser(w http.ResponseWriter, r *http.Request)
Create a new user (POST /users)
func (Unimplemented) DeleteTeam ¶
func (_ Unimplemented) DeleteTeam(w http.ResponseWriter, r *http.Request, teamId string)
Delete a specific team (DELETE /teams/{team_id})
func (Unimplemented) DeleteTeamFromUser ¶
func (_ Unimplemented) DeleteTeamFromUser(w http.ResponseWriter, r *http.Request, teamId string)
Unlink a user from team (DELETE /teams/{team_id}/users)
func (Unimplemented) DeleteUser ¶
func (_ Unimplemented) DeleteUser(w http.ResponseWriter, r *http.Request, userId string)
Delete a specific user (DELETE /users/{user_id})
func (Unimplemented) DeleteUserFromTeam ¶
func (_ Unimplemented) DeleteUserFromTeam(w http.ResponseWriter, r *http.Request, userId string)
Unlink a team from user (DELETE /users/{user_id}/teams)
func (Unimplemented) ExternalCallback ¶
func (_ Unimplemented) ExternalCallback(w http.ResponseWriter, r *http.Request, provider string, params ExternalCallbackParams)
Callback for external authentication (GET /auth/{provider}/callback)
func (Unimplemented) ExternalInitialize ¶
func (_ Unimplemented) ExternalInitialize(w http.ResponseWriter, r *http.Request, provider string, params ExternalInitializeParams)
Initialize the external authentication (GET /auth/{provider}/initialize)
func (Unimplemented) ListTeamUsers ¶
func (_ Unimplemented) ListTeamUsers(w http.ResponseWriter, r *http.Request, teamId string, params ListTeamUsersParams)
Fetch all users attached to team (GET /teams/{team_id}/users)
func (Unimplemented) ListTeams ¶
func (_ Unimplemented) ListTeams(w http.ResponseWriter, r *http.Request, params ListTeamsParams)
Fetch all available teams (GET /teams)
func (Unimplemented) ListUserTeams ¶
func (_ Unimplemented) ListUserTeams(w http.ResponseWriter, r *http.Request, userId string, params ListUserTeamsParams)
Fetch all teams attached to user (GET /users/{user_id}/teams)
func (Unimplemented) ListUsers ¶
func (_ Unimplemented) ListUsers(w http.ResponseWriter, r *http.Request, params ListUsersParams)
Fetch all available users (GET /users)
func (Unimplemented) LoginAuth ¶
func (_ Unimplemented) LoginAuth(w http.ResponseWriter, r *http.Request)
Authenticate an user by credentials (POST /auth/login)
func (Unimplemented) PermitTeamUser ¶
func (_ Unimplemented) PermitTeamUser(w http.ResponseWriter, r *http.Request, teamId string)
Update user perms for team (PUT /teams/{team_id}/users)
func (Unimplemented) PermitUserTeam ¶
func (_ Unimplemented) PermitUserTeam(w http.ResponseWriter, r *http.Request, userId string)
Update team perms for user (PUT /users/{user_id}/teams)
func (Unimplemented) RefreshAuth ¶
func (_ Unimplemented) RefreshAuth(w http.ResponseWriter, r *http.Request)
Refresh an auth token before it expires (GET /auth/refresh)
func (Unimplemented) ShowProfile ¶
func (_ Unimplemented) ShowProfile(w http.ResponseWriter, r *http.Request)
Fetch profile details of the personal account (GET /profile/self)
func (Unimplemented) ShowTeam ¶
func (_ Unimplemented) ShowTeam(w http.ResponseWriter, r *http.Request, teamId string)
Fetch a specific team (GET /teams/{team_id})
func (Unimplemented) ShowUser ¶
func (_ Unimplemented) ShowUser(w http.ResponseWriter, r *http.Request, userId string)
Fetch a specific user (GET /users/{user_id})
func (Unimplemented) TokenProfile ¶
func (_ Unimplemented) TokenProfile(w http.ResponseWriter, r *http.Request)
Retrieve an unlimited auth token (GET /profile/token)
func (Unimplemented) UpdateProfile ¶
func (_ Unimplemented) UpdateProfile(w http.ResponseWriter, r *http.Request)
Update your own profile information (PUT /profile/self)
func (Unimplemented) UpdateTeam ¶
func (_ Unimplemented) UpdateTeam(w http.ResponseWriter, r *http.Request, teamId string)
Update a specific team (PUT /teams/{team_id})
func (Unimplemented) UpdateUser ¶
func (_ Unimplemented) UpdateUser(w http.ResponseWriter, r *http.Request, userId string)
Update a specific user (PUT /users/{user_id})
func (Unimplemented) VerifyAuth ¶
func (_ Unimplemented) VerifyAuth(w http.ResponseWriter, r *http.Request)
Verify validity for an authentication token (GET /auth/verify)
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UpdateProfile200JSONResponse ¶
type UpdateProfile200JSONResponse Profile
func (UpdateProfile200JSONResponse) VisitUpdateProfileResponse ¶
func (response UpdateProfile200JSONResponse) VisitUpdateProfileResponse(w http.ResponseWriter) error
type UpdateProfile403JSONResponse ¶
type UpdateProfile403JSONResponse Notification
func (UpdateProfile403JSONResponse) VisitUpdateProfileResponse ¶
func (response UpdateProfile403JSONResponse) VisitUpdateProfileResponse(w http.ResponseWriter) error
type UpdateProfile422JSONResponse ¶
type UpdateProfile422JSONResponse Notification
func (UpdateProfile422JSONResponse) VisitUpdateProfileResponse ¶
func (response UpdateProfile422JSONResponse) VisitUpdateProfileResponse(w http.ResponseWriter) error
type UpdateProfile500JSONResponse ¶
type UpdateProfile500JSONResponse Notification
func (UpdateProfile500JSONResponse) VisitUpdateProfileResponse ¶
func (response UpdateProfile500JSONResponse) VisitUpdateProfileResponse(w http.ResponseWriter) error
type UpdateProfileJSONRequestBody ¶
type UpdateProfileJSONRequestBody = Profile
UpdateProfileJSONRequestBody defines body for UpdateProfile for application/json ContentType.
type UpdateProfileRequestObject ¶
type UpdateProfileRequestObject struct {
Body *UpdateProfileJSONRequestBody
}
type UpdateProfileResponseObject ¶
type UpdateProfileResponseObject interface {
VisitUpdateProfileResponse(w http.ResponseWriter) error
}
type UpdateProfiledefaultJSONResponse ¶
type UpdateProfiledefaultJSONResponse struct { Body Notification StatusCode int }
func (UpdateProfiledefaultJSONResponse) VisitUpdateProfileResponse ¶
func (response UpdateProfiledefaultJSONResponse) VisitUpdateProfileResponse(w http.ResponseWriter) error
type UpdateTeam200JSONResponse ¶
type UpdateTeam200JSONResponse Team
func (UpdateTeam200JSONResponse) VisitUpdateTeamResponse ¶
func (response UpdateTeam200JSONResponse) VisitUpdateTeamResponse(w http.ResponseWriter) error
type UpdateTeam403JSONResponse ¶
type UpdateTeam403JSONResponse Notification
func (UpdateTeam403JSONResponse) VisitUpdateTeamResponse ¶
func (response UpdateTeam403JSONResponse) VisitUpdateTeamResponse(w http.ResponseWriter) error
type UpdateTeam404JSONResponse ¶
type UpdateTeam404JSONResponse Notification
func (UpdateTeam404JSONResponse) VisitUpdateTeamResponse ¶
func (response UpdateTeam404JSONResponse) VisitUpdateTeamResponse(w http.ResponseWriter) error
type UpdateTeam422JSONResponse ¶
type UpdateTeam422JSONResponse Notification
func (UpdateTeam422JSONResponse) VisitUpdateTeamResponse ¶
func (response UpdateTeam422JSONResponse) VisitUpdateTeamResponse(w http.ResponseWriter) error
type UpdateTeam500JSONResponse ¶
type UpdateTeam500JSONResponse Notification
func (UpdateTeam500JSONResponse) VisitUpdateTeamResponse ¶
func (response UpdateTeam500JSONResponse) VisitUpdateTeamResponse(w http.ResponseWriter) error
type UpdateTeamJSONRequestBody ¶
type UpdateTeamJSONRequestBody = Team
UpdateTeamJSONRequestBody defines body for UpdateTeam for application/json ContentType.
type UpdateTeamRequestObject ¶
type UpdateTeamRequestObject struct { TeamId string `json:"team_id"` Body *UpdateTeamJSONRequestBody }
type UpdateTeamResponseObject ¶
type UpdateTeamResponseObject interface {
VisitUpdateTeamResponse(w http.ResponseWriter) error
}
type UpdateTeamdefaultJSONResponse ¶
type UpdateTeamdefaultJSONResponse struct { Body Notification StatusCode int }
func (UpdateTeamdefaultJSONResponse) VisitUpdateTeamResponse ¶
func (response UpdateTeamdefaultJSONResponse) VisitUpdateTeamResponse(w http.ResponseWriter) error
type UpdateUser200JSONResponse ¶
type UpdateUser200JSONResponse User
func (UpdateUser200JSONResponse) VisitUpdateUserResponse ¶
func (response UpdateUser200JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUser403JSONResponse ¶
type UpdateUser403JSONResponse Notification
func (UpdateUser403JSONResponse) VisitUpdateUserResponse ¶
func (response UpdateUser403JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUser404JSONResponse ¶
type UpdateUser404JSONResponse Notification
func (UpdateUser404JSONResponse) VisitUpdateUserResponse ¶
func (response UpdateUser404JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUser422JSONResponse ¶
type UpdateUser422JSONResponse Notification
func (UpdateUser422JSONResponse) VisitUpdateUserResponse ¶
func (response UpdateUser422JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUser500JSONResponse ¶
type UpdateUser500JSONResponse Notification
func (UpdateUser500JSONResponse) VisitUpdateUserResponse ¶
func (response UpdateUser500JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUserJSONRequestBody ¶
type UpdateUserJSONRequestBody = User
UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.
type UpdateUserRequestObject ¶
type UpdateUserRequestObject struct { UserId string `json:"user_id"` Body *UpdateUserJSONRequestBody }
type UpdateUserResponseObject ¶
type UpdateUserResponseObject interface {
VisitUpdateUserResponse(w http.ResponseWriter) error
}
type UpdateUserdefaultJSONResponse ¶
type UpdateUserdefaultJSONResponse struct { Body Notification StatusCode int }
func (UpdateUserdefaultJSONResponse) VisitUpdateUserResponse ¶
func (response UpdateUserdefaultJSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error
type User ¶
type User struct { Active *bool `json:"active,omitempty"` Admin *bool `json:"admin,omitempty"` Auths *[]UserAuth `json:"auths,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` Email *string `json:"email,omitempty"` Fullname *string `json:"fullname,omitempty"` Id *string `json:"id,omitempty"` Password *string `json:"password,omitempty"` Profile *string `json:"profile,omitempty"` Teams *[]UserTeam `json:"teams,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` Username *string `json:"username,omitempty"` }
User Model to represent user
type UserAuth ¶
type UserAuth struct { CreatedAt *time.Time `json:"created_at,omitempty"` Provider *string `json:"provider,omitempty"` Ref *string `json:"ref,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
UserAuth Model to represent user auth
type UserTeam ¶
type UserTeam struct { CreatedAt *time.Time `json:"created_at,omitempty"` Perm *UserTeamPerm `json:"perm,omitempty"` // Team Model to represent team Team *Team `json:"team,omitempty"` TeamId string `json:"team_id"` UpdatedAt *time.Time `json:"updated_at,omitempty"` // User Model to represent user User *User `json:"user,omitempty"` UserId string `json:"user_id"` }
UserTeam Model to represent user team
type UserTeamParams ¶
type UserTeamParams struct { Perm *UserTeamParamsPerm `json:"perm,omitempty"` Team string `json:"team"` }
UserTeamParams Parameters to attach or unlink user team
type UserTeamParamsPerm ¶
type UserTeamParamsPerm string
UserTeamParamsPerm defines model for UserTeamParams.Perm.
const ( UserTeamParamsPermAdmin UserTeamParamsPerm = "admin" UserTeamParamsPermOwner UserTeamParamsPerm = "owner" UserTeamParamsPermUser UserTeamParamsPerm = "user" )
Defines values for UserTeamParamsPerm.
type UserTeamPerm ¶
type UserTeamPerm string
UserTeamPerm defines model for UserTeam.Perm.
const ( UserTeamPermAdmin UserTeamPerm = "admin" UserTeamPermOwner UserTeamPerm = "owner" UserTeamPermUser UserTeamPerm = "user" )
Defines values for UserTeamPerm.
type UserTeams ¶
type UserTeams struct { Teams *[]UserTeam `json:"teams,omitempty"` Total *int64 `json:"total,omitempty"` // User Model to represent user User *User `json:"user,omitempty"` }
UserTeams Model to represent user teams
type Validation ¶
type Validation struct { Field *string `json:"field,omitempty"` Message *string `json:"message,omitempty"` }
Validation General structure to show validation errors
type VerifyAuth200JSONResponse ¶
type VerifyAuth200JSONResponse AuthVerify
func (VerifyAuth200JSONResponse) VisitVerifyAuthResponse ¶
func (response VerifyAuth200JSONResponse) VisitVerifyAuthResponse(w http.ResponseWriter) error
type VerifyAuth401JSONResponse ¶
type VerifyAuth401JSONResponse Notification
func (VerifyAuth401JSONResponse) VisitVerifyAuthResponse ¶
func (response VerifyAuth401JSONResponse) VisitVerifyAuthResponse(w http.ResponseWriter) error
type VerifyAuth500JSONResponse ¶
type VerifyAuth500JSONResponse Notification
func (VerifyAuth500JSONResponse) VisitVerifyAuthResponse ¶
func (response VerifyAuth500JSONResponse) VisitVerifyAuthResponse(w http.ResponseWriter) error
type VerifyAuthRequestObject ¶
type VerifyAuthRequestObject struct { }
type VerifyAuthResponseObject ¶
type VerifyAuthResponseObject interface {
VisitVerifyAuthResponse(w http.ResponseWriter) error
}
type VerifyAuthdefaultJSONResponse ¶
type VerifyAuthdefaultJSONResponse struct { Body Notification StatusCode int }
func (VerifyAuthdefaultJSONResponse) VisitVerifyAuthResponse ¶
func (response VerifyAuthdefaultJSONResponse) VisitVerifyAuthResponse(w http.ResponseWriter) error