Documentation
¶
Overview ¶
Package apigen provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ¶
- Constants
- 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
- type AdminCreateChallenge201JSONResponse
- type AdminCreateChallenge401ApplicationProblemPlusJSONResponse
- type AdminCreateChallenge403ApplicationProblemPlusJSONResponse
- type AdminCreateChallenge409ApplicationProblemPlusJSONResponse
- type AdminCreateChallenge422ApplicationProblemPlusJSONResponse
- type AdminCreateChallengeJSONRequestBody
- type AdminCreateChallengeRequestObject
- type AdminCreateChallengeResponseObject
- type AdminDeleteAttachment204Response
- type AdminDeleteAttachment401ApplicationProblemPlusJSONResponse
- type AdminDeleteAttachment403ApplicationProblemPlusJSONResponse
- type AdminDeleteAttachment404ApplicationProblemPlusJSONResponse
- type AdminDeleteAttachmentRequestObject
- type AdminDeleteAttachmentResponseObject
- type AdminDeleteChallenge204Response
- type AdminDeleteChallenge401ApplicationProblemPlusJSONResponse
- type AdminDeleteChallenge403ApplicationProblemPlusJSONResponse
- type AdminDeleteChallenge404ApplicationProblemPlusJSONResponse
- type AdminDeleteChallenge409ApplicationProblemPlusJSONResponse
- type AdminDeleteChallengeParams
- type AdminDeleteChallengeRequestObject
- type AdminDeleteChallengeResponseObject
- type AdminDeployInstance200JSONResponse
- type AdminDeployInstance401ApplicationProblemPlusJSONResponse
- type AdminDeployInstance403ApplicationProblemPlusJSONResponse
- type AdminDeployInstance404ApplicationProblemPlusJSONResponse
- type AdminDeployInstance409ApplicationProblemPlusJSONResponse
- type AdminDeployInstance503ApplicationProblemPlusJSONResponse
- type AdminDeployInstanceRequestObject
- type AdminDeployInstanceResponseObject
- type AdminDestroyInstance204Response
- type AdminDestroyInstance401ApplicationProblemPlusJSONResponse
- type AdminDestroyInstance403ApplicationProblemPlusJSONResponse
- type AdminDestroyInstance404ApplicationProblemPlusJSONResponse
- type AdminDestroyInstance503ApplicationProblemPlusJSONResponse
- type AdminDestroyInstanceById204Response
- type AdminDestroyInstanceById401ApplicationProblemPlusJSONResponse
- type AdminDestroyInstanceById403ApplicationProblemPlusJSONResponse
- type AdminDestroyInstanceById404ApplicationProblemPlusJSONResponse
- type AdminDestroyInstanceById503ApplicationProblemPlusJSONResponse
- type AdminDestroyInstanceByIdRequestObject
- type AdminDestroyInstanceByIdResponseObject
- type AdminDestroyInstanceRequestObject
- type AdminDestroyInstanceResponseObject
- type AdminGetChallenge200JSONResponse
- type AdminGetChallenge401ApplicationProblemPlusJSONResponse
- type AdminGetChallenge403ApplicationProblemPlusJSONResponse
- type AdminGetChallenge404ApplicationProblemPlusJSONResponse
- type AdminGetChallengeRequestObject
- type AdminGetChallengeResponseObject
- type AdminGetEvent200JSONResponse
- type AdminGetEvent401ApplicationProblemPlusJSONResponse
- type AdminGetEvent403ApplicationProblemPlusJSONResponse
- type AdminGetEventRequestObject
- type AdminGetEventResponseObject
- type AdminGetInstance200JSONResponse
- type AdminGetInstance401ApplicationProblemPlusJSONResponse
- type AdminGetInstance403ApplicationProblemPlusJSONResponse
- type AdminGetInstance404ApplicationProblemPlusJSONResponse
- type AdminGetInstanceLogs200JSONResponse
- type AdminGetInstanceLogs401ApplicationProblemPlusJSONResponse
- type AdminGetInstanceLogs403ApplicationProblemPlusJSONResponse
- type AdminGetInstanceLogs404ApplicationProblemPlusJSONResponse
- type AdminGetInstanceLogs503ApplicationProblemPlusJSONResponse
- type AdminGetInstanceLogsParams
- type AdminGetInstanceLogsRequestObject
- type AdminGetInstanceLogsResponseObject
- type AdminGetInstanceRequestObject
- type AdminGetInstanceResponseObject
- type AdminGetStats200JSONResponse
- type AdminGetStats401ApplicationProblemPlusJSONResponse
- type AdminGetStats403ApplicationProblemPlusJSONResponse
- type AdminGetStatsRequestObject
- type AdminGetStatsResponseObject
- type AdminInstance
- type AdminInstanceList
- type AdminListChallenges200JSONResponse
- type AdminListChallenges401ApplicationProblemPlusJSONResponse
- type AdminListChallenges403ApplicationProblemPlusJSONResponse
- type AdminListChallengesParams
- type AdminListChallengesRequestObject
- type AdminListChallengesResponseObject
- type AdminListInstances200JSONResponse
- type AdminListInstances401ApplicationProblemPlusJSONResponse
- type AdminListInstances403ApplicationProblemPlusJSONResponse
- type AdminListInstancesRequestObject
- type AdminListInstancesResponseObject
- type AdminListPlugins200JSONResponse
- type AdminListPlugins401ApplicationProblemPlusJSONResponse
- type AdminListPlugins403ApplicationProblemPlusJSONResponse
- type AdminListPluginsRequestObject
- type AdminListPluginsResponseObject
- type AdminListSubmissions200JSONResponse
- type AdminListSubmissions401ApplicationProblemPlusJSONResponse
- type AdminListSubmissions403ApplicationProblemPlusJSONResponse
- type AdminListSubmissionsParams
- type AdminListSubmissionsRequestObject
- type AdminListSubmissionsResponseObject
- type AdminListTeams200JSONResponse
- type AdminListTeams401ApplicationProblemPlusJSONResponse
- type AdminListTeams403ApplicationProblemPlusJSONResponse
- type AdminListTeamsParams
- type AdminListTeamsRequestObject
- type AdminListTeamsResponseObject
- type AdminListTokens200JSONResponse
- type AdminListTokens401ApplicationProblemPlusJSONResponse
- type AdminListTokens403ApplicationProblemPlusJSONResponse
- type AdminListTokensParams
- type AdminListTokensRequestObject
- type AdminListTokensResponseObject
- type AdminListUsers200JSONResponse
- type AdminListUsers401ApplicationProblemPlusJSONResponse
- type AdminListUsers403ApplicationProblemPlusJSONResponse
- type AdminListUsersParams
- type AdminListUsersRequestObject
- type AdminListUsersResponseObject
- type AdminPasswordResetRequest
- type AdminPluginList
- type AdminPluginStatus
- type AdminReloadPlugin204Response
- type AdminReloadPlugin401ApplicationProblemPlusJSONResponse
- type AdminReloadPlugin403ApplicationProblemPlusJSONResponse
- type AdminReloadPlugin404ApplicationProblemPlusJSONResponse
- type AdminReloadPlugin503ApplicationProblemPlusJSONResponse
- type AdminReloadPluginRequestObject
- type AdminReloadPluginResponseObject
- type AdminResetPassword204Response
- type AdminResetPassword401ApplicationProblemPlusJSONResponse
- type AdminResetPassword403ApplicationProblemPlusJSONResponse
- type AdminResetPassword404ApplicationProblemPlusJSONResponse
- type AdminResetPassword422ApplicationProblemPlusJSONResponse
- type AdminResetPasswordJSONRequestBody
- type AdminResetPasswordRequestObject
- type AdminResetPasswordResponseObject
- type AdminRestartInstance200JSONResponse
- type AdminRestartInstance401ApplicationProblemPlusJSONResponse
- type AdminRestartInstance403ApplicationProblemPlusJSONResponse
- type AdminRestartInstance404ApplicationProblemPlusJSONResponse
- type AdminRestartInstance503ApplicationProblemPlusJSONResponse
- type AdminRestartInstanceRequestObject
- type AdminRestartInstanceResponseObject
- type AdminRevokeToken204Response
- type AdminRevokeToken401ApplicationProblemPlusJSONResponse
- type AdminRevokeToken403ApplicationProblemPlusJSONResponse
- type AdminRevokeToken404ApplicationProblemPlusJSONResponse
- type AdminRevokeTokenRequestObject
- type AdminRevokeTokenResponseObject
- type AdminStats
- type AdminUpdateChallenge200JSONResponse
- type AdminUpdateChallenge401ApplicationProblemPlusJSONResponse
- type AdminUpdateChallenge403ApplicationProblemPlusJSONResponse
- type AdminUpdateChallenge404ApplicationProblemPlusJSONResponse
- type AdminUpdateChallenge409ApplicationProblemPlusJSONResponse
- type AdminUpdateChallenge422ApplicationProblemPlusJSONResponse
- type AdminUpdateChallengeJSONRequestBody
- type AdminUpdateChallengeRequestObject
- type AdminUpdateChallengeResponseObject
- type AdminUpdateEvent200JSONResponse
- type AdminUpdateEvent401ApplicationProblemPlusJSONResponse
- type AdminUpdateEvent403ApplicationProblemPlusJSONResponse
- type AdminUpdateEvent422ApplicationProblemPlusJSONResponse
- type AdminUpdateEventJSONRequestBody
- type AdminUpdateEventRequestObject
- type AdminUpdateEventResponseObject
- type AdminUpdateTeam200JSONResponse
- type AdminUpdateTeam401ApplicationProblemPlusJSONResponse
- type AdminUpdateTeam403ApplicationProblemPlusJSONResponse
- type AdminUpdateTeam404ApplicationProblemPlusJSONResponse
- type AdminUpdateTeam422ApplicationProblemPlusJSONResponse
- type AdminUpdateTeamJSONRequestBody
- type AdminUpdateTeamRequestObject
- type AdminUpdateTeamResponseObject
- type AdminUpdateUser200JSONResponse
- type AdminUpdateUser401ApplicationProblemPlusJSONResponse
- type AdminUpdateUser403ApplicationProblemPlusJSONResponse
- type AdminUpdateUser404ApplicationProblemPlusJSONResponse
- type AdminUpdateUser409ApplicationProblemPlusJSONResponse
- type AdminUpdateUser422ApplicationProblemPlusJSONResponse
- type AdminUpdateUserJSONRequestBody
- type AdminUpdateUserRequestObject
- type AdminUpdateUserResponseObject
- type AdminUploadAttachment201JSONResponse
- type AdminUploadAttachment401ApplicationProblemPlusJSONResponse
- type AdminUploadAttachment403ApplicationProblemPlusJSONResponse
- type AdminUploadAttachment404ApplicationProblemPlusJSONResponse
- type AdminUploadAttachment409ApplicationProblemPlusJSONResponse
- type AdminUploadAttachment422ApplicationProblemPlusJSONResponse
- type AdminUploadAttachmentMultipartBody
- type AdminUploadAttachmentMultipartRequestBody
- type AdminUploadAttachmentRequestObject
- type AdminUploadAttachmentResponseObject
- type Attachment
- type AttachmentAdmin
- type AuthProviderInfo
- type BeginProviderLogin302Response
- type BeginProviderLogin302ResponseHeaders
- type BeginProviderLogin404ApplicationProblemPlusJSONResponse
- type BeginProviderLogin503ApplicationProblemPlusJSONResponse
- type BeginProviderLoginRequestObject
- type BeginProviderLoginResponseObject
- type Category
- type Challenge
- type ChallengeAdmin
- type ChallengeAdminCreate
- type ChallengeAdminPage
- type ChallengeAdminUpdate
- type ChallengeDetail
- type ChallengeKind
- type ChallengeRef
- type ChangePassword204Response
- type ChangePassword401ApplicationProblemPlusJSONResponse
- type ChangePassword403ApplicationProblemPlusJSONResponse
- type ChangePassword422ApplicationProblemPlusJSONResponse
- type ChangePasswordJSONRequestBody
- type ChangePasswordRequest
- type ChangePasswordRequestObject
- type ChangePasswordResponseObject
- type ChiServerOptions
- type CompleteProviderLogin302Response
- type CompleteProviderLogin302ResponseHeaders
- type CompleteProviderLoginRequestObject
- type CompleteProviderLoginResponseObject
- type Conflict
- type ConflictApplicationProblemPlusJSONResponse
- type CreateTeam201JSONResponse
- type CreateTeam401ApplicationProblemPlusJSONResponse
- type CreateTeam409ApplicationProblemPlusJSONResponse
- type CreateTeam422ApplicationProblemPlusJSONResponse
- type CreateTeamJSONRequestBody
- type CreateTeamRequestObject
- type CreateTeamResponseObject
- type CreateToken201JSONResponse
- type CreateToken401ApplicationProblemPlusJSONResponse
- type CreateToken403ApplicationProblemPlusJSONResponse
- type CreateToken422ApplicationProblemPlusJSONResponse
- type CreateTokenJSONRequestBody
- type CreateTokenRequestObject
- type CreateTokenResponseObject
- type Difficulty
- type DownloadAttachment200ApplicationoctetStreamResponse
- type DownloadAttachment401ApplicationProblemPlusJSONResponse
- type DownloadAttachment403ApplicationProblemPlusJSONResponse
- type DownloadAttachment404ApplicationProblemPlusJSONResponse
- type DownloadAttachmentRequestObject
- type DownloadAttachmentResponseObject
- type Event
- type EventAdmin
- type EventPhase
- type EventUpdateRequest
- type ExtendInstance200JSONResponse
- type ExtendInstance401ApplicationProblemPlusJSONResponse
- type ExtendInstance403ApplicationProblemPlusJSONResponse
- type ExtendInstance404ApplicationProblemPlusJSONResponse
- type ExtendInstance409ApplicationProblemPlusJSONResponse
- type ExtendInstance503ApplicationProblemPlusJSONResponse
- type ExtendInstanceRequestObject
- type ExtendInstanceResponseObject
- type FlagMode
- type Forbidden
- type ForbiddenApplicationProblemPlusJSONResponse
- type GetChallenge200JSONResponse
- type GetChallenge401ApplicationProblemPlusJSONResponse
- type GetChallenge403ApplicationProblemPlusJSONResponse
- type GetChallenge404ApplicationProblemPlusJSONResponse
- type GetChallengeRequestObject
- type GetChallengeResponseObject
- type GetEvent200JSONResponse
- type GetEventRequestObject
- type GetEventResponseObject
- type GetMe200JSONResponse
- type GetMe401ApplicationProblemPlusJSONResponse
- type GetMeRequestObject
- type GetMeResponseObject
- type GetScoreboard200JSONResponse
- type GetScoreboardRequestObject
- type GetScoreboardResponseObject
- type GetTeam200JSONResponse
- type GetTeam404ApplicationProblemPlusJSONResponse
- type GetTeamRequestObject
- type GetTeamResponseObject
- type GetUser200JSONResponse
- type GetUser404ApplicationProblemPlusJSONResponse
- type GetUserRequestObject
- type GetUserResponseObject
- type IdPath
- type Instance
- type InstanceLogs
- type InstanceState
- type Instancing
- type InvalidParamFormatError
- type InviteCode
- type JoinTeam200JSONResponse
- type JoinTeam401ApplicationProblemPlusJSONResponse
- type JoinTeam404ApplicationProblemPlusJSONResponse
- type JoinTeam409ApplicationProblemPlusJSONResponse
- type JoinTeam422ApplicationProblemPlusJSONResponse
- type JoinTeamJSONRequestBody
- type JoinTeamRequestObject
- type JoinTeamResponseObject
- type LeaveTeam204Response
- type LeaveTeam401ApplicationProblemPlusJSONResponse
- type LeaveTeam404ApplicationProblemPlusJSONResponse
- type LeaveTeamRequestObject
- type LeaveTeamResponseObject
- type ListAuthProviders200JSONResponse
- type ListAuthProvidersRequestObject
- type ListAuthProvidersResponseObject
- type ListChallenges200JSONResponse
- type ListChallenges401ApplicationProblemPlusJSONResponse
- type ListChallenges403ApplicationProblemPlusJSONResponse
- type ListChallengesRequestObject
- type ListChallengesResponseObject
- type ListTeams200JSONResponse
- type ListTeamsRequestObject
- type ListTeamsResponseObject
- type ListTokens200JSONResponse
- type ListTokens401ApplicationProblemPlusJSONResponse
- type ListTokens403ApplicationProblemPlusJSONResponse
- type ListTokensRequestObject
- type ListTokensResponseObject
- type Login200JSONResponse
- type Login401ApplicationProblemPlusJSONResponse
- type Login422ApplicationProblemPlusJSONResponse
- type Login429ApplicationProblemPlusJSONResponse
- type LoginJSONRequestBody
- type LoginRequest
- type LoginRequestObject
- type LoginResponseObject
- type Logout204Response
- type Logout401ApplicationProblemPlusJSONResponse
- type LogoutRequestObject
- type LogoutResponseObject
- type Me
- type Member
- type MiddlewareFunc
- type MyTeamRef
- type MyTeamRefRole
- type NotFound
- type NotFoundApplicationProblemPlusJSONResponse
- type Page
- type PerPage
- type Problem
- type ProviderPath
- type ProviderUnavailable
- type ProviderUnavailableApplicationProblemPlusJSONResponse
- type PublicUser
- type Query
- type RateLimited
- type RateLimitedApplicationProblemPlusJSONResponse
- type RateLimitedResponseHeaders
- type RegenerateInviteCode200JSONResponse
- type RegenerateInviteCode401ApplicationProblemPlusJSONResponse
- type RegenerateInviteCode403ApplicationProblemPlusJSONResponse
- type RegenerateInviteCode404ApplicationProblemPlusJSONResponse
- type RegenerateInviteCodeRequestObject
- type RegenerateInviteCodeResponseObject
- type Register201JSONResponse
- type Register403ApplicationProblemPlusJSONResponse
- type Register409ApplicationProblemPlusJSONResponse
- type Register422ApplicationProblemPlusJSONResponse
- type Register429ApplicationProblemPlusJSONResponse
- type RegisterJSONRequestBody
- type RegisterRequest
- type RegisterRequestObject
- type RegisterResponseObject
- type RenameTeam200JSONResponse
- type RenameTeam401ApplicationProblemPlusJSONResponse
- type RenameTeam403ApplicationProblemPlusJSONResponse
- type RenameTeam404ApplicationProblemPlusJSONResponse
- type RenameTeam409ApplicationProblemPlusJSONResponse
- type RenameTeam422ApplicationProblemPlusJSONResponse
- type RenameTeamJSONRequestBody
- type RenameTeamRequestObject
- type RenameTeamResponseObject
- type RequiredHeaderError
- type RequiredParamError
- type RevokeToken204Response
- type RevokeToken401ApplicationProblemPlusJSONResponse
- type RevokeToken403ApplicationProblemPlusJSONResponse
- type RevokeToken404ApplicationProblemPlusJSONResponse
- type RevokeTokenRequestObject
- type RevokeTokenResponseObject
- type Role
- type RuntimeUnavailable
- type RuntimeUnavailableApplicationProblemPlusJSONResponse
- type Scoreboard
- type ScoreboardEntry
- type ScoringMode
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) AdminCreateChallenge(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminDeleteAttachment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminDeleteChallenge(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminDeployInstance(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminDestroyInstance(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminDestroyInstanceById(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminGetChallenge(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminGetEvent(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminGetInstance(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminGetInstanceLogs(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminGetStats(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminListChallenges(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminListInstances(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminListPlugins(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminListSubmissions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminListTeams(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminListTokens(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminListUsers(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminReloadPlugin(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminResetPassword(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminRestartInstance(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminRevokeToken(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminUpdateChallenge(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminUpdateEvent(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminUpdateTeam(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminUpdateUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminUploadAttachment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) BeginProviderLogin(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ChangePassword(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CompleteProviderLogin(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateTeam(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateToken(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DownloadAttachment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ExtendInstance(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetChallenge(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetEvent(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetMe(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetScoreboard(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetTeam(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) JoinTeam(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) LeaveTeam(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListAuthProviders(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListChallenges(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListTeams(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListTokens(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Login(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Logout(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RegenerateInviteCode(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Register(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RenameTeam(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RevokeToken(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) StartInstance(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) StopInstance(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SubmitFlag(w http.ResponseWriter, r *http.Request)
- type SlugPath
- type Solve
- type StartInstance200JSONResponse
- type StartInstance201JSONResponse
- type StartInstance401ApplicationProblemPlusJSONResponse
- type StartInstance403ApplicationProblemPlusJSONResponse
- type StartInstance404ApplicationProblemPlusJSONResponse
- type StartInstance409ApplicationProblemPlusJSONResponse
- type StartInstance503ApplicationProblemPlusJSONResponse
- type StartInstanceRequestObject
- type StartInstanceResponseObject
- type StopInstance204Response
- type StopInstance401ApplicationProblemPlusJSONResponse
- type StopInstance403ApplicationProblemPlusJSONResponse
- type StopInstance404ApplicationProblemPlusJSONResponse
- type StopInstance503ApplicationProblemPlusJSONResponse
- type StopInstanceRequestObject
- type StopInstanceResponseObject
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type SubmissionAdmin
- type SubmissionAdminPage
- type SubmitFlag200JSONResponse
- type SubmitFlag401ApplicationProblemPlusJSONResponse
- type SubmitFlag403ApplicationProblemPlusJSONResponse
- type SubmitFlag404ApplicationProblemPlusJSONResponse
- type SubmitFlag409ApplicationProblemPlusJSONResponse
- type SubmitFlag422ApplicationProblemPlusJSONResponse
- type SubmitFlag429ApplicationProblemPlusJSONResponse
- type SubmitFlagJSONRequestBody
- type SubmitFlagRequest
- type SubmitFlagRequestObject
- type SubmitFlagResponseObject
- type SubmitResult
- type TeamAdmin
- type TeamAdminPage
- type TeamAdminUpdate
- type TeamCreateRequest
- type TeamDetail
- type TeamInstance
- type TeamJoinRequest
- type TeamMine
- type TeamRef
- type TeamRenameRequest
- type TeamSummary
- type Token
- type TokenAdmin
- type TokenAdminPage
- type TokenCreate
- type TokenCreated
- type TokenScope
- type TooManyValuesForParamError
- type UnadoptedContainer
- type UnadoptedNetwork
- type Unauthenticated
- type UnauthenticatedApplicationProblemPlusJSONResponse
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) AdminCreateChallenge(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) AdminDeleteAttachment(w http.ResponseWriter, r *http.Request, id IdPath, aid openapi_types.UUID)
- func (_ Unimplemented) AdminDeleteChallenge(w http.ResponseWriter, r *http.Request, id IdPath, ...)
- func (_ Unimplemented) AdminDeployInstance(w http.ResponseWriter, r *http.Request, id IdPath)
- func (_ Unimplemented) AdminDestroyInstance(w http.ResponseWriter, r *http.Request, id IdPath)
- func (_ Unimplemented) AdminDestroyInstanceById(w http.ResponseWriter, r *http.Request, id IdPath)
- func (_ Unimplemented) AdminGetChallenge(w http.ResponseWriter, r *http.Request, id IdPath)
- func (_ Unimplemented) AdminGetEvent(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) AdminGetInstance(w http.ResponseWriter, r *http.Request, id IdPath)
- func (_ Unimplemented) AdminGetInstanceLogs(w http.ResponseWriter, r *http.Request, id IdPath, ...)
- func (_ Unimplemented) AdminGetStats(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) AdminListChallenges(w http.ResponseWriter, r *http.Request, params AdminListChallengesParams)
- func (_ Unimplemented) AdminListInstances(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) AdminListPlugins(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) AdminListSubmissions(w http.ResponseWriter, r *http.Request, params AdminListSubmissionsParams)
- func (_ Unimplemented) AdminListTeams(w http.ResponseWriter, r *http.Request, params AdminListTeamsParams)
- func (_ Unimplemented) AdminListTokens(w http.ResponseWriter, r *http.Request, params AdminListTokensParams)
- func (_ Unimplemented) AdminListUsers(w http.ResponseWriter, r *http.Request, params AdminListUsersParams)
- func (_ Unimplemented) AdminReloadPlugin(w http.ResponseWriter, r *http.Request, name string)
- func (_ Unimplemented) AdminResetPassword(w http.ResponseWriter, r *http.Request, id IdPath)
- func (_ Unimplemented) AdminRestartInstance(w http.ResponseWriter, r *http.Request, id IdPath)
- func (_ Unimplemented) AdminRevokeToken(w http.ResponseWriter, r *http.Request, id IdPath)
- func (_ Unimplemented) AdminUpdateChallenge(w http.ResponseWriter, r *http.Request, id IdPath)
- func (_ Unimplemented) AdminUpdateEvent(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) AdminUpdateTeam(w http.ResponseWriter, r *http.Request, id IdPath)
- func (_ Unimplemented) AdminUpdateUser(w http.ResponseWriter, r *http.Request, id IdPath)
- func (_ Unimplemented) AdminUploadAttachment(w http.ResponseWriter, r *http.Request, id IdPath)
- func (_ Unimplemented) BeginProviderLogin(w http.ResponseWriter, r *http.Request, provider ProviderPath)
- func (_ Unimplemented) ChangePassword(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CompleteProviderLogin(w http.ResponseWriter, r *http.Request, provider ProviderPath)
- func (_ Unimplemented) CreateTeam(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CreateToken(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) DownloadAttachment(w http.ResponseWriter, r *http.Request, slug SlugPath, id IdPath)
- func (_ Unimplemented) ExtendInstance(w http.ResponseWriter, r *http.Request, slug SlugPath)
- func (_ Unimplemented) GetChallenge(w http.ResponseWriter, r *http.Request, slug SlugPath)
- func (_ Unimplemented) GetEvent(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetMe(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetScoreboard(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetTeam(w http.ResponseWriter, r *http.Request, id IdPath)
- func (_ Unimplemented) GetUser(w http.ResponseWriter, r *http.Request, id IdPath)
- func (_ Unimplemented) JoinTeam(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) LeaveTeam(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListAuthProviders(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListChallenges(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListTeams(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListTokens(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) Login(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) Logout(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) RegenerateInviteCode(w http.ResponseWriter, r *http.Request, id IdPath)
- func (_ Unimplemented) Register(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) RenameTeam(w http.ResponseWriter, r *http.Request, id IdPath)
- func (_ Unimplemented) RevokeToken(w http.ResponseWriter, r *http.Request, id IdPath)
- func (_ Unimplemented) StartInstance(w http.ResponseWriter, r *http.Request, slug SlugPath)
- func (_ Unimplemented) StopInstance(w http.ResponseWriter, r *http.Request, slug SlugPath)
- func (_ Unimplemented) SubmitFlag(w http.ResponseWriter, r *http.Request, slug SlugPath)
- type UnmarshalingParamError
- type UserAdmin
- type UserAdminPage
- type UserAdminUpdate
- type Validation
- type ValidationApplicationProblemPlusJSONResponse
Constants ¶
const ( CookieAuthScopes = "cookieAuth.Scopes" TokenAuthScopes = "tokenAuth.Scopes" )
Variables ¶
This section is empty.
Functions ¶
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 HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
Types ¶
type AdminCreateChallenge201JSONResponse ¶
type AdminCreateChallenge201JSONResponse ChallengeAdmin
func (AdminCreateChallenge201JSONResponse) VisitAdminCreateChallengeResponse ¶
func (response AdminCreateChallenge201JSONResponse) VisitAdminCreateChallengeResponse(w http.ResponseWriter) error
type AdminCreateChallenge401ApplicationProblemPlusJSONResponse ¶
type AdminCreateChallenge401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminCreateChallenge401ApplicationProblemPlusJSONResponse) VisitAdminCreateChallengeResponse ¶
func (response AdminCreateChallenge401ApplicationProblemPlusJSONResponse) VisitAdminCreateChallengeResponse(w http.ResponseWriter) error
type AdminCreateChallenge403ApplicationProblemPlusJSONResponse ¶
type AdminCreateChallenge403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminCreateChallenge403ApplicationProblemPlusJSONResponse) VisitAdminCreateChallengeResponse ¶
func (response AdminCreateChallenge403ApplicationProblemPlusJSONResponse) VisitAdminCreateChallengeResponse(w http.ResponseWriter) error
type AdminCreateChallenge409ApplicationProblemPlusJSONResponse ¶
type AdminCreateChallenge409ApplicationProblemPlusJSONResponse struct {
ConflictApplicationProblemPlusJSONResponse
}
func (AdminCreateChallenge409ApplicationProblemPlusJSONResponse) VisitAdminCreateChallengeResponse ¶
func (response AdminCreateChallenge409ApplicationProblemPlusJSONResponse) VisitAdminCreateChallengeResponse(w http.ResponseWriter) error
type AdminCreateChallenge422ApplicationProblemPlusJSONResponse ¶
type AdminCreateChallenge422ApplicationProblemPlusJSONResponse struct {
ValidationApplicationProblemPlusJSONResponse
}
func (AdminCreateChallenge422ApplicationProblemPlusJSONResponse) VisitAdminCreateChallengeResponse ¶
func (response AdminCreateChallenge422ApplicationProblemPlusJSONResponse) VisitAdminCreateChallengeResponse(w http.ResponseWriter) error
type AdminCreateChallengeJSONRequestBody ¶
type AdminCreateChallengeJSONRequestBody = ChallengeAdminCreate
AdminCreateChallengeJSONRequestBody defines body for AdminCreateChallenge for application/json ContentType.
type AdminCreateChallengeRequestObject ¶
type AdminCreateChallengeRequestObject struct {
Body *AdminCreateChallengeJSONRequestBody
}
type AdminCreateChallengeResponseObject ¶
type AdminCreateChallengeResponseObject interface {
VisitAdminCreateChallengeResponse(w http.ResponseWriter) error
}
type AdminDeleteAttachment204Response ¶
type AdminDeleteAttachment204Response struct {
}
func (AdminDeleteAttachment204Response) VisitAdminDeleteAttachmentResponse ¶
func (response AdminDeleteAttachment204Response) VisitAdminDeleteAttachmentResponse(w http.ResponseWriter) error
type AdminDeleteAttachment401ApplicationProblemPlusJSONResponse ¶
type AdminDeleteAttachment401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminDeleteAttachment401ApplicationProblemPlusJSONResponse) VisitAdminDeleteAttachmentResponse ¶
func (response AdminDeleteAttachment401ApplicationProblemPlusJSONResponse) VisitAdminDeleteAttachmentResponse(w http.ResponseWriter) error
type AdminDeleteAttachment403ApplicationProblemPlusJSONResponse ¶
type AdminDeleteAttachment403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminDeleteAttachment403ApplicationProblemPlusJSONResponse) VisitAdminDeleteAttachmentResponse ¶
func (response AdminDeleteAttachment403ApplicationProblemPlusJSONResponse) VisitAdminDeleteAttachmentResponse(w http.ResponseWriter) error
type AdminDeleteAttachment404ApplicationProblemPlusJSONResponse ¶
type AdminDeleteAttachment404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (AdminDeleteAttachment404ApplicationProblemPlusJSONResponse) VisitAdminDeleteAttachmentResponse ¶
func (response AdminDeleteAttachment404ApplicationProblemPlusJSONResponse) VisitAdminDeleteAttachmentResponse(w http.ResponseWriter) error
type AdminDeleteAttachmentRequestObject ¶
type AdminDeleteAttachmentRequestObject struct {
Id IdPath `json:"id"`
Aid openapi_types.UUID `json:"aid"`
}
type AdminDeleteAttachmentResponseObject ¶
type AdminDeleteAttachmentResponseObject interface {
VisitAdminDeleteAttachmentResponse(w http.ResponseWriter) error
}
type AdminDeleteChallenge204Response ¶
type AdminDeleteChallenge204Response struct {
}
func (AdminDeleteChallenge204Response) VisitAdminDeleteChallengeResponse ¶
func (response AdminDeleteChallenge204Response) VisitAdminDeleteChallengeResponse(w http.ResponseWriter) error
type AdminDeleteChallenge401ApplicationProblemPlusJSONResponse ¶
type AdminDeleteChallenge401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminDeleteChallenge401ApplicationProblemPlusJSONResponse) VisitAdminDeleteChallengeResponse ¶
func (response AdminDeleteChallenge401ApplicationProblemPlusJSONResponse) VisitAdminDeleteChallengeResponse(w http.ResponseWriter) error
type AdminDeleteChallenge403ApplicationProblemPlusJSONResponse ¶
type AdminDeleteChallenge403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminDeleteChallenge403ApplicationProblemPlusJSONResponse) VisitAdminDeleteChallengeResponse ¶
func (response AdminDeleteChallenge403ApplicationProblemPlusJSONResponse) VisitAdminDeleteChallengeResponse(w http.ResponseWriter) error
type AdminDeleteChallenge404ApplicationProblemPlusJSONResponse ¶
type AdminDeleteChallenge404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (AdminDeleteChallenge404ApplicationProblemPlusJSONResponse) VisitAdminDeleteChallengeResponse ¶
func (response AdminDeleteChallenge404ApplicationProblemPlusJSONResponse) VisitAdminDeleteChallengeResponse(w http.ResponseWriter) error
type AdminDeleteChallenge409ApplicationProblemPlusJSONResponse ¶
type AdminDeleteChallenge409ApplicationProblemPlusJSONResponse struct {
ConflictApplicationProblemPlusJSONResponse
}
func (AdminDeleteChallenge409ApplicationProblemPlusJSONResponse) VisitAdminDeleteChallengeResponse ¶
func (response AdminDeleteChallenge409ApplicationProblemPlusJSONResponse) VisitAdminDeleteChallengeResponse(w http.ResponseWriter) error
type AdminDeleteChallengeParams ¶
type AdminDeleteChallengeParams struct {
// Confirm Required to delete a visible challenge during a running event.
Confirm *bool `form:"confirm,omitempty" json:"confirm,omitempty"`
}
AdminDeleteChallengeParams defines parameters for AdminDeleteChallenge.
type AdminDeleteChallengeRequestObject ¶
type AdminDeleteChallengeRequestObject struct {
Id IdPath `json:"id"`
Params AdminDeleteChallengeParams
}
type AdminDeleteChallengeResponseObject ¶
type AdminDeleteChallengeResponseObject interface {
VisitAdminDeleteChallengeResponse(w http.ResponseWriter) error
}
type AdminDeployInstance200JSONResponse ¶
type AdminDeployInstance200JSONResponse Instance
func (AdminDeployInstance200JSONResponse) VisitAdminDeployInstanceResponse ¶
func (response AdminDeployInstance200JSONResponse) VisitAdminDeployInstanceResponse(w http.ResponseWriter) error
type AdminDeployInstance401ApplicationProblemPlusJSONResponse ¶
type AdminDeployInstance401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminDeployInstance401ApplicationProblemPlusJSONResponse) VisitAdminDeployInstanceResponse ¶
func (response AdminDeployInstance401ApplicationProblemPlusJSONResponse) VisitAdminDeployInstanceResponse(w http.ResponseWriter) error
type AdminDeployInstance403ApplicationProblemPlusJSONResponse ¶
type AdminDeployInstance403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminDeployInstance403ApplicationProblemPlusJSONResponse) VisitAdminDeployInstanceResponse ¶
func (response AdminDeployInstance403ApplicationProblemPlusJSONResponse) VisitAdminDeployInstanceResponse(w http.ResponseWriter) error
type AdminDeployInstance404ApplicationProblemPlusJSONResponse ¶
type AdminDeployInstance404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (AdminDeployInstance404ApplicationProblemPlusJSONResponse) VisitAdminDeployInstanceResponse ¶
func (response AdminDeployInstance404ApplicationProblemPlusJSONResponse) VisitAdminDeployInstanceResponse(w http.ResponseWriter) error
type AdminDeployInstance409ApplicationProblemPlusJSONResponse ¶
type AdminDeployInstance409ApplicationProblemPlusJSONResponse struct {
ConflictApplicationProblemPlusJSONResponse
}
func (AdminDeployInstance409ApplicationProblemPlusJSONResponse) VisitAdminDeployInstanceResponse ¶
func (response AdminDeployInstance409ApplicationProblemPlusJSONResponse) VisitAdminDeployInstanceResponse(w http.ResponseWriter) error
type AdminDeployInstance503ApplicationProblemPlusJSONResponse ¶
type AdminDeployInstance503ApplicationProblemPlusJSONResponse struct {
}
func (AdminDeployInstance503ApplicationProblemPlusJSONResponse) VisitAdminDeployInstanceResponse ¶
func (response AdminDeployInstance503ApplicationProblemPlusJSONResponse) VisitAdminDeployInstanceResponse(w http.ResponseWriter) error
type AdminDeployInstanceRequestObject ¶
type AdminDeployInstanceRequestObject struct {
Id IdPath `json:"id"`
}
type AdminDeployInstanceResponseObject ¶
type AdminDeployInstanceResponseObject interface {
VisitAdminDeployInstanceResponse(w http.ResponseWriter) error
}
type AdminDestroyInstance204Response ¶
type AdminDestroyInstance204Response struct {
}
func (AdminDestroyInstance204Response) VisitAdminDestroyInstanceResponse ¶
func (response AdminDestroyInstance204Response) VisitAdminDestroyInstanceResponse(w http.ResponseWriter) error
type AdminDestroyInstance401ApplicationProblemPlusJSONResponse ¶
type AdminDestroyInstance401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminDestroyInstance401ApplicationProblemPlusJSONResponse) VisitAdminDestroyInstanceResponse ¶
func (response AdminDestroyInstance401ApplicationProblemPlusJSONResponse) VisitAdminDestroyInstanceResponse(w http.ResponseWriter) error
type AdminDestroyInstance403ApplicationProblemPlusJSONResponse ¶
type AdminDestroyInstance403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminDestroyInstance403ApplicationProblemPlusJSONResponse) VisitAdminDestroyInstanceResponse ¶
func (response AdminDestroyInstance403ApplicationProblemPlusJSONResponse) VisitAdminDestroyInstanceResponse(w http.ResponseWriter) error
type AdminDestroyInstance404ApplicationProblemPlusJSONResponse ¶
type AdminDestroyInstance404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (AdminDestroyInstance404ApplicationProblemPlusJSONResponse) VisitAdminDestroyInstanceResponse ¶
func (response AdminDestroyInstance404ApplicationProblemPlusJSONResponse) VisitAdminDestroyInstanceResponse(w http.ResponseWriter) error
type AdminDestroyInstance503ApplicationProblemPlusJSONResponse ¶
type AdminDestroyInstance503ApplicationProblemPlusJSONResponse struct {
}
func (AdminDestroyInstance503ApplicationProblemPlusJSONResponse) VisitAdminDestroyInstanceResponse ¶
func (response AdminDestroyInstance503ApplicationProblemPlusJSONResponse) VisitAdminDestroyInstanceResponse(w http.ResponseWriter) error
type AdminDestroyInstanceById204Response ¶
type AdminDestroyInstanceById204Response struct {
}
func (AdminDestroyInstanceById204Response) VisitAdminDestroyInstanceByIdResponse ¶
func (response AdminDestroyInstanceById204Response) VisitAdminDestroyInstanceByIdResponse(w http.ResponseWriter) error
type AdminDestroyInstanceById401ApplicationProblemPlusJSONResponse ¶
type AdminDestroyInstanceById401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminDestroyInstanceById401ApplicationProblemPlusJSONResponse) VisitAdminDestroyInstanceByIdResponse ¶
func (response AdminDestroyInstanceById401ApplicationProblemPlusJSONResponse) VisitAdminDestroyInstanceByIdResponse(w http.ResponseWriter) error
type AdminDestroyInstanceById403ApplicationProblemPlusJSONResponse ¶
type AdminDestroyInstanceById403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminDestroyInstanceById403ApplicationProblemPlusJSONResponse) VisitAdminDestroyInstanceByIdResponse ¶
func (response AdminDestroyInstanceById403ApplicationProblemPlusJSONResponse) VisitAdminDestroyInstanceByIdResponse(w http.ResponseWriter) error
type AdminDestroyInstanceById404ApplicationProblemPlusJSONResponse ¶
type AdminDestroyInstanceById404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (AdminDestroyInstanceById404ApplicationProblemPlusJSONResponse) VisitAdminDestroyInstanceByIdResponse ¶
func (response AdminDestroyInstanceById404ApplicationProblemPlusJSONResponse) VisitAdminDestroyInstanceByIdResponse(w http.ResponseWriter) error
type AdminDestroyInstanceById503ApplicationProblemPlusJSONResponse ¶
type AdminDestroyInstanceById503ApplicationProblemPlusJSONResponse struct {
}
func (AdminDestroyInstanceById503ApplicationProblemPlusJSONResponse) VisitAdminDestroyInstanceByIdResponse ¶
func (response AdminDestroyInstanceById503ApplicationProblemPlusJSONResponse) VisitAdminDestroyInstanceByIdResponse(w http.ResponseWriter) error
type AdminDestroyInstanceByIdRequestObject ¶
type AdminDestroyInstanceByIdRequestObject struct {
Id IdPath `json:"id"`
}
type AdminDestroyInstanceByIdResponseObject ¶
type AdminDestroyInstanceByIdResponseObject interface {
VisitAdminDestroyInstanceByIdResponse(w http.ResponseWriter) error
}
type AdminDestroyInstanceRequestObject ¶
type AdminDestroyInstanceRequestObject struct {
Id IdPath `json:"id"`
}
type AdminDestroyInstanceResponseObject ¶
type AdminDestroyInstanceResponseObject interface {
VisitAdminDestroyInstanceResponse(w http.ResponseWriter) error
}
type AdminGetChallenge200JSONResponse ¶
type AdminGetChallenge200JSONResponse ChallengeAdmin
func (AdminGetChallenge200JSONResponse) VisitAdminGetChallengeResponse ¶
func (response AdminGetChallenge200JSONResponse) VisitAdminGetChallengeResponse(w http.ResponseWriter) error
type AdminGetChallenge401ApplicationProblemPlusJSONResponse ¶
type AdminGetChallenge401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminGetChallenge401ApplicationProblemPlusJSONResponse) VisitAdminGetChallengeResponse ¶
func (response AdminGetChallenge401ApplicationProblemPlusJSONResponse) VisitAdminGetChallengeResponse(w http.ResponseWriter) error
type AdminGetChallenge403ApplicationProblemPlusJSONResponse ¶
type AdminGetChallenge403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminGetChallenge403ApplicationProblemPlusJSONResponse) VisitAdminGetChallengeResponse ¶
func (response AdminGetChallenge403ApplicationProblemPlusJSONResponse) VisitAdminGetChallengeResponse(w http.ResponseWriter) error
type AdminGetChallenge404ApplicationProblemPlusJSONResponse ¶
type AdminGetChallenge404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (AdminGetChallenge404ApplicationProblemPlusJSONResponse) VisitAdminGetChallengeResponse ¶
func (response AdminGetChallenge404ApplicationProblemPlusJSONResponse) VisitAdminGetChallengeResponse(w http.ResponseWriter) error
type AdminGetChallengeRequestObject ¶
type AdminGetChallengeRequestObject struct {
Id IdPath `json:"id"`
}
type AdminGetChallengeResponseObject ¶
type AdminGetChallengeResponseObject interface {
VisitAdminGetChallengeResponse(w http.ResponseWriter) error
}
type AdminGetEvent200JSONResponse ¶
type AdminGetEvent200JSONResponse EventAdmin
func (AdminGetEvent200JSONResponse) VisitAdminGetEventResponse ¶
func (response AdminGetEvent200JSONResponse) VisitAdminGetEventResponse(w http.ResponseWriter) error
type AdminGetEvent401ApplicationProblemPlusJSONResponse ¶
type AdminGetEvent401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminGetEvent401ApplicationProblemPlusJSONResponse) VisitAdminGetEventResponse ¶
func (response AdminGetEvent401ApplicationProblemPlusJSONResponse) VisitAdminGetEventResponse(w http.ResponseWriter) error
type AdminGetEvent403ApplicationProblemPlusJSONResponse ¶
type AdminGetEvent403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminGetEvent403ApplicationProblemPlusJSONResponse) VisitAdminGetEventResponse ¶
func (response AdminGetEvent403ApplicationProblemPlusJSONResponse) VisitAdminGetEventResponse(w http.ResponseWriter) error
type AdminGetEventRequestObject ¶
type AdminGetEventRequestObject struct {
}
type AdminGetEventResponseObject ¶
type AdminGetEventResponseObject interface {
VisitAdminGetEventResponse(w http.ResponseWriter) error
}
type AdminGetInstance200JSONResponse ¶
type AdminGetInstance200JSONResponse Instance
func (AdminGetInstance200JSONResponse) VisitAdminGetInstanceResponse ¶
func (response AdminGetInstance200JSONResponse) VisitAdminGetInstanceResponse(w http.ResponseWriter) error
type AdminGetInstance401ApplicationProblemPlusJSONResponse ¶
type AdminGetInstance401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminGetInstance401ApplicationProblemPlusJSONResponse) VisitAdminGetInstanceResponse ¶
func (response AdminGetInstance401ApplicationProblemPlusJSONResponse) VisitAdminGetInstanceResponse(w http.ResponseWriter) error
type AdminGetInstance403ApplicationProblemPlusJSONResponse ¶
type AdminGetInstance403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminGetInstance403ApplicationProblemPlusJSONResponse) VisitAdminGetInstanceResponse ¶
func (response AdminGetInstance403ApplicationProblemPlusJSONResponse) VisitAdminGetInstanceResponse(w http.ResponseWriter) error
type AdminGetInstance404ApplicationProblemPlusJSONResponse ¶
type AdminGetInstance404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (AdminGetInstance404ApplicationProblemPlusJSONResponse) VisitAdminGetInstanceResponse ¶
func (response AdminGetInstance404ApplicationProblemPlusJSONResponse) VisitAdminGetInstanceResponse(w http.ResponseWriter) error
type AdminGetInstanceLogs200JSONResponse ¶
type AdminGetInstanceLogs200JSONResponse InstanceLogs
func (AdminGetInstanceLogs200JSONResponse) VisitAdminGetInstanceLogsResponse ¶
func (response AdminGetInstanceLogs200JSONResponse) VisitAdminGetInstanceLogsResponse(w http.ResponseWriter) error
type AdminGetInstanceLogs401ApplicationProblemPlusJSONResponse ¶
type AdminGetInstanceLogs401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminGetInstanceLogs401ApplicationProblemPlusJSONResponse) VisitAdminGetInstanceLogsResponse ¶
func (response AdminGetInstanceLogs401ApplicationProblemPlusJSONResponse) VisitAdminGetInstanceLogsResponse(w http.ResponseWriter) error
type AdminGetInstanceLogs403ApplicationProblemPlusJSONResponse ¶
type AdminGetInstanceLogs403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminGetInstanceLogs403ApplicationProblemPlusJSONResponse) VisitAdminGetInstanceLogsResponse ¶
func (response AdminGetInstanceLogs403ApplicationProblemPlusJSONResponse) VisitAdminGetInstanceLogsResponse(w http.ResponseWriter) error
type AdminGetInstanceLogs404ApplicationProblemPlusJSONResponse ¶
type AdminGetInstanceLogs404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (AdminGetInstanceLogs404ApplicationProblemPlusJSONResponse) VisitAdminGetInstanceLogsResponse ¶
func (response AdminGetInstanceLogs404ApplicationProblemPlusJSONResponse) VisitAdminGetInstanceLogsResponse(w http.ResponseWriter) error
type AdminGetInstanceLogs503ApplicationProblemPlusJSONResponse ¶
type AdminGetInstanceLogs503ApplicationProblemPlusJSONResponse struct {
}
func (AdminGetInstanceLogs503ApplicationProblemPlusJSONResponse) VisitAdminGetInstanceLogsResponse ¶
func (response AdminGetInstanceLogs503ApplicationProblemPlusJSONResponse) VisitAdminGetInstanceLogsResponse(w http.ResponseWriter) error
type AdminGetInstanceLogsParams ¶
type AdminGetInstanceLogsParams struct {
// Tail Number of log lines from the end.
Tail *int `form:"tail,omitempty" json:"tail,omitempty"`
}
AdminGetInstanceLogsParams defines parameters for AdminGetInstanceLogs.
type AdminGetInstanceLogsRequestObject ¶
type AdminGetInstanceLogsRequestObject struct {
Id IdPath `json:"id"`
Params AdminGetInstanceLogsParams
}
type AdminGetInstanceLogsResponseObject ¶
type AdminGetInstanceLogsResponseObject interface {
VisitAdminGetInstanceLogsResponse(w http.ResponseWriter) error
}
type AdminGetInstanceRequestObject ¶
type AdminGetInstanceRequestObject struct {
Id IdPath `json:"id"`
}
type AdminGetInstanceResponseObject ¶
type AdminGetInstanceResponseObject interface {
VisitAdminGetInstanceResponse(w http.ResponseWriter) error
}
type AdminGetStats200JSONResponse ¶
type AdminGetStats200JSONResponse AdminStats
func (AdminGetStats200JSONResponse) VisitAdminGetStatsResponse ¶
func (response AdminGetStats200JSONResponse) VisitAdminGetStatsResponse(w http.ResponseWriter) error
type AdminGetStats401ApplicationProblemPlusJSONResponse ¶
type AdminGetStats401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminGetStats401ApplicationProblemPlusJSONResponse) VisitAdminGetStatsResponse ¶
func (response AdminGetStats401ApplicationProblemPlusJSONResponse) VisitAdminGetStatsResponse(w http.ResponseWriter) error
type AdminGetStats403ApplicationProblemPlusJSONResponse ¶
type AdminGetStats403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminGetStats403ApplicationProblemPlusJSONResponse) VisitAdminGetStatsResponse ¶
func (response AdminGetStats403ApplicationProblemPlusJSONResponse) VisitAdminGetStatsResponse(w http.ResponseWriter) error
type AdminGetStatsRequestObject ¶
type AdminGetStatsRequestObject struct {
}
type AdminGetStatsResponseObject ¶
type AdminGetStatsResponseObject interface {
VisitAdminGetStatsResponse(w http.ResponseWriter) error
}
type AdminInstance ¶
type AdminInstance struct {
// ChallengeId Challenge ID.
ChallengeId openapi_types.UUID `json:"challenge_id"`
// ChallengeSlug Challenge slug.
ChallengeSlug *string `json:"challenge_slug,omitempty"`
// Error Last failure message, verbatim.
Error *string `json:"error"`
// ExpiresAt TTL expiry; null = no TTL.
ExpiresAt *time.Time `json:"expires_at"`
// HostPort Published host port.
HostPort *int `json:"host_port"`
// Id Instance ID.
Id openapi_types.UUID `json:"id"`
// LastHealthAt Last successful health check.
LastHealthAt *time.Time `json:"last_health_at"`
// Network Docker network name; null = shared network.
Network *string `json:"network"`
// StartedAt Container start time.
StartedAt *time.Time `json:"started_at"`
// State Challenge instance lifecycle state.
State InstanceState `json:"state"`
// TeamId Owning team; null = shared instance.
TeamId *openapi_types.UUID `json:"team_id"`
// TeamName Owning team name; null = shared.
TeamName *string `json:"team_name"`
}
AdminInstance A challenge instance as seen by an admin (shared or per-team). Never contains the flag.
type AdminInstanceList ¶
type AdminInstanceList struct {
Items []AdminInstance `json:"items"`
// Unadopted Managed containers with no resolvable instance (missing/unparseable osctf.instance_id label). Reconcile never removes these — it cannot identify them — so they are surfaced here for an organizer to inspect.
Unadopted *[]UnadoptedContainer `json:"unadopted,omitempty"`
// UnadoptedNetworks Per-team bridges with no resolvable team_id (e.g. from a pre-team_id-label release). Reconcile never GC's these — it cannot tell an in-flight deploy from an abandoned one — so they are surfaced for manual cleanup.
UnadoptedNetworks *[]UnadoptedNetwork `json:"unadopted_networks,omitempty"`
}
AdminInstanceList All instances (shared + per-team).
type AdminListChallenges200JSONResponse ¶
type AdminListChallenges200JSONResponse ChallengeAdminPage
func (AdminListChallenges200JSONResponse) VisitAdminListChallengesResponse ¶
func (response AdminListChallenges200JSONResponse) VisitAdminListChallengesResponse(w http.ResponseWriter) error
type AdminListChallenges401ApplicationProblemPlusJSONResponse ¶
type AdminListChallenges401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminListChallenges401ApplicationProblemPlusJSONResponse) VisitAdminListChallengesResponse ¶
func (response AdminListChallenges401ApplicationProblemPlusJSONResponse) VisitAdminListChallengesResponse(w http.ResponseWriter) error
type AdminListChallenges403ApplicationProblemPlusJSONResponse ¶
type AdminListChallenges403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminListChallenges403ApplicationProblemPlusJSONResponse) VisitAdminListChallengesResponse ¶
func (response AdminListChallenges403ApplicationProblemPlusJSONResponse) VisitAdminListChallengesResponse(w http.ResponseWriter) error
type AdminListChallengesParams ¶
type AdminListChallengesParams struct {
// Page 1-based page number.
Page *Page `form:"page,omitempty" json:"page,omitempty"`
// PerPage Items per page (max 200).
PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"`
// Category Filter by category.
Category *Category `form:"category,omitempty" json:"category,omitempty"`
// Visible Filter by visibility.
Visible *bool `form:"visible,omitempty" json:"visible,omitempty"`
// Kind Filter by challenge kind.
Kind *ChallengeKind `form:"kind,omitempty" json:"kind,omitempty"`
}
AdminListChallengesParams defines parameters for AdminListChallenges.
type AdminListChallengesRequestObject ¶
type AdminListChallengesRequestObject struct {
Params AdminListChallengesParams
}
type AdminListChallengesResponseObject ¶
type AdminListChallengesResponseObject interface {
VisitAdminListChallengesResponse(w http.ResponseWriter) error
}
type AdminListInstances200JSONResponse ¶
type AdminListInstances200JSONResponse AdminInstanceList
func (AdminListInstances200JSONResponse) VisitAdminListInstancesResponse ¶
func (response AdminListInstances200JSONResponse) VisitAdminListInstancesResponse(w http.ResponseWriter) error
type AdminListInstances401ApplicationProblemPlusJSONResponse ¶
type AdminListInstances401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminListInstances401ApplicationProblemPlusJSONResponse) VisitAdminListInstancesResponse ¶
func (response AdminListInstances401ApplicationProblemPlusJSONResponse) VisitAdminListInstancesResponse(w http.ResponseWriter) error
type AdminListInstances403ApplicationProblemPlusJSONResponse ¶
type AdminListInstances403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminListInstances403ApplicationProblemPlusJSONResponse) VisitAdminListInstancesResponse ¶
func (response AdminListInstances403ApplicationProblemPlusJSONResponse) VisitAdminListInstancesResponse(w http.ResponseWriter) error
type AdminListInstancesRequestObject ¶
type AdminListInstancesRequestObject struct {
}
type AdminListInstancesResponseObject ¶
type AdminListInstancesResponseObject interface {
VisitAdminListInstancesResponse(w http.ResponseWriter) error
}
type AdminListPlugins200JSONResponse ¶
type AdminListPlugins200JSONResponse AdminPluginList
func (AdminListPlugins200JSONResponse) VisitAdminListPluginsResponse ¶
func (response AdminListPlugins200JSONResponse) VisitAdminListPluginsResponse(w http.ResponseWriter) error
type AdminListPlugins401ApplicationProblemPlusJSONResponse ¶
type AdminListPlugins401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminListPlugins401ApplicationProblemPlusJSONResponse) VisitAdminListPluginsResponse ¶
func (response AdminListPlugins401ApplicationProblemPlusJSONResponse) VisitAdminListPluginsResponse(w http.ResponseWriter) error
type AdminListPlugins403ApplicationProblemPlusJSONResponse ¶
type AdminListPlugins403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminListPlugins403ApplicationProblemPlusJSONResponse) VisitAdminListPluginsResponse ¶
func (response AdminListPlugins403ApplicationProblemPlusJSONResponse) VisitAdminListPluginsResponse(w http.ResponseWriter) error
type AdminListPluginsRequestObject ¶
type AdminListPluginsRequestObject struct {
}
type AdminListPluginsResponseObject ¶
type AdminListPluginsResponseObject interface {
VisitAdminListPluginsResponse(w http.ResponseWriter) error
}
type AdminListSubmissions200JSONResponse ¶
type AdminListSubmissions200JSONResponse SubmissionAdminPage
func (AdminListSubmissions200JSONResponse) VisitAdminListSubmissionsResponse ¶
func (response AdminListSubmissions200JSONResponse) VisitAdminListSubmissionsResponse(w http.ResponseWriter) error
type AdminListSubmissions401ApplicationProblemPlusJSONResponse ¶
type AdminListSubmissions401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminListSubmissions401ApplicationProblemPlusJSONResponse) VisitAdminListSubmissionsResponse ¶
func (response AdminListSubmissions401ApplicationProblemPlusJSONResponse) VisitAdminListSubmissionsResponse(w http.ResponseWriter) error
type AdminListSubmissions403ApplicationProblemPlusJSONResponse ¶
type AdminListSubmissions403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminListSubmissions403ApplicationProblemPlusJSONResponse) VisitAdminListSubmissionsResponse ¶
func (response AdminListSubmissions403ApplicationProblemPlusJSONResponse) VisitAdminListSubmissionsResponse(w http.ResponseWriter) error
type AdminListSubmissionsParams ¶
type AdminListSubmissionsParams struct {
// Page 1-based page number.
Page *Page `form:"page,omitempty" json:"page,omitempty"`
// PerPage Items per page (max 200).
PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"`
// ChallengeId Filter by challenge.
ChallengeId *openapi_types.UUID `form:"challenge_id,omitempty" json:"challenge_id,omitempty"`
// TeamId Filter by team.
TeamId *openapi_types.UUID `form:"team_id,omitempty" json:"team_id,omitempty"`
// UserId Filter by user.
UserId *openapi_types.UUID `form:"user_id,omitempty" json:"user_id,omitempty"`
// Correct Filter by correctness.
Correct *bool `form:"correct,omitempty" json:"correct,omitempty"`
// Since Only submissions at or after this time.
Since *time.Time `form:"since,omitempty" json:"since,omitempty"`
// Until Only submissions before this time.
Until *time.Time `form:"until,omitempty" json:"until,omitempty"`
}
AdminListSubmissionsParams defines parameters for AdminListSubmissions.
type AdminListSubmissionsRequestObject ¶
type AdminListSubmissionsRequestObject struct {
Params AdminListSubmissionsParams
}
type AdminListSubmissionsResponseObject ¶
type AdminListSubmissionsResponseObject interface {
VisitAdminListSubmissionsResponse(w http.ResponseWriter) error
}
type AdminListTeams200JSONResponse ¶
type AdminListTeams200JSONResponse TeamAdminPage
func (AdminListTeams200JSONResponse) VisitAdminListTeamsResponse ¶
func (response AdminListTeams200JSONResponse) VisitAdminListTeamsResponse(w http.ResponseWriter) error
type AdminListTeams401ApplicationProblemPlusJSONResponse ¶
type AdminListTeams401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminListTeams401ApplicationProblemPlusJSONResponse) VisitAdminListTeamsResponse ¶
func (response AdminListTeams401ApplicationProblemPlusJSONResponse) VisitAdminListTeamsResponse(w http.ResponseWriter) error
type AdminListTeams403ApplicationProblemPlusJSONResponse ¶
type AdminListTeams403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminListTeams403ApplicationProblemPlusJSONResponse) VisitAdminListTeamsResponse ¶
func (response AdminListTeams403ApplicationProblemPlusJSONResponse) VisitAdminListTeamsResponse(w http.ResponseWriter) error
type AdminListTeamsParams ¶
type AdminListTeamsParams struct {
// Page 1-based page number.
Page *Page `form:"page,omitempty" json:"page,omitempty"`
// PerPage Items per page (max 200).
PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"`
// Q Search string.
Q *Query `form:"q,omitempty" json:"q,omitempty"`
}
AdminListTeamsParams defines parameters for AdminListTeams.
type AdminListTeamsRequestObject ¶
type AdminListTeamsRequestObject struct {
Params AdminListTeamsParams
}
type AdminListTeamsResponseObject ¶
type AdminListTeamsResponseObject interface {
VisitAdminListTeamsResponse(w http.ResponseWriter) error
}
type AdminListTokens200JSONResponse ¶
type AdminListTokens200JSONResponse TokenAdminPage
func (AdminListTokens200JSONResponse) VisitAdminListTokensResponse ¶
func (response AdminListTokens200JSONResponse) VisitAdminListTokensResponse(w http.ResponseWriter) error
type AdminListTokens401ApplicationProblemPlusJSONResponse ¶
type AdminListTokens401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminListTokens401ApplicationProblemPlusJSONResponse) VisitAdminListTokensResponse ¶
func (response AdminListTokens401ApplicationProblemPlusJSONResponse) VisitAdminListTokensResponse(w http.ResponseWriter) error
type AdminListTokens403ApplicationProblemPlusJSONResponse ¶
type AdminListTokens403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminListTokens403ApplicationProblemPlusJSONResponse) VisitAdminListTokensResponse ¶
func (response AdminListTokens403ApplicationProblemPlusJSONResponse) VisitAdminListTokensResponse(w http.ResponseWriter) error
type AdminListTokensParams ¶
type AdminListTokensParams struct {
// Page 1-based page number.
Page *Page `form:"page,omitempty" json:"page,omitempty"`
// PerPage Items per page (max 200).
PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"`
}
AdminListTokensParams defines parameters for AdminListTokens.
type AdminListTokensRequestObject ¶
type AdminListTokensRequestObject struct {
Params AdminListTokensParams
}
type AdminListTokensResponseObject ¶
type AdminListTokensResponseObject interface {
VisitAdminListTokensResponse(w http.ResponseWriter) error
}
type AdminListUsers200JSONResponse ¶
type AdminListUsers200JSONResponse UserAdminPage
func (AdminListUsers200JSONResponse) VisitAdminListUsersResponse ¶
func (response AdminListUsers200JSONResponse) VisitAdminListUsersResponse(w http.ResponseWriter) error
type AdminListUsers401ApplicationProblemPlusJSONResponse ¶
type AdminListUsers401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminListUsers401ApplicationProblemPlusJSONResponse) VisitAdminListUsersResponse ¶
func (response AdminListUsers401ApplicationProblemPlusJSONResponse) VisitAdminListUsersResponse(w http.ResponseWriter) error
type AdminListUsers403ApplicationProblemPlusJSONResponse ¶
type AdminListUsers403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminListUsers403ApplicationProblemPlusJSONResponse) VisitAdminListUsersResponse ¶
func (response AdminListUsers403ApplicationProblemPlusJSONResponse) VisitAdminListUsersResponse(w http.ResponseWriter) error
type AdminListUsersParams ¶
type AdminListUsersParams struct {
// Page 1-based page number.
Page *Page `form:"page,omitempty" json:"page,omitempty"`
// PerPage Items per page (max 200).
PerPage *PerPage `form:"per_page,omitempty" json:"per_page,omitempty"`
// Q Search string.
Q *Query `form:"q,omitempty" json:"q,omitempty"`
// Banned Filter by banned state.
Banned *bool `form:"banned,omitempty" json:"banned,omitempty"`
// Hidden Filter by hidden state.
Hidden *bool `form:"hidden,omitempty" json:"hidden,omitempty"`
// Role Filter by role.
Role *Role `form:"role,omitempty" json:"role,omitempty"`
}
AdminListUsersParams defines parameters for AdminListUsers.
type AdminListUsersRequestObject ¶
type AdminListUsersRequestObject struct {
Params AdminListUsersParams
}
type AdminListUsersResponseObject ¶
type AdminListUsersResponseObject interface {
VisitAdminListUsersResponse(w http.ResponseWriter) error
}
type AdminPasswordResetRequest ¶
type AdminPasswordResetRequest struct {
// NewPassword The user's new password.
NewPassword string `json:"new_password"`
}
AdminPasswordResetRequest Admin-driven password reset payload.
type AdminPluginList ¶
type AdminPluginList struct {
Plugins []AdminPluginStatus `json:"plugins"`
}
AdminPluginList Tracked plugins and their lifecycle state.
type AdminPluginStatus ¶
type AdminPluginStatus struct {
// Name Manifest name / registry key.
Name string `json:"name"`
// Reason Why it is in this state when that needs explaining (e.g. a quarantine cause). Redacted of secret values.
Reason *string `json:"reason,omitempty"`
// State Lifecycle state: discovered | launching | ready | unhealthy | restarting | failed | draining | stopped.
State string `json:"state"`
// Type Plugin type: scoring | notification | challenge_type | auth.
Type string `json:"type"`
}
AdminPluginStatus One plugin's lifecycle state. Reason is admin-facing and never carries a secret config value.
type AdminReloadPlugin204Response ¶
type AdminReloadPlugin204Response struct {
}
func (AdminReloadPlugin204Response) VisitAdminReloadPluginResponse ¶
func (response AdminReloadPlugin204Response) VisitAdminReloadPluginResponse(w http.ResponseWriter) error
type AdminReloadPlugin401ApplicationProblemPlusJSONResponse ¶
type AdminReloadPlugin401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminReloadPlugin401ApplicationProblemPlusJSONResponse) VisitAdminReloadPluginResponse ¶
func (response AdminReloadPlugin401ApplicationProblemPlusJSONResponse) VisitAdminReloadPluginResponse(w http.ResponseWriter) error
type AdminReloadPlugin403ApplicationProblemPlusJSONResponse ¶
type AdminReloadPlugin403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminReloadPlugin403ApplicationProblemPlusJSONResponse) VisitAdminReloadPluginResponse ¶
func (response AdminReloadPlugin403ApplicationProblemPlusJSONResponse) VisitAdminReloadPluginResponse(w http.ResponseWriter) error
type AdminReloadPlugin404ApplicationProblemPlusJSONResponse ¶
type AdminReloadPlugin404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (AdminReloadPlugin404ApplicationProblemPlusJSONResponse) VisitAdminReloadPluginResponse ¶
func (response AdminReloadPlugin404ApplicationProblemPlusJSONResponse) VisitAdminReloadPluginResponse(w http.ResponseWriter) error
type AdminReloadPlugin503ApplicationProblemPlusJSONResponse ¶
type AdminReloadPlugin503ApplicationProblemPlusJSONResponse struct {
}
func (AdminReloadPlugin503ApplicationProblemPlusJSONResponse) VisitAdminReloadPluginResponse ¶
func (response AdminReloadPlugin503ApplicationProblemPlusJSONResponse) VisitAdminReloadPluginResponse(w http.ResponseWriter) error
type AdminReloadPluginRequestObject ¶
type AdminReloadPluginRequestObject struct {
Name string `json:"name"`
}
type AdminReloadPluginResponseObject ¶
type AdminReloadPluginResponseObject interface {
VisitAdminReloadPluginResponse(w http.ResponseWriter) error
}
type AdminResetPassword204Response ¶
type AdminResetPassword204Response struct {
}
func (AdminResetPassword204Response) VisitAdminResetPasswordResponse ¶
func (response AdminResetPassword204Response) VisitAdminResetPasswordResponse(w http.ResponseWriter) error
type AdminResetPassword401ApplicationProblemPlusJSONResponse ¶
type AdminResetPassword401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminResetPassword401ApplicationProblemPlusJSONResponse) VisitAdminResetPasswordResponse ¶
func (response AdminResetPassword401ApplicationProblemPlusJSONResponse) VisitAdminResetPasswordResponse(w http.ResponseWriter) error
type AdminResetPassword403ApplicationProblemPlusJSONResponse ¶
type AdminResetPassword403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminResetPassword403ApplicationProblemPlusJSONResponse) VisitAdminResetPasswordResponse ¶
func (response AdminResetPassword403ApplicationProblemPlusJSONResponse) VisitAdminResetPasswordResponse(w http.ResponseWriter) error
type AdminResetPassword404ApplicationProblemPlusJSONResponse ¶
type AdminResetPassword404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (AdminResetPassword404ApplicationProblemPlusJSONResponse) VisitAdminResetPasswordResponse ¶
func (response AdminResetPassword404ApplicationProblemPlusJSONResponse) VisitAdminResetPasswordResponse(w http.ResponseWriter) error
type AdminResetPassword422ApplicationProblemPlusJSONResponse ¶
type AdminResetPassword422ApplicationProblemPlusJSONResponse struct {
ValidationApplicationProblemPlusJSONResponse
}
func (AdminResetPassword422ApplicationProblemPlusJSONResponse) VisitAdminResetPasswordResponse ¶
func (response AdminResetPassword422ApplicationProblemPlusJSONResponse) VisitAdminResetPasswordResponse(w http.ResponseWriter) error
type AdminResetPasswordJSONRequestBody ¶
type AdminResetPasswordJSONRequestBody = AdminPasswordResetRequest
AdminResetPasswordJSONRequestBody defines body for AdminResetPassword for application/json ContentType.
type AdminResetPasswordRequestObject ¶
type AdminResetPasswordRequestObject struct {
Id IdPath `json:"id"`
Body *AdminResetPasswordJSONRequestBody
}
type AdminResetPasswordResponseObject ¶
type AdminResetPasswordResponseObject interface {
VisitAdminResetPasswordResponse(w http.ResponseWriter) error
}
type AdminRestartInstance200JSONResponse ¶
type AdminRestartInstance200JSONResponse Instance
func (AdminRestartInstance200JSONResponse) VisitAdminRestartInstanceResponse ¶
func (response AdminRestartInstance200JSONResponse) VisitAdminRestartInstanceResponse(w http.ResponseWriter) error
type AdminRestartInstance401ApplicationProblemPlusJSONResponse ¶
type AdminRestartInstance401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminRestartInstance401ApplicationProblemPlusJSONResponse) VisitAdminRestartInstanceResponse ¶
func (response AdminRestartInstance401ApplicationProblemPlusJSONResponse) VisitAdminRestartInstanceResponse(w http.ResponseWriter) error
type AdminRestartInstance403ApplicationProblemPlusJSONResponse ¶
type AdminRestartInstance403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminRestartInstance403ApplicationProblemPlusJSONResponse) VisitAdminRestartInstanceResponse ¶
func (response AdminRestartInstance403ApplicationProblemPlusJSONResponse) VisitAdminRestartInstanceResponse(w http.ResponseWriter) error
type AdminRestartInstance404ApplicationProblemPlusJSONResponse ¶
type AdminRestartInstance404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (AdminRestartInstance404ApplicationProblemPlusJSONResponse) VisitAdminRestartInstanceResponse ¶
func (response AdminRestartInstance404ApplicationProblemPlusJSONResponse) VisitAdminRestartInstanceResponse(w http.ResponseWriter) error
type AdminRestartInstance503ApplicationProblemPlusJSONResponse ¶
type AdminRestartInstance503ApplicationProblemPlusJSONResponse struct {
}
func (AdminRestartInstance503ApplicationProblemPlusJSONResponse) VisitAdminRestartInstanceResponse ¶
func (response AdminRestartInstance503ApplicationProblemPlusJSONResponse) VisitAdminRestartInstanceResponse(w http.ResponseWriter) error
type AdminRestartInstanceRequestObject ¶
type AdminRestartInstanceRequestObject struct {
Id IdPath `json:"id"`
}
type AdminRestartInstanceResponseObject ¶
type AdminRestartInstanceResponseObject interface {
VisitAdminRestartInstanceResponse(w http.ResponseWriter) error
}
type AdminRevokeToken204Response ¶
type AdminRevokeToken204Response struct {
}
func (AdminRevokeToken204Response) VisitAdminRevokeTokenResponse ¶
func (response AdminRevokeToken204Response) VisitAdminRevokeTokenResponse(w http.ResponseWriter) error
type AdminRevokeToken401ApplicationProblemPlusJSONResponse ¶
type AdminRevokeToken401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminRevokeToken401ApplicationProblemPlusJSONResponse) VisitAdminRevokeTokenResponse ¶
func (response AdminRevokeToken401ApplicationProblemPlusJSONResponse) VisitAdminRevokeTokenResponse(w http.ResponseWriter) error
type AdminRevokeToken403ApplicationProblemPlusJSONResponse ¶
type AdminRevokeToken403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminRevokeToken403ApplicationProblemPlusJSONResponse) VisitAdminRevokeTokenResponse ¶
func (response AdminRevokeToken403ApplicationProblemPlusJSONResponse) VisitAdminRevokeTokenResponse(w http.ResponseWriter) error
type AdminRevokeToken404ApplicationProblemPlusJSONResponse ¶
type AdminRevokeToken404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (AdminRevokeToken404ApplicationProblemPlusJSONResponse) VisitAdminRevokeTokenResponse ¶
func (response AdminRevokeToken404ApplicationProblemPlusJSONResponse) VisitAdminRevokeTokenResponse(w http.ResponseWriter) error
type AdminRevokeTokenRequestObject ¶
type AdminRevokeTokenRequestObject struct {
Id IdPath `json:"id"`
}
type AdminRevokeTokenResponseObject ¶
type AdminRevokeTokenResponseObject interface {
VisitAdminRevokeTokenResponse(w http.ResponseWriter) error
}
type AdminStats ¶
type AdminStats struct {
// InstancesRunning Instances in running state.
InstancesRunning int `json:"instances_running"`
// Solves Correct submissions.
Solves int `json:"solves"`
// Submissions Total flag attempts.
Submissions int `json:"submissions"`
// Teams Teams.
Teams int `json:"teams"`
// Users Registered users.
Users int `json:"users"`
// WsConnections Open WebSocket connections.
WsConnections int `json:"ws_connections"`
}
AdminStats Admin dashboard tiles.
type AdminUpdateChallenge200JSONResponse ¶
type AdminUpdateChallenge200JSONResponse ChallengeAdmin
func (AdminUpdateChallenge200JSONResponse) VisitAdminUpdateChallengeResponse ¶
func (response AdminUpdateChallenge200JSONResponse) VisitAdminUpdateChallengeResponse(w http.ResponseWriter) error
type AdminUpdateChallenge401ApplicationProblemPlusJSONResponse ¶
type AdminUpdateChallenge401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminUpdateChallenge401ApplicationProblemPlusJSONResponse) VisitAdminUpdateChallengeResponse ¶
func (response AdminUpdateChallenge401ApplicationProblemPlusJSONResponse) VisitAdminUpdateChallengeResponse(w http.ResponseWriter) error
type AdminUpdateChallenge403ApplicationProblemPlusJSONResponse ¶
type AdminUpdateChallenge403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminUpdateChallenge403ApplicationProblemPlusJSONResponse) VisitAdminUpdateChallengeResponse ¶
func (response AdminUpdateChallenge403ApplicationProblemPlusJSONResponse) VisitAdminUpdateChallengeResponse(w http.ResponseWriter) error
type AdminUpdateChallenge404ApplicationProblemPlusJSONResponse ¶
type AdminUpdateChallenge404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (AdminUpdateChallenge404ApplicationProblemPlusJSONResponse) VisitAdminUpdateChallengeResponse ¶
func (response AdminUpdateChallenge404ApplicationProblemPlusJSONResponse) VisitAdminUpdateChallengeResponse(w http.ResponseWriter) error
type AdminUpdateChallenge409ApplicationProblemPlusJSONResponse ¶
type AdminUpdateChallenge409ApplicationProblemPlusJSONResponse struct {
ConflictApplicationProblemPlusJSONResponse
}
func (AdminUpdateChallenge409ApplicationProblemPlusJSONResponse) VisitAdminUpdateChallengeResponse ¶
func (response AdminUpdateChallenge409ApplicationProblemPlusJSONResponse) VisitAdminUpdateChallengeResponse(w http.ResponseWriter) error
type AdminUpdateChallenge422ApplicationProblemPlusJSONResponse ¶
type AdminUpdateChallenge422ApplicationProblemPlusJSONResponse struct {
ValidationApplicationProblemPlusJSONResponse
}
func (AdminUpdateChallenge422ApplicationProblemPlusJSONResponse) VisitAdminUpdateChallengeResponse ¶
func (response AdminUpdateChallenge422ApplicationProblemPlusJSONResponse) VisitAdminUpdateChallengeResponse(w http.ResponseWriter) error
type AdminUpdateChallengeJSONRequestBody ¶
type AdminUpdateChallengeJSONRequestBody = ChallengeAdminUpdate
AdminUpdateChallengeJSONRequestBody defines body for AdminUpdateChallenge for application/json ContentType.
type AdminUpdateChallengeRequestObject ¶
type AdminUpdateChallengeRequestObject struct {
Id IdPath `json:"id"`
Body *AdminUpdateChallengeJSONRequestBody
}
type AdminUpdateChallengeResponseObject ¶
type AdminUpdateChallengeResponseObject interface {
VisitAdminUpdateChallengeResponse(w http.ResponseWriter) error
}
type AdminUpdateEvent200JSONResponse ¶
type AdminUpdateEvent200JSONResponse EventAdmin
func (AdminUpdateEvent200JSONResponse) VisitAdminUpdateEventResponse ¶
func (response AdminUpdateEvent200JSONResponse) VisitAdminUpdateEventResponse(w http.ResponseWriter) error
type AdminUpdateEvent401ApplicationProblemPlusJSONResponse ¶
type AdminUpdateEvent401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminUpdateEvent401ApplicationProblemPlusJSONResponse) VisitAdminUpdateEventResponse ¶
func (response AdminUpdateEvent401ApplicationProblemPlusJSONResponse) VisitAdminUpdateEventResponse(w http.ResponseWriter) error
type AdminUpdateEvent403ApplicationProblemPlusJSONResponse ¶
type AdminUpdateEvent403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminUpdateEvent403ApplicationProblemPlusJSONResponse) VisitAdminUpdateEventResponse ¶
func (response AdminUpdateEvent403ApplicationProblemPlusJSONResponse) VisitAdminUpdateEventResponse(w http.ResponseWriter) error
type AdminUpdateEvent422ApplicationProblemPlusJSONResponse ¶
type AdminUpdateEvent422ApplicationProblemPlusJSONResponse struct {
ValidationApplicationProblemPlusJSONResponse
}
func (AdminUpdateEvent422ApplicationProblemPlusJSONResponse) VisitAdminUpdateEventResponse ¶
func (response AdminUpdateEvent422ApplicationProblemPlusJSONResponse) VisitAdminUpdateEventResponse(w http.ResponseWriter) error
type AdminUpdateEventJSONRequestBody ¶
type AdminUpdateEventJSONRequestBody = EventUpdateRequest
AdminUpdateEventJSONRequestBody defines body for AdminUpdateEvent for application/json ContentType.
type AdminUpdateEventRequestObject ¶
type AdminUpdateEventRequestObject struct {
Body *AdminUpdateEventJSONRequestBody
}
type AdminUpdateEventResponseObject ¶
type AdminUpdateEventResponseObject interface {
VisitAdminUpdateEventResponse(w http.ResponseWriter) error
}
type AdminUpdateTeam200JSONResponse ¶
type AdminUpdateTeam200JSONResponse TeamAdmin
func (AdminUpdateTeam200JSONResponse) VisitAdminUpdateTeamResponse ¶
func (response AdminUpdateTeam200JSONResponse) VisitAdminUpdateTeamResponse(w http.ResponseWriter) error
type AdminUpdateTeam401ApplicationProblemPlusJSONResponse ¶
type AdminUpdateTeam401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminUpdateTeam401ApplicationProblemPlusJSONResponse) VisitAdminUpdateTeamResponse ¶
func (response AdminUpdateTeam401ApplicationProblemPlusJSONResponse) VisitAdminUpdateTeamResponse(w http.ResponseWriter) error
type AdminUpdateTeam403ApplicationProblemPlusJSONResponse ¶
type AdminUpdateTeam403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminUpdateTeam403ApplicationProblemPlusJSONResponse) VisitAdminUpdateTeamResponse ¶
func (response AdminUpdateTeam403ApplicationProblemPlusJSONResponse) VisitAdminUpdateTeamResponse(w http.ResponseWriter) error
type AdminUpdateTeam404ApplicationProblemPlusJSONResponse ¶
type AdminUpdateTeam404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (AdminUpdateTeam404ApplicationProblemPlusJSONResponse) VisitAdminUpdateTeamResponse ¶
func (response AdminUpdateTeam404ApplicationProblemPlusJSONResponse) VisitAdminUpdateTeamResponse(w http.ResponseWriter) error
type AdminUpdateTeam422ApplicationProblemPlusJSONResponse ¶
type AdminUpdateTeam422ApplicationProblemPlusJSONResponse struct {
ValidationApplicationProblemPlusJSONResponse
}
func (AdminUpdateTeam422ApplicationProblemPlusJSONResponse) VisitAdminUpdateTeamResponse ¶
func (response AdminUpdateTeam422ApplicationProblemPlusJSONResponse) VisitAdminUpdateTeamResponse(w http.ResponseWriter) error
type AdminUpdateTeamJSONRequestBody ¶
type AdminUpdateTeamJSONRequestBody = TeamAdminUpdate
AdminUpdateTeamJSONRequestBody defines body for AdminUpdateTeam for application/json ContentType.
type AdminUpdateTeamRequestObject ¶
type AdminUpdateTeamRequestObject struct {
Id IdPath `json:"id"`
Body *AdminUpdateTeamJSONRequestBody
}
type AdminUpdateTeamResponseObject ¶
type AdminUpdateTeamResponseObject interface {
VisitAdminUpdateTeamResponse(w http.ResponseWriter) error
}
type AdminUpdateUser200JSONResponse ¶
type AdminUpdateUser200JSONResponse UserAdmin
func (AdminUpdateUser200JSONResponse) VisitAdminUpdateUserResponse ¶
func (response AdminUpdateUser200JSONResponse) VisitAdminUpdateUserResponse(w http.ResponseWriter) error
type AdminUpdateUser401ApplicationProblemPlusJSONResponse ¶
type AdminUpdateUser401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminUpdateUser401ApplicationProblemPlusJSONResponse) VisitAdminUpdateUserResponse ¶
func (response AdminUpdateUser401ApplicationProblemPlusJSONResponse) VisitAdminUpdateUserResponse(w http.ResponseWriter) error
type AdminUpdateUser403ApplicationProblemPlusJSONResponse ¶
type AdminUpdateUser403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminUpdateUser403ApplicationProblemPlusJSONResponse) VisitAdminUpdateUserResponse ¶
func (response AdminUpdateUser403ApplicationProblemPlusJSONResponse) VisitAdminUpdateUserResponse(w http.ResponseWriter) error
type AdminUpdateUser404ApplicationProblemPlusJSONResponse ¶
type AdminUpdateUser404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (AdminUpdateUser404ApplicationProblemPlusJSONResponse) VisitAdminUpdateUserResponse ¶
func (response AdminUpdateUser404ApplicationProblemPlusJSONResponse) VisitAdminUpdateUserResponse(w http.ResponseWriter) error
type AdminUpdateUser409ApplicationProblemPlusJSONResponse ¶
type AdminUpdateUser409ApplicationProblemPlusJSONResponse struct {
ConflictApplicationProblemPlusJSONResponse
}
func (AdminUpdateUser409ApplicationProblemPlusJSONResponse) VisitAdminUpdateUserResponse ¶
func (response AdminUpdateUser409ApplicationProblemPlusJSONResponse) VisitAdminUpdateUserResponse(w http.ResponseWriter) error
type AdminUpdateUser422ApplicationProblemPlusJSONResponse ¶
type AdminUpdateUser422ApplicationProblemPlusJSONResponse struct {
ValidationApplicationProblemPlusJSONResponse
}
func (AdminUpdateUser422ApplicationProblemPlusJSONResponse) VisitAdminUpdateUserResponse ¶
func (response AdminUpdateUser422ApplicationProblemPlusJSONResponse) VisitAdminUpdateUserResponse(w http.ResponseWriter) error
type AdminUpdateUserJSONRequestBody ¶
type AdminUpdateUserJSONRequestBody = UserAdminUpdate
AdminUpdateUserJSONRequestBody defines body for AdminUpdateUser for application/json ContentType.
type AdminUpdateUserRequestObject ¶
type AdminUpdateUserRequestObject struct {
Id IdPath `json:"id"`
Body *AdminUpdateUserJSONRequestBody
}
type AdminUpdateUserResponseObject ¶
type AdminUpdateUserResponseObject interface {
VisitAdminUpdateUserResponse(w http.ResponseWriter) error
}
type AdminUploadAttachment201JSONResponse ¶
type AdminUploadAttachment201JSONResponse AttachmentAdmin
func (AdminUploadAttachment201JSONResponse) VisitAdminUploadAttachmentResponse ¶
func (response AdminUploadAttachment201JSONResponse) VisitAdminUploadAttachmentResponse(w http.ResponseWriter) error
type AdminUploadAttachment401ApplicationProblemPlusJSONResponse ¶
type AdminUploadAttachment401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (AdminUploadAttachment401ApplicationProblemPlusJSONResponse) VisitAdminUploadAttachmentResponse ¶
func (response AdminUploadAttachment401ApplicationProblemPlusJSONResponse) VisitAdminUploadAttachmentResponse(w http.ResponseWriter) error
type AdminUploadAttachment403ApplicationProblemPlusJSONResponse ¶
type AdminUploadAttachment403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AdminUploadAttachment403ApplicationProblemPlusJSONResponse) VisitAdminUploadAttachmentResponse ¶
func (response AdminUploadAttachment403ApplicationProblemPlusJSONResponse) VisitAdminUploadAttachmentResponse(w http.ResponseWriter) error
type AdminUploadAttachment404ApplicationProblemPlusJSONResponse ¶
type AdminUploadAttachment404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (AdminUploadAttachment404ApplicationProblemPlusJSONResponse) VisitAdminUploadAttachmentResponse ¶
func (response AdminUploadAttachment404ApplicationProblemPlusJSONResponse) VisitAdminUploadAttachmentResponse(w http.ResponseWriter) error
type AdminUploadAttachment409ApplicationProblemPlusJSONResponse ¶
type AdminUploadAttachment409ApplicationProblemPlusJSONResponse struct {
ConflictApplicationProblemPlusJSONResponse
}
func (AdminUploadAttachment409ApplicationProblemPlusJSONResponse) VisitAdminUploadAttachmentResponse ¶
func (response AdminUploadAttachment409ApplicationProblemPlusJSONResponse) VisitAdminUploadAttachmentResponse(w http.ResponseWriter) error
type AdminUploadAttachment422ApplicationProblemPlusJSONResponse ¶
type AdminUploadAttachment422ApplicationProblemPlusJSONResponse struct {
ValidationApplicationProblemPlusJSONResponse
}
func (AdminUploadAttachment422ApplicationProblemPlusJSONResponse) VisitAdminUploadAttachmentResponse ¶
func (response AdminUploadAttachment422ApplicationProblemPlusJSONResponse) VisitAdminUploadAttachmentResponse(w http.ResponseWriter) error
type AdminUploadAttachmentMultipartBody ¶
type AdminUploadAttachmentMultipartBody struct {
// File The file to attach.
File openapi_types.File `json:"file"`
}
AdminUploadAttachmentMultipartBody defines parameters for AdminUploadAttachment.
type AdminUploadAttachmentMultipartRequestBody ¶
type AdminUploadAttachmentMultipartRequestBody AdminUploadAttachmentMultipartBody
AdminUploadAttachmentMultipartRequestBody defines body for AdminUploadAttachment for multipart/form-data ContentType.
type AdminUploadAttachmentResponseObject ¶
type AdminUploadAttachmentResponseObject interface {
VisitAdminUploadAttachmentResponse(w http.ResponseWriter) error
}
type Attachment ¶
type Attachment struct {
// Filename Display filename.
Filename string `json:"filename"`
// Id Attachment ID.
Id openapi_types.UUID `json:"id"`
// SizeBytes File size.
SizeBytes int64 `json:"size_bytes"`
}
Attachment Downloadable challenge file.
type AttachmentAdmin ¶
type AttachmentAdmin struct {
// ContentType MIME type.
ContentType string `json:"content_type"`
// CreatedAt Upload time.
CreatedAt time.Time `json:"created_at"`
// Filename Display filename.
Filename string `json:"filename"`
// Id Attachment ID.
Id openapi_types.UUID `json:"id"`
// SizeBytes File size.
SizeBytes int64 `json:"size_bytes"`
}
AttachmentAdmin Attachment with storage metadata.
type AuthProviderInfo ¶
type AuthProviderInfo struct {
// Id Provider id, used in the login/callback paths (e.g. `email`, `oidc`).
Id string `json:"id"`
// Redirect True when logging in means being redirected to the provider (start at `/auth/{provider}/login`). False for the built-in credential form.
Redirect bool `json:"redirect"`
}
AuthProviderInfo One login method this deployment offers.
type BeginProviderLogin302Response ¶
type BeginProviderLogin302Response struct {
Headers BeginProviderLogin302ResponseHeaders
}
func (BeginProviderLogin302Response) VisitBeginProviderLoginResponse ¶
func (response BeginProviderLogin302Response) VisitBeginProviderLoginResponse(w http.ResponseWriter) error
type BeginProviderLogin302ResponseHeaders ¶
type BeginProviderLogin302ResponseHeaders struct {
Location string
}
type BeginProviderLogin404ApplicationProblemPlusJSONResponse ¶
type BeginProviderLogin404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (BeginProviderLogin404ApplicationProblemPlusJSONResponse) VisitBeginProviderLoginResponse ¶
func (response BeginProviderLogin404ApplicationProblemPlusJSONResponse) VisitBeginProviderLoginResponse(w http.ResponseWriter) error
type BeginProviderLogin503ApplicationProblemPlusJSONResponse ¶
type BeginProviderLogin503ApplicationProblemPlusJSONResponse struct {
}
func (BeginProviderLogin503ApplicationProblemPlusJSONResponse) VisitBeginProviderLoginResponse ¶
func (response BeginProviderLogin503ApplicationProblemPlusJSONResponse) VisitBeginProviderLoginResponse(w http.ResponseWriter) error
type BeginProviderLoginRequestObject ¶
type BeginProviderLoginRequestObject struct {
Provider ProviderPath `json:"provider"`
}
type BeginProviderLoginResponseObject ¶
type BeginProviderLoginResponseObject interface {
VisitBeginProviderLoginResponse(w http.ResponseWriter) error
}
type Challenge ¶
type Challenge struct {
// Category Challenge category.
Category Category `json:"category"`
// ConnectionInfo Rendered connection string while the instance is running.
ConnectionInfo *string `json:"connection_info"`
// Difficulty Difficulty label, if set.
Difficulty *Difficulty `json:"difficulty"`
// HasInstance Whether a container instance exists.
HasInstance bool `json:"has_instance"`
// Id Challenge ID.
Id openapi_types.UUID `json:"id"`
// Instancing shared = one container everyone hits (v0.1); per_team = one container per team, started on demand and managed by the scheduler.
Instancing Instancing `json:"instancing"`
// Kind standard = description/attachments only; container = also runs a Docker image.
Kind ChallengeKind `json:"kind"`
// Points Current point value.
Points int `json:"points"`
// Slug URL-safe identifier.
Slug string `json:"slug"`
// SolvedByMe Whether the caller's team solved it.
SolvedByMe bool `json:"solved_by_me"`
// Solves Valid solve count.
Solves int `json:"solves"`
// Title Display title.
Title string `json:"title"`
}
Challenge Challenge board entry. Never contains the description or flag.
type ChallengeAdmin ¶
type ChallengeAdmin struct {
// Attachments Attached files.
Attachments []AttachmentAdmin `json:"attachments"`
// Category Challenge category.
Category Category `json:"category"`
// ConnectionTemplate Template with {host} and {port} placeholders.
ConnectionTemplate *string `json:"connection_template"`
// ContainerEnv Extra environment for the container.
ContainerEnv map[string]string `json:"container_env"`
// CpuMillis CPU limit in millicores.
CpuMillis int `json:"cpu_millis"`
// CreatedAt Creation time.
CreatedAt time.Time `json:"created_at"`
// CurrentPoints Current computed value.
CurrentPoints int `json:"current_points"`
// Decay Solve count at which the value reaches the floor (dynamic only).
Decay *int `json:"decay"`
// Description Markdown body.
Description string `json:"description"`
// Difficulty Difficulty label, if set.
Difficulty *Difficulty `json:"difficulty"`
// Egress Whether the container may reach the network.
Egress bool `json:"egress"`
// Flag The flag, verbatim.
Flag string `json:"flag"`
// FlagCaseInsensitive Case-insensitive matching.
FlagCaseInsensitive bool `json:"flag_case_insensitive"`
// FlagMode static = one flag in the challenge; per_instance = a unique flag generated per team instance and injected as FLAG.
FlagMode FlagMode `json:"flag_mode"`
// Id Challenge ID.
Id openapi_types.UUID `json:"id"`
// Image Docker image (container kind).
Image *string `json:"image"`
// Instance The shared instance summary, when one exists (shared kind only).
Instance *Instance `json:"instance"`
// InstanceTtlSeconds Per-challenge TTL override; null = default, 0 = no TTL (container/per_team).
InstanceTtlSeconds *int `json:"instance_ttl_seconds"`
// Instancing shared = one container everyone hits (v0.1); per_team = one container per team, started on demand and managed by the scheduler.
Instancing Instancing `json:"instancing"`
// InternalPort Port the challenge listens on inside the container.
InternalPort *int `json:"internal_port"`
// Kind standard = description/attachments only; container = also runs a Docker image.
Kind ChallengeKind `json:"kind"`
// MaxAttempts Attempt cap; null = unlimited.
MaxAttempts *int `json:"max_attempts"`
// MemLimitMb Memory limit in MiB.
MemLimitMb int `json:"mem_limit_mb"`
// PointsInitial Initial/static value.
PointsInitial int `json:"points_initial"`
// PointsMin Floor value (dynamic only).
PointsMin *int `json:"points_min"`
// Scoring static = fixed value; dynamic = decays with solve count.
Scoring ScoringMode `json:"scoring"`
// Slug URL-safe identifier.
Slug string `json:"slug"`
// Solves Valid solve count.
Solves int `json:"solves"`
// Title Display title.
Title string `json:"title"`
// Type Challenge-type id — who decides correctness (built-in comparison or a plugin). Orthogonal to kind. Admin-only; never on participant DTOs.
Type string `json:"type"`
// TypeConfig Per-challenge config for the challenge type's plugin (author-defined, validated + normalized at write time). Admin-only; may contain challenge-sensitive data and never appears on any participant DTO.
TypeConfig map[string]string `json:"type_config"`
// UpdatedAt Last update time.
UpdatedAt time.Time `json:"updated_at"`
// Visible Whether participants can see it.
Visible bool `json:"visible"`
// WritablePaths Extra writable tmpfs mounts on top of /tmp (read-only rootfs default).
WritablePaths []string `json:"writable_paths"`
}
ChallengeAdmin Full challenge as stored, including the flag and container config.
type ChallengeAdminCreate ¶
type ChallengeAdminCreate struct {
// Category Challenge category.
Category Category `json:"category"`
// ConnectionTemplate Template with {host} and {port} placeholders.
ConnectionTemplate *string `json:"connection_template,omitempty"`
// ContainerEnv Extra environment for the container.
ContainerEnv *map[string]string `json:"container_env,omitempty"`
// CpuMillis CPU limit in millicores (default 500).
CpuMillis *int `json:"cpu_millis,omitempty"`
// Decay Solve count to reach the floor (required for dynamic).
Decay *int `json:"decay,omitempty"`
// Description Markdown body.
Description *string `json:"description,omitempty"`
// Difficulty Challenge difficulty label.
Difficulty *Difficulty `json:"difficulty,omitempty"`
// Egress Whether the container may reach the network (default true).
Egress *bool `json:"egress,omitempty"`
// Flag The flag, stored verbatim.
Flag string `json:"flag"`
// FlagCaseInsensitive Case-insensitive matching (default false).
FlagCaseInsensitive *bool `json:"flag_case_insensitive,omitempty"`
// FlagMode Flag mode (default static; per_instance requires container kind).
FlagMode *FlagMode `json:"flag_mode,omitempty"`
// Image Docker image (container kind).
Image *string `json:"image,omitempty"`
// InstanceTtlSeconds Per-challenge TTL override; omit for default, 0 for no TTL.
InstanceTtlSeconds *int `json:"instance_ttl_seconds,omitempty"`
// Instancing Provisioning mode (default shared; per_team requires container kind).
Instancing *Instancing `json:"instancing,omitempty"`
// InternalPort Container listen port (container kind).
InternalPort *int `json:"internal_port,omitempty"`
// Kind standard = description/attachments only; container = also runs a Docker image.
Kind *ChallengeKind `json:"kind,omitempty"`
// MaxAttempts Attempt cap; omit for unlimited.
MaxAttempts *int `json:"max_attempts,omitempty"`
// MemLimitMb Memory limit in MiB (default 256).
MemLimitMb *int `json:"mem_limit_mb,omitempty"`
// PointsInitial Initial/static value.
PointsInitial int `json:"points_initial"`
// PointsMin Floor value (required for dynamic).
PointsMin *int `json:"points_min,omitempty"`
// Scoring static = fixed value; dynamic = decays with solve count.
Scoring *ScoringMode `json:"scoring,omitempty"`
// Slug Derived from the title when omitted.
Slug *string `json:"slug,omitempty"`
// Title Display title.
Title string `json:"title"`
// Type Challenge-type id; omit to default to the built-in 'standard' (the server applies it). Must be a registered type. NOTE: no OpenAPI `default:` here — openapi-typescript would then type this request field as required, and the create body must allow omitting it.
Type *string `json:"type,omitempty"`
// TypeConfig Per-challenge config for the challenge type's plugin. Validated by the type's ValidateConfig at write time (a bad value is a 422 with per-field errors); the STORED value is the plugin's normalized form. May contain challenge-sensitive data — it is admin-only, and plugins must never log it.
TypeConfig *map[string]string `json:"type_config,omitempty"`
// Visible Whether participants can see it (default false).
Visible *bool `json:"visible,omitempty"`
// WritablePaths Extra writable tmpfs mounts on top of /tmp.
WritablePaths *[]string `json:"writable_paths,omitempty"`
}
ChallengeAdminCreate Challenge creation payload.
type ChallengeAdminPage ¶
type ChallengeAdminPage struct {
Items []ChallengeAdmin `json:"items"`
// Page Current page (1-based).
Page int `json:"page"`
// PerPage Page size.
PerPage int `json:"per_page"`
// Total Total matching rows.
Total int `json:"total"`
}
ChallengeAdminPage Paginated challenges.
type ChallengeAdminUpdate ¶
type ChallengeAdminUpdate struct {
// Category Challenge category.
Category *Category `json:"category,omitempty"`
// ConnectionTemplate Template with {host} and {port} placeholders.
ConnectionTemplate *string `json:"connection_template"`
// ContainerEnv Extra environment for the container.
ContainerEnv *map[string]string `json:"container_env,omitempty"`
// CpuMillis CPU limit in millicores.
CpuMillis *int `json:"cpu_millis,omitempty"`
// Decay Solve count to reach the floor.
Decay *int `json:"decay"`
// Description Markdown body.
Description *string `json:"description,omitempty"`
// Difficulty Set null to clear.
Difficulty *Difficulty `json:"difficulty"`
// Egress Whether the container may reach the network.
Egress *bool `json:"egress,omitempty"`
// Flag The flag, stored verbatim.
Flag *string `json:"flag,omitempty"`
// FlagCaseInsensitive Case-insensitive matching.
FlagCaseInsensitive *bool `json:"flag_case_insensitive,omitempty"`
// FlagMode Flag mode (per_instance requires container kind).
FlagMode *FlagMode `json:"flag_mode,omitempty"`
// Image Docker image.
Image *string `json:"image"`
// InstanceTtlSeconds Per-challenge TTL override; null = default, 0 = no TTL.
InstanceTtlSeconds *int `json:"instance_ttl_seconds"`
// Instancing Provisioning mode (per_team requires container kind).
Instancing *Instancing `json:"instancing,omitempty"`
// InternalPort Container listen port.
InternalPort *int `json:"internal_port"`
// MaxAttempts Attempt cap; null = unlimited.
MaxAttempts *int `json:"max_attempts"`
// MemLimitMb Memory limit in MiB.
MemLimitMb *int `json:"mem_limit_mb,omitempty"`
// PointsInitial Initial/static value.
PointsInitial *int `json:"points_initial,omitempty"`
// PointsMin Floor value.
PointsMin *int `json:"points_min"`
// Scoring static = fixed value; dynamic = decays with solve count.
Scoring *ScoringMode `json:"scoring,omitempty"`
// Slug URL-safe identifier.
Slug *string `json:"slug,omitempty"`
// Title Display title.
Title *string `json:"title,omitempty"`
// Type Challenge-type id; omit to leave unchanged. Must be a registered type.
Type *string `json:"type,omitempty"`
// TypeConfig Per-challenge config for the challenge type's plugin; omit to leave unchanged. When present it is re-validated by the type's ValidateConfig and REFUSED (fail closed) if the plugin is unavailable — a non-config edit is not blocked by a down plugin. May contain challenge-sensitive data; plugins must never log it.
TypeConfig *map[string]string `json:"type_config,omitempty"`
// Visible Whether participants can see it.
Visible *bool `json:"visible,omitempty"`
// WritablePaths Extra writable tmpfs mounts on top of /tmp.
WritablePaths *[]string `json:"writable_paths,omitempty"`
}
ChallengeAdminUpdate Partial challenge update. Omitted fields are unchanged.
type ChallengeDetail ¶
type ChallengeDetail struct {
// Attachments Downloadable files.
Attachments []Attachment `json:"attachments"`
// AttemptsUsed The caller team's attempts so far.
AttemptsUsed int `json:"attempts_used"`
// Category Challenge category.
Category Category `json:"category"`
// ConnectionInfo Rendered connection string while the instance is running.
ConnectionInfo *string `json:"connection_info"`
// Description Markdown body.
Description string `json:"description"`
// Difficulty Difficulty label, if set.
Difficulty *Difficulty `json:"difficulty"`
// FlagMode static = one flag in the challenge; per_instance = a unique flag generated per team instance and injected as FLAG.
FlagMode FlagMode `json:"flag_mode"`
// HasInstance Whether a container instance exists.
HasInstance bool `json:"has_instance"`
// Id Challenge ID.
Id openapi_types.UUID `json:"id"`
// Instance The caller team's instance for this challenge (per_team), or the shared instance (shared), or null when none exists.
Instance *TeamInstance `json:"instance"`
// Instancing shared = one container everyone hits (v0.1); per_team = one container per team, started on demand and managed by the scheduler.
Instancing Instancing `json:"instancing"`
// Kind standard = description/attachments only; container = also runs a Docker image.
Kind ChallengeKind `json:"kind"`
// MaxAttempts Attempt cap; null = unlimited.
MaxAttempts *int `json:"max_attempts"`
// Points Current point value.
Points int `json:"points"`
// Slug URL-safe identifier.
Slug string `json:"slug"`
// SolvedByMe Whether the caller's team solved it.
SolvedByMe bool `json:"solved_by_me"`
// Solves Valid solve count.
Solves int `json:"solves"`
// Title Display title.
Title string `json:"title"`
}
ChallengeDetail defines model for ChallengeDetail.
type ChallengeKind ¶
type ChallengeKind string
ChallengeKind standard = description/attachments only; container = also runs a Docker image.
const ( Container ChallengeKind = "container" Standard ChallengeKind = "standard" )
Defines values for ChallengeKind.
type ChallengeRef ¶
type ChallengeRef struct {
// Id Challenge ID.
Id openapi_types.UUID `json:"id"`
// Slug Challenge slug.
Slug string `json:"slug"`
// Title Challenge title.
Title string `json:"title"`
}
ChallengeRef Compact challenge reference.
type ChangePassword204Response ¶
type ChangePassword204Response struct {
}
func (ChangePassword204Response) VisitChangePasswordResponse ¶
func (response ChangePassword204Response) VisitChangePasswordResponse(w http.ResponseWriter) error
type ChangePassword401ApplicationProblemPlusJSONResponse ¶
type ChangePassword401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (ChangePassword401ApplicationProblemPlusJSONResponse) VisitChangePasswordResponse ¶
func (response ChangePassword401ApplicationProblemPlusJSONResponse) VisitChangePasswordResponse(w http.ResponseWriter) error
type ChangePassword403ApplicationProblemPlusJSONResponse ¶
type ChangePassword403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (ChangePassword403ApplicationProblemPlusJSONResponse) VisitChangePasswordResponse ¶
func (response ChangePassword403ApplicationProblemPlusJSONResponse) VisitChangePasswordResponse(w http.ResponseWriter) error
type ChangePassword422ApplicationProblemPlusJSONResponse ¶
type ChangePassword422ApplicationProblemPlusJSONResponse struct {
ValidationApplicationProblemPlusJSONResponse
}
func (ChangePassword422ApplicationProblemPlusJSONResponse) VisitChangePasswordResponse ¶
func (response ChangePassword422ApplicationProblemPlusJSONResponse) VisitChangePasswordResponse(w http.ResponseWriter) error
type ChangePasswordJSONRequestBody ¶
type ChangePasswordJSONRequestBody = ChangePasswordRequest
ChangePasswordJSONRequestBody defines body for ChangePassword for application/json ContentType.
type ChangePasswordRequest ¶
type ChangePasswordRequest struct {
// CurrentPassword The current password (re-authentication).
CurrentPassword string `json:"current_password"`
// NewPassword The new password.
NewPassword string `json:"new_password"`
}
ChangePasswordRequest Self-service password change payload.
type ChangePasswordRequestObject ¶
type ChangePasswordRequestObject struct {
Body *ChangePasswordJSONRequestBody
}
type ChangePasswordResponseObject ¶
type ChangePasswordResponseObject interface {
VisitChangePasswordResponse(w http.ResponseWriter) error
}
type ChiServerOptions ¶
type ChiServerOptions struct {
BaseURL string
BaseRouter chi.Router
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type CompleteProviderLogin302Response ¶
type CompleteProviderLogin302Response struct {
Headers CompleteProviderLogin302ResponseHeaders
}
func (CompleteProviderLogin302Response) VisitCompleteProviderLoginResponse ¶
func (response CompleteProviderLogin302Response) VisitCompleteProviderLoginResponse(w http.ResponseWriter) error
type CompleteProviderLogin302ResponseHeaders ¶
type CompleteProviderLogin302ResponseHeaders struct {
Location string
}
type CompleteProviderLoginRequestObject ¶
type CompleteProviderLoginRequestObject struct {
Provider ProviderPath `json:"provider"`
}
type CompleteProviderLoginResponseObject ¶
type CompleteProviderLoginResponseObject interface {
VisitCompleteProviderLoginResponse(w http.ResponseWriter) error
}
type ConflictApplicationProblemPlusJSONResponse ¶
type ConflictApplicationProblemPlusJSONResponse Problem
type CreateTeam201JSONResponse ¶
type CreateTeam201JSONResponse TeamMine
func (CreateTeam201JSONResponse) VisitCreateTeamResponse ¶
func (response CreateTeam201JSONResponse) VisitCreateTeamResponse(w http.ResponseWriter) error
type CreateTeam401ApplicationProblemPlusJSONResponse ¶
type CreateTeam401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (CreateTeam401ApplicationProblemPlusJSONResponse) VisitCreateTeamResponse ¶
func (response CreateTeam401ApplicationProblemPlusJSONResponse) VisitCreateTeamResponse(w http.ResponseWriter) error
type CreateTeam409ApplicationProblemPlusJSONResponse ¶
type CreateTeam409ApplicationProblemPlusJSONResponse struct {
ConflictApplicationProblemPlusJSONResponse
}
func (CreateTeam409ApplicationProblemPlusJSONResponse) VisitCreateTeamResponse ¶
func (response CreateTeam409ApplicationProblemPlusJSONResponse) VisitCreateTeamResponse(w http.ResponseWriter) error
type CreateTeam422ApplicationProblemPlusJSONResponse ¶
type CreateTeam422ApplicationProblemPlusJSONResponse struct {
ValidationApplicationProblemPlusJSONResponse
}
func (CreateTeam422ApplicationProblemPlusJSONResponse) VisitCreateTeamResponse ¶
func (response CreateTeam422ApplicationProblemPlusJSONResponse) VisitCreateTeamResponse(w http.ResponseWriter) error
type CreateTeamJSONRequestBody ¶
type CreateTeamJSONRequestBody = TeamCreateRequest
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 CreateToken201JSONResponse ¶
type CreateToken201JSONResponse TokenCreated
func (CreateToken201JSONResponse) VisitCreateTokenResponse ¶
func (response CreateToken201JSONResponse) VisitCreateTokenResponse(w http.ResponseWriter) error
type CreateToken401ApplicationProblemPlusJSONResponse ¶
type CreateToken401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (CreateToken401ApplicationProblemPlusJSONResponse) VisitCreateTokenResponse ¶
func (response CreateToken401ApplicationProblemPlusJSONResponse) VisitCreateTokenResponse(w http.ResponseWriter) error
type CreateToken403ApplicationProblemPlusJSONResponse ¶
type CreateToken403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (CreateToken403ApplicationProblemPlusJSONResponse) VisitCreateTokenResponse ¶
func (response CreateToken403ApplicationProblemPlusJSONResponse) VisitCreateTokenResponse(w http.ResponseWriter) error
type CreateToken422ApplicationProblemPlusJSONResponse ¶
type CreateToken422ApplicationProblemPlusJSONResponse struct {
ValidationApplicationProblemPlusJSONResponse
}
func (CreateToken422ApplicationProblemPlusJSONResponse) VisitCreateTokenResponse ¶
func (response CreateToken422ApplicationProblemPlusJSONResponse) VisitCreateTokenResponse(w http.ResponseWriter) error
type CreateTokenJSONRequestBody ¶
type CreateTokenJSONRequestBody = TokenCreate
CreateTokenJSONRequestBody defines body for CreateToken for application/json ContentType.
type CreateTokenRequestObject ¶
type CreateTokenRequestObject struct {
Body *CreateTokenJSONRequestBody
}
type CreateTokenResponseObject ¶
type CreateTokenResponseObject interface {
VisitCreateTokenResponse(w http.ResponseWriter) error
}
type Difficulty ¶
type Difficulty string
Difficulty Challenge difficulty label.
const ( Easy Difficulty = "easy" Hard Difficulty = "hard" Insane Difficulty = "insane" Intro Difficulty = "intro" Medium Difficulty = "medium" )
Defines values for Difficulty.
type DownloadAttachment200ApplicationoctetStreamResponse ¶
type DownloadAttachment200ApplicationoctetStreamResponse struct {
Body io.Reader
ContentLength int64
}
func (DownloadAttachment200ApplicationoctetStreamResponse) VisitDownloadAttachmentResponse ¶
func (response DownloadAttachment200ApplicationoctetStreamResponse) VisitDownloadAttachmentResponse(w http.ResponseWriter) error
type DownloadAttachment401ApplicationProblemPlusJSONResponse ¶
type DownloadAttachment401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (DownloadAttachment401ApplicationProblemPlusJSONResponse) VisitDownloadAttachmentResponse ¶
func (response DownloadAttachment401ApplicationProblemPlusJSONResponse) VisitDownloadAttachmentResponse(w http.ResponseWriter) error
type DownloadAttachment403ApplicationProblemPlusJSONResponse ¶
type DownloadAttachment403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (DownloadAttachment403ApplicationProblemPlusJSONResponse) VisitDownloadAttachmentResponse ¶
func (response DownloadAttachment403ApplicationProblemPlusJSONResponse) VisitDownloadAttachmentResponse(w http.ResponseWriter) error
type DownloadAttachment404ApplicationProblemPlusJSONResponse ¶
type DownloadAttachment404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (DownloadAttachment404ApplicationProblemPlusJSONResponse) VisitDownloadAttachmentResponse ¶
func (response DownloadAttachment404ApplicationProblemPlusJSONResponse) VisitDownloadAttachmentResponse(w http.ResponseWriter) error
type DownloadAttachmentResponseObject ¶
type DownloadAttachmentResponseObject interface {
VisitDownloadAttachmentResponse(w http.ResponseWriter) error
}
type Event ¶
type Event struct {
// Description Markdown description.
Description string `json:"description"`
// EndsAt Window end.
EndsAt time.Time `json:"ends_at"`
// Frozen Whether the public scoreboard is frozen.
Frozen bool `json:"frozen"`
// Name Event name.
Name string `json:"name"`
// Phase Where now falls relative to the event window.
Phase EventPhase `json:"phase"`
// StartsAt Window start.
StartsAt time.Time `json:"starts_at"`
}
Event Public event info.
type EventAdmin ¶
type EventAdmin struct {
// Description Markdown description.
Description string `json:"description"`
// EndsAt Window end.
EndsAt time.Time `json:"ends_at"`
// FreezeAt Scoreboard freeze point; null disables freezing.
FreezeAt *time.Time `json:"freeze_at"`
// Id Event ID.
Id openapi_types.UUID `json:"id"`
// Name Event name.
Name string `json:"name"`
// StartsAt Window start.
StartsAt time.Time `json:"starts_at"`
}
EventAdmin Full event configuration.
type EventPhase ¶
type EventPhase string
EventPhase Where now falls relative to the event window.
const ( EventPhaseEnded EventPhase = "ended" EventPhasePre EventPhase = "pre" EventPhaseRunning EventPhase = "running" )
Defines values for EventPhase.
type EventUpdateRequest ¶
type EventUpdateRequest struct {
// Description Markdown description.
Description *string `json:"description,omitempty"`
// EndsAt Window end.
EndsAt *time.Time `json:"ends_at,omitempty"`
// FreezeAt Set to null to clear the freeze (unfreezes the board).
FreezeAt *time.Time `json:"freeze_at"`
// Name Event name.
Name *string `json:"name,omitempty"`
// StartsAt Window start.
StartsAt *time.Time `json:"starts_at,omitempty"`
}
EventUpdateRequest Partial event update. Omitted fields are unchanged.
type ExtendInstance200JSONResponse ¶
type ExtendInstance200JSONResponse TeamInstance
func (ExtendInstance200JSONResponse) VisitExtendInstanceResponse ¶
func (response ExtendInstance200JSONResponse) VisitExtendInstanceResponse(w http.ResponseWriter) error
type ExtendInstance401ApplicationProblemPlusJSONResponse ¶
type ExtendInstance401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (ExtendInstance401ApplicationProblemPlusJSONResponse) VisitExtendInstanceResponse ¶
func (response ExtendInstance401ApplicationProblemPlusJSONResponse) VisitExtendInstanceResponse(w http.ResponseWriter) error
type ExtendInstance403ApplicationProblemPlusJSONResponse ¶
type ExtendInstance403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (ExtendInstance403ApplicationProblemPlusJSONResponse) VisitExtendInstanceResponse ¶
func (response ExtendInstance403ApplicationProblemPlusJSONResponse) VisitExtendInstanceResponse(w http.ResponseWriter) error
type ExtendInstance404ApplicationProblemPlusJSONResponse ¶
type ExtendInstance404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (ExtendInstance404ApplicationProblemPlusJSONResponse) VisitExtendInstanceResponse ¶
func (response ExtendInstance404ApplicationProblemPlusJSONResponse) VisitExtendInstanceResponse(w http.ResponseWriter) error
type ExtendInstance409ApplicationProblemPlusJSONResponse ¶
type ExtendInstance409ApplicationProblemPlusJSONResponse struct {
ConflictApplicationProblemPlusJSONResponse
}
func (ExtendInstance409ApplicationProblemPlusJSONResponse) VisitExtendInstanceResponse ¶
func (response ExtendInstance409ApplicationProblemPlusJSONResponse) VisitExtendInstanceResponse(w http.ResponseWriter) error
type ExtendInstance503ApplicationProblemPlusJSONResponse ¶
type ExtendInstance503ApplicationProblemPlusJSONResponse struct {
}
func (ExtendInstance503ApplicationProblemPlusJSONResponse) VisitExtendInstanceResponse ¶
func (response ExtendInstance503ApplicationProblemPlusJSONResponse) VisitExtendInstanceResponse(w http.ResponseWriter) error
type ExtendInstanceRequestObject ¶
type ExtendInstanceRequestObject struct {
Slug SlugPath `json:"slug"`
}
type ExtendInstanceResponseObject ¶
type ExtendInstanceResponseObject interface {
VisitExtendInstanceResponse(w http.ResponseWriter) error
}
type FlagMode ¶
type FlagMode string
FlagMode static = one flag in the challenge; per_instance = a unique flag generated per team instance and injected as FLAG.
type ForbiddenApplicationProblemPlusJSONResponse ¶
type ForbiddenApplicationProblemPlusJSONResponse Problem
type GetChallenge200JSONResponse ¶
type GetChallenge200JSONResponse ChallengeDetail
func (GetChallenge200JSONResponse) VisitGetChallengeResponse ¶
func (response GetChallenge200JSONResponse) VisitGetChallengeResponse(w http.ResponseWriter) error
type GetChallenge401ApplicationProblemPlusJSONResponse ¶
type GetChallenge401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (GetChallenge401ApplicationProblemPlusJSONResponse) VisitGetChallengeResponse ¶
func (response GetChallenge401ApplicationProblemPlusJSONResponse) VisitGetChallengeResponse(w http.ResponseWriter) error
type GetChallenge403ApplicationProblemPlusJSONResponse ¶
type GetChallenge403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (GetChallenge403ApplicationProblemPlusJSONResponse) VisitGetChallengeResponse ¶
func (response GetChallenge403ApplicationProblemPlusJSONResponse) VisitGetChallengeResponse(w http.ResponseWriter) error
type GetChallenge404ApplicationProblemPlusJSONResponse ¶
type GetChallenge404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (GetChallenge404ApplicationProblemPlusJSONResponse) VisitGetChallengeResponse ¶
func (response GetChallenge404ApplicationProblemPlusJSONResponse) VisitGetChallengeResponse(w http.ResponseWriter) error
type GetChallengeRequestObject ¶
type GetChallengeRequestObject struct {
Slug SlugPath `json:"slug"`
}
type GetChallengeResponseObject ¶
type GetChallengeResponseObject interface {
VisitGetChallengeResponse(w http.ResponseWriter) error
}
type GetEvent200JSONResponse ¶
type GetEvent200JSONResponse Event
func (GetEvent200JSONResponse) VisitGetEventResponse ¶
func (response GetEvent200JSONResponse) VisitGetEventResponse(w http.ResponseWriter) error
type GetEventRequestObject ¶
type GetEventRequestObject struct {
}
type GetEventResponseObject ¶
type GetEventResponseObject interface {
VisitGetEventResponse(w http.ResponseWriter) error
}
type GetMe200JSONResponse ¶
type GetMe200JSONResponse Me
func (GetMe200JSONResponse) VisitGetMeResponse ¶
func (response GetMe200JSONResponse) VisitGetMeResponse(w http.ResponseWriter) error
type GetMe401ApplicationProblemPlusJSONResponse ¶
type GetMe401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (GetMe401ApplicationProblemPlusJSONResponse) VisitGetMeResponse ¶
func (response GetMe401ApplicationProblemPlusJSONResponse) VisitGetMeResponse(w http.ResponseWriter) error
type GetMeRequestObject ¶
type GetMeRequestObject struct {
}
type GetMeResponseObject ¶
type GetMeResponseObject interface {
VisitGetMeResponse(w http.ResponseWriter) error
}
type GetScoreboard200JSONResponse ¶
type GetScoreboard200JSONResponse Scoreboard
func (GetScoreboard200JSONResponse) VisitGetScoreboardResponse ¶
func (response GetScoreboard200JSONResponse) VisitGetScoreboardResponse(w http.ResponseWriter) error
type GetScoreboardRequestObject ¶
type GetScoreboardRequestObject struct {
}
type GetScoreboardResponseObject ¶
type GetScoreboardResponseObject interface {
VisitGetScoreboardResponse(w http.ResponseWriter) error
}
type GetTeam200JSONResponse ¶
type GetTeam200JSONResponse TeamDetail
func (GetTeam200JSONResponse) VisitGetTeamResponse ¶
func (response GetTeam200JSONResponse) VisitGetTeamResponse(w http.ResponseWriter) error
type GetTeam404ApplicationProblemPlusJSONResponse ¶
type GetTeam404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (GetTeam404ApplicationProblemPlusJSONResponse) VisitGetTeamResponse ¶
func (response GetTeam404ApplicationProblemPlusJSONResponse) VisitGetTeamResponse(w http.ResponseWriter) error
type GetTeamRequestObject ¶
type GetTeamRequestObject struct {
Id IdPath `json:"id"`
}
type GetTeamResponseObject ¶
type GetTeamResponseObject interface {
VisitGetTeamResponse(w http.ResponseWriter) error
}
type GetUser200JSONResponse ¶
type GetUser200JSONResponse PublicUser
func (GetUser200JSONResponse) VisitGetUserResponse ¶
func (response GetUser200JSONResponse) VisitGetUserResponse(w http.ResponseWriter) error
type GetUser404ApplicationProblemPlusJSONResponse ¶
type GetUser404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (GetUser404ApplicationProblemPlusJSONResponse) VisitGetUserResponse ¶
func (response GetUser404ApplicationProblemPlusJSONResponse) VisitGetUserResponse(w http.ResponseWriter) error
type GetUserRequestObject ¶
type GetUserRequestObject struct {
Id IdPath `json:"id"`
}
type GetUserResponseObject ¶
type GetUserResponseObject interface {
VisitGetUserResponse(w http.ResponseWriter) error
}
type Instance ¶
type Instance struct {
// ConnectionInfo Rendered connection string while running.
ConnectionInfo *string `json:"connection_info"`
// Error Last failure message, verbatim.
Error *string `json:"error"`
// HostPort Published host port.
HostPort *int `json:"host_port"`
// Id Instance ID.
Id openapi_types.UUID `json:"id"`
// LastHealthAt Last successful health check.
LastHealthAt *time.Time `json:"last_health_at"`
// StartedAt Container start time.
StartedAt *time.Time `json:"started_at"`
// State Challenge instance lifecycle state.
State InstanceState `json:"state"`
}
Instance Challenge instance status.
type InstanceLogs ¶
type InstanceLogs struct {
// Logs Demuxed stdout+stderr, ANSI stripped.
Logs string `json:"logs"`
}
InstanceLogs Recent container output.
type InstanceState ¶
type InstanceState string
InstanceState Challenge instance lifecycle state.
const ( InstanceStateError InstanceState = "error" InstanceStateLost InstanceState = "lost" InstanceStatePending InstanceState = "pending" InstanceStateRunning InstanceState = "running" InstanceStateStarting InstanceState = "starting" InstanceStateStopped InstanceState = "stopped" InstanceStateUnhealthy InstanceState = "unhealthy" )
Defines values for InstanceState.
type Instancing ¶
type Instancing string
Instancing shared = one container everyone hits (v0.1); per_team = one container per team, started on demand and managed by the scheduler.
const ( PerTeam Instancing = "per_team" )
Defines values for Instancing.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type InviteCode ¶
type InviteCode struct {
// InviteCode The team invite code.
InviteCode string `json:"invite_code"`
}
InviteCode A team invite code.
type JoinTeam200JSONResponse ¶
type JoinTeam200JSONResponse TeamMine
func (JoinTeam200JSONResponse) VisitJoinTeamResponse ¶
func (response JoinTeam200JSONResponse) VisitJoinTeamResponse(w http.ResponseWriter) error
type JoinTeam401ApplicationProblemPlusJSONResponse ¶
type JoinTeam401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (JoinTeam401ApplicationProblemPlusJSONResponse) VisitJoinTeamResponse ¶
func (response JoinTeam401ApplicationProblemPlusJSONResponse) VisitJoinTeamResponse(w http.ResponseWriter) error
type JoinTeam404ApplicationProblemPlusJSONResponse ¶
type JoinTeam404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (JoinTeam404ApplicationProblemPlusJSONResponse) VisitJoinTeamResponse ¶
func (response JoinTeam404ApplicationProblemPlusJSONResponse) VisitJoinTeamResponse(w http.ResponseWriter) error
type JoinTeam409ApplicationProblemPlusJSONResponse ¶
type JoinTeam409ApplicationProblemPlusJSONResponse struct {
ConflictApplicationProblemPlusJSONResponse
}
func (JoinTeam409ApplicationProblemPlusJSONResponse) VisitJoinTeamResponse ¶
func (response JoinTeam409ApplicationProblemPlusJSONResponse) VisitJoinTeamResponse(w http.ResponseWriter) error
type JoinTeam422ApplicationProblemPlusJSONResponse ¶
type JoinTeam422ApplicationProblemPlusJSONResponse struct {
ValidationApplicationProblemPlusJSONResponse
}
func (JoinTeam422ApplicationProblemPlusJSONResponse) VisitJoinTeamResponse ¶
func (response JoinTeam422ApplicationProblemPlusJSONResponse) VisitJoinTeamResponse(w http.ResponseWriter) error
type JoinTeamJSONRequestBody ¶
type JoinTeamJSONRequestBody = TeamJoinRequest
JoinTeamJSONRequestBody defines body for JoinTeam for application/json ContentType.
type JoinTeamRequestObject ¶
type JoinTeamRequestObject struct {
Body *JoinTeamJSONRequestBody
}
type JoinTeamResponseObject ¶
type JoinTeamResponseObject interface {
VisitJoinTeamResponse(w http.ResponseWriter) error
}
type LeaveTeam204Response ¶
type LeaveTeam204Response struct {
}
func (LeaveTeam204Response) VisitLeaveTeamResponse ¶
func (response LeaveTeam204Response) VisitLeaveTeamResponse(w http.ResponseWriter) error
type LeaveTeam401ApplicationProblemPlusJSONResponse ¶
type LeaveTeam401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (LeaveTeam401ApplicationProblemPlusJSONResponse) VisitLeaveTeamResponse ¶
func (response LeaveTeam401ApplicationProblemPlusJSONResponse) VisitLeaveTeamResponse(w http.ResponseWriter) error
type LeaveTeam404ApplicationProblemPlusJSONResponse ¶
type LeaveTeam404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (LeaveTeam404ApplicationProblemPlusJSONResponse) VisitLeaveTeamResponse ¶
func (response LeaveTeam404ApplicationProblemPlusJSONResponse) VisitLeaveTeamResponse(w http.ResponseWriter) error
type LeaveTeamRequestObject ¶
type LeaveTeamRequestObject struct {
}
type LeaveTeamResponseObject ¶
type LeaveTeamResponseObject interface {
VisitLeaveTeamResponse(w http.ResponseWriter) error
}
type ListAuthProviders200JSONResponse ¶
type ListAuthProviders200JSONResponse []AuthProviderInfo
func (ListAuthProviders200JSONResponse) VisitListAuthProvidersResponse ¶
func (response ListAuthProviders200JSONResponse) VisitListAuthProvidersResponse(w http.ResponseWriter) error
type ListAuthProvidersRequestObject ¶
type ListAuthProvidersRequestObject struct {
}
type ListAuthProvidersResponseObject ¶
type ListAuthProvidersResponseObject interface {
VisitListAuthProvidersResponse(w http.ResponseWriter) error
}
type ListChallenges200JSONResponse ¶
type ListChallenges200JSONResponse []Challenge
func (ListChallenges200JSONResponse) VisitListChallengesResponse ¶
func (response ListChallenges200JSONResponse) VisitListChallengesResponse(w http.ResponseWriter) error
type ListChallenges401ApplicationProblemPlusJSONResponse ¶
type ListChallenges401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (ListChallenges401ApplicationProblemPlusJSONResponse) VisitListChallengesResponse ¶
func (response ListChallenges401ApplicationProblemPlusJSONResponse) VisitListChallengesResponse(w http.ResponseWriter) error
type ListChallenges403ApplicationProblemPlusJSONResponse ¶
type ListChallenges403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (ListChallenges403ApplicationProblemPlusJSONResponse) VisitListChallengesResponse ¶
func (response ListChallenges403ApplicationProblemPlusJSONResponse) VisitListChallengesResponse(w http.ResponseWriter) error
type ListChallengesRequestObject ¶
type ListChallengesRequestObject struct {
}
type ListChallengesResponseObject ¶
type ListChallengesResponseObject interface {
VisitListChallengesResponse(w http.ResponseWriter) error
}
type ListTeams200JSONResponse ¶
type ListTeams200JSONResponse []TeamSummary
func (ListTeams200JSONResponse) VisitListTeamsResponse ¶
func (response ListTeams200JSONResponse) VisitListTeamsResponse(w http.ResponseWriter) error
type ListTeamsRequestObject ¶
type ListTeamsRequestObject struct {
}
type ListTeamsResponseObject ¶
type ListTeamsResponseObject interface {
VisitListTeamsResponse(w http.ResponseWriter) error
}
type ListTokens200JSONResponse ¶
type ListTokens200JSONResponse []Token
func (ListTokens200JSONResponse) VisitListTokensResponse ¶
func (response ListTokens200JSONResponse) VisitListTokensResponse(w http.ResponseWriter) error
type ListTokens401ApplicationProblemPlusJSONResponse ¶
type ListTokens401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (ListTokens401ApplicationProblemPlusJSONResponse) VisitListTokensResponse ¶
func (response ListTokens401ApplicationProblemPlusJSONResponse) VisitListTokensResponse(w http.ResponseWriter) error
type ListTokens403ApplicationProblemPlusJSONResponse ¶
type ListTokens403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (ListTokens403ApplicationProblemPlusJSONResponse) VisitListTokensResponse ¶
func (response ListTokens403ApplicationProblemPlusJSONResponse) VisitListTokensResponse(w http.ResponseWriter) error
type ListTokensRequestObject ¶
type ListTokensRequestObject struct {
}
type ListTokensResponseObject ¶
type ListTokensResponseObject interface {
VisitListTokensResponse(w http.ResponseWriter) error
}
type Login200JSONResponse ¶
type Login200JSONResponse Me
func (Login200JSONResponse) VisitLoginResponse ¶
func (response Login200JSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type Login401ApplicationProblemPlusJSONResponse ¶
type Login401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (Login401ApplicationProblemPlusJSONResponse) VisitLoginResponse ¶
func (response Login401ApplicationProblemPlusJSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type Login422ApplicationProblemPlusJSONResponse ¶
type Login422ApplicationProblemPlusJSONResponse struct {
ValidationApplicationProblemPlusJSONResponse
}
func (Login422ApplicationProblemPlusJSONResponse) VisitLoginResponse ¶
func (response Login422ApplicationProblemPlusJSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type Login429ApplicationProblemPlusJSONResponse ¶
type Login429ApplicationProblemPlusJSONResponse struct {
RateLimitedApplicationProblemPlusJSONResponse
}
func (Login429ApplicationProblemPlusJSONResponse) VisitLoginResponse ¶
func (response Login429ApplicationProblemPlusJSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type LoginJSONRequestBody ¶
type LoginJSONRequestBody = LoginRequest
LoginJSONRequestBody defines body for Login for application/json ContentType.
type LoginRequest ¶
type LoginRequest struct {
// Email Account email.
Email openapi_types.Email `json:"email"`
// Password Account password.
Password string `json:"password"`
}
LoginRequest Login credentials.
type LoginRequestObject ¶
type LoginRequestObject struct {
Body *LoginJSONRequestBody
}
type LoginResponseObject ¶
type LoginResponseObject interface {
VisitLoginResponse(w http.ResponseWriter) error
}
type Logout204Response ¶
type Logout204Response struct {
}
func (Logout204Response) VisitLogoutResponse ¶
func (response Logout204Response) VisitLogoutResponse(w http.ResponseWriter) error
type Logout401ApplicationProblemPlusJSONResponse ¶
type Logout401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (Logout401ApplicationProblemPlusJSONResponse) VisitLogoutResponse ¶
func (response Logout401ApplicationProblemPlusJSONResponse) VisitLogoutResponse(w http.ResponseWriter) error
type LogoutRequestObject ¶
type LogoutRequestObject struct {
}
type LogoutResponseObject ¶
type LogoutResponseObject interface {
VisitLogoutResponse(w http.ResponseWriter) error
}
type Me ¶
type Me struct {
// Email Login email.
Email string `json:"email"`
// Id User ID.
Id openapi_types.UUID `json:"id"`
// Role Platform role.
Role Role `json:"role"`
// Team The caller's team, or null when teamless.
Team *MyTeamRef `json:"team"`
// Username Handle.
Username string `json:"username"`
}
Me The authenticated account.
type Member ¶
type Member struct {
// Id User ID.
Id openapi_types.UUID `json:"id"`
// Username Handle.
Username string `json:"username"`
}
Member A team member.
type MyTeamRef ¶
type MyTeamRef struct {
// Id Team ID.
Id openapi_types.UUID `json:"id"`
// Name Team name.
Name string `json:"name"`
// Role The caller's role in the team.
Role MyTeamRefRole `json:"role"`
}
MyTeamRef Compact team reference with the caller's role in it.
type MyTeamRefRole ¶
type MyTeamRefRole string
MyTeamRefRole The caller's role in the team.
const ( MyTeamRefRoleCaptain MyTeamRefRole = "captain" MyTeamRefRoleMember MyTeamRefRole = "member" )
Defines values for MyTeamRefRole.
type NotFoundApplicationProblemPlusJSONResponse ¶
type NotFoundApplicationProblemPlusJSONResponse Problem
type Problem ¶
type Problem struct {
// Detail Human-readable explanation for this occurrence.
Detail *string `json:"detail,omitempty"`
// Errors Field name to messages map (validation errors only).
Errors *map[string][]string `json:"errors,omitempty"`
// RequestId Correlates with server logs; include when reporting issues.
RequestId *string `json:"request_id,omitempty"`
// Status HTTP status code.
Status int `json:"status"`
// Title Short human-readable summary.
Title string `json:"title"`
// Type Error type URI (https://osctf.dev/errors/...).
Type string `json:"type"`
}
Problem RFC 9457 problem details.
type ProviderUnavailable ¶
type ProviderUnavailable = Problem
ProviderUnavailable RFC 9457 problem details.
type ProviderUnavailableApplicationProblemPlusJSONResponse ¶
type ProviderUnavailableApplicationProblemPlusJSONResponse Problem
type PublicUser ¶
type PublicUser struct {
// Id User ID.
Id openapi_types.UUID `json:"id"`
// Solves Challenges this user personally submitted the solve for.
Solves []Solve `json:"solves"`
// Team The user's team, or null.
Team *TeamRef `json:"team"`
// Username Handle.
Username string `json:"username"`
}
PublicUser Public profile.
type RateLimitedApplicationProblemPlusJSONResponse ¶
type RateLimitedApplicationProblemPlusJSONResponse struct {
Body Problem
Headers RateLimitedResponseHeaders
}
type RateLimitedResponseHeaders ¶
type RateLimitedResponseHeaders struct {
RetryAfter int
}
type RegenerateInviteCode200JSONResponse ¶
type RegenerateInviteCode200JSONResponse InviteCode
func (RegenerateInviteCode200JSONResponse) VisitRegenerateInviteCodeResponse ¶
func (response RegenerateInviteCode200JSONResponse) VisitRegenerateInviteCodeResponse(w http.ResponseWriter) error
type RegenerateInviteCode401ApplicationProblemPlusJSONResponse ¶
type RegenerateInviteCode401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (RegenerateInviteCode401ApplicationProblemPlusJSONResponse) VisitRegenerateInviteCodeResponse ¶
func (response RegenerateInviteCode401ApplicationProblemPlusJSONResponse) VisitRegenerateInviteCodeResponse(w http.ResponseWriter) error
type RegenerateInviteCode403ApplicationProblemPlusJSONResponse ¶
type RegenerateInviteCode403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (RegenerateInviteCode403ApplicationProblemPlusJSONResponse) VisitRegenerateInviteCodeResponse ¶
func (response RegenerateInviteCode403ApplicationProblemPlusJSONResponse) VisitRegenerateInviteCodeResponse(w http.ResponseWriter) error
type RegenerateInviteCode404ApplicationProblemPlusJSONResponse ¶
type RegenerateInviteCode404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (RegenerateInviteCode404ApplicationProblemPlusJSONResponse) VisitRegenerateInviteCodeResponse ¶
func (response RegenerateInviteCode404ApplicationProblemPlusJSONResponse) VisitRegenerateInviteCodeResponse(w http.ResponseWriter) error
type RegenerateInviteCodeRequestObject ¶
type RegenerateInviteCodeRequestObject struct {
Id IdPath `json:"id"`
}
type RegenerateInviteCodeResponseObject ¶
type RegenerateInviteCodeResponseObject interface {
VisitRegenerateInviteCodeResponse(w http.ResponseWriter) error
}
type Register201JSONResponse ¶
type Register201JSONResponse Me
func (Register201JSONResponse) VisitRegisterResponse ¶
func (response Register201JSONResponse) VisitRegisterResponse(w http.ResponseWriter) error
type Register403ApplicationProblemPlusJSONResponse ¶
type Register403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (Register403ApplicationProblemPlusJSONResponse) VisitRegisterResponse ¶
func (response Register403ApplicationProblemPlusJSONResponse) VisitRegisterResponse(w http.ResponseWriter) error
type Register409ApplicationProblemPlusJSONResponse ¶
type Register409ApplicationProblemPlusJSONResponse struct {
ConflictApplicationProblemPlusJSONResponse
}
func (Register409ApplicationProblemPlusJSONResponse) VisitRegisterResponse ¶
func (response Register409ApplicationProblemPlusJSONResponse) VisitRegisterResponse(w http.ResponseWriter) error
type Register422ApplicationProblemPlusJSONResponse ¶
type Register422ApplicationProblemPlusJSONResponse struct {
ValidationApplicationProblemPlusJSONResponse
}
func (Register422ApplicationProblemPlusJSONResponse) VisitRegisterResponse ¶
func (response Register422ApplicationProblemPlusJSONResponse) VisitRegisterResponse(w http.ResponseWriter) error
type Register429ApplicationProblemPlusJSONResponse ¶
type Register429ApplicationProblemPlusJSONResponse struct {
RateLimitedApplicationProblemPlusJSONResponse
}
func (Register429ApplicationProblemPlusJSONResponse) VisitRegisterResponse ¶
func (response Register429ApplicationProblemPlusJSONResponse) VisitRegisterResponse(w http.ResponseWriter) error
type RegisterJSONRequestBody ¶
type RegisterJSONRequestBody = RegisterRequest
RegisterJSONRequestBody defines body for Register for application/json ContentType.
type RegisterRequest ¶
type RegisterRequest struct {
// Email Login identifier (case-insensitive unique). Never verified in v0.1.
Email openapi_types.Email `json:"email"`
// Password 8-128 characters; no composition rules.
Password string `json:"password"`
// Username Unique handle (case-insensitive).
Username string `json:"username"`
}
RegisterRequest Account registration payload.
type RegisterRequestObject ¶
type RegisterRequestObject struct {
Body *RegisterJSONRequestBody
}
type RegisterResponseObject ¶
type RegisterResponseObject interface {
VisitRegisterResponse(w http.ResponseWriter) error
}
type RenameTeam200JSONResponse ¶
type RenameTeam200JSONResponse TeamMine
func (RenameTeam200JSONResponse) VisitRenameTeamResponse ¶
func (response RenameTeam200JSONResponse) VisitRenameTeamResponse(w http.ResponseWriter) error
type RenameTeam401ApplicationProblemPlusJSONResponse ¶
type RenameTeam401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (RenameTeam401ApplicationProblemPlusJSONResponse) VisitRenameTeamResponse ¶
func (response RenameTeam401ApplicationProblemPlusJSONResponse) VisitRenameTeamResponse(w http.ResponseWriter) error
type RenameTeam403ApplicationProblemPlusJSONResponse ¶
type RenameTeam403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (RenameTeam403ApplicationProblemPlusJSONResponse) VisitRenameTeamResponse ¶
func (response RenameTeam403ApplicationProblemPlusJSONResponse) VisitRenameTeamResponse(w http.ResponseWriter) error
type RenameTeam404ApplicationProblemPlusJSONResponse ¶
type RenameTeam404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (RenameTeam404ApplicationProblemPlusJSONResponse) VisitRenameTeamResponse ¶
func (response RenameTeam404ApplicationProblemPlusJSONResponse) VisitRenameTeamResponse(w http.ResponseWriter) error
type RenameTeam409ApplicationProblemPlusJSONResponse ¶
type RenameTeam409ApplicationProblemPlusJSONResponse struct {
ConflictApplicationProblemPlusJSONResponse
}
func (RenameTeam409ApplicationProblemPlusJSONResponse) VisitRenameTeamResponse ¶
func (response RenameTeam409ApplicationProblemPlusJSONResponse) VisitRenameTeamResponse(w http.ResponseWriter) error
type RenameTeam422ApplicationProblemPlusJSONResponse ¶
type RenameTeam422ApplicationProblemPlusJSONResponse struct {
ValidationApplicationProblemPlusJSONResponse
}
func (RenameTeam422ApplicationProblemPlusJSONResponse) VisitRenameTeamResponse ¶
func (response RenameTeam422ApplicationProblemPlusJSONResponse) VisitRenameTeamResponse(w http.ResponseWriter) error
type RenameTeamJSONRequestBody ¶
type RenameTeamJSONRequestBody = TeamRenameRequest
RenameTeamJSONRequestBody defines body for RenameTeam for application/json ContentType.
type RenameTeamRequestObject ¶
type RenameTeamRequestObject struct {
Id IdPath `json:"id"`
Body *RenameTeamJSONRequestBody
}
type RenameTeamResponseObject ¶
type RenameTeamResponseObject interface {
VisitRenameTeamResponse(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 RevokeToken204Response ¶
type RevokeToken204Response struct {
}
func (RevokeToken204Response) VisitRevokeTokenResponse ¶
func (response RevokeToken204Response) VisitRevokeTokenResponse(w http.ResponseWriter) error
type RevokeToken401ApplicationProblemPlusJSONResponse ¶
type RevokeToken401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (RevokeToken401ApplicationProblemPlusJSONResponse) VisitRevokeTokenResponse ¶
func (response RevokeToken401ApplicationProblemPlusJSONResponse) VisitRevokeTokenResponse(w http.ResponseWriter) error
type RevokeToken403ApplicationProblemPlusJSONResponse ¶
type RevokeToken403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (RevokeToken403ApplicationProblemPlusJSONResponse) VisitRevokeTokenResponse ¶
func (response RevokeToken403ApplicationProblemPlusJSONResponse) VisitRevokeTokenResponse(w http.ResponseWriter) error
type RevokeToken404ApplicationProblemPlusJSONResponse ¶
type RevokeToken404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (RevokeToken404ApplicationProblemPlusJSONResponse) VisitRevokeTokenResponse ¶
func (response RevokeToken404ApplicationProblemPlusJSONResponse) VisitRevokeTokenResponse(w http.ResponseWriter) error
type RevokeTokenRequestObject ¶
type RevokeTokenRequestObject struct {
Id IdPath `json:"id"`
}
type RevokeTokenResponseObject ¶
type RevokeTokenResponseObject interface {
VisitRevokeTokenResponse(w http.ResponseWriter) error
}
type RuntimeUnavailable ¶
type RuntimeUnavailable = Problem
RuntimeUnavailable RFC 9457 problem details.
type RuntimeUnavailableApplicationProblemPlusJSONResponse ¶
type RuntimeUnavailableApplicationProblemPlusJSONResponse Problem
type Scoreboard ¶
type Scoreboard struct {
// Frozen Whether the public board is frozen.
Frozen bool `json:"frozen"`
// GeneratedAt Snapshot time.
GeneratedAt time.Time `json:"generated_at"`
// Standings Ranked teams; banned teams trail unranked.
Standings []ScoreboardEntry `json:"standings"`
}
Scoreboard Standings snapshot.
type ScoreboardEntry ¶
type ScoreboardEntry struct {
// Banned Rendered struck-through when true.
Banned bool `json:"banned"`
// LastSolveAt Time of the last score-changing solve; null when scoreless.
LastSolveAt *time.Time `json:"last_solve_at"`
// Name Team name.
Name string `json:"name"`
// Points Total points.
Points int `json:"points"`
// Rank Unique rank; null for banned teams.
Rank *int `json:"rank"`
// Solves Solve count.
Solves int `json:"solves"`
// TeamId Team ID.
TeamId openapi_types.UUID `json:"team_id"`
}
ScoreboardEntry One scoreboard row.
type ScoringMode ¶
type ScoringMode string
ScoringMode static = fixed value; dynamic = decays with solve count.
const ( ScoringModeDynamic ScoringMode = "dynamic" ScoringModeStatic ScoringMode = "static" )
Defines values for ScoringMode.
type ServerInterface ¶
type ServerInterface interface {
// List all challenges
// (GET /admin/challenges)
AdminListChallenges(w http.ResponseWriter, r *http.Request, params AdminListChallengesParams)
// Create a challenge
// (POST /admin/challenges)
AdminCreateChallenge(w http.ResponseWriter, r *http.Request)
// Delete a challenge
// (DELETE /admin/challenges/{id})
AdminDeleteChallenge(w http.ResponseWriter, r *http.Request, id IdPath, params AdminDeleteChallengeParams)
// Challenge detail (admin)
// (GET /admin/challenges/{id})
AdminGetChallenge(w http.ResponseWriter, r *http.Request, id IdPath)
// Update a challenge
// (PATCH /admin/challenges/{id})
AdminUpdateChallenge(w http.ResponseWriter, r *http.Request, id IdPath)
// Upload an attachment
// (POST /admin/challenges/{id}/attachments)
AdminUploadAttachment(w http.ResponseWriter, r *http.Request, id IdPath)
// Delete an attachment
// (DELETE /admin/challenges/{id}/attachments/{aid})
AdminDeleteAttachment(w http.ResponseWriter, r *http.Request, id IdPath, aid openapi_types.UUID)
// Destroy the instance
// (DELETE /admin/challenges/{id}/instance)
AdminDestroyInstance(w http.ResponseWriter, r *http.Request, id IdPath)
// Instance status
// (GET /admin/challenges/{id}/instance)
AdminGetInstance(w http.ResponseWriter, r *http.Request, id IdPath)
// Deploy the challenge instance
// (POST /admin/challenges/{id}/instance)
AdminDeployInstance(w http.ResponseWriter, r *http.Request, id IdPath)
// Instance logs
// (GET /admin/challenges/{id}/instance/logs)
AdminGetInstanceLogs(w http.ResponseWriter, r *http.Request, id IdPath, params AdminGetInstanceLogsParams)
// Restart the instance
// (POST /admin/challenges/{id}/instance/restart)
AdminRestartInstance(w http.ResponseWriter, r *http.Request, id IdPath)
// Event settings
// (GET /admin/event)
AdminGetEvent(w http.ResponseWriter, r *http.Request)
// Update event settings
// (PATCH /admin/event)
AdminUpdateEvent(w http.ResponseWriter, r *http.Request)
// List all instances
// (GET /admin/instances)
AdminListInstances(w http.ResponseWriter, r *http.Request)
// Destroy any instance
// (DELETE /admin/instances/{id})
AdminDestroyInstanceById(w http.ResponseWriter, r *http.Request, id IdPath)
// Plugin status
// (GET /admin/plugins)
AdminListPlugins(w http.ResponseWriter, r *http.Request)
// Hot-reload one plugin
// (POST /admin/plugins/{name}/reload)
AdminReloadPlugin(w http.ResponseWriter, r *http.Request, name string)
// Dashboard stats
// (GET /admin/stats)
AdminGetStats(w http.ResponseWriter, r *http.Request)
// Submission log
// (GET /admin/submissions)
AdminListSubmissions(w http.ResponseWriter, r *http.Request, params AdminListSubmissionsParams)
// List teams (admin)
// (GET /admin/teams)
AdminListTeams(w http.ResponseWriter, r *http.Request, params AdminListTeamsParams)
// Update a team
// (PATCH /admin/teams/{id})
AdminUpdateTeam(w http.ResponseWriter, r *http.Request, id IdPath)
// List all API tokens
// (GET /admin/tokens)
AdminListTokens(w http.ResponseWriter, r *http.Request, params AdminListTokensParams)
// Revoke any user's token
// (DELETE /admin/tokens/{id})
AdminRevokeToken(w http.ResponseWriter, r *http.Request, id IdPath)
// List users
// (GET /admin/users)
AdminListUsers(w http.ResponseWriter, r *http.Request, params AdminListUsersParams)
// Update a user
// (PATCH /admin/users/{id})
AdminUpdateUser(w http.ResponseWriter, r *http.Request, id IdPath)
// Reset a user's password
// (POST /admin/users/{id}/password)
AdminResetPassword(w http.ResponseWriter, r *http.Request, id IdPath)
// Log in
// (POST /auth/login)
Login(w http.ResponseWriter, r *http.Request)
// Log out
// (POST /auth/logout)
Logout(w http.ResponseWriter, r *http.Request)
// Current account
// (GET /auth/me)
GetMe(w http.ResponseWriter, r *http.Request)
// Change password
// (PATCH /auth/me/password)
ChangePassword(w http.ResponseWriter, r *http.Request)
// List available login providers
// (GET /auth/providers)
ListAuthProviders(w http.ResponseWriter, r *http.Request)
// Register a new account
// (POST /auth/register)
Register(w http.ResponseWriter, r *http.Request)
// Complete an external login
// (GET /auth/{provider}/callback)
CompleteProviderLogin(w http.ResponseWriter, r *http.Request, provider ProviderPath)
// Start an external login
// (GET /auth/{provider}/login)
BeginProviderLogin(w http.ResponseWriter, r *http.Request, provider ProviderPath)
// Challenge board
// (GET /challenges)
ListChallenges(w http.ResponseWriter, r *http.Request)
// Challenge detail
// (GET /challenges/{slug})
GetChallenge(w http.ResponseWriter, r *http.Request, slug SlugPath)
// Download an attachment
// (GET /challenges/{slug}/attachments/{id})
DownloadAttachment(w http.ResponseWriter, r *http.Request, slug SlugPath, id IdPath)
// Stop this team's instance
// (DELETE /challenges/{slug}/instance)
StopInstance(w http.ResponseWriter, r *http.Request, slug SlugPath)
// Start this team's instance
// (POST /challenges/{slug}/instance)
StartInstance(w http.ResponseWriter, r *http.Request, slug SlugPath)
// Extend this team's instance TTL
// (POST /challenges/{slug}/instance/extend)
ExtendInstance(w http.ResponseWriter, r *http.Request, slug SlugPath)
// Submit a flag
// (POST /challenges/{slug}/submit)
SubmitFlag(w http.ResponseWriter, r *http.Request, slug SlugPath)
// Event info
// (GET /event)
GetEvent(w http.ResponseWriter, r *http.Request)
// Standings
// (GET /scoreboard)
GetScoreboard(w http.ResponseWriter, r *http.Request)
// List teams
// (GET /teams)
ListTeams(w http.ResponseWriter, r *http.Request)
// Create a team
// (POST /teams)
CreateTeam(w http.ResponseWriter, r *http.Request)
// Join a team by invite code
// (POST /teams/join)
JoinTeam(w http.ResponseWriter, r *http.Request)
// Leave my team
// (POST /teams/leave)
LeaveTeam(w http.ResponseWriter, r *http.Request)
// Public team page
// (GET /teams/{id})
GetTeam(w http.ResponseWriter, r *http.Request, id IdPath)
// Rename my team (captain)
// (PATCH /teams/{id})
RenameTeam(w http.ResponseWriter, r *http.Request, id IdPath)
// Regenerate the invite code (captain)
// (POST /teams/{id}/invite-code)
RegenerateInviteCode(w http.ResponseWriter, r *http.Request, id IdPath)
// List the caller's API tokens
// (GET /tokens)
ListTokens(w http.ResponseWriter, r *http.Request)
// Create an API token
// (POST /tokens)
CreateToken(w http.ResponseWriter, r *http.Request)
// Revoke one of the caller's tokens
// (DELETE /tokens/{id})
RevokeToken(w http.ResponseWriter, r *http.Request, id IdPath)
// Public user profile
// (GET /users/{id})
GetUser(w http.ResponseWriter, r *http.Request, id IdPath)
}
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) AdminCreateChallenge ¶
func (siw *ServerInterfaceWrapper) AdminCreateChallenge(w http.ResponseWriter, r *http.Request)
AdminCreateChallenge operation middleware
func (*ServerInterfaceWrapper) AdminDeleteAttachment ¶
func (siw *ServerInterfaceWrapper) AdminDeleteAttachment(w http.ResponseWriter, r *http.Request)
AdminDeleteAttachment operation middleware
func (*ServerInterfaceWrapper) AdminDeleteChallenge ¶
func (siw *ServerInterfaceWrapper) AdminDeleteChallenge(w http.ResponseWriter, r *http.Request)
AdminDeleteChallenge operation middleware
func (*ServerInterfaceWrapper) AdminDeployInstance ¶
func (siw *ServerInterfaceWrapper) AdminDeployInstance(w http.ResponseWriter, r *http.Request)
AdminDeployInstance operation middleware
func (*ServerInterfaceWrapper) AdminDestroyInstance ¶
func (siw *ServerInterfaceWrapper) AdminDestroyInstance(w http.ResponseWriter, r *http.Request)
AdminDestroyInstance operation middleware
func (*ServerInterfaceWrapper) AdminDestroyInstanceById ¶
func (siw *ServerInterfaceWrapper) AdminDestroyInstanceById(w http.ResponseWriter, r *http.Request)
AdminDestroyInstanceById operation middleware
func (*ServerInterfaceWrapper) AdminGetChallenge ¶
func (siw *ServerInterfaceWrapper) AdminGetChallenge(w http.ResponseWriter, r *http.Request)
AdminGetChallenge operation middleware
func (*ServerInterfaceWrapper) AdminGetEvent ¶
func (siw *ServerInterfaceWrapper) AdminGetEvent(w http.ResponseWriter, r *http.Request)
AdminGetEvent operation middleware
func (*ServerInterfaceWrapper) AdminGetInstance ¶
func (siw *ServerInterfaceWrapper) AdminGetInstance(w http.ResponseWriter, r *http.Request)
AdminGetInstance operation middleware
func (*ServerInterfaceWrapper) AdminGetInstanceLogs ¶
func (siw *ServerInterfaceWrapper) AdminGetInstanceLogs(w http.ResponseWriter, r *http.Request)
AdminGetInstanceLogs operation middleware
func (*ServerInterfaceWrapper) AdminGetStats ¶
func (siw *ServerInterfaceWrapper) AdminGetStats(w http.ResponseWriter, r *http.Request)
AdminGetStats operation middleware
func (*ServerInterfaceWrapper) AdminListChallenges ¶
func (siw *ServerInterfaceWrapper) AdminListChallenges(w http.ResponseWriter, r *http.Request)
AdminListChallenges operation middleware
func (*ServerInterfaceWrapper) AdminListInstances ¶
func (siw *ServerInterfaceWrapper) AdminListInstances(w http.ResponseWriter, r *http.Request)
AdminListInstances operation middleware
func (*ServerInterfaceWrapper) AdminListPlugins ¶
func (siw *ServerInterfaceWrapper) AdminListPlugins(w http.ResponseWriter, r *http.Request)
AdminListPlugins operation middleware
func (*ServerInterfaceWrapper) AdminListSubmissions ¶
func (siw *ServerInterfaceWrapper) AdminListSubmissions(w http.ResponseWriter, r *http.Request)
AdminListSubmissions operation middleware
func (*ServerInterfaceWrapper) AdminListTeams ¶
func (siw *ServerInterfaceWrapper) AdminListTeams(w http.ResponseWriter, r *http.Request)
AdminListTeams operation middleware
func (*ServerInterfaceWrapper) AdminListTokens ¶
func (siw *ServerInterfaceWrapper) AdminListTokens(w http.ResponseWriter, r *http.Request)
AdminListTokens operation middleware
func (*ServerInterfaceWrapper) AdminListUsers ¶
func (siw *ServerInterfaceWrapper) AdminListUsers(w http.ResponseWriter, r *http.Request)
AdminListUsers operation middleware
func (*ServerInterfaceWrapper) AdminReloadPlugin ¶
func (siw *ServerInterfaceWrapper) AdminReloadPlugin(w http.ResponseWriter, r *http.Request)
AdminReloadPlugin operation middleware
func (*ServerInterfaceWrapper) AdminResetPassword ¶
func (siw *ServerInterfaceWrapper) AdminResetPassword(w http.ResponseWriter, r *http.Request)
AdminResetPassword operation middleware
func (*ServerInterfaceWrapper) AdminRestartInstance ¶
func (siw *ServerInterfaceWrapper) AdminRestartInstance(w http.ResponseWriter, r *http.Request)
AdminRestartInstance operation middleware
func (*ServerInterfaceWrapper) AdminRevokeToken ¶
func (siw *ServerInterfaceWrapper) AdminRevokeToken(w http.ResponseWriter, r *http.Request)
AdminRevokeToken operation middleware
func (*ServerInterfaceWrapper) AdminUpdateChallenge ¶
func (siw *ServerInterfaceWrapper) AdminUpdateChallenge(w http.ResponseWriter, r *http.Request)
AdminUpdateChallenge operation middleware
func (*ServerInterfaceWrapper) AdminUpdateEvent ¶
func (siw *ServerInterfaceWrapper) AdminUpdateEvent(w http.ResponseWriter, r *http.Request)
AdminUpdateEvent operation middleware
func (*ServerInterfaceWrapper) AdminUpdateTeam ¶
func (siw *ServerInterfaceWrapper) AdminUpdateTeam(w http.ResponseWriter, r *http.Request)
AdminUpdateTeam operation middleware
func (*ServerInterfaceWrapper) AdminUpdateUser ¶
func (siw *ServerInterfaceWrapper) AdminUpdateUser(w http.ResponseWriter, r *http.Request)
AdminUpdateUser operation middleware
func (*ServerInterfaceWrapper) AdminUploadAttachment ¶
func (siw *ServerInterfaceWrapper) AdminUploadAttachment(w http.ResponseWriter, r *http.Request)
AdminUploadAttachment operation middleware
func (*ServerInterfaceWrapper) BeginProviderLogin ¶
func (siw *ServerInterfaceWrapper) BeginProviderLogin(w http.ResponseWriter, r *http.Request)
BeginProviderLogin operation middleware
func (*ServerInterfaceWrapper) ChangePassword ¶
func (siw *ServerInterfaceWrapper) ChangePassword(w http.ResponseWriter, r *http.Request)
ChangePassword operation middleware
func (*ServerInterfaceWrapper) CompleteProviderLogin ¶
func (siw *ServerInterfaceWrapper) CompleteProviderLogin(w http.ResponseWriter, r *http.Request)
CompleteProviderLogin operation middleware
func (*ServerInterfaceWrapper) CreateTeam ¶
func (siw *ServerInterfaceWrapper) CreateTeam(w http.ResponseWriter, r *http.Request)
CreateTeam operation middleware
func (*ServerInterfaceWrapper) CreateToken ¶
func (siw *ServerInterfaceWrapper) CreateToken(w http.ResponseWriter, r *http.Request)
CreateToken operation middleware
func (*ServerInterfaceWrapper) DownloadAttachment ¶
func (siw *ServerInterfaceWrapper) DownloadAttachment(w http.ResponseWriter, r *http.Request)
DownloadAttachment operation middleware
func (*ServerInterfaceWrapper) ExtendInstance ¶
func (siw *ServerInterfaceWrapper) ExtendInstance(w http.ResponseWriter, r *http.Request)
ExtendInstance operation middleware
func (*ServerInterfaceWrapper) GetChallenge ¶
func (siw *ServerInterfaceWrapper) GetChallenge(w http.ResponseWriter, r *http.Request)
GetChallenge operation middleware
func (*ServerInterfaceWrapper) GetEvent ¶
func (siw *ServerInterfaceWrapper) GetEvent(w http.ResponseWriter, r *http.Request)
GetEvent operation middleware
func (*ServerInterfaceWrapper) GetMe ¶
func (siw *ServerInterfaceWrapper) GetMe(w http.ResponseWriter, r *http.Request)
GetMe operation middleware
func (*ServerInterfaceWrapper) GetScoreboard ¶
func (siw *ServerInterfaceWrapper) GetScoreboard(w http.ResponseWriter, r *http.Request)
GetScoreboard operation middleware
func (*ServerInterfaceWrapper) GetTeam ¶
func (siw *ServerInterfaceWrapper) GetTeam(w http.ResponseWriter, r *http.Request)
GetTeam operation middleware
func (*ServerInterfaceWrapper) GetUser ¶
func (siw *ServerInterfaceWrapper) GetUser(w http.ResponseWriter, r *http.Request)
GetUser operation middleware
func (*ServerInterfaceWrapper) JoinTeam ¶
func (siw *ServerInterfaceWrapper) JoinTeam(w http.ResponseWriter, r *http.Request)
JoinTeam operation middleware
func (*ServerInterfaceWrapper) LeaveTeam ¶
func (siw *ServerInterfaceWrapper) LeaveTeam(w http.ResponseWriter, r *http.Request)
LeaveTeam operation middleware
func (*ServerInterfaceWrapper) ListAuthProviders ¶
func (siw *ServerInterfaceWrapper) ListAuthProviders(w http.ResponseWriter, r *http.Request)
ListAuthProviders operation middleware
func (*ServerInterfaceWrapper) ListChallenges ¶
func (siw *ServerInterfaceWrapper) ListChallenges(w http.ResponseWriter, r *http.Request)
ListChallenges operation middleware
func (*ServerInterfaceWrapper) ListTeams ¶
func (siw *ServerInterfaceWrapper) ListTeams(w http.ResponseWriter, r *http.Request)
ListTeams operation middleware
func (*ServerInterfaceWrapper) ListTokens ¶
func (siw *ServerInterfaceWrapper) ListTokens(w http.ResponseWriter, r *http.Request)
ListTokens operation middleware
func (*ServerInterfaceWrapper) Login ¶
func (siw *ServerInterfaceWrapper) Login(w http.ResponseWriter, r *http.Request)
Login operation middleware
func (*ServerInterfaceWrapper) Logout ¶
func (siw *ServerInterfaceWrapper) Logout(w http.ResponseWriter, r *http.Request)
Logout operation middleware
func (*ServerInterfaceWrapper) RegenerateInviteCode ¶
func (siw *ServerInterfaceWrapper) RegenerateInviteCode(w http.ResponseWriter, r *http.Request)
RegenerateInviteCode operation middleware
func (*ServerInterfaceWrapper) Register ¶
func (siw *ServerInterfaceWrapper) Register(w http.ResponseWriter, r *http.Request)
Register operation middleware
func (*ServerInterfaceWrapper) RenameTeam ¶
func (siw *ServerInterfaceWrapper) RenameTeam(w http.ResponseWriter, r *http.Request)
RenameTeam operation middleware
func (*ServerInterfaceWrapper) RevokeToken ¶
func (siw *ServerInterfaceWrapper) RevokeToken(w http.ResponseWriter, r *http.Request)
RevokeToken operation middleware
func (*ServerInterfaceWrapper) StartInstance ¶
func (siw *ServerInterfaceWrapper) StartInstance(w http.ResponseWriter, r *http.Request)
StartInstance operation middleware
func (*ServerInterfaceWrapper) StopInstance ¶
func (siw *ServerInterfaceWrapper) StopInstance(w http.ResponseWriter, r *http.Request)
StopInstance operation middleware
func (*ServerInterfaceWrapper) SubmitFlag ¶
func (siw *ServerInterfaceWrapper) SubmitFlag(w http.ResponseWriter, r *http.Request)
SubmitFlag operation middleware
type Solve ¶
type Solve struct {
// Category Challenge category.
Category Category `json:"category"`
// ChallengeId Challenge ID.
ChallengeId openapi_types.UUID `json:"challenge_id"`
// Points Current value of the challenge.
Points int `json:"points"`
// Slug Challenge slug.
Slug string `json:"slug"`
// SolvedAt When the solve landed.
SolvedAt time.Time `json:"solved_at"`
// Title Challenge title.
Title string `json:"title"`
// Username Solver's username (present in team solve lists).
Username *string `json:"username,omitempty"`
}
Solve A scoring solve.
type StartInstance200JSONResponse ¶
type StartInstance200JSONResponse TeamInstance
func (StartInstance200JSONResponse) VisitStartInstanceResponse ¶
func (response StartInstance200JSONResponse) VisitStartInstanceResponse(w http.ResponseWriter) error
type StartInstance201JSONResponse ¶
type StartInstance201JSONResponse TeamInstance
func (StartInstance201JSONResponse) VisitStartInstanceResponse ¶
func (response StartInstance201JSONResponse) VisitStartInstanceResponse(w http.ResponseWriter) error
type StartInstance401ApplicationProblemPlusJSONResponse ¶
type StartInstance401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (StartInstance401ApplicationProblemPlusJSONResponse) VisitStartInstanceResponse ¶
func (response StartInstance401ApplicationProblemPlusJSONResponse) VisitStartInstanceResponse(w http.ResponseWriter) error
type StartInstance403ApplicationProblemPlusJSONResponse ¶
type StartInstance403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (StartInstance403ApplicationProblemPlusJSONResponse) VisitStartInstanceResponse ¶
func (response StartInstance403ApplicationProblemPlusJSONResponse) VisitStartInstanceResponse(w http.ResponseWriter) error
type StartInstance404ApplicationProblemPlusJSONResponse ¶
type StartInstance404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (StartInstance404ApplicationProblemPlusJSONResponse) VisitStartInstanceResponse ¶
func (response StartInstance404ApplicationProblemPlusJSONResponse) VisitStartInstanceResponse(w http.ResponseWriter) error
type StartInstance409ApplicationProblemPlusJSONResponse ¶
type StartInstance409ApplicationProblemPlusJSONResponse struct {
ConflictApplicationProblemPlusJSONResponse
}
func (StartInstance409ApplicationProblemPlusJSONResponse) VisitStartInstanceResponse ¶
func (response StartInstance409ApplicationProblemPlusJSONResponse) VisitStartInstanceResponse(w http.ResponseWriter) error
type StartInstance503ApplicationProblemPlusJSONResponse ¶
type StartInstance503ApplicationProblemPlusJSONResponse struct {
}
func (StartInstance503ApplicationProblemPlusJSONResponse) VisitStartInstanceResponse ¶
func (response StartInstance503ApplicationProblemPlusJSONResponse) VisitStartInstanceResponse(w http.ResponseWriter) error
type StartInstanceRequestObject ¶
type StartInstanceRequestObject struct {
Slug SlugPath `json:"slug"`
}
type StartInstanceResponseObject ¶
type StartInstanceResponseObject interface {
VisitStartInstanceResponse(w http.ResponseWriter) error
}
type StopInstance204Response ¶
type StopInstance204Response struct {
}
func (StopInstance204Response) VisitStopInstanceResponse ¶
func (response StopInstance204Response) VisitStopInstanceResponse(w http.ResponseWriter) error
type StopInstance401ApplicationProblemPlusJSONResponse ¶
type StopInstance401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (StopInstance401ApplicationProblemPlusJSONResponse) VisitStopInstanceResponse ¶
func (response StopInstance401ApplicationProblemPlusJSONResponse) VisitStopInstanceResponse(w http.ResponseWriter) error
type StopInstance403ApplicationProblemPlusJSONResponse ¶
type StopInstance403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (StopInstance403ApplicationProblemPlusJSONResponse) VisitStopInstanceResponse ¶
func (response StopInstance403ApplicationProblemPlusJSONResponse) VisitStopInstanceResponse(w http.ResponseWriter) error
type StopInstance404ApplicationProblemPlusJSONResponse ¶
type StopInstance404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (StopInstance404ApplicationProblemPlusJSONResponse) VisitStopInstanceResponse ¶
func (response StopInstance404ApplicationProblemPlusJSONResponse) VisitStopInstanceResponse(w http.ResponseWriter) error
type StopInstance503ApplicationProblemPlusJSONResponse ¶
type StopInstance503ApplicationProblemPlusJSONResponse struct {
}
func (StopInstance503ApplicationProblemPlusJSONResponse) VisitStopInstanceResponse ¶
func (response StopInstance503ApplicationProblemPlusJSONResponse) VisitStopInstanceResponse(w http.ResponseWriter) error
type StopInstanceRequestObject ¶
type StopInstanceRequestObject struct {
Slug SlugPath `json:"slug"`
}
type StopInstanceResponseObject ¶
type StopInstanceResponseObject interface {
VisitStopInstanceResponse(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 {
// List all challenges
// (GET /admin/challenges)
AdminListChallenges(ctx context.Context, request AdminListChallengesRequestObject) (AdminListChallengesResponseObject, error)
// Create a challenge
// (POST /admin/challenges)
AdminCreateChallenge(ctx context.Context, request AdminCreateChallengeRequestObject) (AdminCreateChallengeResponseObject, error)
// Delete a challenge
// (DELETE /admin/challenges/{id})
AdminDeleteChallenge(ctx context.Context, request AdminDeleteChallengeRequestObject) (AdminDeleteChallengeResponseObject, error)
// Challenge detail (admin)
// (GET /admin/challenges/{id})
AdminGetChallenge(ctx context.Context, request AdminGetChallengeRequestObject) (AdminGetChallengeResponseObject, error)
// Update a challenge
// (PATCH /admin/challenges/{id})
AdminUpdateChallenge(ctx context.Context, request AdminUpdateChallengeRequestObject) (AdminUpdateChallengeResponseObject, error)
// Upload an attachment
// (POST /admin/challenges/{id}/attachments)
AdminUploadAttachment(ctx context.Context, request AdminUploadAttachmentRequestObject) (AdminUploadAttachmentResponseObject, error)
// Delete an attachment
// (DELETE /admin/challenges/{id}/attachments/{aid})
AdminDeleteAttachment(ctx context.Context, request AdminDeleteAttachmentRequestObject) (AdminDeleteAttachmentResponseObject, error)
// Destroy the instance
// (DELETE /admin/challenges/{id}/instance)
AdminDestroyInstance(ctx context.Context, request AdminDestroyInstanceRequestObject) (AdminDestroyInstanceResponseObject, error)
// Instance status
// (GET /admin/challenges/{id}/instance)
AdminGetInstance(ctx context.Context, request AdminGetInstanceRequestObject) (AdminGetInstanceResponseObject, error)
// Deploy the challenge instance
// (POST /admin/challenges/{id}/instance)
AdminDeployInstance(ctx context.Context, request AdminDeployInstanceRequestObject) (AdminDeployInstanceResponseObject, error)
// Instance logs
// (GET /admin/challenges/{id}/instance/logs)
AdminGetInstanceLogs(ctx context.Context, request AdminGetInstanceLogsRequestObject) (AdminGetInstanceLogsResponseObject, error)
// Restart the instance
// (POST /admin/challenges/{id}/instance/restart)
AdminRestartInstance(ctx context.Context, request AdminRestartInstanceRequestObject) (AdminRestartInstanceResponseObject, error)
// Event settings
// (GET /admin/event)
AdminGetEvent(ctx context.Context, request AdminGetEventRequestObject) (AdminGetEventResponseObject, error)
// Update event settings
// (PATCH /admin/event)
AdminUpdateEvent(ctx context.Context, request AdminUpdateEventRequestObject) (AdminUpdateEventResponseObject, error)
// List all instances
// (GET /admin/instances)
AdminListInstances(ctx context.Context, request AdminListInstancesRequestObject) (AdminListInstancesResponseObject, error)
// Destroy any instance
// (DELETE /admin/instances/{id})
AdminDestroyInstanceById(ctx context.Context, request AdminDestroyInstanceByIdRequestObject) (AdminDestroyInstanceByIdResponseObject, error)
// Plugin status
// (GET /admin/plugins)
AdminListPlugins(ctx context.Context, request AdminListPluginsRequestObject) (AdminListPluginsResponseObject, error)
// Hot-reload one plugin
// (POST /admin/plugins/{name}/reload)
AdminReloadPlugin(ctx context.Context, request AdminReloadPluginRequestObject) (AdminReloadPluginResponseObject, error)
// Dashboard stats
// (GET /admin/stats)
AdminGetStats(ctx context.Context, request AdminGetStatsRequestObject) (AdminGetStatsResponseObject, error)
// Submission log
// (GET /admin/submissions)
AdminListSubmissions(ctx context.Context, request AdminListSubmissionsRequestObject) (AdminListSubmissionsResponseObject, error)
// List teams (admin)
// (GET /admin/teams)
AdminListTeams(ctx context.Context, request AdminListTeamsRequestObject) (AdminListTeamsResponseObject, error)
// Update a team
// (PATCH /admin/teams/{id})
AdminUpdateTeam(ctx context.Context, request AdminUpdateTeamRequestObject) (AdminUpdateTeamResponseObject, error)
// List all API tokens
// (GET /admin/tokens)
AdminListTokens(ctx context.Context, request AdminListTokensRequestObject) (AdminListTokensResponseObject, error)
// Revoke any user's token
// (DELETE /admin/tokens/{id})
AdminRevokeToken(ctx context.Context, request AdminRevokeTokenRequestObject) (AdminRevokeTokenResponseObject, error)
// List users
// (GET /admin/users)
AdminListUsers(ctx context.Context, request AdminListUsersRequestObject) (AdminListUsersResponseObject, error)
// Update a user
// (PATCH /admin/users/{id})
AdminUpdateUser(ctx context.Context, request AdminUpdateUserRequestObject) (AdminUpdateUserResponseObject, error)
// Reset a user's password
// (POST /admin/users/{id}/password)
AdminResetPassword(ctx context.Context, request AdminResetPasswordRequestObject) (AdminResetPasswordResponseObject, error)
// Log in
// (POST /auth/login)
Login(ctx context.Context, request LoginRequestObject) (LoginResponseObject, error)
// Log out
// (POST /auth/logout)
Logout(ctx context.Context, request LogoutRequestObject) (LogoutResponseObject, error)
// Current account
// (GET /auth/me)
GetMe(ctx context.Context, request GetMeRequestObject) (GetMeResponseObject, error)
// Change password
// (PATCH /auth/me/password)
ChangePassword(ctx context.Context, request ChangePasswordRequestObject) (ChangePasswordResponseObject, error)
// List available login providers
// (GET /auth/providers)
ListAuthProviders(ctx context.Context, request ListAuthProvidersRequestObject) (ListAuthProvidersResponseObject, error)
// Register a new account
// (POST /auth/register)
Register(ctx context.Context, request RegisterRequestObject) (RegisterResponseObject, error)
// Complete an external login
// (GET /auth/{provider}/callback)
CompleteProviderLogin(ctx context.Context, request CompleteProviderLoginRequestObject) (CompleteProviderLoginResponseObject, error)
// Start an external login
// (GET /auth/{provider}/login)
BeginProviderLogin(ctx context.Context, request BeginProviderLoginRequestObject) (BeginProviderLoginResponseObject, error)
// Challenge board
// (GET /challenges)
ListChallenges(ctx context.Context, request ListChallengesRequestObject) (ListChallengesResponseObject, error)
// Challenge detail
// (GET /challenges/{slug})
GetChallenge(ctx context.Context, request GetChallengeRequestObject) (GetChallengeResponseObject, error)
// Download an attachment
// (GET /challenges/{slug}/attachments/{id})
DownloadAttachment(ctx context.Context, request DownloadAttachmentRequestObject) (DownloadAttachmentResponseObject, error)
// Stop this team's instance
// (DELETE /challenges/{slug}/instance)
StopInstance(ctx context.Context, request StopInstanceRequestObject) (StopInstanceResponseObject, error)
// Start this team's instance
// (POST /challenges/{slug}/instance)
StartInstance(ctx context.Context, request StartInstanceRequestObject) (StartInstanceResponseObject, error)
// Extend this team's instance TTL
// (POST /challenges/{slug}/instance/extend)
ExtendInstance(ctx context.Context, request ExtendInstanceRequestObject) (ExtendInstanceResponseObject, error)
// Submit a flag
// (POST /challenges/{slug}/submit)
SubmitFlag(ctx context.Context, request SubmitFlagRequestObject) (SubmitFlagResponseObject, error)
// Event info
// (GET /event)
GetEvent(ctx context.Context, request GetEventRequestObject) (GetEventResponseObject, error)
// Standings
// (GET /scoreboard)
GetScoreboard(ctx context.Context, request GetScoreboardRequestObject) (GetScoreboardResponseObject, error)
// List teams
// (GET /teams)
ListTeams(ctx context.Context, request ListTeamsRequestObject) (ListTeamsResponseObject, error)
// Create a team
// (POST /teams)
CreateTeam(ctx context.Context, request CreateTeamRequestObject) (CreateTeamResponseObject, error)
// Join a team by invite code
// (POST /teams/join)
JoinTeam(ctx context.Context, request JoinTeamRequestObject) (JoinTeamResponseObject, error)
// Leave my team
// (POST /teams/leave)
LeaveTeam(ctx context.Context, request LeaveTeamRequestObject) (LeaveTeamResponseObject, error)
// Public team page
// (GET /teams/{id})
GetTeam(ctx context.Context, request GetTeamRequestObject) (GetTeamResponseObject, error)
// Rename my team (captain)
// (PATCH /teams/{id})
RenameTeam(ctx context.Context, request RenameTeamRequestObject) (RenameTeamResponseObject, error)
// Regenerate the invite code (captain)
// (POST /teams/{id}/invite-code)
RegenerateInviteCode(ctx context.Context, request RegenerateInviteCodeRequestObject) (RegenerateInviteCodeResponseObject, error)
// List the caller's API tokens
// (GET /tokens)
ListTokens(ctx context.Context, request ListTokensRequestObject) (ListTokensResponseObject, error)
// Create an API token
// (POST /tokens)
CreateToken(ctx context.Context, request CreateTokenRequestObject) (CreateTokenResponseObject, error)
// Revoke one of the caller's tokens
// (DELETE /tokens/{id})
RevokeToken(ctx context.Context, request RevokeTokenRequestObject) (RevokeTokenResponseObject, error)
// Public user profile
// (GET /users/{id})
GetUser(ctx context.Context, request GetUserRequestObject) (GetUserResponseObject, error)
}
StrictServerInterface represents all server handlers.
type SubmissionAdmin ¶
type SubmissionAdmin struct {
// Challenge Compact challenge reference.
Challenge ChallengeRef `json:"challenge"`
// Correct Whether it matched.
Correct bool `json:"correct"`
// CreatedAt Submission time.
CreatedAt time.Time `json:"created_at"`
// Id Submission ID.
Id openapi_types.UUID `json:"id"`
// Ip Source IP at submission time.
Ip *string `json:"ip"`
// Provided The submitted text, verbatim.
Provided string `json:"provided"`
// Team Compact team reference.
Team TeamRef `json:"team"`
// User A team member.
User Member `json:"user"`
}
SubmissionAdmin A logged flag attempt.
type SubmissionAdminPage ¶
type SubmissionAdminPage struct {
Items []SubmissionAdmin `json:"items"`
// Page Current page (1-based).
Page int `json:"page"`
// PerPage Page size.
PerPage int `json:"per_page"`
// Total Total matching rows.
Total int `json:"total"`
}
SubmissionAdminPage Paginated submissions.
type SubmitFlag200JSONResponse ¶
type SubmitFlag200JSONResponse SubmitResult
func (SubmitFlag200JSONResponse) VisitSubmitFlagResponse ¶
func (response SubmitFlag200JSONResponse) VisitSubmitFlagResponse(w http.ResponseWriter) error
type SubmitFlag401ApplicationProblemPlusJSONResponse ¶
type SubmitFlag401ApplicationProblemPlusJSONResponse struct {
UnauthenticatedApplicationProblemPlusJSONResponse
}
func (SubmitFlag401ApplicationProblemPlusJSONResponse) VisitSubmitFlagResponse ¶
func (response SubmitFlag401ApplicationProblemPlusJSONResponse) VisitSubmitFlagResponse(w http.ResponseWriter) error
type SubmitFlag403ApplicationProblemPlusJSONResponse ¶
type SubmitFlag403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (SubmitFlag403ApplicationProblemPlusJSONResponse) VisitSubmitFlagResponse ¶
func (response SubmitFlag403ApplicationProblemPlusJSONResponse) VisitSubmitFlagResponse(w http.ResponseWriter) error
type SubmitFlag404ApplicationProblemPlusJSONResponse ¶
type SubmitFlag404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (SubmitFlag404ApplicationProblemPlusJSONResponse) VisitSubmitFlagResponse ¶
func (response SubmitFlag404ApplicationProblemPlusJSONResponse) VisitSubmitFlagResponse(w http.ResponseWriter) error
type SubmitFlag409ApplicationProblemPlusJSONResponse ¶
type SubmitFlag409ApplicationProblemPlusJSONResponse struct {
ConflictApplicationProblemPlusJSONResponse
}
func (SubmitFlag409ApplicationProblemPlusJSONResponse) VisitSubmitFlagResponse ¶
func (response SubmitFlag409ApplicationProblemPlusJSONResponse) VisitSubmitFlagResponse(w http.ResponseWriter) error
type SubmitFlag422ApplicationProblemPlusJSONResponse ¶
type SubmitFlag422ApplicationProblemPlusJSONResponse struct {
ValidationApplicationProblemPlusJSONResponse
}
func (SubmitFlag422ApplicationProblemPlusJSONResponse) VisitSubmitFlagResponse ¶
func (response SubmitFlag422ApplicationProblemPlusJSONResponse) VisitSubmitFlagResponse(w http.ResponseWriter) error
type SubmitFlag429ApplicationProblemPlusJSONResponse ¶
type SubmitFlag429ApplicationProblemPlusJSONResponse struct {
RateLimitedApplicationProblemPlusJSONResponse
}
func (SubmitFlag429ApplicationProblemPlusJSONResponse) VisitSubmitFlagResponse ¶
func (response SubmitFlag429ApplicationProblemPlusJSONResponse) VisitSubmitFlagResponse(w http.ResponseWriter) error
type SubmitFlagJSONRequestBody ¶
type SubmitFlagJSONRequestBody = SubmitFlagRequest
SubmitFlagJSONRequestBody defines body for SubmitFlag for application/json ContentType.
type SubmitFlagRequest ¶
type SubmitFlagRequest struct {
// Flag The flag attempt, verbatim.
Flag string `json:"flag"`
}
SubmitFlagRequest Flag submission payload.
type SubmitFlagRequestObject ¶
type SubmitFlagRequestObject struct {
Slug SlugPath `json:"slug"`
Body *SubmitFlagJSONRequestBody
}
type SubmitFlagResponseObject ¶
type SubmitFlagResponseObject interface {
VisitSubmitFlagResponse(w http.ResponseWriter) error
}
type SubmitResult ¶
type SubmitResult struct {
// Correct Whether the flag matched.
Correct bool `json:"correct"`
// Points Points awarded (current challenge value) when correct; null otherwise.
Points *int `json:"points"`
}
SubmitResult Submission verdict.
type TeamAdmin ¶
type TeamAdmin struct {
// Banned Members cannot submit when true.
Banned bool `json:"banned"`
// CreatedAt Creation time.
CreatedAt time.Time `json:"created_at"`
// Hidden Excluded from scoreboard and solve counts.
Hidden bool `json:"hidden"`
// Id Team ID.
Id openapi_types.UUID `json:"id"`
// MemberCount Number of members.
MemberCount int `json:"member_count"`
// Name Team name.
Name string `json:"name"`
}
TeamAdmin Team as seen in the admin panel.
type TeamAdminPage ¶
type TeamAdminPage struct {
Items []TeamAdmin `json:"items"`
// Page Current page (1-based).
Page int `json:"page"`
// PerPage Page size.
PerPage int `json:"per_page"`
// Total Total matching rows.
Total int `json:"total"`
}
TeamAdminPage Paginated teams.
type TeamAdminUpdate ¶
type TeamAdminUpdate struct {
// Banned Ban/unban the team.
Banned *bool `json:"banned,omitempty"`
// Hidden Hide/unhide from scoring.
Hidden *bool `json:"hidden,omitempty"`
}
TeamAdminUpdate Partial team update. Omitted fields are unchanged.
type TeamCreateRequest ¶
type TeamCreateRequest struct {
// Name Team name (case-insensitive unique).
Name string `json:"name"`
}
TeamCreateRequest Team creation payload.
type TeamDetail ¶
type TeamDetail struct {
// Id Team ID.
Id openapi_types.UUID `json:"id"`
// InviteCode Present only when the caller is a member.
InviteCode *string `json:"invite_code,omitempty"`
// Members Current members.
Members []Member `json:"members"`
// Name Team name.
Name string `json:"name"`
// Points Total points.
Points int `json:"points"`
// Rank Rank on the scoreboard; null for banned teams.
Rank *int `json:"rank"`
// Solves The team's scoring solves (includes solver usernames).
Solves []Solve `json:"solves"`
}
TeamDetail Public team page.
type TeamInstance ¶
type TeamInstance struct {
// ConnectionInfo Rendered connection string while running.
ConnectionInfo *string `json:"connection_info"`
// Error Last failure message, verbatim.
Error *string `json:"error"`
// ExpiresAt Scheduler destroys the instance at this time; null = no TTL.
ExpiresAt *time.Time `json:"expires_at"`
// HostPort Published host port.
HostPort *int `json:"host_port"`
// Id Instance ID.
Id openapi_types.UUID `json:"id"`
// StartedAt Container start time.
StartedAt *time.Time `json:"started_at"`
// State Challenge instance lifecycle state.
State InstanceState `json:"state"`
}
TeamInstance A per-team (or shared) challenge instance, participant-safe. Never contains the flag. Superset of Instance with an expiry for the TTL countdown.
type TeamJoinRequest ¶
type TeamJoinRequest struct {
// InviteCode The 12-character invite code.
InviteCode string `json:"invite_code"`
}
TeamJoinRequest Invite-code join payload.
type TeamMine ¶
type TeamMine struct {
// CaptainId Captain's user ID.
CaptainId openapi_types.UUID `json:"captain_id"`
// Id Team ID.
Id openapi_types.UUID `json:"id"`
// InviteCode Invite code (members only).
InviteCode string `json:"invite_code"`
// Members Current members.
Members []Member `json:"members"`
// Name Team name.
Name string `json:"name"`
}
TeamMine A team as seen by its own members (includes the invite code).
type TeamRef ¶
type TeamRef struct {
// Id Team ID.
Id openapi_types.UUID `json:"id"`
// Name Team name.
Name string `json:"name"`
}
TeamRef Compact team reference.
type TeamRenameRequest ¶
type TeamRenameRequest struct {
// Name New team name.
Name string `json:"name"`
}
TeamRenameRequest Team rename payload.
type TeamSummary ¶
type TeamSummary struct {
// Id Team ID.
Id openapi_types.UUID `json:"id"`
// MemberCount Number of members.
MemberCount int `json:"member_count"`
// Name Team name.
Name string `json:"name"`
// Points Total points.
Points int `json:"points"`
// Rank Rank on the scoreboard; null for banned teams.
Rank *int `json:"rank"`
}
TeamSummary Team list entry.
type Token ¶
type Token struct {
CreatedAt time.Time `json:"created_at"`
ExpiresAt *time.Time `json:"expires_at"`
Id openapi_types.UUID `json:"id"`
// LastUsedAt Approximate — coarsened to at most once per minute; null if never used.
LastUsedAt *time.Time `json:"last_used_at"`
// Name Human label.
Name string `json:"name"`
// Prefix First chars of the token, for display.
Prefix string `json:"prefix"`
Scopes []TokenScope `json:"scopes"`
}
Token API token metadata. NEVER contains the plaintext or the hash.
type TokenAdmin ¶
type TokenAdmin struct {
CreatedAt time.Time `json:"created_at"`
ExpiresAt *time.Time `json:"expires_at"`
Id openapi_types.UUID `json:"id"`
// LastUsedAt Approximate — coarsened to at most once per minute; null if never used.
LastUsedAt *time.Time `json:"last_used_at"`
// Name Human label.
Name string `json:"name"`
// Prefix First chars of the token, for display.
Prefix string `json:"prefix"`
Scopes []TokenScope `json:"scopes"`
// User A team member.
User Member `json:"user"`
}
TokenAdmin defines model for TokenAdmin.
type TokenAdminPage ¶
type TokenAdminPage struct {
Items []TokenAdmin `json:"items"`
Page int `json:"page"`
PerPage int `json:"per_page"`
Total int `json:"total"`
}
TokenAdminPage A page of tokens across users (admin).
type TokenCreate ¶
type TokenCreate struct {
// ExpiresInDays Lifetime in days. Omitted → the server default; a value above the server maximum is rejected. There is no never-expiring option.
ExpiresInDays *int `json:"expires_in_days"`
// Name Human label.
Name string `json:"name"`
Scopes []TokenScope `json:"scopes"`
}
TokenCreate Payload to create an API token.
type TokenCreated ¶
type TokenCreated struct {
CreatedAt time.Time `json:"created_at"`
ExpiresAt *time.Time `json:"expires_at"`
Id openapi_types.UUID `json:"id"`
// LastUsedAt Approximate — coarsened to at most once per minute; null if never used.
LastUsedAt *time.Time `json:"last_used_at"`
// Name Human label.
Name string `json:"name"`
// Prefix First chars of the token, for display.
Prefix string `json:"prefix"`
Scopes []TokenScope `json:"scopes"`
// Token The plaintext token. Shown ONCE — store it now; it cannot be retrieved again.
Token string `json:"token"`
}
TokenCreated defines model for TokenCreated.
type TokenScope ¶
type TokenScope string
TokenScope Coarse capability a token grants, bounded by the owner's role (role ∩ scope).
const ( TokenScopeAdmin TokenScope = "admin" TokenScopeRead TokenScope = "read" TokenScopeSubmit TokenScope = "submit" )
Defines values for TokenScope.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnadoptedContainer ¶
type UnadoptedContainer struct {
// ContainerId Docker container ID.
ContainerId string `json:"container_id"`
// CreatedAt Container creation time.
CreatedAt time.Time `json:"created_at"`
// Image Image the container runs.
Image string `json:"image"`
}
UnadoptedContainer A managed container reconcile could not resolve to an instance.
type UnadoptedNetwork ¶
type UnadoptedNetwork struct {
// Name Network name.
Name string `json:"name"`
// NetworkId Docker network ID.
NetworkId string `json:"network_id"`
}
UnadoptedNetwork A per-team bridge reconcile could not resolve to a team.
type UnauthenticatedApplicationProblemPlusJSONResponse ¶
type UnauthenticatedApplicationProblemPlusJSONResponse Problem
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) AdminCreateChallenge ¶
func (_ Unimplemented) AdminCreateChallenge(w http.ResponseWriter, r *http.Request)
Create a challenge (POST /admin/challenges)
func (Unimplemented) AdminDeleteAttachment ¶
func (_ Unimplemented) AdminDeleteAttachment(w http.ResponseWriter, r *http.Request, id IdPath, aid openapi_types.UUID)
Delete an attachment (DELETE /admin/challenges/{id}/attachments/{aid})
func (Unimplemented) AdminDeleteChallenge ¶
func (_ Unimplemented) AdminDeleteChallenge(w http.ResponseWriter, r *http.Request, id IdPath, params AdminDeleteChallengeParams)
Delete a challenge (DELETE /admin/challenges/{id})
func (Unimplemented) AdminDeployInstance ¶
func (_ Unimplemented) AdminDeployInstance(w http.ResponseWriter, r *http.Request, id IdPath)
Deploy the challenge instance (POST /admin/challenges/{id}/instance)
func (Unimplemented) AdminDestroyInstance ¶
func (_ Unimplemented) AdminDestroyInstance(w http.ResponseWriter, r *http.Request, id IdPath)
Destroy the instance (DELETE /admin/challenges/{id}/instance)
func (Unimplemented) AdminDestroyInstanceById ¶
func (_ Unimplemented) AdminDestroyInstanceById(w http.ResponseWriter, r *http.Request, id IdPath)
Destroy any instance (DELETE /admin/instances/{id})
func (Unimplemented) AdminGetChallenge ¶
func (_ Unimplemented) AdminGetChallenge(w http.ResponseWriter, r *http.Request, id IdPath)
Challenge detail (admin) (GET /admin/challenges/{id})
func (Unimplemented) AdminGetEvent ¶
func (_ Unimplemented) AdminGetEvent(w http.ResponseWriter, r *http.Request)
Event settings (GET /admin/event)
func (Unimplemented) AdminGetInstance ¶
func (_ Unimplemented) AdminGetInstance(w http.ResponseWriter, r *http.Request, id IdPath)
Instance status (GET /admin/challenges/{id}/instance)
func (Unimplemented) AdminGetInstanceLogs ¶
func (_ Unimplemented) AdminGetInstanceLogs(w http.ResponseWriter, r *http.Request, id IdPath, params AdminGetInstanceLogsParams)
Instance logs (GET /admin/challenges/{id}/instance/logs)
func (Unimplemented) AdminGetStats ¶
func (_ Unimplemented) AdminGetStats(w http.ResponseWriter, r *http.Request)
Dashboard stats (GET /admin/stats)
func (Unimplemented) AdminListChallenges ¶
func (_ Unimplemented) AdminListChallenges(w http.ResponseWriter, r *http.Request, params AdminListChallengesParams)
List all challenges (GET /admin/challenges)
func (Unimplemented) AdminListInstances ¶
func (_ Unimplemented) AdminListInstances(w http.ResponseWriter, r *http.Request)
List all instances (GET /admin/instances)
func (Unimplemented) AdminListPlugins ¶
func (_ Unimplemented) AdminListPlugins(w http.ResponseWriter, r *http.Request)
Plugin status (GET /admin/plugins)
func (Unimplemented) AdminListSubmissions ¶
func (_ Unimplemented) AdminListSubmissions(w http.ResponseWriter, r *http.Request, params AdminListSubmissionsParams)
Submission log (GET /admin/submissions)
func (Unimplemented) AdminListTeams ¶
func (_ Unimplemented) AdminListTeams(w http.ResponseWriter, r *http.Request, params AdminListTeamsParams)
List teams (admin) (GET /admin/teams)
func (Unimplemented) AdminListTokens ¶
func (_ Unimplemented) AdminListTokens(w http.ResponseWriter, r *http.Request, params AdminListTokensParams)
List all API tokens (GET /admin/tokens)
func (Unimplemented) AdminListUsers ¶
func (_ Unimplemented) AdminListUsers(w http.ResponseWriter, r *http.Request, params AdminListUsersParams)
List users (GET /admin/users)
func (Unimplemented) AdminReloadPlugin ¶
func (_ Unimplemented) AdminReloadPlugin(w http.ResponseWriter, r *http.Request, name string)
Hot-reload one plugin (POST /admin/plugins/{name}/reload)
func (Unimplemented) AdminResetPassword ¶
func (_ Unimplemented) AdminResetPassword(w http.ResponseWriter, r *http.Request, id IdPath)
Reset a user's password (POST /admin/users/{id}/password)
func (Unimplemented) AdminRestartInstance ¶
func (_ Unimplemented) AdminRestartInstance(w http.ResponseWriter, r *http.Request, id IdPath)
Restart the instance (POST /admin/challenges/{id}/instance/restart)
func (Unimplemented) AdminRevokeToken ¶
func (_ Unimplemented) AdminRevokeToken(w http.ResponseWriter, r *http.Request, id IdPath)
Revoke any user's token (DELETE /admin/tokens/{id})
func (Unimplemented) AdminUpdateChallenge ¶
func (_ Unimplemented) AdminUpdateChallenge(w http.ResponseWriter, r *http.Request, id IdPath)
Update a challenge (PATCH /admin/challenges/{id})
func (Unimplemented) AdminUpdateEvent ¶
func (_ Unimplemented) AdminUpdateEvent(w http.ResponseWriter, r *http.Request)
Update event settings (PATCH /admin/event)
func (Unimplemented) AdminUpdateTeam ¶
func (_ Unimplemented) AdminUpdateTeam(w http.ResponseWriter, r *http.Request, id IdPath)
Update a team (PATCH /admin/teams/{id})
func (Unimplemented) AdminUpdateUser ¶
func (_ Unimplemented) AdminUpdateUser(w http.ResponseWriter, r *http.Request, id IdPath)
Update a user (PATCH /admin/users/{id})
func (Unimplemented) AdminUploadAttachment ¶
func (_ Unimplemented) AdminUploadAttachment(w http.ResponseWriter, r *http.Request, id IdPath)
Upload an attachment (POST /admin/challenges/{id}/attachments)
func (Unimplemented) BeginProviderLogin ¶
func (_ Unimplemented) BeginProviderLogin(w http.ResponseWriter, r *http.Request, provider ProviderPath)
Start an external login (GET /auth/{provider}/login)
func (Unimplemented) ChangePassword ¶
func (_ Unimplemented) ChangePassword(w http.ResponseWriter, r *http.Request)
Change password (PATCH /auth/me/password)
func (Unimplemented) CompleteProviderLogin ¶
func (_ Unimplemented) CompleteProviderLogin(w http.ResponseWriter, r *http.Request, provider ProviderPath)
Complete an external login (GET /auth/{provider}/callback)
func (Unimplemented) CreateTeam ¶
func (_ Unimplemented) CreateTeam(w http.ResponseWriter, r *http.Request)
Create a team (POST /teams)
func (Unimplemented) CreateToken ¶
func (_ Unimplemented) CreateToken(w http.ResponseWriter, r *http.Request)
Create an API token (POST /tokens)
func (Unimplemented) DownloadAttachment ¶
func (_ Unimplemented) DownloadAttachment(w http.ResponseWriter, r *http.Request, slug SlugPath, id IdPath)
Download an attachment (GET /challenges/{slug}/attachments/{id})
func (Unimplemented) ExtendInstance ¶
func (_ Unimplemented) ExtendInstance(w http.ResponseWriter, r *http.Request, slug SlugPath)
Extend this team's instance TTL (POST /challenges/{slug}/instance/extend)
func (Unimplemented) GetChallenge ¶
func (_ Unimplemented) GetChallenge(w http.ResponseWriter, r *http.Request, slug SlugPath)
Challenge detail (GET /challenges/{slug})
func (Unimplemented) GetEvent ¶
func (_ Unimplemented) GetEvent(w http.ResponseWriter, r *http.Request)
Event info (GET /event)
func (Unimplemented) GetMe ¶
func (_ Unimplemented) GetMe(w http.ResponseWriter, r *http.Request)
Current account (GET /auth/me)
func (Unimplemented) GetScoreboard ¶
func (_ Unimplemented) GetScoreboard(w http.ResponseWriter, r *http.Request)
Standings (GET /scoreboard)
func (Unimplemented) GetTeam ¶
func (_ Unimplemented) GetTeam(w http.ResponseWriter, r *http.Request, id IdPath)
Public team page (GET /teams/{id})
func (Unimplemented) GetUser ¶
func (_ Unimplemented) GetUser(w http.ResponseWriter, r *http.Request, id IdPath)
Public user profile (GET /users/{id})
func (Unimplemented) JoinTeam ¶
func (_ Unimplemented) JoinTeam(w http.ResponseWriter, r *http.Request)
Join a team by invite code (POST /teams/join)
func (Unimplemented) LeaveTeam ¶
func (_ Unimplemented) LeaveTeam(w http.ResponseWriter, r *http.Request)
Leave my team (POST /teams/leave)
func (Unimplemented) ListAuthProviders ¶
func (_ Unimplemented) ListAuthProviders(w http.ResponseWriter, r *http.Request)
List available login providers (GET /auth/providers)
func (Unimplemented) ListChallenges ¶
func (_ Unimplemented) ListChallenges(w http.ResponseWriter, r *http.Request)
Challenge board (GET /challenges)
func (Unimplemented) ListTeams ¶
func (_ Unimplemented) ListTeams(w http.ResponseWriter, r *http.Request)
List teams (GET /teams)
func (Unimplemented) ListTokens ¶
func (_ Unimplemented) ListTokens(w http.ResponseWriter, r *http.Request)
List the caller's API tokens (GET /tokens)
func (Unimplemented) Login ¶
func (_ Unimplemented) Login(w http.ResponseWriter, r *http.Request)
Log in (POST /auth/login)
func (Unimplemented) Logout ¶
func (_ Unimplemented) Logout(w http.ResponseWriter, r *http.Request)
Log out (POST /auth/logout)
func (Unimplemented) RegenerateInviteCode ¶
func (_ Unimplemented) RegenerateInviteCode(w http.ResponseWriter, r *http.Request, id IdPath)
Regenerate the invite code (captain) (POST /teams/{id}/invite-code)
func (Unimplemented) Register ¶
func (_ Unimplemented) Register(w http.ResponseWriter, r *http.Request)
Register a new account (POST /auth/register)
func (Unimplemented) RenameTeam ¶
func (_ Unimplemented) RenameTeam(w http.ResponseWriter, r *http.Request, id IdPath)
Rename my team (captain) (PATCH /teams/{id})
func (Unimplemented) RevokeToken ¶
func (_ Unimplemented) RevokeToken(w http.ResponseWriter, r *http.Request, id IdPath)
Revoke one of the caller's tokens (DELETE /tokens/{id})
func (Unimplemented) StartInstance ¶
func (_ Unimplemented) StartInstance(w http.ResponseWriter, r *http.Request, slug SlugPath)
Start this team's instance (POST /challenges/{slug}/instance)
func (Unimplemented) StopInstance ¶
func (_ Unimplemented) StopInstance(w http.ResponseWriter, r *http.Request, slug SlugPath)
Stop this team's instance (DELETE /challenges/{slug}/instance)
func (Unimplemented) SubmitFlag ¶
func (_ Unimplemented) SubmitFlag(w http.ResponseWriter, r *http.Request, slug SlugPath)
Submit a flag (POST /challenges/{slug}/submit)
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UserAdmin ¶
type UserAdmin struct {
// Banned Cannot log in when true.
Banned bool `json:"banned"`
// CreatedAt Registration time.
CreatedAt time.Time `json:"created_at"`
// Email Login email.
Email string `json:"email"`
// Hidden Excluded from scoreboard and solve counts.
Hidden bool `json:"hidden"`
// Id User ID.
Id openapi_types.UUID `json:"id"`
// Role Platform role.
Role Role `json:"role"`
// Team The user's team, or null.
Team *TeamRef `json:"team"`
// Username Handle.
Username string `json:"username"`
}
UserAdmin User as seen in the admin panel.
type UserAdminPage ¶
type UserAdminPage struct {
Items []UserAdmin `json:"items"`
// Page Current page (1-based).
Page int `json:"page"`
// PerPage Page size.
PerPage int `json:"per_page"`
// Total Total matching rows.
Total int `json:"total"`
}
UserAdminPage Paginated users.
type UserAdminUpdate ¶
type UserAdminUpdate struct {
// Banned Ban/unban (ban revokes sessions).
Banned *bool `json:"banned,omitempty"`
// Hidden Hide/unhide from scoring.
Hidden *bool `json:"hidden,omitempty"`
// Role Platform role.
Role *Role `json:"role,omitempty"`
}
UserAdminUpdate Partial user update. Omitted fields are unchanged.
type ValidationApplicationProblemPlusJSONResponse ¶
type ValidationApplicationProblemPlusJSONResponse Problem