Documentation
¶
Overview ¶
Package gen provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.2 DO NOT EDIT.
Package gen holds code generated from api/openapi.yaml. Do not edit api.gen.go by hand; run `make generate` from the repository root.
Index ¶
- Constants
- func GetSpec() (swagger *openapi3.T, err error)
- func GetSpecJSON() ([]byte, error)
- func GetSwagger() (*openapi3.T, error)deprecated
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type AICheck
- type AIJob
- type AIJobApproval
- type AIJobApprove
- type AIJobCreate
- type AIJobStatus
- type AIJobSummary
- type AIJourney
- type AIJourneyStatus
- type AIProblem
- type AIProvider
- type AIProviderKind
- type AIProviderPut
- type AIStepTrace
- type AITrace
- type AIUsage
- type ApproveAIJob201JSONResponse
- type ApproveAIJob403JSONResponse
- type ApproveAIJob404JSONResponse
- type ApproveAIJob409JSONResponse
- type ApproveAIJob422JSONResponse
- type ApproveAIJobJSONRequestBody
- type ApproveAIJobRequestObject
- type ApproveAIJobResponseObject
- type AuditEntry
- type AuthConfig
- type Caps
- type ChangePassword204Response
- type ChangePassword401JSONResponse
- type ChangePassword422JSONResponse
- type ChangePasswordJSONBody
- type ChangePasswordJSONRequestBody
- type ChangePasswordRequestObject
- type ChangePasswordResponseObject
- type ChannelId
- type ChiServerOptions
- type CompareRequest
- type CompareRuns200JSONResponse
- type CompareRuns403JSONResponse
- type CompareRuns422JSONResponse
- type CompareRunsJSONRequestBody
- type CompareRunsRequestObject
- type CompareRunsResponseObject
- type CompareSide
- type CompareVerdict
- type Comparison
- type Conflict
- type ConflictJSONResponse
- type CoverageEndpoint
- type CoverageRequest
- type CreateAIJob202JSONResponse
- type CreateAIJob403JSONResponse
- type CreateAIJob409JSONResponse
- type CreateAIJob422JSONResponse
- type CreateAIJob429JSONResponse
- type CreateAIJobJSONRequestBody
- type CreateAIJobRequestObject
- type CreateAIJobResponseObject
- type CreateIntegration201JSONResponse
- type CreateIntegration403JSONResponse
- type CreateIntegration409JSONResponse
- type CreateIntegration422JSONResponse
- type CreateIntegrationJSONRequestBody
- type CreateIntegrationRequestObject
- type CreateIntegrationResponseObject
- type CreateNotificationChannel201JSONResponse
- type CreateNotificationChannel403JSONResponse
- type CreateNotificationChannel409JSONResponse
- type CreateNotificationChannel422JSONResponse
- type CreateNotificationChannelJSONRequestBody
- type CreateNotificationChannelRequestObject
- type CreateNotificationChannelResponseObject
- type CreateProject201JSONResponse
- type CreateProject409JSONResponse
- type CreateProject422JSONResponse
- type CreateProjectJSONRequestBody
- type CreateProjectRequestObject
- type CreateProjectResponseObject
- type CreateRun201JSONResponse
- type CreateRun403JSONResponse
- type CreateRun409JSONResponse
- type CreateRun422JSONResponse
- type CreateRunJSONRequestBody
- type CreateRunNarrative200JSONResponse
- type CreateRunNarrative403JSONResponse
- type CreateRunNarrative404JSONResponse
- type CreateRunNarrative409JSONResponse
- type CreateRunNarrative422JSONResponse
- type CreateRunNarrative429JSONResponse
- type CreateRunNarrative502JSONResponse
- type CreateRunNarrativeJSONRequestBody
- type CreateRunNarrativeRequestObject
- type CreateRunNarrativeResponseObject
- type CreateRunRequestObject
- type CreateRunResponseObject
- type CreateScenario201JSONResponse
- type CreateScenario409JSONResponse
- type CreateScenario422JSONResponse
- type CreateScenarioJSONRequestBody
- type CreateScenarioRequestObject
- type CreateScenarioResponseObject
- type CreateScenarioVersion201JSONResponse
- type CreateScenarioVersion422JSONResponse
- type CreateScenarioVersionJSONRequestBody
- type CreateScenarioVersionRequestObject
- type CreateScenarioVersionResponseObject
- type CreateSchedule201JSONResponse
- type CreateSchedule403JSONResponse
- type CreateSchedule409JSONResponse
- type CreateSchedule422JSONResponse
- type CreateScheduleJSONRequestBody
- type CreateScheduleRequestObject
- type CreateScheduleResponseObject
- type CreateTarget201JSONResponse
- type CreateTarget422JSONResponse
- type CreateTargetJSONRequestBody
- type CreateTargetRequestObject
- type CreateTargetResponseObject
- type CreateToken201JSONResponse
- type CreateToken422JSONResponse
- type CreateTokenJSONRequestBody
- type CreateTokenRequestObject
- type CreateTokenResponseObject
- type CreateUser201JSONResponse
- type CreateUser403JSONResponse
- type CreateUser409JSONResponse
- type CreateUser422JSONResponse
- type CreateUserJSONRequestBody
- type CreateUserRequestObject
- type CreateUserResponseObject
- type DeleteAIProvider204Response
- type DeleteAIProvider403JSONResponse
- type DeleteAIProvider404JSONResponse
- type DeleteAIProviderRequestObject
- type DeleteAIProviderResponseObject
- type DeleteIntegration204Response
- type DeleteIntegration403JSONResponse
- type DeleteIntegration404JSONResponse
- type DeleteIntegrationRequestObject
- type DeleteIntegrationResponseObject
- type DeleteNotificationChannel204Response
- type DeleteNotificationChannel403JSONResponse
- type DeleteNotificationChannel404JSONResponse
- type DeleteNotificationChannelRequestObject
- type DeleteNotificationChannelResponseObject
- type DeleteProject204Response
- type DeleteProject404JSONResponse
- type DeleteProjectRequestObject
- type DeleteProjectResponseObject
- type DeleteProjectRole204Response
- type DeleteProjectRole403JSONResponse
- type DeleteProjectRole404JSONResponse
- type DeleteProjectRoleRequestObject
- type DeleteProjectRoleResponseObject
- type DeleteScenario204Response
- type DeleteScenario404JSONResponse
- type DeleteScenarioRequestObject
- type DeleteScenarioResponseObject
- type DeleteSchedule204Response
- type DeleteSchedule403JSONResponse
- type DeleteSchedule404JSONResponse
- type DeleteScheduleRequestObject
- type DeleteScheduleResponseObject
- type DeleteSecret204Response
- type DeleteSecret404JSONResponse
- type DeleteSecretRequestObject
- type DeleteSecretResponseObject
- type DeleteTarget204Response
- type DeleteTarget404JSONResponse
- type DeleteTargetRequestObject
- type DeleteTargetResponseObject
- type DeleteToken204Response
- type DeleteToken404JSONResponse
- type DeleteTokenRequestObject
- type DeleteTokenResponseObject
- type DeleteUser204Response
- type DeleteUser403JSONResponse
- type DeleteUser404JSONResponse
- type DeleteUserRequestObject
- type DeleteUserResponseObject
- type DriftEndpoint
- type DriftId
- type DriftJourney
- type DriftJourneyCheck
- type DriftRepair
- type DriftRequest
- type DriftResult
- type DriftResultStatus
- type Error
- type Forbidden
- type ForbiddenJSONResponse
- type GetAIJob200JSONResponse
- type GetAIJob404JSONResponse
- type GetAIJobRequestObject
- type GetAIJobResponseObject
- type GetAuthConfig200JSONResponse
- type GetAuthConfigRequestObject
- type GetAuthConfigResponseObject
- type GetDriftResult200JSONResponse
- type GetDriftResult404JSONResponse
- type GetDriftResultRequestObject
- type GetDriftResultResponseObject
- type GetLimitSettings200JSONResponse
- type GetLimitSettings403JSONResponse
- type GetLimitSettingsRequestObject
- type GetLimitSettingsResponseObject
- type GetMe200JSONResponse
- type GetMe401JSONResponse
- type GetMeRequestObject
- type GetMeResponseObject
- type GetOrgCaps200JSONResponse
- type GetOrgCapsRequestObject
- type GetOrgCapsResponseObject
- type GetPack200JSONResponse
- type GetPack404JSONResponse
- type GetPackRequestObject
- type GetPackResponseObject
- type GetProject200JSONResponse
- type GetProject404JSONResponse
- type GetProjectRequestObject
- type GetProjectResponseObject
- type GetProjectSettings200JSONResponse
- type GetProjectSettings404JSONResponse
- type GetProjectSettingsRequestObject
- type GetProjectSettingsResponseObject
- type GetRun200JSONResponse
- type GetRun404JSONResponse
- type GetRunReport200ApplicationxmlResponse
- type GetRunReport200JSONResponse
- type GetRunReport200TextcsvResponse
- type GetRunReport200TexthtmlResponse
- type GetRunReport200TextmarkdownResponse
- type GetRunReport404JSONResponse
- type GetRunReport409JSONResponse
- type GetRunReportParams
- type GetRunReportParamsFormat
- type GetRunReportRequestObject
- type GetRunReportResponseObject
- type GetRunRequestObject
- type GetRunResponseObject
- type GetRunTimeline200JSONResponse
- type GetRunTimeline404JSONResponse
- type GetRunTimelineParams
- type GetRunTimelineParamsResolution
- type GetRunTimelineRequestObject
- type GetRunTimelineResponseObject
- type GetSSOSettings200JSONResponse
- type GetSSOSettings403JSONResponse
- type GetSSOSettingsRequestObject
- type GetSSOSettingsResponseObject
- type GetScenario200JSONResponse
- type GetScenario404JSONResponse
- type GetScenarioRequestObject
- type GetScenarioResponseObject
- type GetScenarioVersion200JSONResponse
- type GetScenarioVersion404JSONResponse
- type GetScenarioVersionRequestObject
- type GetScenarioVersionResponseObject
- type GetSchedule200JSONResponse
- type GetSchedule404JSONResponse
- type GetScheduleRequestObject
- type GetScheduleResponseObject
- type GetTarget200JSONResponse
- type GetTarget404JSONResponse
- type GetTargetRequestObject
- type GetTargetResponseObject
- type GetVersion200JSONResponse
- type GetVersionRequestObject
- type GetVersionResponseObject
- type Integration
- type IntegrationCreate
- type IntegrationKind
- type Invalid
- type InvalidJSONResponse
- type InvalidParamFormatError
- type KillAllRuns200JSONResponse
- type KillAllRunsRequestObject
- type KillAllRunsResponseObject
- type KillRun202Response
- type KillRun404JSONResponse
- type KillRunRequestObject
- type KillRunResponseObject
- type LimitCaps
- type LimitSettings
- type ListAIJobs200JSONResponse
- type ListAIJobsParams
- type ListAIJobsRequestObject
- type ListAIJobsResponseObject
- type ListAIProviders200JSONResponse
- type ListAIProvidersRequestObject
- type ListAIProvidersResponseObject
- type ListAudit200JSONResponse
- type ListAudit403JSONResponse
- type ListAuditParams
- type ListAuditRequestObject
- type ListAuditResponseObject
- type ListDriftResults200JSONResponse
- type ListDriftResults404JSONResponse
- type ListDriftResultsParams
- type ListDriftResultsRequestObject
- type ListDriftResultsResponseObject
- type ListIntegrations200JSONResponse
- type ListIntegrationsRequestObject
- type ListIntegrationsResponseObject
- type ListNotificationChannels200JSONResponse
- type ListNotificationChannels403JSONResponse
- type ListNotificationChannelsRequestObject
- type ListNotificationChannelsResponseObject
- type ListNotificationDeliveries200JSONResponse
- type ListNotificationDeliveries403JSONResponse
- type ListNotificationDeliveries404JSONResponse
- type ListNotificationDeliveriesParams
- type ListNotificationDeliveriesRequestObject
- type ListNotificationDeliveriesResponseObject
- type ListPacks200JSONResponse
- type ListPacksRequestObject
- type ListPacksResponseObject
- type ListProjectRoles200JSONResponse
- type ListProjectRoles404JSONResponse
- type ListProjectRolesRequestObject
- type ListProjectRolesResponseObject
- type ListProjects200JSONResponse
- type ListProjectsRequestObject
- type ListProjectsResponseObject
- type ListRunEvents200JSONResponse
- type ListRunEvents404JSONResponse
- type ListRunEventsRequestObject
- type ListRunEventsResponseObject
- type ListRunWorkers200JSONResponse
- type ListRunWorkers404JSONResponse
- type ListRunWorkersRequestObject
- type ListRunWorkersResponseObject
- type ListRuns200JSONResponse
- type ListRunsParams
- type ListRunsRequestObject
- type ListRunsResponseObject
- type ListScenarioVersions200JSONResponse
- type ListScenarioVersionsRequestObject
- type ListScenarioVersionsResponseObject
- type ListScenarios200JSONResponse
- type ListScenariosParams
- type ListScenariosRequestObject
- type ListScenariosResponseObject
- type ListSchedules200JSONResponse
- type ListSchedulesRequestObject
- type ListSchedulesResponseObject
- type ListSecrets200JSONResponse
- type ListSecretsRequestObject
- type ListSecretsResponseObject
- type ListTargets200JSONResponse
- type ListTargetsRequestObject
- type ListTargetsResponseObject
- type ListTokens200JSONResponse
- type ListTokensRequestObject
- type ListTokensResponseObject
- type ListUsers200JSONResponse
- type ListUsersRequestObject
- type ListUsersResponseObject
- type ListWorkers200JSONResponse
- type ListWorkersRequestObject
- type ListWorkersResponseObject
- type Login200JSONResponse
- type Login401JSONResponse
- type Login429JSONResponse
- type LoginJSONRequestBody
- type LoginRequest
- type LoginRequestObject
- type LoginResponseObject
- type Logout204Response
- type LogoutRequestObject
- type LogoutResponseObject
- type Me
- type MetricDelta
- type MiddlewareFunc
- type Narrative
- type NarrativeClaim
- type NarrativeClaimLabel
- type NarrativeCreate
- type NarrativeFact
- type NarrativeResult
- type NotFound
- type NotFoundJSONResponse
- type NotificationChannel
- type NotificationChannelCreate
- type NotificationChannelCreated
- type NotificationDelivery
- type NotificationEvent
- type NotificationKind
- type PackDetail
- type PackEntry
- type PackFile
- type PackFileKind
- type PlanSummary
- type Point
- type PreviewSchedule200JSONResponse
- type PreviewSchedule422JSONResponse
- type PreviewScheduleParams
- type PreviewScheduleRequestObject
- type PreviewScheduleResponseObject
- type Project
- type ProjectCreate
- type ProjectId
- type ProjectLimits
- type ProjectRole
- type ProjectRoleSet
- type ProjectSettings
- type PutAIProvider200JSONResponse
- type PutAIProvider201JSONResponse
- type PutAIProvider403JSONResponse
- type PutAIProvider409JSONResponse
- type PutAIProvider422JSONResponse
- type PutAIProviderJSONRequestBody
- type PutAIProviderRequestObject
- type PutAIProviderResponseObject
- type PutOrgCaps200JSONResponse
- type PutOrgCaps403JSONResponse
- type PutOrgCaps422JSONResponse
- type PutOrgCapsJSONRequestBody
- type PutOrgCapsRequestObject
- type PutOrgCapsResponseObject
- type PutProjectRole200JSONResponse
- type PutProjectRole403JSONResponse
- type PutProjectRole404JSONResponse
- type PutProjectRole422JSONResponse
- type PutProjectRoleJSONRequestBody
- type PutProjectRoleRequestObject
- type PutProjectRoleResponseObject
- type PutProjectSettings200JSONResponse
- type PutProjectSettings403JSONResponse
- type PutProjectSettings404JSONResponse
- type PutProjectSettings422JSONResponse
- type PutProjectSettingsJSONRequestBody
- type PutProjectSettingsRequestObject
- type PutProjectSettingsResponseObject
- type PutSecret200JSONResponse
- type PutSecret422JSONResponse
- type PutSecretJSONRequestBody
- type PutSecretRequestObject
- type PutSecretResponseObject
- type RepairDrift202JSONResponse
- type RepairDrift403JSONResponse
- type RepairDrift404JSONResponse
- type RepairDrift409JSONResponse
- type RepairDrift422JSONResponse
- type RepairDrift429JSONResponse
- type RepairDriftJSONRequestBody
- type RepairDriftRequestObject
- type RepairDriftResponseObject
- type Report
- type RequestRef
- type RequiredHeaderError
- type RequiredParamError
- type Role
- type Run
- type RunCreate
- type RunEvent
- type RunId
- type RunOverrides
- type RunOverridesMode
- type RunSchedule200JSONResponse
- type RunSchedule201JSONResponse
- type RunSchedule403JSONResponse
- type RunSchedule404JSONResponse
- type RunSchedule409JSONResponse
- type RunSchedule422JSONResponse
- type RunScheduleRequestObject
- type RunScheduleResponseObject
- type RunStatus
- type RunSummary
- type RunVerdict
- type RunWorkerHealth
- type RunWorkerHealthStatus
- type RunWorkers
- type SSOSettings
- type Scenario
- type ScenarioCoverage
- type ScenarioCoverage200JSONResponse
- type ScenarioCoverage403JSONResponse
- type ScenarioCoverage404JSONResponse
- type ScenarioCoverage422JSONResponse
- type ScenarioCoverageJSONRequestBody
- type ScenarioCoverageRequestObject
- type ScenarioCoverageResponseObject
- type ScenarioDrift
- type ScenarioDrift200JSONResponse
- type ScenarioDrift403JSONResponse
- type ScenarioDrift404JSONResponse
- type ScenarioDrift422JSONResponse
- type ScenarioDriftJSONRequestBody
- type ScenarioDriftRequestObject
- type ScenarioDriftResponseObject
- type ScenarioId
- type ScenarioVersion
- type ScenarioVersionCreate
- type Schedule
- type ScheduleCreate
- type ScheduleId
- type ScheduleKind
- type SchedulePreview
- type ScheduleUpdate
- type Secret
- type SecretPut
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) ApproveAIJob(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ChangePassword(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CompareRuns(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateAIJob(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateIntegration(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateNotificationChannel(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateProject(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateRun(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateRunNarrative(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateScenario(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateScenarioVersion(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateSchedule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateTarget(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateToken(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteAIProvider(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteIntegration(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteNotificationChannel(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteProject(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteProjectRole(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteScenario(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteSchedule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteSecret(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteTarget(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteToken(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAIJob(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAuthConfig(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetDriftResult(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLimitSettings(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetMe(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetOrgCaps(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetPack(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetProject(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetProjectSettings(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRun(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRunReport(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRunTimeline(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSSOSettings(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetScenario(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetScenarioVersion(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSchedule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetTarget(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetVersion(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) KillAllRuns(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) KillRun(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListAIJobs(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListAIProviders(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListAudit(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListDriftResults(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListIntegrations(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListNotificationChannels(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListNotificationDeliveries(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListPacks(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListProjectRoles(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListProjects(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListRunEvents(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListRunWorkers(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListRuns(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListScenarioVersions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListScenarios(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSchedules(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSecrets(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListTargets(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListTokens(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListWorkers(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) PreviewSchedule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutAIProvider(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutOrgCaps(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutProjectRole(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutProjectSettings(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutSecret(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RepairDrift(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RunSchedule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ScenarioCoverage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ScenarioDrift(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Setup(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) StopRun(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) StreamRun(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) TestNotificationChannel(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateProject(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateSchedule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateTarget(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ValidateScenario(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) VerifyTarget(w http.ResponseWriter, r *http.Request)
- type Session
- type Setup201JSONResponse
- type Setup409JSONResponse
- type Setup422JSONResponse
- type SetupJSONRequestBody
- type SetupRequest
- type SetupRequestObject
- type SetupResponseObject
- type StepDelta
- type StopRun202Response
- type StopRun404JSONResponse
- type StopRun409JSONResponse
- type StopRunRequestObject
- type StopRunResponseObject
- type StreamRun200TexteventStreamResponse
- type StreamRun404JSONResponse
- type StreamRunRequestObject
- type StreamRunResponseObject
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type Target
- type TargetCreate
- type TargetId
- type TargetLimits
- type TestNotificationChannel200JSONResponse
- type TestNotificationChannel403JSONResponse
- type TestNotificationChannel404JSONResponse
- type TestNotificationChannel409JSONResponse
- type TestNotificationChannelRequestObject
- type TestNotificationChannelResponseObject
- type Token
- type TokenCreate
- type TokenCreated
- type TokenId
- type TooMany
- type TooManyJSONResponse
- type TooManyValuesForParamError
- type Unauthorized
- type UnauthorizedJSONResponse
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) ApproveAIJob(w http.ResponseWriter, r *http.Request, jobId openapi_types.UUID)
- func (_ Unimplemented) ChangePassword(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CompareRuns(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CreateAIJob(w http.ResponseWriter, r *http.Request, projectId ProjectId)
- func (_ Unimplemented) CreateIntegration(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CreateNotificationChannel(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CreateProject(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CreateRun(w http.ResponseWriter, r *http.Request, projectId ProjectId)
- func (_ Unimplemented) CreateRunNarrative(w http.ResponseWriter, r *http.Request, runId RunId)
- func (_ Unimplemented) CreateScenario(w http.ResponseWriter, r *http.Request, projectId ProjectId)
- func (_ Unimplemented) CreateScenarioVersion(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId)
- func (_ Unimplemented) CreateSchedule(w http.ResponseWriter, r *http.Request, projectId ProjectId)
- func (_ Unimplemented) CreateTarget(w http.ResponseWriter, r *http.Request, projectId ProjectId)
- func (_ Unimplemented) CreateToken(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CreateUser(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) DeleteAIProvider(w http.ResponseWriter, r *http.Request, providerId openapi_types.UUID)
- func (_ Unimplemented) DeleteIntegration(w http.ResponseWriter, r *http.Request, integrationId openapi_types.UUID)
- func (_ Unimplemented) DeleteNotificationChannel(w http.ResponseWriter, r *http.Request, channelId ChannelId)
- func (_ Unimplemented) DeleteProject(w http.ResponseWriter, r *http.Request, projectId ProjectId)
- func (_ Unimplemented) DeleteProjectRole(w http.ResponseWriter, r *http.Request, projectId ProjectId, userId UserId)
- func (_ Unimplemented) DeleteScenario(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId)
- func (_ Unimplemented) DeleteSchedule(w http.ResponseWriter, r *http.Request, scheduleId ScheduleId)
- func (_ Unimplemented) DeleteSecret(w http.ResponseWriter, r *http.Request, projectId ProjectId, name string)
- func (_ Unimplemented) DeleteTarget(w http.ResponseWriter, r *http.Request, targetId TargetId)
- func (_ Unimplemented) DeleteToken(w http.ResponseWriter, r *http.Request, tokenId TokenId)
- func (_ Unimplemented) DeleteUser(w http.ResponseWriter, r *http.Request, userId UserId)
- func (_ Unimplemented) GetAIJob(w http.ResponseWriter, r *http.Request, jobId openapi_types.UUID)
- func (_ Unimplemented) GetAuthConfig(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetDriftResult(w http.ResponseWriter, r *http.Request, driftId DriftId)
- func (_ Unimplemented) GetLimitSettings(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetMe(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetOrgCaps(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetPack(w http.ResponseWriter, r *http.Request, packName string)
- func (_ Unimplemented) GetProject(w http.ResponseWriter, r *http.Request, projectId ProjectId)
- func (_ Unimplemented) GetProjectSettings(w http.ResponseWriter, r *http.Request, projectId ProjectId)
- func (_ Unimplemented) GetRun(w http.ResponseWriter, r *http.Request, runId RunId)
- func (_ Unimplemented) GetRunReport(w http.ResponseWriter, r *http.Request, runId RunId, params GetRunReportParams)
- func (_ Unimplemented) GetRunTimeline(w http.ResponseWriter, r *http.Request, runId RunId, ...)
- func (_ Unimplemented) GetSSOSettings(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetScenario(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId)
- func (_ Unimplemented) GetScenarioVersion(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId, version int)
- func (_ Unimplemented) GetSchedule(w http.ResponseWriter, r *http.Request, scheduleId ScheduleId)
- func (_ Unimplemented) GetTarget(w http.ResponseWriter, r *http.Request, targetId TargetId)
- func (_ Unimplemented) GetVersion(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) KillAllRuns(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) KillRun(w http.ResponseWriter, r *http.Request, runId RunId)
- func (_ Unimplemented) ListAIJobs(w http.ResponseWriter, r *http.Request, projectId ProjectId, ...)
- func (_ Unimplemented) ListAIProviders(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListAudit(w http.ResponseWriter, r *http.Request, params ListAuditParams)
- func (_ Unimplemented) ListDriftResults(w http.ResponseWriter, r *http.Request, projectId ProjectId, ...)
- func (_ Unimplemented) ListIntegrations(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListNotificationChannels(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListNotificationDeliveries(w http.ResponseWriter, r *http.Request, channelId ChannelId, ...)
- func (_ Unimplemented) ListPacks(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListProjectRoles(w http.ResponseWriter, r *http.Request, projectId ProjectId)
- func (_ Unimplemented) ListProjects(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListRunEvents(w http.ResponseWriter, r *http.Request, runId RunId)
- func (_ Unimplemented) ListRunWorkers(w http.ResponseWriter, r *http.Request, runId RunId)
- func (_ Unimplemented) ListRuns(w http.ResponseWriter, r *http.Request, projectId ProjectId, ...)
- func (_ Unimplemented) ListScenarioVersions(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId)
- func (_ Unimplemented) ListScenarios(w http.ResponseWriter, r *http.Request, projectId ProjectId, ...)
- func (_ Unimplemented) ListSchedules(w http.ResponseWriter, r *http.Request, projectId ProjectId)
- func (_ Unimplemented) ListSecrets(w http.ResponseWriter, r *http.Request, projectId ProjectId)
- func (_ Unimplemented) ListTargets(w http.ResponseWriter, r *http.Request, projectId ProjectId)
- func (_ Unimplemented) ListTokens(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListUsers(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListWorkers(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) PreviewSchedule(w http.ResponseWriter, r *http.Request, params PreviewScheduleParams)
- func (_ Unimplemented) PutAIProvider(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) PutOrgCaps(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) PutProjectRole(w http.ResponseWriter, r *http.Request, projectId ProjectId, userId UserId)
- func (_ Unimplemented) PutProjectSettings(w http.ResponseWriter, r *http.Request, projectId ProjectId)
- func (_ Unimplemented) PutSecret(w http.ResponseWriter, r *http.Request, projectId ProjectId)
- func (_ Unimplemented) RepairDrift(w http.ResponseWriter, r *http.Request, driftId DriftId)
- func (_ Unimplemented) RunSchedule(w http.ResponseWriter, r *http.Request, scheduleId ScheduleId)
- func (_ Unimplemented) ScenarioCoverage(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId)
- func (_ Unimplemented) ScenarioDrift(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId)
- func (_ Unimplemented) Setup(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) StopRun(w http.ResponseWriter, r *http.Request, runId RunId)
- func (_ Unimplemented) StreamRun(w http.ResponseWriter, r *http.Request, runId RunId)
- func (_ Unimplemented) TestNotificationChannel(w http.ResponseWriter, r *http.Request, channelId ChannelId)
- func (_ Unimplemented) UpdateProject(w http.ResponseWriter, r *http.Request, projectId ProjectId)
- func (_ Unimplemented) UpdateSchedule(w http.ResponseWriter, r *http.Request, scheduleId ScheduleId)
- func (_ Unimplemented) UpdateTarget(w http.ResponseWriter, r *http.Request, targetId TargetId)
- func (_ Unimplemented) UpdateUser(w http.ResponseWriter, r *http.Request, userId UserId)
- func (_ Unimplemented) ValidateScenario(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) VerifyTarget(w http.ResponseWriter, r *http.Request, targetId TargetId)
- type UnmarshalingParamError
- type UpdateProject200JSONResponse
- type UpdateProject404JSONResponse
- type UpdateProjectJSONRequestBody
- type UpdateProjectRequestObject
- type UpdateProjectResponseObject
- type UpdateSchedule200JSONResponse
- type UpdateSchedule403JSONResponse
- type UpdateSchedule404JSONResponse
- type UpdateSchedule409JSONResponse
- type UpdateSchedule422JSONResponse
- type UpdateScheduleJSONRequestBody
- type UpdateScheduleRequestObject
- type UpdateScheduleResponseObject
- type UpdateTarget200JSONResponse
- type UpdateTarget404JSONResponse
- type UpdateTargetJSONRequestBody
- type UpdateTargetRequestObject
- type UpdateTargetResponseObject
- type UpdateUser200JSONResponse
- type UpdateUser403JSONResponse
- type UpdateUser404JSONResponse
- type UpdateUserJSONBody
- type UpdateUserJSONRequestBody
- type UpdateUserRequestObject
- type UpdateUserResponseObject
- type User
- type UserCreate
- type UserId
- type ValidateScenario200JSONResponse
- type ValidateScenarioJSONBody
- type ValidateScenarioJSONRequestBody
- type ValidateScenarioRequestObject
- type ValidateScenarioResponseObject
- type Validation
- type VerifyTarget200JSONResponse
- type VerifyTarget404JSONResponse
- type VerifyTargetRequestObject
- type VerifyTargetResponseObject
- type VersionInfo
- type Worker
- type WorkerStatus
Constants ¶
const ( BearerScopes bearerContextKey = "bearer.Scopes" SessionScopes sessionContextKey = "session.Scopes" )
Variables ¶
This section is empty.
Functions ¶
func GetSpec ¶
GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.
func GetSpecJSON ¶
GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.
func GetSwagger
deprecated
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 AICheck ¶
type AICheck struct {
Detail *string `json:"detail,omitempty"`
Name string `json:"name"`
Ok bool `json:"ok"`
}
AICheck defines model for AICheck.
type AIJob ¶
type AIJob struct {
ApprovedAt *time.Time `json:"approvedAt,omitempty"`
ApprovedScenarioId *openapi_types.UUID `json:"approvedScenarioId,omitempty"`
ApprovedVersion *int `json:"approvedVersion,omitempty"`
CreatedAt time.Time `json:"createdAt"`
CreatedBy *string `json:"createdBy,omitempty"`
// Diff Unified diff against scenarioId's latest version
Diff *string `json:"diff,omitempty"`
DryRun bool `json:"dryRun"`
Error *string `json:"error,omitempty"`
FinishedAt *time.Time `json:"finishedAt,omitempty"`
Id openapi_types.UUID `json:"id"`
Journeys []AIJourney `json:"journeys"`
Model string `json:"model"`
Problems []AIProblem `json:"problems"`
ProjectId openapi_types.UUID `json:"projectId"`
ProviderKind string `json:"providerKind"`
// Round Repair round (0 is the first draft)
Round int `json:"round"`
ScenarioId *openapi_types.UUID `json:"scenarioId,omitempty"`
// Stage understand, draft, static-check, dry-run, repair or done
Stage string `json:"stage"`
StartedAt *time.Time `json:"startedAt,omitempty"`
// Status succeeded means every journey passed its dry run; needs_review means some journeys are flagged.
Status AIJobStatus `json:"status"`
TargetId *openapi_types.UUID `json:"targetId,omitempty"`
Usage AIUsage `json:"usage"`
// Yaml The proposed scenario
Yaml *string `json:"yaml,omitempty"`
}
AIJob defines model for AIJob.
type AIJobApproval ¶
AIJobApproval defines model for AIJobApproval.
type AIJobApprove ¶
type AIJobApprove struct {
// AllowUnvalidated Approve even though some journeys are flagged
AllowUnvalidated *bool `json:"allowUnvalidated,omitempty"`
Message *string `json:"message,omitempty"`
// ScenarioId Save as a new version of this scenario
ScenarioId *openapi_types.UUID `json:"scenarioId,omitempty"`
}
AIJobApprove defines model for AIJobApprove.
type AIJobCreate ¶
type AIJobCreate struct {
// AccessLog Web server access log
AccessLog *string `json:"accessLog,omitempty"`
Description *string `json:"description,omitempty"`
DryRun *bool `json:"dryRun,omitempty"`
// Har HAR recording (JSON)
Har *string `json:"har,omitempty"`
MaxRepairs *int `json:"maxRepairs,omitempty"`
// Openapi OpenAPI 3.x document (YAML or JSON)
Openapi *string `json:"openapi,omitempty"`
// Proto .proto sources by file name (the name imports use), at most 5 MiB
// in all. Their services' unary and server streaming methods
// become grpc steps, dry-run against the target with these
// descriptors. The steps leave proto out, so runs use the
// target's gRPC reflection service.
Proto *map[string]string `json:"proto,omitempty"`
// ProviderId Defaults to the organisation's only provider
ProviderId *openapi_types.UUID `json:"providerId,omitempty"`
// ScenarioId Existing scenario to compare the proposal with.
ScenarioId *openapi_types.UUID `json:"scenarioId,omitempty"`
// TargetId Required for the dry run.
TargetId *openapi_types.UUID `json:"targetId,omitempty"`
}
AIJobCreate defines model for AIJobCreate.
type AIJobStatus ¶
type AIJobStatus string
AIJobStatus succeeded means every journey passed its dry run; needs_review means some journeys are flagged.
const ( AIJobFailed AIJobStatus = "failed" AIJobNeedsReview AIJobStatus = "needs_review" AIJobQueued AIJobStatus = "queued" AIJobRunning AIJobStatus = "running" AIJobSucceeded AIJobStatus = "succeeded" )
Defines values for AIJobStatus.
func (AIJobStatus) Valid ¶
func (e AIJobStatus) Valid() bool
Valid indicates whether the value is a known member of the AIJobStatus enum.
type AIJobSummary ¶
type AIJobSummary struct {
ApprovedAt *time.Time `json:"approvedAt,omitempty"`
CreatedAt time.Time `json:"createdAt"`
CreatedBy *string `json:"createdBy,omitempty"`
DryRun bool `json:"dryRun"`
Error *string `json:"error,omitempty"`
FinishedAt *time.Time `json:"finishedAt,omitempty"`
Id openapi_types.UUID `json:"id"`
Model string `json:"model"`
ProjectId openapi_types.UUID `json:"projectId"`
ProviderKind string `json:"providerKind"`
// Stage understand, draft, static-check, dry-run, repair or done
Stage string `json:"stage"`
// Status succeeded means every journey passed its dry run; needs_review means some journeys are flagged.
Status AIJobStatus `json:"status"`
Usage AIUsage `json:"usage"`
}
AIJobSummary defines model for AIJobSummary.
type AIJourney ¶
type AIJourney struct {
// Attempts Dry runs of this journey across repair rounds
Attempts int `json:"attempts"`
Name string `json:"name"`
Problems *[]string `json:"problems,omitempty"`
Status AIJourneyStatus `json:"status"`
Traces []AITrace `json:"traces"`
}
AIJourney defines model for AIJourney.
type AIJourneyStatus ¶
type AIJourneyStatus string
AIJourneyStatus defines model for AIJourney.Status.
const ( AIJourneyFlagged AIJourneyStatus = "flagged" AIJourneyNotRun AIJourneyStatus = "not-run" AIJourneyPassed AIJourneyStatus = "passed" )
Defines values for AIJourneyStatus.
func (AIJourneyStatus) Valid ¶
func (e AIJourneyStatus) Valid() bool
Valid indicates whether the value is a known member of the AIJourneyStatus enum.
type AIProblem ¶
type AIProblem struct {
// Fatal The proposal cannot be used while this problem remains.
Fatal *bool `json:"fatal,omitempty"`
Journey *string `json:"journey,omitempty"`
Message string `json:"message"`
}
AIProblem defines model for AIProblem.
type AIProvider ¶
type AIProvider struct {
BaseURL *string `json:"baseURL,omitempty"`
CreatedAt time.Time `json:"createdAt"`
// HasKey Whether an API key is stored. The key itself is never returned.
HasKey bool `json:"hasKey"`
Id openapi_types.UUID `json:"id"`
Kind AIProviderKind `json:"kind"`
Model string `json:"model"`
// MonthlyTokenCap Jobs are refused once the organisation's AI token use this calendar month (UTC) reaches this cap.
MonthlyTokenCap int64 `json:"monthlyTokenCap"`
Name string `json:"name"`
UpdatedAt time.Time `json:"updatedAt"`
UsedTokensThisMonth int64 `json:"usedTokensThisMonth"`
}
AIProvider defines model for AIProvider.
type AIProviderKind ¶
type AIProviderKind string
AIProviderKind defines model for AIProviderKind.
const ( AIProviderAnthropic AIProviderKind = "anthropic" AIProviderGemini AIProviderKind = "gemini" AIProviderOllama AIProviderKind = "ollama" AIProviderOpenAI AIProviderKind = "openai" AIProviderOpenAICompatible AIProviderKind = "openai-compatible" )
Defines values for AIProviderKind.
func (AIProviderKind) Valid ¶
func (e AIProviderKind) Valid() bool
Valid indicates whether the value is a known member of the AIProviderKind enum.
type AIProviderPut ¶
type AIProviderPut struct {
// ApiKey Stored encrypted; omit to keep the current key.
ApiKey *string `json:"apiKey,omitempty"`
// BaseURL API base URL; required for openai-compatible.
BaseURL *string `json:"baseURL,omitempty"`
Kind AIProviderKind `json:"kind"`
// Model Required except for anthropic (default claude-sonnet-5-5).
Model *string `json:"model,omitempty"`
// MonthlyTokenCap Default 2000000.
MonthlyTokenCap *int64 `json:"monthlyTokenCap,omitempty"`
Name *string `json:"name,omitempty"`
}
AIProviderPut defines model for AIProviderPut.
type AIStepTrace ¶
type AIStepTrace struct {
Checks *[]AICheck `json:"checks,omitempty"`
DurationMs float64 `json:"durationMs"`
Error *string `json:"error,omitempty"`
Extracted *map[string]string `json:"extracted,omitempty"`
Method *string `json:"method,omitempty"`
Note *string `json:"note,omitempty"`
Ok bool `json:"ok"`
RequestBody *string `json:"requestBody,omitempty"`
RequestHeaders *map[string]string `json:"requestHeaders,omitempty"`
ResponseBody *string `json:"responseBody,omitempty"`
ResponseHeaders *map[string]string `json:"responseHeaders,omitempty"`
Status *int `json:"status,omitempty"`
Step string `json:"step"`
Url *string `json:"url,omitempty"`
}
AIStepTrace One request of a dry run. Bodies are truncated; secrets and personal data are redacted.
type AITrace ¶
type AITrace struct {
Branches *[]string `json:"branches,omitempty"`
Error *string `json:"error,omitempty"`
Ok bool `json:"ok"`
Pass int `json:"pass"`
Steps []AIStepTrace `json:"steps"`
}
AITrace defines model for AITrace.
type AIUsage ¶
type AIUsage struct {
InputTokens int64 `json:"inputTokens"`
OutputTokens int64 `json:"outputTokens"`
}
AIUsage defines model for AIUsage.
type ApproveAIJob201JSONResponse ¶
type ApproveAIJob201JSONResponse AIJobApproval
func (ApproveAIJob201JSONResponse) VisitApproveAIJobResponse ¶
func (response ApproveAIJob201JSONResponse) VisitApproveAIJobResponse(w http.ResponseWriter) error
type ApproveAIJob403JSONResponse ¶
type ApproveAIJob403JSONResponse struct{ ForbiddenJSONResponse }
func (ApproveAIJob403JSONResponse) VisitApproveAIJobResponse ¶
func (response ApproveAIJob403JSONResponse) VisitApproveAIJobResponse(w http.ResponseWriter) error
type ApproveAIJob404JSONResponse ¶
type ApproveAIJob404JSONResponse struct{ NotFoundJSONResponse }
func (ApproveAIJob404JSONResponse) VisitApproveAIJobResponse ¶
func (response ApproveAIJob404JSONResponse) VisitApproveAIJobResponse(w http.ResponseWriter) error
type ApproveAIJob409JSONResponse ¶
type ApproveAIJob409JSONResponse struct{ ConflictJSONResponse }
func (ApproveAIJob409JSONResponse) VisitApproveAIJobResponse ¶
func (response ApproveAIJob409JSONResponse) VisitApproveAIJobResponse(w http.ResponseWriter) error
type ApproveAIJob422JSONResponse ¶
type ApproveAIJob422JSONResponse struct{ InvalidJSONResponse }
func (ApproveAIJob422JSONResponse) VisitApproveAIJobResponse ¶
func (response ApproveAIJob422JSONResponse) VisitApproveAIJobResponse(w http.ResponseWriter) error
type ApproveAIJobJSONRequestBody ¶
type ApproveAIJobJSONRequestBody = AIJobApprove
ApproveAIJobJSONRequestBody defines body for ApproveAIJob for application/json ContentType.
type ApproveAIJobRequestObject ¶
type ApproveAIJobRequestObject struct {
JobId openapi_types.UUID `json:"jobId"`
Body *ApproveAIJobJSONRequestBody
}
type ApproveAIJobResponseObject ¶
type ApproveAIJobResponseObject interface {
VisitApproveAIJobResponse(w http.ResponseWriter) error
}
type AuditEntry ¶
type AuditEntry struct {
Action string `json:"action"`
// Actor User email or token name
Actor string `json:"actor"`
At time.Time `json:"at"`
Details *map[string]interface{} `json:"details,omitempty"`
Id int64 `json:"id"`
Ip *string `json:"ip,omitempty"`
Subject *string `json:"subject,omitempty"`
}
AuditEntry defines model for AuditEntry.
type AuthConfig ¶
type AuthConfig struct {
// Password Email and password sign-in is available.
Password bool `json:"password"`
// Sso Set when single sign-on is configured.
Sso *struct {
// LoginURL Start sign-in here (a browser navigation, not a fetch); add ?next=/path to return there.
LoginURL string `json:"loginURL"`
// Name Label for the sign-in button.
Name string `json:"name"`
} `json:"sso,omitempty"`
}
AuthConfig defines model for AuthConfig.
type Caps ¶
type Caps struct {
MaxDurationSeconds *int `json:"maxDurationSeconds,omitempty"`
// MaxRate Iterations per second
MaxRate *float64 `json:"maxRate,omitempty"`
MaxVUs *int `json:"maxVUs,omitempty"`
}
Caps defines model for Caps.
type ChangePassword204Response ¶
type ChangePassword204Response struct {
}
func (ChangePassword204Response) VisitChangePasswordResponse ¶
func (response ChangePassword204Response) VisitChangePasswordResponse(w http.ResponseWriter) error
type ChangePassword401JSONResponse ¶
func (ChangePassword401JSONResponse) VisitChangePasswordResponse ¶
func (response ChangePassword401JSONResponse) VisitChangePasswordResponse(w http.ResponseWriter) error
type ChangePassword422JSONResponse ¶
type ChangePassword422JSONResponse struct{ InvalidJSONResponse }
func (ChangePassword422JSONResponse) VisitChangePasswordResponse ¶
func (response ChangePassword422JSONResponse) VisitChangePasswordResponse(w http.ResponseWriter) error
type ChangePasswordJSONBody ¶
ChangePasswordJSONBody defines parameters for ChangePassword.
type ChangePasswordJSONRequestBody ¶
type ChangePasswordJSONRequestBody ChangePasswordJSONBody
ChangePasswordJSONRequestBody defines body for ChangePassword for application/json ContentType.
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 CompareRequest ¶
type CompareRequest struct {
// A Runs of the baseline version
A []openapi_types.UUID `json:"a"`
// B Runs of the new version
B []openapi_types.UUID `json:"b"`
// LabelA Name for the baseline (default A)
LabelA *string `json:"labelA,omitempty"`
// LabelB Name for the new version (default B)
LabelB *string `json:"labelB,omitempty"`
}
CompareRequest defines model for CompareRequest.
type CompareRuns200JSONResponse ¶
type CompareRuns200JSONResponse Comparison
func (CompareRuns200JSONResponse) VisitCompareRunsResponse ¶
func (response CompareRuns200JSONResponse) VisitCompareRunsResponse(w http.ResponseWriter) error
type CompareRuns403JSONResponse ¶
type CompareRuns403JSONResponse struct{ ForbiddenJSONResponse }
func (CompareRuns403JSONResponse) VisitCompareRunsResponse ¶
func (response CompareRuns403JSONResponse) VisitCompareRunsResponse(w http.ResponseWriter) error
type CompareRuns422JSONResponse ¶
type CompareRuns422JSONResponse struct{ InvalidJSONResponse }
func (CompareRuns422JSONResponse) VisitCompareRunsResponse ¶
func (response CompareRuns422JSONResponse) VisitCompareRunsResponse(w http.ResponseWriter) error
type CompareRunsJSONRequestBody ¶
type CompareRunsJSONRequestBody = CompareRequest
CompareRunsJSONRequestBody defines body for CompareRuns for application/json ContentType.
type CompareRunsRequestObject ¶
type CompareRunsRequestObject struct {
Body *CompareRunsJSONRequestBody
}
type CompareRunsResponseObject ¶
type CompareRunsResponseObject interface {
VisitCompareRunsResponse(w http.ResponseWriter) error
}
type CompareSide ¶
CompareSide defines model for CompareSide.
type CompareVerdict ¶
type CompareVerdict string
CompareVerdict defines model for CompareVerdict.
const ( CompareImprovement CompareVerdict = "improvement" CompareInconclusive CompareVerdict = "inconclusive" CompareNoChange CompareVerdict = "no-change" CompareRegression CompareVerdict = "regression" )
Defines values for CompareVerdict.
func (CompareVerdict) Valid ¶
func (e CompareVerdict) Valid() bool
Valid indicates whether the value is a known member of the CompareVerdict enum.
type Comparison ¶
type Comparison struct {
A CompareSide `json:"a"`
B CompareSide `json:"b"`
// Comparable False when the runs differ in scenario
Comparable bool `json:"comparable"`
// Confidence Confidence level of the intervals (0.95)
Confidence float64 `json:"confidence"`
// Markdown The comparison as Markdown
Markdown string `json:"markdown"`
Metrics []MetricDelta `json:"metrics"`
// Problems Why the runs are not comparable
Problems []string `json:"problems"`
// Steps Per-step comparisons; informational, they do not change the verdict
Steps []StepDelta `json:"steps"`
Verdict CompareVerdict `json:"verdict"`
}
Comparison defines model for Comparison.
type ConflictJSONResponse ¶
type ConflictJSONResponse Error
type CoverageEndpoint ¶
type CoverageEndpoint struct {
// Journeys Journeys that call the endpoint; empty when none does.
Journeys []string `json:"journeys"`
Method string `json:"method"`
Path string `json:"path"`
Summary *string `json:"summary,omitempty"`
}
CoverageEndpoint defines model for CoverageEndpoint.
type CoverageRequest ¶
type CoverageRequest struct {
// Openapi OpenAPI 3.x document (YAML or JSON).
Openapi *string `json:"openapi,omitempty"`
// SpecURL Fetch the OpenAPI document from this URL; its host must be one of the project's targets or a host a target allows. Needs the editor role.
SpecURL *string `json:"specURL,omitempty"`
// Version Scenario version to check; default the latest.
Version *int `json:"version,omitempty"`
}
CoverageRequest defines model for CoverageRequest.
type CreateAIJob202JSONResponse ¶
type CreateAIJob202JSONResponse AIJob
func (CreateAIJob202JSONResponse) VisitCreateAIJobResponse ¶
func (response CreateAIJob202JSONResponse) VisitCreateAIJobResponse(w http.ResponseWriter) error
type CreateAIJob403JSONResponse ¶
type CreateAIJob403JSONResponse struct{ ForbiddenJSONResponse }
func (CreateAIJob403JSONResponse) VisitCreateAIJobResponse ¶
func (response CreateAIJob403JSONResponse) VisitCreateAIJobResponse(w http.ResponseWriter) error
type CreateAIJob409JSONResponse ¶
type CreateAIJob409JSONResponse struct{ ConflictJSONResponse }
func (CreateAIJob409JSONResponse) VisitCreateAIJobResponse ¶
func (response CreateAIJob409JSONResponse) VisitCreateAIJobResponse(w http.ResponseWriter) error
type CreateAIJob422JSONResponse ¶
type CreateAIJob422JSONResponse struct{ InvalidJSONResponse }
func (CreateAIJob422JSONResponse) VisitCreateAIJobResponse ¶
func (response CreateAIJob422JSONResponse) VisitCreateAIJobResponse(w http.ResponseWriter) error
type CreateAIJob429JSONResponse ¶
type CreateAIJob429JSONResponse Error
func (CreateAIJob429JSONResponse) VisitCreateAIJobResponse ¶
func (response CreateAIJob429JSONResponse) VisitCreateAIJobResponse(w http.ResponseWriter) error
type CreateAIJobJSONRequestBody ¶
type CreateAIJobJSONRequestBody = AIJobCreate
CreateAIJobJSONRequestBody defines body for CreateAIJob for application/json ContentType.
type CreateAIJobRequestObject ¶
type CreateAIJobRequestObject struct {
ProjectId ProjectId `json:"projectId"`
Body *CreateAIJobJSONRequestBody
}
type CreateAIJobResponseObject ¶
type CreateAIJobResponseObject interface {
VisitCreateAIJobResponse(w http.ResponseWriter) error
}
type CreateIntegration201JSONResponse ¶
type CreateIntegration201JSONResponse Integration
func (CreateIntegration201JSONResponse) VisitCreateIntegrationResponse ¶
func (response CreateIntegration201JSONResponse) VisitCreateIntegrationResponse(w http.ResponseWriter) error
type CreateIntegration403JSONResponse ¶
type CreateIntegration403JSONResponse struct{ ForbiddenJSONResponse }
func (CreateIntegration403JSONResponse) VisitCreateIntegrationResponse ¶
func (response CreateIntegration403JSONResponse) VisitCreateIntegrationResponse(w http.ResponseWriter) error
type CreateIntegration409JSONResponse ¶
type CreateIntegration409JSONResponse struct{ ConflictJSONResponse }
func (CreateIntegration409JSONResponse) VisitCreateIntegrationResponse ¶
func (response CreateIntegration409JSONResponse) VisitCreateIntegrationResponse(w http.ResponseWriter) error
type CreateIntegration422JSONResponse ¶
type CreateIntegration422JSONResponse struct{ InvalidJSONResponse }
func (CreateIntegration422JSONResponse) VisitCreateIntegrationResponse ¶
func (response CreateIntegration422JSONResponse) VisitCreateIntegrationResponse(w http.ResponseWriter) error
type CreateIntegrationJSONRequestBody ¶
type CreateIntegrationJSONRequestBody = IntegrationCreate
CreateIntegrationJSONRequestBody defines body for CreateIntegration for application/json ContentType.
type CreateIntegrationRequestObject ¶
type CreateIntegrationRequestObject struct {
Body *CreateIntegrationJSONRequestBody
}
type CreateIntegrationResponseObject ¶
type CreateIntegrationResponseObject interface {
VisitCreateIntegrationResponse(w http.ResponseWriter) error
}
type CreateNotificationChannel201JSONResponse ¶
type CreateNotificationChannel201JSONResponse NotificationChannelCreated
func (CreateNotificationChannel201JSONResponse) VisitCreateNotificationChannelResponse ¶
func (response CreateNotificationChannel201JSONResponse) VisitCreateNotificationChannelResponse(w http.ResponseWriter) error
type CreateNotificationChannel403JSONResponse ¶
type CreateNotificationChannel403JSONResponse struct{ ForbiddenJSONResponse }
func (CreateNotificationChannel403JSONResponse) VisitCreateNotificationChannelResponse ¶
func (response CreateNotificationChannel403JSONResponse) VisitCreateNotificationChannelResponse(w http.ResponseWriter) error
type CreateNotificationChannel409JSONResponse ¶
type CreateNotificationChannel409JSONResponse struct{ ConflictJSONResponse }
func (CreateNotificationChannel409JSONResponse) VisitCreateNotificationChannelResponse ¶
func (response CreateNotificationChannel409JSONResponse) VisitCreateNotificationChannelResponse(w http.ResponseWriter) error
type CreateNotificationChannel422JSONResponse ¶
type CreateNotificationChannel422JSONResponse struct{ InvalidJSONResponse }
func (CreateNotificationChannel422JSONResponse) VisitCreateNotificationChannelResponse ¶
func (response CreateNotificationChannel422JSONResponse) VisitCreateNotificationChannelResponse(w http.ResponseWriter) error
type CreateNotificationChannelJSONRequestBody ¶
type CreateNotificationChannelJSONRequestBody = NotificationChannelCreate
CreateNotificationChannelJSONRequestBody defines body for CreateNotificationChannel for application/json ContentType.
type CreateNotificationChannelRequestObject ¶
type CreateNotificationChannelRequestObject struct {
Body *CreateNotificationChannelJSONRequestBody
}
type CreateNotificationChannelResponseObject ¶
type CreateNotificationChannelResponseObject interface {
VisitCreateNotificationChannelResponse(w http.ResponseWriter) error
}
type CreateProject201JSONResponse ¶
type CreateProject201JSONResponse Project
func (CreateProject201JSONResponse) VisitCreateProjectResponse ¶
func (response CreateProject201JSONResponse) VisitCreateProjectResponse(w http.ResponseWriter) error
type CreateProject409JSONResponse ¶
type CreateProject409JSONResponse struct{ ConflictJSONResponse }
func (CreateProject409JSONResponse) VisitCreateProjectResponse ¶
func (response CreateProject409JSONResponse) VisitCreateProjectResponse(w http.ResponseWriter) error
type CreateProject422JSONResponse ¶
type CreateProject422JSONResponse struct{ InvalidJSONResponse }
func (CreateProject422JSONResponse) VisitCreateProjectResponse ¶
func (response CreateProject422JSONResponse) VisitCreateProjectResponse(w http.ResponseWriter) error
type CreateProjectJSONRequestBody ¶
type CreateProjectJSONRequestBody = ProjectCreate
CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.
type CreateProjectRequestObject ¶
type CreateProjectRequestObject struct {
Body *CreateProjectJSONRequestBody
}
type CreateProjectResponseObject ¶
type CreateProjectResponseObject interface {
VisitCreateProjectResponse(w http.ResponseWriter) error
}
type CreateRun201JSONResponse ¶
type CreateRun201JSONResponse Run
func (CreateRun201JSONResponse) VisitCreateRunResponse ¶
func (response CreateRun201JSONResponse) VisitCreateRunResponse(w http.ResponseWriter) error
type CreateRun403JSONResponse ¶
type CreateRun403JSONResponse struct{ ForbiddenJSONResponse }
func (CreateRun403JSONResponse) VisitCreateRunResponse ¶
func (response CreateRun403JSONResponse) VisitCreateRunResponse(w http.ResponseWriter) error
type CreateRun409JSONResponse ¶
type CreateRun409JSONResponse struct{ ConflictJSONResponse }
func (CreateRun409JSONResponse) VisitCreateRunResponse ¶
func (response CreateRun409JSONResponse) VisitCreateRunResponse(w http.ResponseWriter) error
type CreateRun422JSONResponse ¶
type CreateRun422JSONResponse struct{ InvalidJSONResponse }
func (CreateRun422JSONResponse) VisitCreateRunResponse ¶
func (response CreateRun422JSONResponse) VisitCreateRunResponse(w http.ResponseWriter) error
type CreateRunJSONRequestBody ¶
type CreateRunJSONRequestBody = RunCreate
CreateRunJSONRequestBody defines body for CreateRun for application/json ContentType.
type CreateRunNarrative200JSONResponse ¶
type CreateRunNarrative200JSONResponse NarrativeResult
func (CreateRunNarrative200JSONResponse) VisitCreateRunNarrativeResponse ¶
func (response CreateRunNarrative200JSONResponse) VisitCreateRunNarrativeResponse(w http.ResponseWriter) error
type CreateRunNarrative403JSONResponse ¶
type CreateRunNarrative403JSONResponse struct{ ForbiddenJSONResponse }
func (CreateRunNarrative403JSONResponse) VisitCreateRunNarrativeResponse ¶
func (response CreateRunNarrative403JSONResponse) VisitCreateRunNarrativeResponse(w http.ResponseWriter) error
type CreateRunNarrative404JSONResponse ¶
type CreateRunNarrative404JSONResponse struct{ NotFoundJSONResponse }
func (CreateRunNarrative404JSONResponse) VisitCreateRunNarrativeResponse ¶
func (response CreateRunNarrative404JSONResponse) VisitCreateRunNarrativeResponse(w http.ResponseWriter) error
type CreateRunNarrative409JSONResponse ¶
type CreateRunNarrative409JSONResponse struct{ ConflictJSONResponse }
func (CreateRunNarrative409JSONResponse) VisitCreateRunNarrativeResponse ¶
func (response CreateRunNarrative409JSONResponse) VisitCreateRunNarrativeResponse(w http.ResponseWriter) error
type CreateRunNarrative422JSONResponse ¶
type CreateRunNarrative422JSONResponse struct{ InvalidJSONResponse }
func (CreateRunNarrative422JSONResponse) VisitCreateRunNarrativeResponse ¶
func (response CreateRunNarrative422JSONResponse) VisitCreateRunNarrativeResponse(w http.ResponseWriter) error
type CreateRunNarrative429JSONResponse ¶
type CreateRunNarrative429JSONResponse Error
func (CreateRunNarrative429JSONResponse) VisitCreateRunNarrativeResponse ¶
func (response CreateRunNarrative429JSONResponse) VisitCreateRunNarrativeResponse(w http.ResponseWriter) error
type CreateRunNarrative502JSONResponse ¶
type CreateRunNarrative502JSONResponse Error
func (CreateRunNarrative502JSONResponse) VisitCreateRunNarrativeResponse ¶
func (response CreateRunNarrative502JSONResponse) VisitCreateRunNarrativeResponse(w http.ResponseWriter) error
type CreateRunNarrativeJSONRequestBody ¶
type CreateRunNarrativeJSONRequestBody = NarrativeCreate
CreateRunNarrativeJSONRequestBody defines body for CreateRunNarrative for application/json ContentType.
type CreateRunNarrativeRequestObject ¶
type CreateRunNarrativeRequestObject struct {
RunId RunId `json:"runId"`
Body *CreateRunNarrativeJSONRequestBody
}
type CreateRunNarrativeResponseObject ¶
type CreateRunNarrativeResponseObject interface {
VisitCreateRunNarrativeResponse(w http.ResponseWriter) error
}
type CreateRunRequestObject ¶
type CreateRunRequestObject struct {
ProjectId ProjectId `json:"projectId"`
Body *CreateRunJSONRequestBody
}
type CreateRunResponseObject ¶
type CreateRunResponseObject interface {
VisitCreateRunResponse(w http.ResponseWriter) error
}
type CreateScenario201JSONResponse ¶
type CreateScenario201JSONResponse Scenario
func (CreateScenario201JSONResponse) VisitCreateScenarioResponse ¶
func (response CreateScenario201JSONResponse) VisitCreateScenarioResponse(w http.ResponseWriter) error
type CreateScenario409JSONResponse ¶
type CreateScenario409JSONResponse struct{ ConflictJSONResponse }
func (CreateScenario409JSONResponse) VisitCreateScenarioResponse ¶
func (response CreateScenario409JSONResponse) VisitCreateScenarioResponse(w http.ResponseWriter) error
type CreateScenario422JSONResponse ¶
type CreateScenario422JSONResponse struct{ InvalidJSONResponse }
func (CreateScenario422JSONResponse) VisitCreateScenarioResponse ¶
func (response CreateScenario422JSONResponse) VisitCreateScenarioResponse(w http.ResponseWriter) error
type CreateScenarioJSONRequestBody ¶
type CreateScenarioJSONRequestBody = ScenarioVersionCreate
CreateScenarioJSONRequestBody defines body for CreateScenario for application/json ContentType.
type CreateScenarioRequestObject ¶
type CreateScenarioRequestObject struct {
ProjectId ProjectId `json:"projectId"`
Body *CreateScenarioJSONRequestBody
}
type CreateScenarioResponseObject ¶
type CreateScenarioResponseObject interface {
VisitCreateScenarioResponse(w http.ResponseWriter) error
}
type CreateScenarioVersion201JSONResponse ¶
type CreateScenarioVersion201JSONResponse ScenarioVersion
func (CreateScenarioVersion201JSONResponse) VisitCreateScenarioVersionResponse ¶
func (response CreateScenarioVersion201JSONResponse) VisitCreateScenarioVersionResponse(w http.ResponseWriter) error
type CreateScenarioVersion422JSONResponse ¶
type CreateScenarioVersion422JSONResponse struct{ InvalidJSONResponse }
func (CreateScenarioVersion422JSONResponse) VisitCreateScenarioVersionResponse ¶
func (response CreateScenarioVersion422JSONResponse) VisitCreateScenarioVersionResponse(w http.ResponseWriter) error
type CreateScenarioVersionJSONRequestBody ¶
type CreateScenarioVersionJSONRequestBody = ScenarioVersionCreate
CreateScenarioVersionJSONRequestBody defines body for CreateScenarioVersion for application/json ContentType.
type CreateScenarioVersionRequestObject ¶
type CreateScenarioVersionRequestObject struct {
ScenarioId ScenarioId `json:"scenarioId"`
Body *CreateScenarioVersionJSONRequestBody
}
type CreateScenarioVersionResponseObject ¶
type CreateScenarioVersionResponseObject interface {
VisitCreateScenarioVersionResponse(w http.ResponseWriter) error
}
type CreateSchedule201JSONResponse ¶
type CreateSchedule201JSONResponse Schedule
func (CreateSchedule201JSONResponse) VisitCreateScheduleResponse ¶
func (response CreateSchedule201JSONResponse) VisitCreateScheduleResponse(w http.ResponseWriter) error
type CreateSchedule403JSONResponse ¶
type CreateSchedule403JSONResponse struct{ ForbiddenJSONResponse }
func (CreateSchedule403JSONResponse) VisitCreateScheduleResponse ¶
func (response CreateSchedule403JSONResponse) VisitCreateScheduleResponse(w http.ResponseWriter) error
type CreateSchedule409JSONResponse ¶
type CreateSchedule409JSONResponse struct{ ConflictJSONResponse }
func (CreateSchedule409JSONResponse) VisitCreateScheduleResponse ¶
func (response CreateSchedule409JSONResponse) VisitCreateScheduleResponse(w http.ResponseWriter) error
type CreateSchedule422JSONResponse ¶
type CreateSchedule422JSONResponse struct{ InvalidJSONResponse }
func (CreateSchedule422JSONResponse) VisitCreateScheduleResponse ¶
func (response CreateSchedule422JSONResponse) VisitCreateScheduleResponse(w http.ResponseWriter) error
type CreateScheduleJSONRequestBody ¶
type CreateScheduleJSONRequestBody = ScheduleCreate
CreateScheduleJSONRequestBody defines body for CreateSchedule for application/json ContentType.
type CreateScheduleRequestObject ¶
type CreateScheduleRequestObject struct {
ProjectId ProjectId `json:"projectId"`
Body *CreateScheduleJSONRequestBody
}
type CreateScheduleResponseObject ¶
type CreateScheduleResponseObject interface {
VisitCreateScheduleResponse(w http.ResponseWriter) error
}
type CreateTarget201JSONResponse ¶
type CreateTarget201JSONResponse Target
func (CreateTarget201JSONResponse) VisitCreateTargetResponse ¶
func (response CreateTarget201JSONResponse) VisitCreateTargetResponse(w http.ResponseWriter) error
type CreateTarget422JSONResponse ¶
type CreateTarget422JSONResponse struct{ InvalidJSONResponse }
func (CreateTarget422JSONResponse) VisitCreateTargetResponse ¶
func (response CreateTarget422JSONResponse) VisitCreateTargetResponse(w http.ResponseWriter) error
type CreateTargetJSONRequestBody ¶
type CreateTargetJSONRequestBody = TargetCreate
CreateTargetJSONRequestBody defines body for CreateTarget for application/json ContentType.
type CreateTargetRequestObject ¶
type CreateTargetRequestObject struct {
ProjectId ProjectId `json:"projectId"`
Body *CreateTargetJSONRequestBody
}
type CreateTargetResponseObject ¶
type CreateTargetResponseObject interface {
VisitCreateTargetResponse(w http.ResponseWriter) error
}
type CreateToken201JSONResponse ¶
type CreateToken201JSONResponse TokenCreated
func (CreateToken201JSONResponse) VisitCreateTokenResponse ¶
func (response CreateToken201JSONResponse) VisitCreateTokenResponse(w http.ResponseWriter) error
type CreateToken422JSONResponse ¶
type CreateToken422JSONResponse struct{ InvalidJSONResponse }
func (CreateToken422JSONResponse) VisitCreateTokenResponse ¶
func (response CreateToken422JSONResponse) 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 CreateUser201JSONResponse ¶
type CreateUser201JSONResponse User
func (CreateUser201JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser201JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUser403JSONResponse ¶
type CreateUser403JSONResponse struct{ ForbiddenJSONResponse }
func (CreateUser403JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser403JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUser409JSONResponse ¶
type CreateUser409JSONResponse struct{ ConflictJSONResponse }
func (CreateUser409JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser409JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUser422JSONResponse ¶
type CreateUser422JSONResponse struct{ InvalidJSONResponse }
func (CreateUser422JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser422JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUserJSONRequestBody ¶
type CreateUserJSONRequestBody = UserCreate
CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.
type CreateUserRequestObject ¶
type CreateUserRequestObject struct {
Body *CreateUserJSONRequestBody
}
type CreateUserResponseObject ¶
type CreateUserResponseObject interface {
VisitCreateUserResponse(w http.ResponseWriter) error
}
type DeleteAIProvider204Response ¶
type DeleteAIProvider204Response struct {
}
func (DeleteAIProvider204Response) VisitDeleteAIProviderResponse ¶
func (response DeleteAIProvider204Response) VisitDeleteAIProviderResponse(w http.ResponseWriter) error
type DeleteAIProvider403JSONResponse ¶
type DeleteAIProvider403JSONResponse struct{ ForbiddenJSONResponse }
func (DeleteAIProvider403JSONResponse) VisitDeleteAIProviderResponse ¶
func (response DeleteAIProvider403JSONResponse) VisitDeleteAIProviderResponse(w http.ResponseWriter) error
type DeleteAIProvider404JSONResponse ¶
type DeleteAIProvider404JSONResponse struct{ NotFoundJSONResponse }
func (DeleteAIProvider404JSONResponse) VisitDeleteAIProviderResponse ¶
func (response DeleteAIProvider404JSONResponse) VisitDeleteAIProviderResponse(w http.ResponseWriter) error
type DeleteAIProviderRequestObject ¶
type DeleteAIProviderRequestObject struct {
ProviderId openapi_types.UUID `json:"providerId"`
}
type DeleteAIProviderResponseObject ¶
type DeleteAIProviderResponseObject interface {
VisitDeleteAIProviderResponse(w http.ResponseWriter) error
}
type DeleteIntegration204Response ¶
type DeleteIntegration204Response struct {
}
func (DeleteIntegration204Response) VisitDeleteIntegrationResponse ¶
func (response DeleteIntegration204Response) VisitDeleteIntegrationResponse(w http.ResponseWriter) error
type DeleteIntegration403JSONResponse ¶
type DeleteIntegration403JSONResponse struct{ ForbiddenJSONResponse }
func (DeleteIntegration403JSONResponse) VisitDeleteIntegrationResponse ¶
func (response DeleteIntegration403JSONResponse) VisitDeleteIntegrationResponse(w http.ResponseWriter) error
type DeleteIntegration404JSONResponse ¶
type DeleteIntegration404JSONResponse struct{ NotFoundJSONResponse }
func (DeleteIntegration404JSONResponse) VisitDeleteIntegrationResponse ¶
func (response DeleteIntegration404JSONResponse) VisitDeleteIntegrationResponse(w http.ResponseWriter) error
type DeleteIntegrationRequestObject ¶
type DeleteIntegrationRequestObject struct {
IntegrationId openapi_types.UUID `json:"integrationId"`
}
type DeleteIntegrationResponseObject ¶
type DeleteIntegrationResponseObject interface {
VisitDeleteIntegrationResponse(w http.ResponseWriter) error
}
type DeleteNotificationChannel204Response ¶
type DeleteNotificationChannel204Response struct {
}
func (DeleteNotificationChannel204Response) VisitDeleteNotificationChannelResponse ¶
func (response DeleteNotificationChannel204Response) VisitDeleteNotificationChannelResponse(w http.ResponseWriter) error
type DeleteNotificationChannel403JSONResponse ¶
type DeleteNotificationChannel403JSONResponse struct{ ForbiddenJSONResponse }
func (DeleteNotificationChannel403JSONResponse) VisitDeleteNotificationChannelResponse ¶
func (response DeleteNotificationChannel403JSONResponse) VisitDeleteNotificationChannelResponse(w http.ResponseWriter) error
type DeleteNotificationChannel404JSONResponse ¶
type DeleteNotificationChannel404JSONResponse struct{ NotFoundJSONResponse }
func (DeleteNotificationChannel404JSONResponse) VisitDeleteNotificationChannelResponse ¶
func (response DeleteNotificationChannel404JSONResponse) VisitDeleteNotificationChannelResponse(w http.ResponseWriter) error
type DeleteNotificationChannelRequestObject ¶
type DeleteNotificationChannelRequestObject struct {
ChannelId ChannelId `json:"channelId"`
}
type DeleteNotificationChannelResponseObject ¶
type DeleteNotificationChannelResponseObject interface {
VisitDeleteNotificationChannelResponse(w http.ResponseWriter) error
}
type DeleteProject204Response ¶
type DeleteProject204Response struct {
}
func (DeleteProject204Response) VisitDeleteProjectResponse ¶
func (response DeleteProject204Response) VisitDeleteProjectResponse(w http.ResponseWriter) error
type DeleteProject404JSONResponse ¶
type DeleteProject404JSONResponse struct{ NotFoundJSONResponse }
func (DeleteProject404JSONResponse) VisitDeleteProjectResponse ¶
func (response DeleteProject404JSONResponse) VisitDeleteProjectResponse(w http.ResponseWriter) error
type DeleteProjectRequestObject ¶
type DeleteProjectRequestObject struct {
ProjectId ProjectId `json:"projectId"`
}
type DeleteProjectResponseObject ¶
type DeleteProjectResponseObject interface {
VisitDeleteProjectResponse(w http.ResponseWriter) error
}
type DeleteProjectRole204Response ¶
type DeleteProjectRole204Response struct {
}
func (DeleteProjectRole204Response) VisitDeleteProjectRoleResponse ¶
func (response DeleteProjectRole204Response) VisitDeleteProjectRoleResponse(w http.ResponseWriter) error
type DeleteProjectRole403JSONResponse ¶
type DeleteProjectRole403JSONResponse struct{ ForbiddenJSONResponse }
func (DeleteProjectRole403JSONResponse) VisitDeleteProjectRoleResponse ¶
func (response DeleteProjectRole403JSONResponse) VisitDeleteProjectRoleResponse(w http.ResponseWriter) error
type DeleteProjectRole404JSONResponse ¶
type DeleteProjectRole404JSONResponse struct{ NotFoundJSONResponse }
func (DeleteProjectRole404JSONResponse) VisitDeleteProjectRoleResponse ¶
func (response DeleteProjectRole404JSONResponse) VisitDeleteProjectRoleResponse(w http.ResponseWriter) error
type DeleteProjectRoleResponseObject ¶
type DeleteProjectRoleResponseObject interface {
VisitDeleteProjectRoleResponse(w http.ResponseWriter) error
}
type DeleteScenario204Response ¶
type DeleteScenario204Response struct {
}
func (DeleteScenario204Response) VisitDeleteScenarioResponse ¶
func (response DeleteScenario204Response) VisitDeleteScenarioResponse(w http.ResponseWriter) error
type DeleteScenario404JSONResponse ¶
type DeleteScenario404JSONResponse struct{ NotFoundJSONResponse }
func (DeleteScenario404JSONResponse) VisitDeleteScenarioResponse ¶
func (response DeleteScenario404JSONResponse) VisitDeleteScenarioResponse(w http.ResponseWriter) error
type DeleteScenarioRequestObject ¶
type DeleteScenarioRequestObject struct {
ScenarioId ScenarioId `json:"scenarioId"`
}
type DeleteScenarioResponseObject ¶
type DeleteScenarioResponseObject interface {
VisitDeleteScenarioResponse(w http.ResponseWriter) error
}
type DeleteSchedule204Response ¶
type DeleteSchedule204Response struct {
}
func (DeleteSchedule204Response) VisitDeleteScheduleResponse ¶
func (response DeleteSchedule204Response) VisitDeleteScheduleResponse(w http.ResponseWriter) error
type DeleteSchedule403JSONResponse ¶
type DeleteSchedule403JSONResponse struct{ ForbiddenJSONResponse }
func (DeleteSchedule403JSONResponse) VisitDeleteScheduleResponse ¶
func (response DeleteSchedule403JSONResponse) VisitDeleteScheduleResponse(w http.ResponseWriter) error
type DeleteSchedule404JSONResponse ¶
type DeleteSchedule404JSONResponse struct{ NotFoundJSONResponse }
func (DeleteSchedule404JSONResponse) VisitDeleteScheduleResponse ¶
func (response DeleteSchedule404JSONResponse) VisitDeleteScheduleResponse(w http.ResponseWriter) error
type DeleteScheduleRequestObject ¶
type DeleteScheduleRequestObject struct {
ScheduleId ScheduleId `json:"scheduleId"`
}
type DeleteScheduleResponseObject ¶
type DeleteScheduleResponseObject interface {
VisitDeleteScheduleResponse(w http.ResponseWriter) error
}
type DeleteSecret204Response ¶
type DeleteSecret204Response struct {
}
func (DeleteSecret204Response) VisitDeleteSecretResponse ¶
func (response DeleteSecret204Response) VisitDeleteSecretResponse(w http.ResponseWriter) error
type DeleteSecret404JSONResponse ¶
type DeleteSecret404JSONResponse struct{ NotFoundJSONResponse }
func (DeleteSecret404JSONResponse) VisitDeleteSecretResponse ¶
func (response DeleteSecret404JSONResponse) VisitDeleteSecretResponse(w http.ResponseWriter) error
type DeleteSecretResponseObject ¶
type DeleteSecretResponseObject interface {
VisitDeleteSecretResponse(w http.ResponseWriter) error
}
type DeleteTarget204Response ¶
type DeleteTarget204Response struct {
}
func (DeleteTarget204Response) VisitDeleteTargetResponse ¶
func (response DeleteTarget204Response) VisitDeleteTargetResponse(w http.ResponseWriter) error
type DeleteTarget404JSONResponse ¶
type DeleteTarget404JSONResponse struct{ NotFoundJSONResponse }
func (DeleteTarget404JSONResponse) VisitDeleteTargetResponse ¶
func (response DeleteTarget404JSONResponse) VisitDeleteTargetResponse(w http.ResponseWriter) error
type DeleteTargetRequestObject ¶
type DeleteTargetRequestObject struct {
TargetId TargetId `json:"targetId"`
}
type DeleteTargetResponseObject ¶
type DeleteTargetResponseObject interface {
VisitDeleteTargetResponse(w http.ResponseWriter) error
}
type DeleteToken204Response ¶
type DeleteToken204Response struct {
}
func (DeleteToken204Response) VisitDeleteTokenResponse ¶
func (response DeleteToken204Response) VisitDeleteTokenResponse(w http.ResponseWriter) error
type DeleteToken404JSONResponse ¶
type DeleteToken404JSONResponse struct{ NotFoundJSONResponse }
func (DeleteToken404JSONResponse) VisitDeleteTokenResponse ¶
func (response DeleteToken404JSONResponse) VisitDeleteTokenResponse(w http.ResponseWriter) error
type DeleteTokenRequestObject ¶
type DeleteTokenRequestObject struct {
TokenId TokenId `json:"tokenId"`
}
type DeleteTokenResponseObject ¶
type DeleteTokenResponseObject interface {
VisitDeleteTokenResponse(w http.ResponseWriter) error
}
type DeleteUser204Response ¶
type DeleteUser204Response struct {
}
func (DeleteUser204Response) VisitDeleteUserResponse ¶
func (response DeleteUser204Response) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUser403JSONResponse ¶
type DeleteUser403JSONResponse struct{ ForbiddenJSONResponse }
func (DeleteUser403JSONResponse) VisitDeleteUserResponse ¶
func (response DeleteUser403JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUser404JSONResponse ¶
type DeleteUser404JSONResponse struct{ NotFoundJSONResponse }
func (DeleteUser404JSONResponse) VisitDeleteUserResponse ¶
func (response DeleteUser404JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUserRequestObject ¶
type DeleteUserRequestObject struct {
UserId UserId `json:"userId"`
}
type DeleteUserResponseObject ¶
type DeleteUserResponseObject interface {
VisitDeleteUserResponse(w http.ResponseWriter) error
}
type DriftEndpoint ¶
DriftEndpoint defines model for DriftEndpoint.
type DriftJourney ¶
type DriftJourney struct {
Journey string `json:"journey"`
Ok bool `json:"ok"`
Problem *string `json:"problem,omitempty"`
Traces *[]AITrace `json:"traces,omitempty"`
}
DriftJourney defines model for DriftJourney.
type DriftJourneyCheck ¶
type DriftJourneyCheck struct {
Error *string `json:"error,omitempty"`
Journey string `json:"journey"`
Ok bool `json:"ok"`
Status *int `json:"status,omitempty"`
// Step The first step that failed.
Step *string `json:"step,omitempty"`
}
DriftJourneyCheck defines model for DriftJourneyCheck.
type DriftRepair ¶
type DriftRepair struct {
MaxRepairs *int `json:"maxRepairs,omitempty"`
// ProviderId Defaults to the organisation's only provider
ProviderId *openapi_types.UUID `json:"providerId,omitempty"`
}
DriftRepair defines model for DriftRepair.
type DriftRequest ¶
type DriftRequest struct {
// Openapi The current OpenAPI document.
Openapi *string `json:"openapi,omitempty"`
// PreviousOpenapi The previous OpenAPI document
PreviousOpenapi *string `json:"previousOpenapi,omitempty"`
PreviousSpecURL *string `json:"previousSpecURL,omitempty"`
// SpecURL Fetch the current document from a target's host
SpecURL *string `json:"specURL,omitempty"`
// TargetId Dry-run every journey once against this target (sends real requests).
TargetId *openapi_types.UUID `json:"targetId,omitempty"`
Version *int `json:"version,omitempty"`
}
DriftRequest defines model for DriftRequest.
type DriftResult ¶
type DriftResult struct {
AddedEndpoints *[]string `json:"addedEndpoints,omitempty"`
// Broken Names of the broken journeys
Broken []string `json:"broken"`
CreatedAt time.Time `json:"createdAt"`
Error *string `json:"error,omitempty"`
Id openapi_types.UUID `json:"id"`
// Journeys Dry-run outcome per journey (with redacted traces on GET /drift-results/{driftId})
Journeys *[]DriftJourney `json:"journeys,omitempty"`
ProjectId openapi_types.UUID `json:"projectId"`
// RemovedEndpoints Endpoints in the previous check's spec that the current spec no longer has
RemovedEndpoints *[]string `json:"removedEndpoints,omitempty"`
RepairJobId *openapi_types.UUID `json:"repairJobId,omitempty"`
ScenarioId openapi_types.UUID `json:"scenarioId"`
ScenarioName *string `json:"scenarioName,omitempty"`
ScenarioVersion int `json:"scenarioVersion"`
ScheduleId *openapi_types.UUID `json:"scheduleId,omitempty"`
ScheduleName *string `json:"scheduleName,omitempty"`
// Status drifted when a journey failed its dry run or calls an endpoint the API no longer has; error when the check could not run
Status DriftResultStatus `json:"status"`
TargetId openapi_types.UUID `json:"targetId"`
TargetURL *string `json:"targetURL,omitempty"`
// Unmatched Requests that match no endpoint of the current spec
Unmatched *[]string `json:"unmatched,omitempty"`
}
DriftResult defines model for DriftResult.
type DriftResultStatus ¶
type DriftResultStatus string
DriftResultStatus drifted when a journey failed its dry run or calls an endpoint the API no longer has; error when the check could not run
const ( DriftDrifted DriftResultStatus = "drifted" DriftError DriftResultStatus = "error" DriftOK DriftResultStatus = "ok" )
Defines values for DriftResultStatus.
func (DriftResultStatus) Valid ¶
func (e DriftResultStatus) Valid() bool
Valid indicates whether the value is a known member of the DriftResultStatus enum.
type Error ¶
type Error struct {
Error struct {
Code string `json:"code"`
Details *[]string `json:"details,omitempty"`
Message string `json:"message"`
} `json:"error"`
}
Error defines model for Error.
type ForbiddenJSONResponse ¶
type ForbiddenJSONResponse Error
type GetAIJob200JSONResponse ¶
type GetAIJob200JSONResponse AIJob
func (GetAIJob200JSONResponse) VisitGetAIJobResponse ¶
func (response GetAIJob200JSONResponse) VisitGetAIJobResponse(w http.ResponseWriter) error
type GetAIJob404JSONResponse ¶
type GetAIJob404JSONResponse struct{ NotFoundJSONResponse }
func (GetAIJob404JSONResponse) VisitGetAIJobResponse ¶
func (response GetAIJob404JSONResponse) VisitGetAIJobResponse(w http.ResponseWriter) error
type GetAIJobRequestObject ¶
type GetAIJobRequestObject struct {
JobId openapi_types.UUID `json:"jobId"`
}
type GetAIJobResponseObject ¶
type GetAIJobResponseObject interface {
VisitGetAIJobResponse(w http.ResponseWriter) error
}
type GetAuthConfig200JSONResponse ¶
type GetAuthConfig200JSONResponse AuthConfig
func (GetAuthConfig200JSONResponse) VisitGetAuthConfigResponse ¶
func (response GetAuthConfig200JSONResponse) VisitGetAuthConfigResponse(w http.ResponseWriter) error
type GetAuthConfigRequestObject ¶
type GetAuthConfigRequestObject struct {
}
type GetAuthConfigResponseObject ¶
type GetAuthConfigResponseObject interface {
VisitGetAuthConfigResponse(w http.ResponseWriter) error
}
type GetDriftResult200JSONResponse ¶
type GetDriftResult200JSONResponse DriftResult
func (GetDriftResult200JSONResponse) VisitGetDriftResultResponse ¶
func (response GetDriftResult200JSONResponse) VisitGetDriftResultResponse(w http.ResponseWriter) error
type GetDriftResult404JSONResponse ¶
type GetDriftResult404JSONResponse struct{ NotFoundJSONResponse }
func (GetDriftResult404JSONResponse) VisitGetDriftResultResponse ¶
func (response GetDriftResult404JSONResponse) VisitGetDriftResultResponse(w http.ResponseWriter) error
type GetDriftResultRequestObject ¶
type GetDriftResultRequestObject struct {
DriftId DriftId `json:"driftId"`
}
type GetDriftResultResponseObject ¶
type GetDriftResultResponseObject interface {
VisitGetDriftResultResponse(w http.ResponseWriter) error
}
type GetLimitSettings200JSONResponse ¶
type GetLimitSettings200JSONResponse LimitSettings
func (GetLimitSettings200JSONResponse) VisitGetLimitSettingsResponse ¶
func (response GetLimitSettings200JSONResponse) VisitGetLimitSettingsResponse(w http.ResponseWriter) error
type GetLimitSettings403JSONResponse ¶
type GetLimitSettings403JSONResponse struct{ ForbiddenJSONResponse }
func (GetLimitSettings403JSONResponse) VisitGetLimitSettingsResponse ¶
func (response GetLimitSettings403JSONResponse) VisitGetLimitSettingsResponse(w http.ResponseWriter) error
type GetLimitSettingsRequestObject ¶
type GetLimitSettingsRequestObject struct {
}
type GetLimitSettingsResponseObject ¶
type GetLimitSettingsResponseObject interface {
VisitGetLimitSettingsResponse(w http.ResponseWriter) error
}
type GetMe200JSONResponse ¶
type GetMe200JSONResponse Me
func (GetMe200JSONResponse) VisitGetMeResponse ¶
func (response GetMe200JSONResponse) VisitGetMeResponse(w http.ResponseWriter) error
type GetMe401JSONResponse ¶
func (GetMe401JSONResponse) VisitGetMeResponse ¶
func (response GetMe401JSONResponse) VisitGetMeResponse(w http.ResponseWriter) error
type GetMeRequestObject ¶
type GetMeRequestObject struct {
}
type GetMeResponseObject ¶
type GetMeResponseObject interface {
VisitGetMeResponse(w http.ResponseWriter) error
}
type GetOrgCaps200JSONResponse ¶
type GetOrgCaps200JSONResponse Caps
func (GetOrgCaps200JSONResponse) VisitGetOrgCapsResponse ¶
func (response GetOrgCaps200JSONResponse) VisitGetOrgCapsResponse(w http.ResponseWriter) error
type GetOrgCapsRequestObject ¶
type GetOrgCapsRequestObject struct {
}
type GetOrgCapsResponseObject ¶
type GetOrgCapsResponseObject interface {
VisitGetOrgCapsResponse(w http.ResponseWriter) error
}
type GetPack200JSONResponse ¶
type GetPack200JSONResponse PackDetail
func (GetPack200JSONResponse) VisitGetPackResponse ¶
func (response GetPack200JSONResponse) VisitGetPackResponse(w http.ResponseWriter) error
type GetPack404JSONResponse ¶
type GetPack404JSONResponse struct{ NotFoundJSONResponse }
func (GetPack404JSONResponse) VisitGetPackResponse ¶
func (response GetPack404JSONResponse) VisitGetPackResponse(w http.ResponseWriter) error
type GetPackRequestObject ¶
type GetPackRequestObject struct {
PackName string `json:"packName"`
}
type GetPackResponseObject ¶
type GetPackResponseObject interface {
VisitGetPackResponse(w http.ResponseWriter) error
}
type GetProject200JSONResponse ¶
type GetProject200JSONResponse Project
func (GetProject200JSONResponse) VisitGetProjectResponse ¶
func (response GetProject200JSONResponse) VisitGetProjectResponse(w http.ResponseWriter) error
type GetProject404JSONResponse ¶
type GetProject404JSONResponse struct{ NotFoundJSONResponse }
func (GetProject404JSONResponse) VisitGetProjectResponse ¶
func (response GetProject404JSONResponse) VisitGetProjectResponse(w http.ResponseWriter) error
type GetProjectRequestObject ¶
type GetProjectRequestObject struct {
ProjectId ProjectId `json:"projectId"`
}
type GetProjectResponseObject ¶
type GetProjectResponseObject interface {
VisitGetProjectResponse(w http.ResponseWriter) error
}
type GetProjectSettings200JSONResponse ¶
type GetProjectSettings200JSONResponse ProjectSettings
func (GetProjectSettings200JSONResponse) VisitGetProjectSettingsResponse ¶
func (response GetProjectSettings200JSONResponse) VisitGetProjectSettingsResponse(w http.ResponseWriter) error
type GetProjectSettings404JSONResponse ¶
type GetProjectSettings404JSONResponse struct{ NotFoundJSONResponse }
func (GetProjectSettings404JSONResponse) VisitGetProjectSettingsResponse ¶
func (response GetProjectSettings404JSONResponse) VisitGetProjectSettingsResponse(w http.ResponseWriter) error
type GetProjectSettingsRequestObject ¶
type GetProjectSettingsRequestObject struct {
ProjectId ProjectId `json:"projectId"`
}
type GetProjectSettingsResponseObject ¶
type GetProjectSettingsResponseObject interface {
VisitGetProjectSettingsResponse(w http.ResponseWriter) error
}
type GetRun200JSONResponse ¶
type GetRun200JSONResponse Run
func (GetRun200JSONResponse) VisitGetRunResponse ¶
func (response GetRun200JSONResponse) VisitGetRunResponse(w http.ResponseWriter) error
type GetRun404JSONResponse ¶
type GetRun404JSONResponse struct{ NotFoundJSONResponse }
func (GetRun404JSONResponse) VisitGetRunResponse ¶
func (response GetRun404JSONResponse) VisitGetRunResponse(w http.ResponseWriter) error
type GetRunReport200ApplicationxmlResponse ¶
func (GetRunReport200ApplicationxmlResponse) VisitGetRunReportResponse ¶
func (response GetRunReport200ApplicationxmlResponse) VisitGetRunReportResponse(w http.ResponseWriter) error
type GetRunReport200JSONResponse ¶
type GetRunReport200JSONResponse Report
func (GetRunReport200JSONResponse) VisitGetRunReportResponse ¶
func (response GetRunReport200JSONResponse) VisitGetRunReportResponse(w http.ResponseWriter) error
type GetRunReport200TextcsvResponse ¶
func (GetRunReport200TextcsvResponse) VisitGetRunReportResponse ¶
func (response GetRunReport200TextcsvResponse) VisitGetRunReportResponse(w http.ResponseWriter) error
type GetRunReport200TexthtmlResponse ¶
func (GetRunReport200TexthtmlResponse) VisitGetRunReportResponse ¶
func (response GetRunReport200TexthtmlResponse) VisitGetRunReportResponse(w http.ResponseWriter) error
type GetRunReport200TextmarkdownResponse ¶
func (GetRunReport200TextmarkdownResponse) VisitGetRunReportResponse ¶
func (response GetRunReport200TextmarkdownResponse) VisitGetRunReportResponse(w http.ResponseWriter) error
type GetRunReport404JSONResponse ¶
type GetRunReport404JSONResponse struct{ NotFoundJSONResponse }
func (GetRunReport404JSONResponse) VisitGetRunReportResponse ¶
func (response GetRunReport404JSONResponse) VisitGetRunReportResponse(w http.ResponseWriter) error
type GetRunReport409JSONResponse ¶
type GetRunReport409JSONResponse struct{ ConflictJSONResponse }
func (GetRunReport409JSONResponse) VisitGetRunReportResponse ¶
func (response GetRunReport409JSONResponse) VisitGetRunReportResponse(w http.ResponseWriter) error
type GetRunReportParams ¶
type GetRunReportParams struct {
// Format csv is one row per step, per journey and for the whole run; timeline-csv is one row per second. Latencies are in milliseconds.
Format *GetRunReportParamsFormat `form:"format,omitempty" json:"format,omitempty"`
}
GetRunReportParams defines parameters for GetRunReport.
type GetRunReportParamsFormat ¶
type GetRunReportParamsFormat string
GetRunReportParamsFormat defines parameters for GetRunReport.
const ( Csv GetRunReportParamsFormat = "csv" Html GetRunReportParamsFormat = "html" Json GetRunReportParamsFormat = "json" Junit GetRunReportParamsFormat = "junit" Markdown GetRunReportParamsFormat = "markdown" TimelineCsv GetRunReportParamsFormat = "timeline-csv" )
Defines values for GetRunReportParamsFormat.
func (GetRunReportParamsFormat) Valid ¶
func (e GetRunReportParamsFormat) Valid() bool
Valid indicates whether the value is a known member of the GetRunReportParamsFormat enum.
type GetRunReportRequestObject ¶
type GetRunReportRequestObject struct {
RunId RunId `json:"runId"`
Params GetRunReportParams
}
type GetRunReportResponseObject ¶
type GetRunReportResponseObject interface {
VisitGetRunReportResponse(w http.ResponseWriter) error
}
type GetRunRequestObject ¶
type GetRunRequestObject struct {
RunId RunId `json:"runId"`
}
type GetRunResponseObject ¶
type GetRunResponseObject interface {
VisitGetRunResponse(w http.ResponseWriter) error
}
type GetRunTimeline200JSONResponse ¶
type GetRunTimeline200JSONResponse []Point
func (GetRunTimeline200JSONResponse) VisitGetRunTimelineResponse ¶
func (response GetRunTimeline200JSONResponse) VisitGetRunTimelineResponse(w http.ResponseWriter) error
type GetRunTimeline404JSONResponse ¶
type GetRunTimeline404JSONResponse struct{ NotFoundJSONResponse }
func (GetRunTimeline404JSONResponse) VisitGetRunTimelineResponse ¶
func (response GetRunTimeline404JSONResponse) VisitGetRunTimelineResponse(w http.ResponseWriter) error
type GetRunTimelineParams ¶
type GetRunTimelineParams struct {
// Resolution 1s (default) returns the per-second points. 10s and 1m return
// rollups: requests summed, rps averaged, p50 the mean and p95/p99
// the worst per-second value in each bucket. With TimescaleDB the
// rollups are continuous aggregates kept after per-second points
// expire (stampede server --metrics-retention).
Resolution *GetRunTimelineParamsResolution `form:"resolution,omitempty" json:"resolution,omitempty"`
}
GetRunTimelineParams defines parameters for GetRunTimeline.
type GetRunTimelineParamsResolution ¶
type GetRunTimelineParamsResolution string
GetRunTimelineParamsResolution defines parameters for GetRunTimeline.
const ( Resolution10s GetRunTimelineParamsResolution = "10s" Resolution1m GetRunTimelineParamsResolution = "1m" Resolution1s GetRunTimelineParamsResolution = "1s" )
Defines values for GetRunTimelineParamsResolution.
func (GetRunTimelineParamsResolution) Valid ¶
func (e GetRunTimelineParamsResolution) Valid() bool
Valid indicates whether the value is a known member of the GetRunTimelineParamsResolution enum.
type GetRunTimelineRequestObject ¶
type GetRunTimelineRequestObject struct {
RunId RunId `json:"runId"`
Params GetRunTimelineParams
}
type GetRunTimelineResponseObject ¶
type GetRunTimelineResponseObject interface {
VisitGetRunTimelineResponse(w http.ResponseWriter) error
}
type GetSSOSettings200JSONResponse ¶
type GetSSOSettings200JSONResponse SSOSettings
func (GetSSOSettings200JSONResponse) VisitGetSSOSettingsResponse ¶
func (response GetSSOSettings200JSONResponse) VisitGetSSOSettingsResponse(w http.ResponseWriter) error
type GetSSOSettings403JSONResponse ¶
type GetSSOSettings403JSONResponse struct{ ForbiddenJSONResponse }
func (GetSSOSettings403JSONResponse) VisitGetSSOSettingsResponse ¶
func (response GetSSOSettings403JSONResponse) VisitGetSSOSettingsResponse(w http.ResponseWriter) error
type GetSSOSettingsRequestObject ¶
type GetSSOSettingsRequestObject struct {
}
type GetSSOSettingsResponseObject ¶
type GetSSOSettingsResponseObject interface {
VisitGetSSOSettingsResponse(w http.ResponseWriter) error
}
type GetScenario200JSONResponse ¶
type GetScenario200JSONResponse Scenario
func (GetScenario200JSONResponse) VisitGetScenarioResponse ¶
func (response GetScenario200JSONResponse) VisitGetScenarioResponse(w http.ResponseWriter) error
type GetScenario404JSONResponse ¶
type GetScenario404JSONResponse struct{ NotFoundJSONResponse }
func (GetScenario404JSONResponse) VisitGetScenarioResponse ¶
func (response GetScenario404JSONResponse) VisitGetScenarioResponse(w http.ResponseWriter) error
type GetScenarioRequestObject ¶
type GetScenarioRequestObject struct {
ScenarioId ScenarioId `json:"scenarioId"`
}
type GetScenarioResponseObject ¶
type GetScenarioResponseObject interface {
VisitGetScenarioResponse(w http.ResponseWriter) error
}
type GetScenarioVersion200JSONResponse ¶
type GetScenarioVersion200JSONResponse ScenarioVersion
func (GetScenarioVersion200JSONResponse) VisitGetScenarioVersionResponse ¶
func (response GetScenarioVersion200JSONResponse) VisitGetScenarioVersionResponse(w http.ResponseWriter) error
type GetScenarioVersion404JSONResponse ¶
type GetScenarioVersion404JSONResponse struct{ NotFoundJSONResponse }
func (GetScenarioVersion404JSONResponse) VisitGetScenarioVersionResponse ¶
func (response GetScenarioVersion404JSONResponse) VisitGetScenarioVersionResponse(w http.ResponseWriter) error
type GetScenarioVersionRequestObject ¶
type GetScenarioVersionRequestObject struct {
ScenarioId ScenarioId `json:"scenarioId"`
Version int `json:"version"`
}
type GetScenarioVersionResponseObject ¶
type GetScenarioVersionResponseObject interface {
VisitGetScenarioVersionResponse(w http.ResponseWriter) error
}
type GetSchedule200JSONResponse ¶
type GetSchedule200JSONResponse Schedule
func (GetSchedule200JSONResponse) VisitGetScheduleResponse ¶
func (response GetSchedule200JSONResponse) VisitGetScheduleResponse(w http.ResponseWriter) error
type GetSchedule404JSONResponse ¶
type GetSchedule404JSONResponse struct{ NotFoundJSONResponse }
func (GetSchedule404JSONResponse) VisitGetScheduleResponse ¶
func (response GetSchedule404JSONResponse) VisitGetScheduleResponse(w http.ResponseWriter) error
type GetScheduleRequestObject ¶
type GetScheduleRequestObject struct {
ScheduleId ScheduleId `json:"scheduleId"`
}
type GetScheduleResponseObject ¶
type GetScheduleResponseObject interface {
VisitGetScheduleResponse(w http.ResponseWriter) error
}
type GetTarget200JSONResponse ¶
type GetTarget200JSONResponse Target
func (GetTarget200JSONResponse) VisitGetTargetResponse ¶
func (response GetTarget200JSONResponse) VisitGetTargetResponse(w http.ResponseWriter) error
type GetTarget404JSONResponse ¶
type GetTarget404JSONResponse struct{ NotFoundJSONResponse }
func (GetTarget404JSONResponse) VisitGetTargetResponse ¶
func (response GetTarget404JSONResponse) VisitGetTargetResponse(w http.ResponseWriter) error
type GetTargetRequestObject ¶
type GetTargetRequestObject struct {
TargetId TargetId `json:"targetId"`
}
type GetTargetResponseObject ¶
type GetTargetResponseObject interface {
VisitGetTargetResponse(w http.ResponseWriter) error
}
type GetVersion200JSONResponse ¶
type GetVersion200JSONResponse VersionInfo
func (GetVersion200JSONResponse) VisitGetVersionResponse ¶
func (response GetVersion200JSONResponse) VisitGetVersionResponse(w http.ResponseWriter) error
type GetVersionRequestObject ¶
type GetVersionRequestObject struct {
}
type GetVersionResponseObject ¶
type GetVersionResponseObject interface {
VisitGetVersionResponse(w http.ResponseWriter) error
}
type Integration ¶
type Integration struct {
CreatedAt time.Time `json:"createdAt"`
// HasToken Whether a bearer token is stored. The token itself is never returned.
HasToken bool `json:"hasToken"`
Id openapi_types.UUID `json:"id"`
Kind IntegrationKind `json:"kind"`
Name string `json:"name"`
UpdatedAt time.Time `json:"updatedAt"`
// Url Prometheus base URL, for traces a link template containing {traceId}, or a stampede agent's control API.
Url string `json:"url"`
}
Integration defines model for Integration.
type IntegrationCreate ¶
type IntegrationCreate struct {
// BearerToken Prometheus (optional) and agent (required). Stored encrypted.
BearerToken *string `json:"bearerToken,omitempty"`
Kind IntegrationKind `json:"kind"`
Name string `json:"name"`
// Url prometheus: the base URL, e.g. http://prometheus:9090. traces: a link
// template containing {traceId}, e.g. https://jaeger.example.com/trace/{traceId}.
// agent: a stampede agent's control API, e.g. http://agent.shop.svc:7070.
Url string `json:"url"`
}
IntegrationCreate defines model for IntegrationCreate.
type IntegrationKind ¶
type IntegrationKind string
IntegrationKind defines model for IntegrationKind.
const ( IntegrationAgent IntegrationKind = "agent" IntegrationPrometheus IntegrationKind = "prometheus" IntegrationTraces IntegrationKind = "traces" )
Defines values for IntegrationKind.
func (IntegrationKind) Valid ¶
func (e IntegrationKind) Valid() bool
Valid indicates whether the value is a known member of the IntegrationKind enum.
type InvalidJSONResponse ¶
type InvalidJSONResponse Error
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type KillAllRuns200JSONResponse ¶
type KillAllRuns200JSONResponse struct {
Killed []openapi_types.UUID `json:"killed"`
}
func (KillAllRuns200JSONResponse) VisitKillAllRunsResponse ¶
func (response KillAllRuns200JSONResponse) VisitKillAllRunsResponse(w http.ResponseWriter) error
type KillAllRunsRequestObject ¶
type KillAllRunsRequestObject struct {
}
type KillAllRunsResponseObject ¶
type KillAllRunsResponseObject interface {
VisitKillAllRunsResponse(w http.ResponseWriter) error
}
type KillRun202Response ¶
type KillRun202Response struct {
}
func (KillRun202Response) VisitKillRunResponse ¶
func (response KillRun202Response) VisitKillRunResponse(w http.ResponseWriter) error
type KillRun404JSONResponse ¶
type KillRun404JSONResponse struct{ NotFoundJSONResponse }
func (KillRun404JSONResponse) VisitKillRunResponse ¶
func (response KillRun404JSONResponse) VisitKillRunResponse(w http.ResponseWriter) error
type KillRunRequestObject ¶
type KillRunRequestObject struct {
RunId RunId `json:"runId"`
}
type KillRunResponseObject ¶
type KillRunResponseObject interface {
VisitKillRunResponse(w http.ResponseWriter) error
}
type LimitCaps ¶
type LimitCaps struct {
MaxDurationSeconds *int `json:"maxDurationSeconds,omitempty"`
// MaxRate Iterations per second; absent means no cap.
MaxRate *float64 `json:"maxRate,omitempty"`
MaxVUs *int `json:"maxVUs,omitempty"`
}
LimitCaps defines model for LimitCaps.
type LimitSettings ¶
type LimitSettings struct {
// AbortFloor Stops any run whose target is clearly failing, even when its scenario sets no abort limits.
AbortFloor *struct {
ErrorRate *float64 `json:"errorRate,omitempty"`
ForSeconds float64 `json:"forSeconds"`
P95Seconds *float64 `json:"p95Seconds,omitempty"`
} `json:"abortFloor,omitempty"`
Organisation LimitCaps `json:"organisation"`
// Projects Every project's caps and dry-run gate, by name
Projects []ProjectLimits `json:"projects"`
Server LimitCaps `json:"server"`
Targets []TargetLimits `json:"targets"`
UnverifiedPublic LimitCaps `json:"unverifiedPublic"`
}
LimitSettings defines model for LimitSettings.
type ListAIJobs200JSONResponse ¶
type ListAIJobs200JSONResponse []AIJobSummary
func (ListAIJobs200JSONResponse) VisitListAIJobsResponse ¶
func (response ListAIJobs200JSONResponse) VisitListAIJobsResponse(w http.ResponseWriter) error
type ListAIJobsParams ¶
type ListAIJobsParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListAIJobsParams defines parameters for ListAIJobs.
type ListAIJobsRequestObject ¶
type ListAIJobsRequestObject struct {
ProjectId ProjectId `json:"projectId"`
Params ListAIJobsParams
}
type ListAIJobsResponseObject ¶
type ListAIJobsResponseObject interface {
VisitListAIJobsResponse(w http.ResponseWriter) error
}
type ListAIProviders200JSONResponse ¶
type ListAIProviders200JSONResponse []AIProvider
func (ListAIProviders200JSONResponse) VisitListAIProvidersResponse ¶
func (response ListAIProviders200JSONResponse) VisitListAIProvidersResponse(w http.ResponseWriter) error
type ListAIProvidersRequestObject ¶
type ListAIProvidersRequestObject struct {
}
type ListAIProvidersResponseObject ¶
type ListAIProvidersResponseObject interface {
VisitListAIProvidersResponse(w http.ResponseWriter) error
}
type ListAudit200JSONResponse ¶
type ListAudit200JSONResponse []AuditEntry
func (ListAudit200JSONResponse) VisitListAuditResponse ¶
func (response ListAudit200JSONResponse) VisitListAuditResponse(w http.ResponseWriter) error
type ListAudit403JSONResponse ¶
type ListAudit403JSONResponse struct{ ForbiddenJSONResponse }
func (ListAudit403JSONResponse) VisitListAuditResponse ¶
func (response ListAudit403JSONResponse) VisitListAuditResponse(w http.ResponseWriter) error
type ListAuditParams ¶
type ListAuditParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Before *time.Time `form:"before,omitempty" json:"before,omitempty"`
}
ListAuditParams defines parameters for ListAudit.
type ListAuditRequestObject ¶
type ListAuditRequestObject struct {
Params ListAuditParams
}
type ListAuditResponseObject ¶
type ListAuditResponseObject interface {
VisitListAuditResponse(w http.ResponseWriter) error
}
type ListDriftResults200JSONResponse ¶
type ListDriftResults200JSONResponse []DriftResult
func (ListDriftResults200JSONResponse) VisitListDriftResultsResponse ¶
func (response ListDriftResults200JSONResponse) VisitListDriftResultsResponse(w http.ResponseWriter) error
type ListDriftResults404JSONResponse ¶
type ListDriftResults404JSONResponse struct{ NotFoundJSONResponse }
func (ListDriftResults404JSONResponse) VisitListDriftResultsResponse ¶
func (response ListDriftResults404JSONResponse) VisitListDriftResultsResponse(w http.ResponseWriter) error
type ListDriftResultsParams ¶
type ListDriftResultsParams struct {
ScheduleId *openapi_types.UUID `form:"scheduleId,omitempty" json:"scheduleId,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListDriftResultsParams defines parameters for ListDriftResults.
type ListDriftResultsRequestObject ¶
type ListDriftResultsRequestObject struct {
ProjectId ProjectId `json:"projectId"`
Params ListDriftResultsParams
}
type ListDriftResultsResponseObject ¶
type ListDriftResultsResponseObject interface {
VisitListDriftResultsResponse(w http.ResponseWriter) error
}
type ListIntegrations200JSONResponse ¶
type ListIntegrations200JSONResponse []Integration
func (ListIntegrations200JSONResponse) VisitListIntegrationsResponse ¶
func (response ListIntegrations200JSONResponse) VisitListIntegrationsResponse(w http.ResponseWriter) error
type ListIntegrationsRequestObject ¶
type ListIntegrationsRequestObject struct {
}
type ListIntegrationsResponseObject ¶
type ListIntegrationsResponseObject interface {
VisitListIntegrationsResponse(w http.ResponseWriter) error
}
type ListNotificationChannels200JSONResponse ¶
type ListNotificationChannels200JSONResponse []NotificationChannel
func (ListNotificationChannels200JSONResponse) VisitListNotificationChannelsResponse ¶
func (response ListNotificationChannels200JSONResponse) VisitListNotificationChannelsResponse(w http.ResponseWriter) error
type ListNotificationChannels403JSONResponse ¶
type ListNotificationChannels403JSONResponse struct{ ForbiddenJSONResponse }
func (ListNotificationChannels403JSONResponse) VisitListNotificationChannelsResponse ¶
func (response ListNotificationChannels403JSONResponse) VisitListNotificationChannelsResponse(w http.ResponseWriter) error
type ListNotificationChannelsRequestObject ¶
type ListNotificationChannelsRequestObject struct {
}
type ListNotificationChannelsResponseObject ¶
type ListNotificationChannelsResponseObject interface {
VisitListNotificationChannelsResponse(w http.ResponseWriter) error
}
type ListNotificationDeliveries200JSONResponse ¶
type ListNotificationDeliveries200JSONResponse []NotificationDelivery
func (ListNotificationDeliveries200JSONResponse) VisitListNotificationDeliveriesResponse ¶
func (response ListNotificationDeliveries200JSONResponse) VisitListNotificationDeliveriesResponse(w http.ResponseWriter) error
type ListNotificationDeliveries403JSONResponse ¶
type ListNotificationDeliveries403JSONResponse struct{ ForbiddenJSONResponse }
func (ListNotificationDeliveries403JSONResponse) VisitListNotificationDeliveriesResponse ¶
func (response ListNotificationDeliveries403JSONResponse) VisitListNotificationDeliveriesResponse(w http.ResponseWriter) error
type ListNotificationDeliveries404JSONResponse ¶
type ListNotificationDeliveries404JSONResponse struct{ NotFoundJSONResponse }
func (ListNotificationDeliveries404JSONResponse) VisitListNotificationDeliveriesResponse ¶
func (response ListNotificationDeliveries404JSONResponse) VisitListNotificationDeliveriesResponse(w http.ResponseWriter) error
type ListNotificationDeliveriesParams ¶
type ListNotificationDeliveriesParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListNotificationDeliveriesParams defines parameters for ListNotificationDeliveries.
type ListNotificationDeliveriesRequestObject ¶
type ListNotificationDeliveriesRequestObject struct {
ChannelId ChannelId `json:"channelId"`
Params ListNotificationDeliveriesParams
}
type ListNotificationDeliveriesResponseObject ¶
type ListNotificationDeliveriesResponseObject interface {
VisitListNotificationDeliveriesResponse(w http.ResponseWriter) error
}
type ListPacks200JSONResponse ¶
type ListPacks200JSONResponse []PackEntry
func (ListPacks200JSONResponse) VisitListPacksResponse ¶
func (response ListPacks200JSONResponse) VisitListPacksResponse(w http.ResponseWriter) error
type ListPacksRequestObject ¶
type ListPacksRequestObject struct {
}
type ListPacksResponseObject ¶
type ListPacksResponseObject interface {
VisitListPacksResponse(w http.ResponseWriter) error
}
type ListProjectRoles200JSONResponse ¶
type ListProjectRoles200JSONResponse []ProjectRole
func (ListProjectRoles200JSONResponse) VisitListProjectRolesResponse ¶
func (response ListProjectRoles200JSONResponse) VisitListProjectRolesResponse(w http.ResponseWriter) error
type ListProjectRoles404JSONResponse ¶
type ListProjectRoles404JSONResponse struct{ NotFoundJSONResponse }
func (ListProjectRoles404JSONResponse) VisitListProjectRolesResponse ¶
func (response ListProjectRoles404JSONResponse) VisitListProjectRolesResponse(w http.ResponseWriter) error
type ListProjectRolesRequestObject ¶
type ListProjectRolesRequestObject struct {
ProjectId ProjectId `json:"projectId"`
}
type ListProjectRolesResponseObject ¶
type ListProjectRolesResponseObject interface {
VisitListProjectRolesResponse(w http.ResponseWriter) error
}
type ListProjects200JSONResponse ¶
type ListProjects200JSONResponse []Project
func (ListProjects200JSONResponse) VisitListProjectsResponse ¶
func (response ListProjects200JSONResponse) VisitListProjectsResponse(w http.ResponseWriter) error
type ListProjectsRequestObject ¶
type ListProjectsRequestObject struct {
}
type ListProjectsResponseObject ¶
type ListProjectsResponseObject interface {
VisitListProjectsResponse(w http.ResponseWriter) error
}
type ListRunEvents200JSONResponse ¶
type ListRunEvents200JSONResponse []RunEvent
func (ListRunEvents200JSONResponse) VisitListRunEventsResponse ¶
func (response ListRunEvents200JSONResponse) VisitListRunEventsResponse(w http.ResponseWriter) error
type ListRunEvents404JSONResponse ¶
type ListRunEvents404JSONResponse struct{ NotFoundJSONResponse }
func (ListRunEvents404JSONResponse) VisitListRunEventsResponse ¶
func (response ListRunEvents404JSONResponse) VisitListRunEventsResponse(w http.ResponseWriter) error
type ListRunEventsRequestObject ¶
type ListRunEventsRequestObject struct {
RunId RunId `json:"runId"`
}
type ListRunEventsResponseObject ¶
type ListRunEventsResponseObject interface {
VisitListRunEventsResponse(w http.ResponseWriter) error
}
type ListRunWorkers200JSONResponse ¶
type ListRunWorkers200JSONResponse RunWorkers
func (ListRunWorkers200JSONResponse) VisitListRunWorkersResponse ¶
func (response ListRunWorkers200JSONResponse) VisitListRunWorkersResponse(w http.ResponseWriter) error
type ListRunWorkers404JSONResponse ¶
type ListRunWorkers404JSONResponse struct{ NotFoundJSONResponse }
func (ListRunWorkers404JSONResponse) VisitListRunWorkersResponse ¶
func (response ListRunWorkers404JSONResponse) VisitListRunWorkersResponse(w http.ResponseWriter) error
type ListRunWorkersRequestObject ¶
type ListRunWorkersRequestObject struct {
RunId RunId `json:"runId"`
}
type ListRunWorkersResponseObject ¶
type ListRunWorkersResponseObject interface {
VisitListRunWorkersResponse(w http.ResponseWriter) error
}
type ListRuns200JSONResponse ¶
type ListRuns200JSONResponse []Run
func (ListRuns200JSONResponse) VisitListRunsResponse ¶
func (response ListRuns200JSONResponse) VisitListRunsResponse(w http.ResponseWriter) error
type ListRunsParams ¶
type ListRunsParams struct {
ScenarioId *openapi_types.UUID `form:"scenarioId,omitempty" json:"scenarioId,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// Before Return runs created before this time (pagination).
Before *time.Time `form:"before,omitempty" json:"before,omitempty"`
}
ListRunsParams defines parameters for ListRuns.
type ListRunsRequestObject ¶
type ListRunsRequestObject struct {
ProjectId ProjectId `json:"projectId"`
Params ListRunsParams
}
type ListRunsResponseObject ¶
type ListRunsResponseObject interface {
VisitListRunsResponse(w http.ResponseWriter) error
}
type ListScenarioVersions200JSONResponse ¶
type ListScenarioVersions200JSONResponse []ScenarioVersion
func (ListScenarioVersions200JSONResponse) VisitListScenarioVersionsResponse ¶
func (response ListScenarioVersions200JSONResponse) VisitListScenarioVersionsResponse(w http.ResponseWriter) error
type ListScenarioVersionsRequestObject ¶
type ListScenarioVersionsRequestObject struct {
ScenarioId ScenarioId `json:"scenarioId"`
}
type ListScenarioVersionsResponseObject ¶
type ListScenarioVersionsResponseObject interface {
VisitListScenarioVersionsResponse(w http.ResponseWriter) error
}
type ListScenarios200JSONResponse ¶
type ListScenarios200JSONResponse []Scenario
func (ListScenarios200JSONResponse) VisitListScenariosResponse ¶
func (response ListScenarios200JSONResponse) VisitListScenariosResponse(w http.ResponseWriter) error
type ListScenariosParams ¶
type ListScenariosParams struct {
Tag *string `form:"tag,omitempty" json:"tag,omitempty"`
}
ListScenariosParams defines parameters for ListScenarios.
type ListScenariosRequestObject ¶
type ListScenariosRequestObject struct {
ProjectId ProjectId `json:"projectId"`
Params ListScenariosParams
}
type ListScenariosResponseObject ¶
type ListScenariosResponseObject interface {
VisitListScenariosResponse(w http.ResponseWriter) error
}
type ListSchedules200JSONResponse ¶
type ListSchedules200JSONResponse []Schedule
func (ListSchedules200JSONResponse) VisitListSchedulesResponse ¶
func (response ListSchedules200JSONResponse) VisitListSchedulesResponse(w http.ResponseWriter) error
type ListSchedulesRequestObject ¶
type ListSchedulesRequestObject struct {
ProjectId ProjectId `json:"projectId"`
}
type ListSchedulesResponseObject ¶
type ListSchedulesResponseObject interface {
VisitListSchedulesResponse(w http.ResponseWriter) error
}
type ListSecrets200JSONResponse ¶
type ListSecrets200JSONResponse []Secret
func (ListSecrets200JSONResponse) VisitListSecretsResponse ¶
func (response ListSecrets200JSONResponse) VisitListSecretsResponse(w http.ResponseWriter) error
type ListSecretsRequestObject ¶
type ListSecretsRequestObject struct {
ProjectId ProjectId `json:"projectId"`
}
type ListSecretsResponseObject ¶
type ListSecretsResponseObject interface {
VisitListSecretsResponse(w http.ResponseWriter) error
}
type ListTargets200JSONResponse ¶
type ListTargets200JSONResponse []Target
func (ListTargets200JSONResponse) VisitListTargetsResponse ¶
func (response ListTargets200JSONResponse) VisitListTargetsResponse(w http.ResponseWriter) error
type ListTargetsRequestObject ¶
type ListTargetsRequestObject struct {
ProjectId ProjectId `json:"projectId"`
}
type ListTargetsResponseObject ¶
type ListTargetsResponseObject interface {
VisitListTargetsResponse(w http.ResponseWriter) error
}
type ListTokens200JSONResponse ¶
type ListTokens200JSONResponse []Token
func (ListTokens200JSONResponse) VisitListTokensResponse ¶
func (response ListTokens200JSONResponse) VisitListTokensResponse(w http.ResponseWriter) error
type ListTokensRequestObject ¶
type ListTokensRequestObject struct {
}
type ListTokensResponseObject ¶
type ListTokensResponseObject interface {
VisitListTokensResponse(w http.ResponseWriter) error
}
type ListUsers200JSONResponse ¶
type ListUsers200JSONResponse []User
func (ListUsers200JSONResponse) VisitListUsersResponse ¶
func (response ListUsers200JSONResponse) VisitListUsersResponse(w http.ResponseWriter) error
type ListUsersRequestObject ¶
type ListUsersRequestObject struct {
}
type ListUsersResponseObject ¶
type ListUsersResponseObject interface {
VisitListUsersResponse(w http.ResponseWriter) error
}
type ListWorkers200JSONResponse ¶
type ListWorkers200JSONResponse []Worker
func (ListWorkers200JSONResponse) VisitListWorkersResponse ¶
func (response ListWorkers200JSONResponse) VisitListWorkersResponse(w http.ResponseWriter) error
type ListWorkersRequestObject ¶
type ListWorkersRequestObject struct {
}
type ListWorkersResponseObject ¶
type ListWorkersResponseObject interface {
VisitListWorkersResponse(w http.ResponseWriter) error
}
type Login200JSONResponse ¶
type Login200JSONResponse Session
func (Login200JSONResponse) VisitLoginResponse ¶
func (response Login200JSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type Login401JSONResponse ¶
func (Login401JSONResponse) VisitLoginResponse ¶
func (response Login401JSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type Login429JSONResponse ¶
type Login429JSONResponse struct{ TooManyJSONResponse }
func (Login429JSONResponse) VisitLoginResponse ¶
func (response Login429JSONResponse) 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 openapi_types.Email `json:"email"`
Password string `json:"password"`
}
LoginRequest defines model for LoginRequest.
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 LogoutRequestObject ¶
type LogoutRequestObject struct {
}
type LogoutResponseObject ¶
type LogoutResponseObject interface {
VisitLogoutResponse(w http.ResponseWriter) error
}
type Me ¶
type Me struct {
Email string `json:"email"`
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
OrgId openapi_types.UUID `json:"orgId"`
OrgName string `json:"orgName"`
Role Role `json:"role"`
}
Me defines model for Me.
type MetricDelta ¶
type MetricDelta struct {
// A The value from each run of A. Latencies are in seconds, error rates are fractions.
A []float64 `json:"a"`
B []float64 `json:"b"`
// Change (meanB - meanA) / meanA; null when meanA is 0 and meanB is not.
Change *float64 `json:"change"`
// CiHigh Upper bound of the 95% interval of the change
CiHigh *float64 `json:"ciHigh"`
// CiLow Lower bound of the 95% interval of the change
CiLow *float64 `json:"ciLow"`
HigherIsBetter bool `json:"higherIsBetter"`
MeanA float64 `json:"meanA"`
MeanB float64 `json:"meanB"`
// Name p50, p95, p99, error rate, throughput or max sustainable load
Name string `json:"name"`
// NoiseFloor Largest relative spread between repeats of one version (at least 0.02)
NoiseFloor float64 `json:"noiseFloor"`
Verdict CompareVerdict `json:"verdict"`
}
MetricDelta defines model for MetricDelta.
type Narrative ¶
type Narrative struct {
Claims []NarrativeClaim `json:"claims"`
// Facts The report figures the claims cite.
Facts *[]NarrativeFact `json:"facts,omitempty"`
Model *string `json:"model,omitempty"`
Summary string `json:"summary"`
}
Narrative defines model for Narrative.
type NarrativeClaim ¶
type NarrativeClaim struct {
Label NarrativeClaimLabel `json:"label"`
// Refs Ids of the facts the claim rests on.
Refs []string `json:"refs"`
Text string `json:"text"`
}
NarrativeClaim defines model for NarrativeClaim.
type NarrativeClaimLabel ¶
type NarrativeClaimLabel string
NarrativeClaimLabel defines model for NarrativeClaim.Label.
const ( Measured NarrativeClaimLabel = "measured" Suspected NarrativeClaimLabel = "suspected" )
Defines values for NarrativeClaimLabel.
func (NarrativeClaimLabel) Valid ¶
func (e NarrativeClaimLabel) Valid() bool
Valid indicates whether the value is a known member of the NarrativeClaimLabel enum.
type NarrativeCreate ¶
type NarrativeCreate struct {
// ProviderId Provider to use; default the only one, or the one named "default".
ProviderId *openapi_types.UUID `json:"providerId,omitempty"`
}
NarrativeCreate defines model for NarrativeCreate.
type NarrativeFact ¶
type NarrativeFact struct {
Id string `json:"id"`
Text string `json:"text"`
// Where The report section that shows it.
Where string `json:"where"`
}
NarrativeFact defines model for NarrativeFact.
type NarrativeResult ¶
NarrativeResult defines model for NarrativeResult.
type NotFoundJSONResponse ¶
type NotFoundJSONResponse Error
type NotificationChannel ¶
type NotificationChannel struct {
// AllowPrivate Deliveries may reach private, loopback and link-local addresses.
AllowPrivate bool `json:"allowPrivate"`
CreatedAt time.Time `json:"createdAt"`
Events []NotificationEvent `json:"events"`
// HasSecret Whether bodies are signed (generic webhooks).
HasSecret bool `json:"hasSecret"`
Id openapi_types.UUID `json:"id"`
Kind NotificationKind `json:"kind"`
LastDelivery *NotificationDelivery `json:"lastDelivery,omitempty"`
Name string `json:"name"`
// UrlHint The destination's scheme and host only, e.g. https://hooks.slack.com
UrlHint string `json:"urlHint"`
}
NotificationChannel defines model for NotificationChannel.
type NotificationChannelCreate ¶
type NotificationChannelCreate struct {
AllowPrivate *bool `json:"allowPrivate,omitempty"`
// Events Default all events.
Events *[]NotificationEvent `json:"events,omitempty"`
Kind NotificationKind `json:"kind"`
Name string `json:"name"`
// Secret Webhook signing secret. Generated when omitted; ignored for Slack and Discord.
Secret *string `json:"secret,omitempty"`
// Url Webhook URL. Stored encrypted and never returned.
Url string `json:"url"`
}
NotificationChannelCreate defines model for NotificationChannelCreate.
type NotificationChannelCreated ¶
type NotificationChannelCreated struct {
Channel NotificationChannel `json:"channel"`
// Secret The webhook signing secret. Shown only once.
Secret *string `json:"secret,omitempty"`
}
NotificationChannelCreated defines model for NotificationChannelCreated.
type NotificationDelivery ¶
type NotificationDelivery struct {
At time.Time `json:"at"`
Attempt int `json:"attempt"`
// DeliveryId Same for every attempt of one delivery (X-Stampede-Delivery).
DeliveryId openapi_types.UUID `json:"deliveryId"`
DurationMs int `json:"durationMs"`
Error string `json:"error"`
Event string `json:"event"`
Id int64 `json:"id"`
Ok bool `json:"ok"`
RunId *openapi_types.UUID `json:"runId,omitempty"`
// StatusCode HTTP status; 0 when no response was received.
StatusCode int `json:"statusCode"`
}
NotificationDelivery defines model for NotificationDelivery.
type NotificationEvent ¶
type NotificationEvent string
NotificationEvent defines model for NotificationEvent.
const ( EventDriftDetected NotificationEvent = "drift.detected" EventRunFinished NotificationEvent = "run.finished" EventRunKilled NotificationEvent = "run.killed" EventRunTargetFailed NotificationEvent = "run.target_failed" )
Defines values for NotificationEvent.
func (NotificationEvent) Valid ¶
func (e NotificationEvent) Valid() bool
Valid indicates whether the value is a known member of the NotificationEvent enum.
type NotificationKind ¶
type NotificationKind string
NotificationKind defines model for NotificationKind.
const ( NotificationDiscord NotificationKind = "discord" NotificationSlack NotificationKind = "slack" NotificationWebhook NotificationKind = "webhook" )
Defines values for NotificationKind.
func (NotificationKind) Valid ¶
func (e NotificationKind) Valid() bool
Valid indicates whether the value is a known member of the NotificationKind enum.
type PackDetail ¶
type PackDetail struct {
Description string `json:"description"`
Files []PackFile `json:"files"`
Name string `json:"name"`
Protocols []string `json:"protocols"`
ReferenceApp *string `json:"referenceApp,omitempty"`
Status string `json:"status"`
Title string `json:"title"`
Variables []struct {
Description string `json:"description"`
Name string `json:"name"`
} `json:"variables"`
}
PackDetail defines model for PackDetail.
type PackEntry ¶
type PackEntry struct {
Drivers []string `json:"drivers"`
Name string `json:"name"`
// Signature What the pack's journeys and stresses cover.
Signature string `json:"signature"`
// Status shipped: built in and tested against a reference app in CI; planned: not yet available.
Status string `json:"status"`
Title string `json:"title"`
}
PackEntry defines model for PackEntry.
type PackFile ¶
type PackFile struct {
Description *string `json:"description,omitempty"`
Journeys []string `json:"journeys"`
Kind PackFileKind `json:"kind"`
Path string `json:"path"`
// Scenario The scenario's metadata.name.
Scenario string `json:"scenario"`
// Shape The load shape
Shape *string `json:"shape,omitempty"`
Yaml string `json:"yaml"`
}
PackFile defines model for PackFile.
type PackFileKind ¶
type PackFileKind string
PackFileKind defines model for PackFile.Kind.
const ( PackFileJourney PackFileKind = "journey" PackFileStress PackFileKind = "stress" )
Defines values for PackFileKind.
func (PackFileKind) Valid ¶
func (e PackFileKind) Valid() bool
Valid indicates whether the value is a known member of the PackFileKind enum.
type PlanSummary ¶
type PlanSummary struct {
DurationSeconds float64 `json:"durationSeconds"`
Executor string `json:"executor"`
Journeys int `json:"journeys"`
Mode string `json:"mode"`
Peak float64 `json:"peak"`
Shape *string `json:"shape,omitempty"`
Steps int `json:"steps"`
}
PlanSummary defines model for PlanSummary.
type Point ¶
type Point struct {
Dropped int `json:"dropped"`
ErrorRate float64 `json:"errorRate"`
Iterations *int `json:"iterations,omitempty"`
P50 float64 `json:"p50"`
P95 float64 `json:"p95"`
P99 float64 `json:"p99"`
Planned float64 `json:"planned"`
Rps float64 `json:"rps"`
SchedLagP99 *float64 `json:"schedLagP99,omitempty"`
// T Seconds since start
T float64 `json:"t"`
Vus int `json:"vus"`
}
Point defines model for Point.
type PreviewSchedule200JSONResponse ¶
type PreviewSchedule200JSONResponse SchedulePreview
func (PreviewSchedule200JSONResponse) VisitPreviewScheduleResponse ¶
func (response PreviewSchedule200JSONResponse) VisitPreviewScheduleResponse(w http.ResponseWriter) error
type PreviewSchedule422JSONResponse ¶
type PreviewSchedule422JSONResponse struct{ InvalidJSONResponse }
func (PreviewSchedule422JSONResponse) VisitPreviewScheduleResponse ¶
func (response PreviewSchedule422JSONResponse) VisitPreviewScheduleResponse(w http.ResponseWriter) error
type PreviewScheduleParams ¶
type PreviewScheduleParams struct {
Cron string `form:"cron" json:"cron"`
// Timezone IANA time zone; defaults to UTC
Timezone *string `form:"timezone,omitempty" json:"timezone,omitempty"`
Count *int `form:"count,omitempty" json:"count,omitempty"`
}
PreviewScheduleParams defines parameters for PreviewSchedule.
type PreviewScheduleRequestObject ¶
type PreviewScheduleRequestObject struct {
Params PreviewScheduleParams
}
type PreviewScheduleResponseObject ¶
type PreviewScheduleResponseObject interface {
VisitPreviewScheduleResponse(w http.ResponseWriter) error
}
type Project ¶
type Project struct {
CreatedAt time.Time `json:"createdAt"`
Description *string `json:"description,omitempty"`
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
// Role The caller's role in this project (the organisation role, or a per-project override)
Role *Role `json:"role,omitempty"`
Slug string `json:"slug"`
}
Project defines model for Project.
type ProjectCreate ¶
type ProjectCreate struct {
Description *string `json:"description,omitempty"`
Name string `json:"name"`
}
ProjectCreate defines model for ProjectCreate.
type ProjectLimits ¶
type ProjectLimits struct {
Caps LimitCaps `json:"caps"`
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
RequireDryRun bool `json:"requireDryRun"`
}
ProjectLimits defines model for ProjectLimits.
type ProjectRole ¶
type ProjectRole struct {
CreatedAt *time.Time `json:"createdAt,omitempty"`
Email string `json:"email"`
Name *string `json:"name,omitempty"`
OrgRole *Role `json:"orgRole,omitempty"`
Role Role `json:"role"`
UserId openapi_types.UUID `json:"userId"`
}
ProjectRole defines model for ProjectRole.
type ProjectRoleSet ¶
type ProjectRoleSet struct {
Role Role `json:"role"`
}
ProjectRoleSet defines model for ProjectRoleSet.
type ProjectSettings ¶
type ProjectSettings struct {
Caps Caps `json:"caps"`
// RequireDryRun Before load, run each journey once with one user and fail the run if any journey fails.
RequireDryRun bool `json:"requireDryRun"`
}
ProjectSettings defines model for ProjectSettings.
type PutAIProvider200JSONResponse ¶
type PutAIProvider200JSONResponse AIProvider
func (PutAIProvider200JSONResponse) VisitPutAIProviderResponse ¶
func (response PutAIProvider200JSONResponse) VisitPutAIProviderResponse(w http.ResponseWriter) error
type PutAIProvider201JSONResponse ¶
type PutAIProvider201JSONResponse AIProvider
func (PutAIProvider201JSONResponse) VisitPutAIProviderResponse ¶
func (response PutAIProvider201JSONResponse) VisitPutAIProviderResponse(w http.ResponseWriter) error
type PutAIProvider403JSONResponse ¶
type PutAIProvider403JSONResponse struct{ ForbiddenJSONResponse }
func (PutAIProvider403JSONResponse) VisitPutAIProviderResponse ¶
func (response PutAIProvider403JSONResponse) VisitPutAIProviderResponse(w http.ResponseWriter) error
type PutAIProvider409JSONResponse ¶
type PutAIProvider409JSONResponse struct{ ConflictJSONResponse }
func (PutAIProvider409JSONResponse) VisitPutAIProviderResponse ¶
func (response PutAIProvider409JSONResponse) VisitPutAIProviderResponse(w http.ResponseWriter) error
type PutAIProvider422JSONResponse ¶
type PutAIProvider422JSONResponse struct{ InvalidJSONResponse }
func (PutAIProvider422JSONResponse) VisitPutAIProviderResponse ¶
func (response PutAIProvider422JSONResponse) VisitPutAIProviderResponse(w http.ResponseWriter) error
type PutAIProviderJSONRequestBody ¶
type PutAIProviderJSONRequestBody = AIProviderPut
PutAIProviderJSONRequestBody defines body for PutAIProvider for application/json ContentType.
type PutAIProviderRequestObject ¶
type PutAIProviderRequestObject struct {
Body *PutAIProviderJSONRequestBody
}
type PutAIProviderResponseObject ¶
type PutAIProviderResponseObject interface {
VisitPutAIProviderResponse(w http.ResponseWriter) error
}
type PutOrgCaps200JSONResponse ¶
type PutOrgCaps200JSONResponse Caps
func (PutOrgCaps200JSONResponse) VisitPutOrgCapsResponse ¶
func (response PutOrgCaps200JSONResponse) VisitPutOrgCapsResponse(w http.ResponseWriter) error
type PutOrgCaps403JSONResponse ¶
type PutOrgCaps403JSONResponse struct{ ForbiddenJSONResponse }
func (PutOrgCaps403JSONResponse) VisitPutOrgCapsResponse ¶
func (response PutOrgCaps403JSONResponse) VisitPutOrgCapsResponse(w http.ResponseWriter) error
type PutOrgCaps422JSONResponse ¶
type PutOrgCaps422JSONResponse struct{ InvalidJSONResponse }
func (PutOrgCaps422JSONResponse) VisitPutOrgCapsResponse ¶
func (response PutOrgCaps422JSONResponse) VisitPutOrgCapsResponse(w http.ResponseWriter) error
type PutOrgCapsJSONRequestBody ¶
type PutOrgCapsJSONRequestBody = Caps
PutOrgCapsJSONRequestBody defines body for PutOrgCaps for application/json ContentType.
type PutOrgCapsRequestObject ¶
type PutOrgCapsRequestObject struct {
Body *PutOrgCapsJSONRequestBody
}
type PutOrgCapsResponseObject ¶
type PutOrgCapsResponseObject interface {
VisitPutOrgCapsResponse(w http.ResponseWriter) error
}
type PutProjectRole200JSONResponse ¶
type PutProjectRole200JSONResponse ProjectRole
func (PutProjectRole200JSONResponse) VisitPutProjectRoleResponse ¶
func (response PutProjectRole200JSONResponse) VisitPutProjectRoleResponse(w http.ResponseWriter) error
type PutProjectRole403JSONResponse ¶
type PutProjectRole403JSONResponse struct{ ForbiddenJSONResponse }
func (PutProjectRole403JSONResponse) VisitPutProjectRoleResponse ¶
func (response PutProjectRole403JSONResponse) VisitPutProjectRoleResponse(w http.ResponseWriter) error
type PutProjectRole404JSONResponse ¶
type PutProjectRole404JSONResponse struct{ NotFoundJSONResponse }
func (PutProjectRole404JSONResponse) VisitPutProjectRoleResponse ¶
func (response PutProjectRole404JSONResponse) VisitPutProjectRoleResponse(w http.ResponseWriter) error
type PutProjectRole422JSONResponse ¶
type PutProjectRole422JSONResponse struct{ InvalidJSONResponse }
func (PutProjectRole422JSONResponse) VisitPutProjectRoleResponse ¶
func (response PutProjectRole422JSONResponse) VisitPutProjectRoleResponse(w http.ResponseWriter) error
type PutProjectRoleJSONRequestBody ¶
type PutProjectRoleJSONRequestBody = ProjectRoleSet
PutProjectRoleJSONRequestBody defines body for PutProjectRole for application/json ContentType.
type PutProjectRoleRequestObject ¶
type PutProjectRoleRequestObject struct {
ProjectId ProjectId `json:"projectId"`
UserId UserId `json:"userId"`
Body *PutProjectRoleJSONRequestBody
}
type PutProjectRoleResponseObject ¶
type PutProjectRoleResponseObject interface {
VisitPutProjectRoleResponse(w http.ResponseWriter) error
}
type PutProjectSettings200JSONResponse ¶
type PutProjectSettings200JSONResponse ProjectSettings
func (PutProjectSettings200JSONResponse) VisitPutProjectSettingsResponse ¶
func (response PutProjectSettings200JSONResponse) VisitPutProjectSettingsResponse(w http.ResponseWriter) error
type PutProjectSettings403JSONResponse ¶
type PutProjectSettings403JSONResponse struct{ ForbiddenJSONResponse }
func (PutProjectSettings403JSONResponse) VisitPutProjectSettingsResponse ¶
func (response PutProjectSettings403JSONResponse) VisitPutProjectSettingsResponse(w http.ResponseWriter) error
type PutProjectSettings404JSONResponse ¶
type PutProjectSettings404JSONResponse struct{ NotFoundJSONResponse }
func (PutProjectSettings404JSONResponse) VisitPutProjectSettingsResponse ¶
func (response PutProjectSettings404JSONResponse) VisitPutProjectSettingsResponse(w http.ResponseWriter) error
type PutProjectSettings422JSONResponse ¶
type PutProjectSettings422JSONResponse struct{ InvalidJSONResponse }
func (PutProjectSettings422JSONResponse) VisitPutProjectSettingsResponse ¶
func (response PutProjectSettings422JSONResponse) VisitPutProjectSettingsResponse(w http.ResponseWriter) error
type PutProjectSettingsJSONRequestBody ¶
type PutProjectSettingsJSONRequestBody = ProjectSettings
PutProjectSettingsJSONRequestBody defines body for PutProjectSettings for application/json ContentType.
type PutProjectSettingsRequestObject ¶
type PutProjectSettingsRequestObject struct {
ProjectId ProjectId `json:"projectId"`
Body *PutProjectSettingsJSONRequestBody
}
type PutProjectSettingsResponseObject ¶
type PutProjectSettingsResponseObject interface {
VisitPutProjectSettingsResponse(w http.ResponseWriter) error
}
type PutSecret200JSONResponse ¶
type PutSecret200JSONResponse Secret
func (PutSecret200JSONResponse) VisitPutSecretResponse ¶
func (response PutSecret200JSONResponse) VisitPutSecretResponse(w http.ResponseWriter) error
type PutSecret422JSONResponse ¶
type PutSecret422JSONResponse struct{ InvalidJSONResponse }
func (PutSecret422JSONResponse) VisitPutSecretResponse ¶
func (response PutSecret422JSONResponse) VisitPutSecretResponse(w http.ResponseWriter) error
type PutSecretJSONRequestBody ¶
type PutSecretJSONRequestBody = SecretPut
PutSecretJSONRequestBody defines body for PutSecret for application/json ContentType.
type PutSecretRequestObject ¶
type PutSecretRequestObject struct {
ProjectId ProjectId `json:"projectId"`
Body *PutSecretJSONRequestBody
}
type PutSecretResponseObject ¶
type PutSecretResponseObject interface {
VisitPutSecretResponse(w http.ResponseWriter) error
}
type RepairDrift202JSONResponse ¶
type RepairDrift202JSONResponse AIJob
func (RepairDrift202JSONResponse) VisitRepairDriftResponse ¶
func (response RepairDrift202JSONResponse) VisitRepairDriftResponse(w http.ResponseWriter) error
type RepairDrift403JSONResponse ¶
type RepairDrift403JSONResponse struct{ ForbiddenJSONResponse }
func (RepairDrift403JSONResponse) VisitRepairDriftResponse ¶
func (response RepairDrift403JSONResponse) VisitRepairDriftResponse(w http.ResponseWriter) error
type RepairDrift404JSONResponse ¶
type RepairDrift404JSONResponse struct{ NotFoundJSONResponse }
func (RepairDrift404JSONResponse) VisitRepairDriftResponse ¶
func (response RepairDrift404JSONResponse) VisitRepairDriftResponse(w http.ResponseWriter) error
type RepairDrift409JSONResponse ¶
type RepairDrift409JSONResponse struct{ ConflictJSONResponse }
func (RepairDrift409JSONResponse) VisitRepairDriftResponse ¶
func (response RepairDrift409JSONResponse) VisitRepairDriftResponse(w http.ResponseWriter) error
type RepairDrift422JSONResponse ¶
type RepairDrift422JSONResponse struct{ InvalidJSONResponse }
func (RepairDrift422JSONResponse) VisitRepairDriftResponse ¶
func (response RepairDrift422JSONResponse) VisitRepairDriftResponse(w http.ResponseWriter) error
type RepairDrift429JSONResponse ¶
type RepairDrift429JSONResponse Error
func (RepairDrift429JSONResponse) VisitRepairDriftResponse ¶
func (response RepairDrift429JSONResponse) VisitRepairDriftResponse(w http.ResponseWriter) error
type RepairDriftJSONRequestBody ¶
type RepairDriftJSONRequestBody = DriftRepair
RepairDriftJSONRequestBody defines body for RepairDrift for application/json ContentType.
type RepairDriftRequestObject ¶
type RepairDriftRequestObject struct {
DriftId DriftId `json:"driftId"`
Body *RepairDriftJSONRequestBody
}
type RepairDriftResponseObject ¶
type RepairDriftResponseObject interface {
VisitRepairDriftResponse(w http.ResponseWriter) error
}
type Report ¶
type Report map[string]interface{}
Report The full report; same format as `stampede run --json`.
type RequestRef ¶
type RequestRef struct {
Journey string `json:"journey"`
Method string `json:"method"`
Url string `json:"url"`
}
RequestRef defines model for RequestRef.
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 Role ¶
type Role string
Role defines model for Role.
type Run ¶
type Run struct {
CreatedAt time.Time `json:"createdAt"`
CreatedBy *string `json:"createdBy,omitempty"`
EndedAt *time.Time `json:"endedAt,omitempty"`
Error *string `json:"error,omitempty"`
Id openapi_types.UUID `json:"id"`
Note *string `json:"note,omitempty"`
Overrides *RunOverrides `json:"overrides,omitempty"`
Plan *PlanSummary `json:"plan,omitempty"`
ProjectId openapi_types.UUID `json:"projectId"`
ScenarioId openapi_types.UUID `json:"scenarioId"`
ScenarioName *string `json:"scenarioName,omitempty"`
ScenarioVersion int `json:"scenarioVersion"`
StartedAt *time.Time `json:"startedAt,omitempty"`
Status RunStatus `json:"status"`
StopReason *string `json:"stopReason,omitempty"`
Summary *RunSummary `json:"summary,omitempty"`
TargetId openapi_types.UUID `json:"targetId"`
TargetURL *string `json:"targetURL,omitempty"`
Verdict *RunVerdict `json:"verdict,omitempty"`
Workers *int `json:"workers,omitempty"`
}
Run defines model for Run.
type RunCreate ¶
type RunCreate struct {
Env *map[string]string `json:"env,omitempty"`
Note *string `json:"note,omitempty"`
Overrides *RunOverrides `json:"overrides,omitempty"`
ScenarioId openapi_types.UUID `json:"scenarioId"`
TargetId openapi_types.UUID `json:"targetId"`
// Version Defaults to the latest
Version *int `json:"version,omitempty"`
// Workers 0 uses every connected worker
Workers *int `json:"workers,omitempty"`
}
RunCreate defines model for RunCreate.
type RunEvent ¶
type RunEvent struct {
At time.Time `json:"at"`
Details *map[string]interface{} `json:"details,omitempty"`
Message string `json:"message"`
Type string `json:"type"`
Worker *string `json:"worker,omitempty"`
}
RunEvent defines model for RunEvent.
type RunOverrides ¶
type RunOverrides struct {
Duration *string `json:"duration,omitempty"`
Max *string `json:"max,omitempty"`
Mode *RunOverridesMode `json:"mode,omitempty"`
Rate *string `json:"rate,omitempty"`
// Regions Percent of the load per worker region, such as
// {"mumbai": 50, "frankfurt": 30, "virginia": 20}. The shares add
// up to 100 and replace the scenario's load.regions. A run is
// refused when a region has no connected worker.
Regions *map[string]float64 `json:"regions,omitempty"`
Shape *string `json:"shape,omitempty"`
Start *string `json:"start,omitempty"`
Vus *int `json:"vus,omitempty"`
}
RunOverrides defines model for RunOverrides.
type RunOverridesMode ¶
type RunOverridesMode string
RunOverridesMode defines model for RunOverrides.Mode.
const ( Rate RunOverridesMode = "rate" Vus RunOverridesMode = "vus" )
Defines values for RunOverridesMode.
func (RunOverridesMode) Valid ¶
func (e RunOverridesMode) Valid() bool
Valid indicates whether the value is a known member of the RunOverridesMode enum.
type RunSchedule200JSONResponse ¶
type RunSchedule200JSONResponse DriftResult
func (RunSchedule200JSONResponse) VisitRunScheduleResponse ¶
func (response RunSchedule200JSONResponse) VisitRunScheduleResponse(w http.ResponseWriter) error
type RunSchedule201JSONResponse ¶
type RunSchedule201JSONResponse Run
func (RunSchedule201JSONResponse) VisitRunScheduleResponse ¶
func (response RunSchedule201JSONResponse) VisitRunScheduleResponse(w http.ResponseWriter) error
type RunSchedule403JSONResponse ¶
type RunSchedule403JSONResponse struct{ ForbiddenJSONResponse }
func (RunSchedule403JSONResponse) VisitRunScheduleResponse ¶
func (response RunSchedule403JSONResponse) VisitRunScheduleResponse(w http.ResponseWriter) error
type RunSchedule404JSONResponse ¶
type RunSchedule404JSONResponse struct{ NotFoundJSONResponse }
func (RunSchedule404JSONResponse) VisitRunScheduleResponse ¶
func (response RunSchedule404JSONResponse) VisitRunScheduleResponse(w http.ResponseWriter) error
type RunSchedule409JSONResponse ¶
type RunSchedule409JSONResponse struct{ ConflictJSONResponse }
func (RunSchedule409JSONResponse) VisitRunScheduleResponse ¶
func (response RunSchedule409JSONResponse) VisitRunScheduleResponse(w http.ResponseWriter) error
type RunSchedule422JSONResponse ¶
type RunSchedule422JSONResponse struct{ InvalidJSONResponse }
func (RunSchedule422JSONResponse) VisitRunScheduleResponse ¶
func (response RunSchedule422JSONResponse) VisitRunScheduleResponse(w http.ResponseWriter) error
type RunScheduleRequestObject ¶
type RunScheduleRequestObject struct {
ScheduleId ScheduleId `json:"scheduleId"`
}
type RunScheduleResponseObject ¶
type RunScheduleResponseObject interface {
VisitRunScheduleResponse(w http.ResponseWriter) error
}
type RunStatus ¶
type RunStatus string
RunStatus defines model for RunStatus.
type RunSummary ¶
type RunSummary struct {
ErrorRate *float64 `json:"errorRate,omitempty"`
// P95 seconds
P95 *float64 `json:"p95,omitempty"`
// P99 seconds
P99 *float64 `json:"p99,omitempty"`
Requests *int `json:"requests,omitempty"`
Rps *float64 `json:"rps,omitempty"`
}
RunSummary defines model for RunSummary.
type RunVerdict ¶
type RunVerdict string
RunVerdict defines model for Run.Verdict.
const ( Fail RunVerdict = "fail" GeneratorLimited RunVerdict = "generator-limited" LessThannil RunVerdict = "<nil>" NoTargets RunVerdict = "no-targets" Pass RunVerdict = "pass" )
Defines values for RunVerdict.
func (RunVerdict) Valid ¶
func (e RunVerdict) Valid() bool
Valid indicates whether the value is a known member of the RunVerdict enum.
type RunWorkerHealth ¶
type RunWorkerHealth struct {
// CpuPercent Process CPU use as a share of all the machine's cores, 0 to 100.
CpuPercent float64 `json:"cpuPercent"`
// Dropped Iterations dropped in the last sample because no virtual user was free.
Dropped *int64 `json:"dropped,omitempty"`
// GcPauseP99 Seconds.
GcPauseP99 *float64 `json:"gcPauseP99,omitempty"`
Id string `json:"id"`
LastHeartbeatAt *time.Time `json:"lastHeartbeatAt,omitempty"`
Name string `json:"name"`
// Reasons Why it is saturated, such as cpu or sched-lag.
Reasons *[]string `json:"reasons,omitempty"`
Region *string `json:"region,omitempty"`
// Saturated The worker reports itself saturated
Saturated bool `json:"saturated"`
// SchedLagP99 99th percentile of how late iterations were dispatched
SchedLagP99 float64 `json:"schedLagP99"`
// Status healthy: generating load normally; saturated: it may be what limits the measured load; lost: it stopped sending heartbeats during the run.
Status RunWorkerHealthStatus `json:"status"`
}
RunWorkerHealth defines model for RunWorkerHealth.
type RunWorkerHealthStatus ¶
type RunWorkerHealthStatus string
RunWorkerHealthStatus healthy: generating load normally; saturated: it may be what limits the measured load; lost: it stopped sending heartbeats during the run.
const ( RunWorkerHealthy RunWorkerHealthStatus = "healthy" RunWorkerLost RunWorkerHealthStatus = "lost" RunWorkerSaturated RunWorkerHealthStatus = "saturated" )
Defines values for RunWorkerHealthStatus.
func (RunWorkerHealthStatus) Valid ¶
func (e RunWorkerHealthStatus) Valid() bool
Valid indicates whether the value is a known member of the RunWorkerHealthStatus enum.
type RunWorkers ¶
type RunWorkers struct {
// Live The run is executing on this server, so health is current.
Live bool `json:"live"`
Workers []RunWorkerHealth `json:"workers"`
}
RunWorkers defines model for RunWorkers.
type SSOSettings ¶
type SSOSettings struct {
// AllowedDomains Email domains allowed to sign in; empty means any.
AllowedDomains []string `json:"allowedDomains"`
// DefaultRole Role given on first sign-in; empty means only existing accounts may sign in.
DefaultRole *string `json:"defaultRole,omitempty"`
Enabled bool `json:"enabled"`
Issuer *string `json:"issuer,omitempty"`
// Name Label of the sign-in button.
Name *string `json:"name,omitempty"`
// PasswordLogin Email and password sign-in is available too.
PasswordLogin bool `json:"passwordLogin"`
RedirectURL *string `json:"redirectURL,omitempty"`
Scopes []string `json:"scopes"`
}
SSOSettings defines model for SSOSettings.
type Scenario ¶
type Scenario struct {
CreatedAt time.Time `json:"createdAt"`
Description *string `json:"description,omitempty"`
Id openapi_types.UUID `json:"id"`
LatestVersion ScenarioVersion `json:"latestVersion"`
Name string `json:"name"`
ProjectId openapi_types.UUID `json:"projectId"`
Tags []string `json:"tags"`
UpdatedAt time.Time `json:"updatedAt"`
}
Scenario defines model for Scenario.
type ScenarioCoverage ¶
type ScenarioCoverage struct {
Covered int `json:"covered"`
Endpoints []CoverageEndpoint `json:"endpoints"`
// Templated Requests whose whole URL is an expression
Templated int `json:"templated"`
Total int `json:"total"`
// Unmatched Requests that use no endpoint of the API, often a typo or a renamed endpoint.
Unmatched []RequestRef `json:"unmatched"`
// Version The scenario version checked.
Version int `json:"version"`
}
ScenarioCoverage defines model for ScenarioCoverage.
type ScenarioCoverage200JSONResponse ¶
type ScenarioCoverage200JSONResponse ScenarioCoverage
func (ScenarioCoverage200JSONResponse) VisitScenarioCoverageResponse ¶
func (response ScenarioCoverage200JSONResponse) VisitScenarioCoverageResponse(w http.ResponseWriter) error
type ScenarioCoverage403JSONResponse ¶
type ScenarioCoverage403JSONResponse struct{ ForbiddenJSONResponse }
func (ScenarioCoverage403JSONResponse) VisitScenarioCoverageResponse ¶
func (response ScenarioCoverage403JSONResponse) VisitScenarioCoverageResponse(w http.ResponseWriter) error
type ScenarioCoverage404JSONResponse ¶
type ScenarioCoverage404JSONResponse struct{ NotFoundJSONResponse }
func (ScenarioCoverage404JSONResponse) VisitScenarioCoverageResponse ¶
func (response ScenarioCoverage404JSONResponse) VisitScenarioCoverageResponse(w http.ResponseWriter) error
type ScenarioCoverage422JSONResponse ¶
type ScenarioCoverage422JSONResponse struct{ InvalidJSONResponse }
func (ScenarioCoverage422JSONResponse) VisitScenarioCoverageResponse ¶
func (response ScenarioCoverage422JSONResponse) VisitScenarioCoverageResponse(w http.ResponseWriter) error
type ScenarioCoverageJSONRequestBody ¶
type ScenarioCoverageJSONRequestBody = CoverageRequest
ScenarioCoverageJSONRequestBody defines body for ScenarioCoverage for application/json ContentType.
type ScenarioCoverageRequestObject ¶
type ScenarioCoverageRequestObject struct {
ScenarioId ScenarioId `json:"scenarioId"`
Body *ScenarioCoverageJSONRequestBody
}
type ScenarioCoverageResponseObject ¶
type ScenarioCoverageResponseObject interface {
VisitScenarioCoverageResponse(w http.ResponseWriter) error
}
type ScenarioDrift ¶
type ScenarioDrift struct {
// Added Endpoints added since the previous version (only with a previous version).
Added *[]DriftEndpoint `json:"added,omitempty"`
// Broken Journeys that call a removed endpoint.
Broken *[]struct {
Endpoints []DriftEndpoint `json:"endpoints"`
Journey string `json:"journey"`
} `json:"broken,omitempty"`
// Drifted Something broke; stampede drift exits with code 4.
Drifted bool `json:"drifted"`
// DryRun Set when targetId was given.
DryRun *[]DriftJourneyCheck `json:"dryRun,omitempty"`
Removed *[]DriftEndpoint `json:"removed,omitempty"`
Unmatched []RequestRef `json:"unmatched"`
Version int `json:"version"`
}
ScenarioDrift defines model for ScenarioDrift.
type ScenarioDrift200JSONResponse ¶
type ScenarioDrift200JSONResponse ScenarioDrift
func (ScenarioDrift200JSONResponse) VisitScenarioDriftResponse ¶
func (response ScenarioDrift200JSONResponse) VisitScenarioDriftResponse(w http.ResponseWriter) error
type ScenarioDrift403JSONResponse ¶
type ScenarioDrift403JSONResponse struct{ ForbiddenJSONResponse }
func (ScenarioDrift403JSONResponse) VisitScenarioDriftResponse ¶
func (response ScenarioDrift403JSONResponse) VisitScenarioDriftResponse(w http.ResponseWriter) error
type ScenarioDrift404JSONResponse ¶
type ScenarioDrift404JSONResponse struct{ NotFoundJSONResponse }
func (ScenarioDrift404JSONResponse) VisitScenarioDriftResponse ¶
func (response ScenarioDrift404JSONResponse) VisitScenarioDriftResponse(w http.ResponseWriter) error
type ScenarioDrift422JSONResponse ¶
type ScenarioDrift422JSONResponse struct{ InvalidJSONResponse }
func (ScenarioDrift422JSONResponse) VisitScenarioDriftResponse ¶
func (response ScenarioDrift422JSONResponse) VisitScenarioDriftResponse(w http.ResponseWriter) error
type ScenarioDriftJSONRequestBody ¶
type ScenarioDriftJSONRequestBody = DriftRequest
ScenarioDriftJSONRequestBody defines body for ScenarioDrift for application/json ContentType.
type ScenarioDriftRequestObject ¶
type ScenarioDriftRequestObject struct {
ScenarioId ScenarioId `json:"scenarioId"`
Body *ScenarioDriftJSONRequestBody
}
type ScenarioDriftResponseObject ¶
type ScenarioDriftResponseObject interface {
VisitScenarioDriftResponse(w http.ResponseWriter) error
}
type ScenarioVersion ¶
type ScenarioVersion struct {
CreatedAt time.Time `json:"createdAt"`
CreatedBy *string `json:"createdBy,omitempty"`
Message *string `json:"message,omitempty"`
Plan *PlanSummary `json:"plan,omitempty"`
ScenarioId openapi_types.UUID `json:"scenarioId"`
Version int `json:"version"`
Yaml string `json:"yaml"`
}
ScenarioVersion defines model for ScenarioVersion.
type ScenarioVersionCreate ¶
type ScenarioVersionCreate struct {
Message *string `json:"message,omitempty"`
Yaml string `json:"yaml"`
}
ScenarioVersionCreate defines model for ScenarioVersionCreate.
type Schedule ¶
type Schedule struct {
CreatedAt time.Time `json:"createdAt"`
Cron string `json:"cron"`
Enabled bool `json:"enabled"`
// Env Stored as given and shown to anyone who can read the schedule; use project secrets for sensitive values.
Env *map[string]string `json:"env,omitempty"`
Id openapi_types.UUID `json:"id"`
// Kind run starts a load test on the cron. drift starts no load: it dry-runs
// each journey once with one user against the target (and compares the
// scenario with specURL when set), records a drift result and notifies
// drift.detected subscribers when journeys broke.
Kind *ScheduleKind `json:"kind,omitempty"`
// LastDriftBroken Drift schedules, the journeys the last check found broken
LastDriftBroken *[]string `json:"lastDriftBroken,omitempty"`
LastDriftId *openapi_types.UUID `json:"lastDriftId,omitempty"`
// LastDriftStatus Drift schedules: ok, drifted or error
LastDriftStatus *string `json:"lastDriftStatus,omitempty"`
// LastFiredAt When the schedule last came due or was run by hand
LastFiredAt *time.Time `json:"lastFiredAt,omitempty"`
LastRunAt *time.Time `json:"lastRunAt,omitempty"`
LastRunId *openapi_types.UUID `json:"lastRunId,omitempty"`
LastRunStatus *RunStatus `json:"lastRunStatus,omitempty"`
// LastRunVerdict pass, fail, generator-limited or no-targets, once the last run has finished
LastRunVerdict *string `json:"lastRunVerdict,omitempty"`
// LastSkipReason Why the last firing started no run; empty when it did
LastSkipReason string `json:"lastSkipReason"`
Name string `json:"name"`
// NextRunAt Null while disabled
NextRunAt *time.Time `json:"nextRunAt,omitempty"`
Note *string `json:"note,omitempty"`
Overrides *RunOverrides `json:"overrides,omitempty"`
OwnerEmail *string `json:"ownerEmail,omitempty"`
// OwnerId Runs start as this user
OwnerId *openapi_types.UUID `json:"ownerId,omitempty"`
ProjectId openapi_types.UUID `json:"projectId"`
ScenarioId openapi_types.UUID `json:"scenarioId"`
ScenarioName *string `json:"scenarioName,omitempty"`
// SpecURL Drift schedules: OpenAPI document fetched on each check (on the target's host or an allowed host)
SpecURL *string `json:"specURL,omitempty"`
TargetId openapi_types.UUID `json:"targetId"`
TargetName *string `json:"targetName,omitempty"`
Timezone string `json:"timezone"`
UpdatedAt time.Time `json:"updatedAt"`
Workers int `json:"workers"`
}
Schedule defines model for Schedule.
type ScheduleCreate ¶
type ScheduleCreate struct {
// Cron Five fields (minute hour day-of-month month day-of-week) or a macro such as @daily
Cron string `json:"cron"`
Enabled *bool `json:"enabled,omitempty"`
Env *map[string]string `json:"env,omitempty"`
// Kind run starts a load test on the cron. drift starts no load: it dry-runs
// each journey once with one user against the target (and compares the
// scenario with specURL when set), records a drift result and notifies
// drift.detected subscribers when journeys broke.
Kind *ScheduleKind `json:"kind,omitempty"`
Name string `json:"name"`
Note *string `json:"note,omitempty"`
Overrides *RunOverrides `json:"overrides,omitempty"`
ScenarioId openapi_types.UUID `json:"scenarioId"`
// SpecURL Drift schedules only: an OpenAPI document to compare the scenario with on each check
SpecURL *string `json:"specURL,omitempty"`
TargetId openapi_types.UUID `json:"targetId"`
// Timezone IANA time zone; defaults to UTC
Timezone *string `json:"timezone,omitempty"`
// Workers 0 uses every connected worker
Workers *int `json:"workers,omitempty"`
}
ScheduleCreate defines model for ScheduleCreate.
type ScheduleKind ¶
type ScheduleKind string
ScheduleKind run starts a load test on the cron. drift starts no load: it dry-runs each journey once with one user against the target (and compares the scenario with specURL when set), records a drift result and notifies drift.detected subscribers when journeys broke.
const ( ScheduleKindDrift ScheduleKind = "drift" ScheduleKindRun ScheduleKind = "run" )
Defines values for ScheduleKind.
func (ScheduleKind) Valid ¶
func (e ScheduleKind) Valid() bool
Valid indicates whether the value is a known member of the ScheduleKind enum.
type SchedulePreview ¶
SchedulePreview defines model for SchedulePreview.
type ScheduleUpdate ¶
type ScheduleUpdate struct {
Cron *string `json:"cron,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Env *map[string]string `json:"env,omitempty"`
Name *string `json:"name,omitempty"`
Note *string `json:"note,omitempty"`
Overrides *RunOverrides `json:"overrides,omitempty"`
ScenarioId *openapi_types.UUID `json:"scenarioId,omitempty"`
SpecURL *string `json:"specURL,omitempty"`
TargetId *openapi_types.UUID `json:"targetId,omitempty"`
Timezone *string `json:"timezone,omitempty"`
Workers *int `json:"workers,omitempty"`
}
ScheduleUpdate defines model for ScheduleUpdate.
type ServerInterface ¶
type ServerInterface interface {
// Job status, stage, token usage, proposal, dry-run traces, problems and diff
// (GET /ai/jobs/{jobId})
GetAIJob(w http.ResponseWriter, r *http.Request, jobId openapi_types.UUID)
// Save the proposal as a new scenario or a new scenario version
// (POST /ai/jobs/{jobId}/approve)
ApproveAIJob(w http.ResponseWriter, r *http.Request, jobId openapi_types.UUID)
// AI providers configured for the organisation (keys are never returned)
// (GET /ai/providers)
ListAIProviders(w http.ResponseWriter, r *http.Request)
// Create or replace an AI provider by name
// (POST /ai/providers)
PutAIProvider(w http.ResponseWriter, r *http.Request)
// (DELETE /ai/providers/{providerId})
DeleteAIProvider(w http.ResponseWriter, r *http.Request, providerId openapi_types.UUID)
// (GET /audit)
ListAudit(w http.ResponseWriter, r *http.Request, params ListAuditParams)
// How people can sign in (public)
// (GET /auth/config)
GetAuthConfig(w http.ResponseWriter, r *http.Request)
// (POST /auth/login)
Login(w http.ResponseWriter, r *http.Request)
// (POST /auth/logout)
Logout(w http.ResponseWriter, r *http.Request)
// Compare finished runs of version A with runs of version B
// (POST /compare)
CompareRuns(w http.ResponseWriter, r *http.Request)
// One drift check with its redacted dry-run traces and spec diff
// (GET /drift-results/{driftId})
GetDriftResult(w http.ResponseWriter, r *http.Request, driftId DriftId)
// Ask the AI generator to repair the broken journeys (asynchronous)
// (POST /drift-results/{driftId}/repair)
RepairDrift(w http.ResponseWriter, r *http.Request, driftId DriftId)
// Integrations configured for the organisation (tokens are never returned)
// (GET /integrations)
ListIntegrations(w http.ResponseWriter, r *http.Request)
// Add a named Prometheus or traces integration
// (POST /integrations)
CreateIntegration(w http.ResponseWriter, r *http.Request)
// (DELETE /integrations/{integrationId})
DeleteIntegration(w http.ResponseWriter, r *http.Request, integrationId openapi_types.UUID)
// (GET /me)
GetMe(w http.ResponseWriter, r *http.Request)
// (PUT /me/password)
ChangePassword(w http.ResponseWriter, r *http.Request)
// Notification channels of the organisation (URLs and secrets are never returned)
// (GET /notifications/channels)
ListNotificationChannels(w http.ResponseWriter, r *http.Request)
// Add a webhook, Slack or Discord channel
// (POST /notifications/channels)
CreateNotificationChannel(w http.ResponseWriter, r *http.Request)
// (DELETE /notifications/channels/{channelId})
DeleteNotificationChannel(w http.ResponseWriter, r *http.Request, channelId ChannelId)
// The most recent delivery attempts of a channel, newest first
// (GET /notifications/channels/{channelId}/deliveries)
ListNotificationDeliveries(w http.ResponseWriter, r *http.Request, channelId ChannelId, params ListNotificationDeliveriesParams)
// Send a test notification now (one attempt, no retries)
// (POST /notifications/channels/{channelId}/test)
TestNotificationChannel(w http.ResponseWriter, r *http.Request, channelId ChannelId)
// The organisation's hard caps on every run
// (GET /organisation/caps)
GetOrgCaps(w http.ResponseWriter, r *http.Request)
// Set the organisation's hard caps (admin)
// (PUT /organisation/caps)
PutOrgCaps(w http.ResponseWriter, r *http.Request)
// The product packs built into this server
// (GET /packs)
ListPacks(w http.ResponseWriter, r *http.Request)
// A shipped pack with its journey and stress scenarios
// (GET /packs/{packName})
GetPack(w http.ResponseWriter, r *http.Request, packName string)
// (GET /projects)
ListProjects(w http.ResponseWriter, r *http.Request)
// (POST /projects)
CreateProject(w http.ResponseWriter, r *http.Request)
// (DELETE /projects/{projectId})
DeleteProject(w http.ResponseWriter, r *http.Request, projectId ProjectId)
// (GET /projects/{projectId})
GetProject(w http.ResponseWriter, r *http.Request, projectId ProjectId)
// (PATCH /projects/{projectId})
UpdateProject(w http.ResponseWriter, r *http.Request, projectId ProjectId)
// (GET /projects/{projectId}/ai/jobs)
ListAIJobs(w http.ResponseWriter, r *http.Request, projectId ProjectId, params ListAIJobsParams)
// Generate a scenario with an AI model (asynchronous)
// (POST /projects/{projectId}/ai/jobs)
CreateAIJob(w http.ResponseWriter, r *http.Request, projectId ProjectId)
// Results of scheduled drift checks, newest first
// (GET /projects/{projectId}/drift-results)
ListDriftResults(w http.ResponseWriter, r *http.Request, projectId ProjectId, params ListDriftResultsParams)
// Per-project role overrides
// (GET /projects/{projectId}/roles)
ListProjectRoles(w http.ResponseWriter, r *http.Request, projectId ProjectId)
// Remove an override, so the organisation role applies again (admin)
// (DELETE /projects/{projectId}/roles/{userId})
DeleteProjectRole(w http.ResponseWriter, r *http.Request, projectId ProjectId, userId UserId)
// Give a member a different role in this project (admin)
// (PUT /projects/{projectId}/roles/{userId})
PutProjectRole(w http.ResponseWriter, r *http.Request, projectId ProjectId, userId UserId)
// (GET /projects/{projectId}/runs)
ListRuns(w http.ResponseWriter, r *http.Request, projectId ProjectId, params ListRunsParams)
// (POST /projects/{projectId}/runs)
CreateRun(w http.ResponseWriter, r *http.Request, projectId ProjectId)
// (GET /projects/{projectId}/scenarios)
ListScenarios(w http.ResponseWriter, r *http.Request, projectId ProjectId, params ListScenariosParams)
// (POST /projects/{projectId}/scenarios)
CreateScenario(w http.ResponseWriter, r *http.Request, projectId ProjectId)
// (GET /projects/{projectId}/schedules)
ListSchedules(w http.ResponseWriter, r *http.Request, projectId ProjectId)
// Create a schedule
// (POST /projects/{projectId}/schedules)
CreateSchedule(w http.ResponseWriter, r *http.Request, projectId ProjectId)
// (GET /projects/{projectId}/secrets)
ListSecrets(w http.ResponseWriter, r *http.Request, projectId ProjectId)
// (PUT /projects/{projectId}/secrets)
PutSecret(w http.ResponseWriter, r *http.Request, projectId ProjectId)
// (DELETE /projects/{projectId}/secrets/{name})
DeleteSecret(w http.ResponseWriter, r *http.Request, projectId ProjectId, name string)
// (GET /projects/{projectId}/settings)
GetProjectSettings(w http.ResponseWriter, r *http.Request, projectId ProjectId)
// Set the project's caps and dry-run gate (admin)
// (PUT /projects/{projectId}/settings)
PutProjectSettings(w http.ResponseWriter, r *http.Request, projectId ProjectId)
// (GET /projects/{projectId}/targets)
ListTargets(w http.ResponseWriter, r *http.Request, projectId ProjectId)
// (POST /projects/{projectId}/targets)
CreateTarget(w http.ResponseWriter, r *http.Request, projectId ProjectId)
// Kill switch for every active run in the organisation
// (POST /runs/kill-all)
KillAllRuns(w http.ResponseWriter, r *http.Request)
// (GET /runs/{runId})
GetRun(w http.ResponseWriter, r *http.Request, runId RunId)
// Events recorded for a run
// (GET /runs/{runId}/events)
ListRunEvents(w http.ResponseWriter, r *http.Request, runId RunId)
// Kill switch for one run; all load stops immediately
// (POST /runs/{runId}/kill)
KillRun(w http.ResponseWriter, r *http.Request, runId RunId)
// Live metrics as server-sent events
// (GET /runs/{runId}/live)
StreamRun(w http.ResponseWriter, r *http.Request, runId RunId)
// Write an AI summary of a finished run's report
// (POST /runs/{runId}/narrative)
CreateRunNarrative(w http.ResponseWriter, r *http.Request, runId RunId)
// (GET /runs/{runId}/report)
GetRunReport(w http.ResponseWriter, r *http.Request, runId RunId, params GetRunReportParams)
// Stop gracefully; in-flight iterations may finish
// (POST /runs/{runId}/stop)
StopRun(w http.ResponseWriter, r *http.Request, runId RunId)
// (GET /runs/{runId}/timeline)
GetRunTimeline(w http.ResponseWriter, r *http.Request, runId RunId, params GetRunTimelineParams)
// Health of the load generators running a run
// (GET /runs/{runId}/workers)
ListRunWorkers(w http.ResponseWriter, r *http.Request, runId RunId)
// (POST /scenarios/validate)
ValidateScenario(w http.ResponseWriter, r *http.Request)
// (DELETE /scenarios/{scenarioId})
DeleteScenario(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId)
// (GET /scenarios/{scenarioId})
GetScenario(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId)
// Which endpoints of an API the scenario's journeys exercise
// (POST /scenarios/{scenarioId}/coverage)
ScenarioCoverage(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId)
// Find journeys an API change broke
// (POST /scenarios/{scenarioId}/drift)
ScenarioDrift(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId)
// (GET /scenarios/{scenarioId}/versions)
ListScenarioVersions(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId)
// (POST /scenarios/{scenarioId}/versions)
CreateScenarioVersion(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId)
// (GET /scenarios/{scenarioId}/versions/{version})
GetScenarioVersion(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId, version int)
// The next times a cron expression fires
// (GET /schedules/preview)
PreviewSchedule(w http.ResponseWriter, r *http.Request, params PreviewScheduleParams)
// (DELETE /schedules/{scheduleId})
DeleteSchedule(w http.ResponseWriter, r *http.Request, scheduleId ScheduleId)
// (GET /schedules/{scheduleId})
GetSchedule(w http.ResponseWriter, r *http.Request, scheduleId ScheduleId)
// Change a schedule, or enable or disable it
// (PATCH /schedules/{scheduleId})
UpdateSchedule(w http.ResponseWriter, r *http.Request, scheduleId ScheduleId)
// Start the schedule's run now
// (POST /schedules/{scheduleId}/run)
RunSchedule(w http.ResponseWriter, r *http.Request, scheduleId ScheduleId)
// The caps every run is checked against (admin)
// (GET /settings/limits)
GetLimitSettings(w http.ResponseWriter, r *http.Request)
// The server's single sign-on configuration (admin)
// (GET /settings/sso)
GetSSOSettings(w http.ResponseWriter, r *http.Request)
// Create the first organisation and owner account
// (POST /setup)
Setup(w http.ResponseWriter, r *http.Request)
// (DELETE /targets/{targetId})
DeleteTarget(w http.ResponseWriter, r *http.Request, targetId TargetId)
// (GET /targets/{targetId})
GetTarget(w http.ResponseWriter, r *http.Request, targetId TargetId)
// (PATCH /targets/{targetId})
UpdateTarget(w http.ResponseWriter, r *http.Request, targetId TargetId)
// Check the ownership token for a public target
// (POST /targets/{targetId}/verify)
VerifyTarget(w http.ResponseWriter, r *http.Request, targetId TargetId)
// (GET /tokens)
ListTokens(w http.ResponseWriter, r *http.Request)
// (POST /tokens)
CreateToken(w http.ResponseWriter, r *http.Request)
// (DELETE /tokens/{tokenId})
DeleteToken(w http.ResponseWriter, r *http.Request, tokenId TokenId)
// (GET /users)
ListUsers(w http.ResponseWriter, r *http.Request)
// (POST /users)
CreateUser(w http.ResponseWriter, r *http.Request)
// (DELETE /users/{userId})
DeleteUser(w http.ResponseWriter, r *http.Request, userId UserId)
// (PATCH /users/{userId})
UpdateUser(w http.ResponseWriter, r *http.Request, userId UserId)
// (GET /version)
GetVersion(w http.ResponseWriter, r *http.Request)
// (GET /workers)
ListWorkers(w http.ResponseWriter, r *http.Request)
}
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) ApproveAIJob ¶
func (siw *ServerInterfaceWrapper) ApproveAIJob(w http.ResponseWriter, r *http.Request)
ApproveAIJob operation middleware
func (*ServerInterfaceWrapper) ChangePassword ¶
func (siw *ServerInterfaceWrapper) ChangePassword(w http.ResponseWriter, r *http.Request)
ChangePassword operation middleware
func (*ServerInterfaceWrapper) CompareRuns ¶
func (siw *ServerInterfaceWrapper) CompareRuns(w http.ResponseWriter, r *http.Request)
CompareRuns operation middleware
func (*ServerInterfaceWrapper) CreateAIJob ¶
func (siw *ServerInterfaceWrapper) CreateAIJob(w http.ResponseWriter, r *http.Request)
CreateAIJob operation middleware
func (*ServerInterfaceWrapper) CreateIntegration ¶
func (siw *ServerInterfaceWrapper) CreateIntegration(w http.ResponseWriter, r *http.Request)
CreateIntegration operation middleware
func (*ServerInterfaceWrapper) CreateNotificationChannel ¶
func (siw *ServerInterfaceWrapper) CreateNotificationChannel(w http.ResponseWriter, r *http.Request)
CreateNotificationChannel operation middleware
func (*ServerInterfaceWrapper) CreateProject ¶
func (siw *ServerInterfaceWrapper) CreateProject(w http.ResponseWriter, r *http.Request)
CreateProject operation middleware
func (*ServerInterfaceWrapper) CreateRun ¶
func (siw *ServerInterfaceWrapper) CreateRun(w http.ResponseWriter, r *http.Request)
CreateRun operation middleware
func (*ServerInterfaceWrapper) CreateRunNarrative ¶
func (siw *ServerInterfaceWrapper) CreateRunNarrative(w http.ResponseWriter, r *http.Request)
CreateRunNarrative operation middleware
func (*ServerInterfaceWrapper) CreateScenario ¶
func (siw *ServerInterfaceWrapper) CreateScenario(w http.ResponseWriter, r *http.Request)
CreateScenario operation middleware
func (*ServerInterfaceWrapper) CreateScenarioVersion ¶
func (siw *ServerInterfaceWrapper) CreateScenarioVersion(w http.ResponseWriter, r *http.Request)
CreateScenarioVersion operation middleware
func (*ServerInterfaceWrapper) CreateSchedule ¶
func (siw *ServerInterfaceWrapper) CreateSchedule(w http.ResponseWriter, r *http.Request)
CreateSchedule operation middleware
func (*ServerInterfaceWrapper) CreateTarget ¶
func (siw *ServerInterfaceWrapper) CreateTarget(w http.ResponseWriter, r *http.Request)
CreateTarget operation middleware
func (*ServerInterfaceWrapper) CreateToken ¶
func (siw *ServerInterfaceWrapper) CreateToken(w http.ResponseWriter, r *http.Request)
CreateToken operation middleware
func (*ServerInterfaceWrapper) CreateUser ¶
func (siw *ServerInterfaceWrapper) CreateUser(w http.ResponseWriter, r *http.Request)
CreateUser operation middleware
func (*ServerInterfaceWrapper) DeleteAIProvider ¶
func (siw *ServerInterfaceWrapper) DeleteAIProvider(w http.ResponseWriter, r *http.Request)
DeleteAIProvider operation middleware
func (*ServerInterfaceWrapper) DeleteIntegration ¶
func (siw *ServerInterfaceWrapper) DeleteIntegration(w http.ResponseWriter, r *http.Request)
DeleteIntegration operation middleware
func (*ServerInterfaceWrapper) DeleteNotificationChannel ¶
func (siw *ServerInterfaceWrapper) DeleteNotificationChannel(w http.ResponseWriter, r *http.Request)
DeleteNotificationChannel operation middleware
func (*ServerInterfaceWrapper) DeleteProject ¶
func (siw *ServerInterfaceWrapper) DeleteProject(w http.ResponseWriter, r *http.Request)
DeleteProject operation middleware
func (*ServerInterfaceWrapper) DeleteProjectRole ¶
func (siw *ServerInterfaceWrapper) DeleteProjectRole(w http.ResponseWriter, r *http.Request)
DeleteProjectRole operation middleware
func (*ServerInterfaceWrapper) DeleteScenario ¶
func (siw *ServerInterfaceWrapper) DeleteScenario(w http.ResponseWriter, r *http.Request)
DeleteScenario operation middleware
func (*ServerInterfaceWrapper) DeleteSchedule ¶
func (siw *ServerInterfaceWrapper) DeleteSchedule(w http.ResponseWriter, r *http.Request)
DeleteSchedule operation middleware
func (*ServerInterfaceWrapper) DeleteSecret ¶
func (siw *ServerInterfaceWrapper) DeleteSecret(w http.ResponseWriter, r *http.Request)
DeleteSecret operation middleware
func (*ServerInterfaceWrapper) DeleteTarget ¶
func (siw *ServerInterfaceWrapper) DeleteTarget(w http.ResponseWriter, r *http.Request)
DeleteTarget operation middleware
func (*ServerInterfaceWrapper) DeleteToken ¶
func (siw *ServerInterfaceWrapper) DeleteToken(w http.ResponseWriter, r *http.Request)
DeleteToken operation middleware
func (*ServerInterfaceWrapper) DeleteUser ¶
func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request)
DeleteUser operation middleware
func (*ServerInterfaceWrapper) GetAIJob ¶
func (siw *ServerInterfaceWrapper) GetAIJob(w http.ResponseWriter, r *http.Request)
GetAIJob operation middleware
func (*ServerInterfaceWrapper) GetAuthConfig ¶
func (siw *ServerInterfaceWrapper) GetAuthConfig(w http.ResponseWriter, r *http.Request)
GetAuthConfig operation middleware
func (*ServerInterfaceWrapper) GetDriftResult ¶
func (siw *ServerInterfaceWrapper) GetDriftResult(w http.ResponseWriter, r *http.Request)
GetDriftResult operation middleware
func (*ServerInterfaceWrapper) GetLimitSettings ¶
func (siw *ServerInterfaceWrapper) GetLimitSettings(w http.ResponseWriter, r *http.Request)
GetLimitSettings operation middleware
func (*ServerInterfaceWrapper) GetMe ¶
func (siw *ServerInterfaceWrapper) GetMe(w http.ResponseWriter, r *http.Request)
GetMe operation middleware
func (*ServerInterfaceWrapper) GetOrgCaps ¶
func (siw *ServerInterfaceWrapper) GetOrgCaps(w http.ResponseWriter, r *http.Request)
GetOrgCaps operation middleware
func (*ServerInterfaceWrapper) GetPack ¶
func (siw *ServerInterfaceWrapper) GetPack(w http.ResponseWriter, r *http.Request)
GetPack operation middleware
func (*ServerInterfaceWrapper) GetProject ¶
func (siw *ServerInterfaceWrapper) GetProject(w http.ResponseWriter, r *http.Request)
GetProject operation middleware
func (*ServerInterfaceWrapper) GetProjectSettings ¶
func (siw *ServerInterfaceWrapper) GetProjectSettings(w http.ResponseWriter, r *http.Request)
GetProjectSettings operation middleware
func (*ServerInterfaceWrapper) GetRun ¶
func (siw *ServerInterfaceWrapper) GetRun(w http.ResponseWriter, r *http.Request)
GetRun operation middleware
func (*ServerInterfaceWrapper) GetRunReport ¶
func (siw *ServerInterfaceWrapper) GetRunReport(w http.ResponseWriter, r *http.Request)
GetRunReport operation middleware
func (*ServerInterfaceWrapper) GetRunTimeline ¶
func (siw *ServerInterfaceWrapper) GetRunTimeline(w http.ResponseWriter, r *http.Request)
GetRunTimeline operation middleware
func (*ServerInterfaceWrapper) GetSSOSettings ¶
func (siw *ServerInterfaceWrapper) GetSSOSettings(w http.ResponseWriter, r *http.Request)
GetSSOSettings operation middleware
func (*ServerInterfaceWrapper) GetScenario ¶
func (siw *ServerInterfaceWrapper) GetScenario(w http.ResponseWriter, r *http.Request)
GetScenario operation middleware
func (*ServerInterfaceWrapper) GetScenarioVersion ¶
func (siw *ServerInterfaceWrapper) GetScenarioVersion(w http.ResponseWriter, r *http.Request)
GetScenarioVersion operation middleware
func (*ServerInterfaceWrapper) GetSchedule ¶
func (siw *ServerInterfaceWrapper) GetSchedule(w http.ResponseWriter, r *http.Request)
GetSchedule operation middleware
func (*ServerInterfaceWrapper) GetTarget ¶
func (siw *ServerInterfaceWrapper) GetTarget(w http.ResponseWriter, r *http.Request)
GetTarget operation middleware
func (*ServerInterfaceWrapper) GetVersion ¶
func (siw *ServerInterfaceWrapper) GetVersion(w http.ResponseWriter, r *http.Request)
GetVersion operation middleware
func (*ServerInterfaceWrapper) KillAllRuns ¶
func (siw *ServerInterfaceWrapper) KillAllRuns(w http.ResponseWriter, r *http.Request)
KillAllRuns operation middleware
func (*ServerInterfaceWrapper) KillRun ¶
func (siw *ServerInterfaceWrapper) KillRun(w http.ResponseWriter, r *http.Request)
KillRun operation middleware
func (*ServerInterfaceWrapper) ListAIJobs ¶
func (siw *ServerInterfaceWrapper) ListAIJobs(w http.ResponseWriter, r *http.Request)
ListAIJobs operation middleware
func (*ServerInterfaceWrapper) ListAIProviders ¶
func (siw *ServerInterfaceWrapper) ListAIProviders(w http.ResponseWriter, r *http.Request)
ListAIProviders operation middleware
func (*ServerInterfaceWrapper) ListAudit ¶
func (siw *ServerInterfaceWrapper) ListAudit(w http.ResponseWriter, r *http.Request)
ListAudit operation middleware
func (*ServerInterfaceWrapper) ListDriftResults ¶
func (siw *ServerInterfaceWrapper) ListDriftResults(w http.ResponseWriter, r *http.Request)
ListDriftResults operation middleware
func (*ServerInterfaceWrapper) ListIntegrations ¶
func (siw *ServerInterfaceWrapper) ListIntegrations(w http.ResponseWriter, r *http.Request)
ListIntegrations operation middleware
func (*ServerInterfaceWrapper) ListNotificationChannels ¶
func (siw *ServerInterfaceWrapper) ListNotificationChannels(w http.ResponseWriter, r *http.Request)
ListNotificationChannels operation middleware
func (*ServerInterfaceWrapper) ListNotificationDeliveries ¶
func (siw *ServerInterfaceWrapper) ListNotificationDeliveries(w http.ResponseWriter, r *http.Request)
ListNotificationDeliveries operation middleware
func (*ServerInterfaceWrapper) ListPacks ¶
func (siw *ServerInterfaceWrapper) ListPacks(w http.ResponseWriter, r *http.Request)
ListPacks operation middleware
func (*ServerInterfaceWrapper) ListProjectRoles ¶
func (siw *ServerInterfaceWrapper) ListProjectRoles(w http.ResponseWriter, r *http.Request)
ListProjectRoles operation middleware
func (*ServerInterfaceWrapper) ListProjects ¶
func (siw *ServerInterfaceWrapper) ListProjects(w http.ResponseWriter, r *http.Request)
ListProjects operation middleware
func (*ServerInterfaceWrapper) ListRunEvents ¶
func (siw *ServerInterfaceWrapper) ListRunEvents(w http.ResponseWriter, r *http.Request)
ListRunEvents operation middleware
func (*ServerInterfaceWrapper) ListRunWorkers ¶
func (siw *ServerInterfaceWrapper) ListRunWorkers(w http.ResponseWriter, r *http.Request)
ListRunWorkers operation middleware
func (*ServerInterfaceWrapper) ListRuns ¶
func (siw *ServerInterfaceWrapper) ListRuns(w http.ResponseWriter, r *http.Request)
ListRuns operation middleware
func (*ServerInterfaceWrapper) ListScenarioVersions ¶
func (siw *ServerInterfaceWrapper) ListScenarioVersions(w http.ResponseWriter, r *http.Request)
ListScenarioVersions operation middleware
func (*ServerInterfaceWrapper) ListScenarios ¶
func (siw *ServerInterfaceWrapper) ListScenarios(w http.ResponseWriter, r *http.Request)
ListScenarios operation middleware
func (*ServerInterfaceWrapper) ListSchedules ¶
func (siw *ServerInterfaceWrapper) ListSchedules(w http.ResponseWriter, r *http.Request)
ListSchedules operation middleware
func (*ServerInterfaceWrapper) ListSecrets ¶
func (siw *ServerInterfaceWrapper) ListSecrets(w http.ResponseWriter, r *http.Request)
ListSecrets operation middleware
func (*ServerInterfaceWrapper) ListTargets ¶
func (siw *ServerInterfaceWrapper) ListTargets(w http.ResponseWriter, r *http.Request)
ListTargets operation middleware
func (*ServerInterfaceWrapper) ListTokens ¶
func (siw *ServerInterfaceWrapper) ListTokens(w http.ResponseWriter, r *http.Request)
ListTokens operation middleware
func (*ServerInterfaceWrapper) ListUsers ¶
func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Request)
ListUsers operation middleware
func (*ServerInterfaceWrapper) ListWorkers ¶
func (siw *ServerInterfaceWrapper) ListWorkers(w http.ResponseWriter, r *http.Request)
ListWorkers 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) PreviewSchedule ¶
func (siw *ServerInterfaceWrapper) PreviewSchedule(w http.ResponseWriter, r *http.Request)
PreviewSchedule operation middleware
func (*ServerInterfaceWrapper) PutAIProvider ¶
func (siw *ServerInterfaceWrapper) PutAIProvider(w http.ResponseWriter, r *http.Request)
PutAIProvider operation middleware
func (*ServerInterfaceWrapper) PutOrgCaps ¶
func (siw *ServerInterfaceWrapper) PutOrgCaps(w http.ResponseWriter, r *http.Request)
PutOrgCaps operation middleware
func (*ServerInterfaceWrapper) PutProjectRole ¶
func (siw *ServerInterfaceWrapper) PutProjectRole(w http.ResponseWriter, r *http.Request)
PutProjectRole operation middleware
func (*ServerInterfaceWrapper) PutProjectSettings ¶
func (siw *ServerInterfaceWrapper) PutProjectSettings(w http.ResponseWriter, r *http.Request)
PutProjectSettings operation middleware
func (*ServerInterfaceWrapper) PutSecret ¶
func (siw *ServerInterfaceWrapper) PutSecret(w http.ResponseWriter, r *http.Request)
PutSecret operation middleware
func (*ServerInterfaceWrapper) RepairDrift ¶
func (siw *ServerInterfaceWrapper) RepairDrift(w http.ResponseWriter, r *http.Request)
RepairDrift operation middleware
func (*ServerInterfaceWrapper) RunSchedule ¶
func (siw *ServerInterfaceWrapper) RunSchedule(w http.ResponseWriter, r *http.Request)
RunSchedule operation middleware
func (*ServerInterfaceWrapper) ScenarioCoverage ¶
func (siw *ServerInterfaceWrapper) ScenarioCoverage(w http.ResponseWriter, r *http.Request)
ScenarioCoverage operation middleware
func (*ServerInterfaceWrapper) ScenarioDrift ¶
func (siw *ServerInterfaceWrapper) ScenarioDrift(w http.ResponseWriter, r *http.Request)
ScenarioDrift operation middleware
func (*ServerInterfaceWrapper) Setup ¶
func (siw *ServerInterfaceWrapper) Setup(w http.ResponseWriter, r *http.Request)
Setup operation middleware
func (*ServerInterfaceWrapper) StopRun ¶
func (siw *ServerInterfaceWrapper) StopRun(w http.ResponseWriter, r *http.Request)
StopRun operation middleware
func (*ServerInterfaceWrapper) StreamRun ¶
func (siw *ServerInterfaceWrapper) StreamRun(w http.ResponseWriter, r *http.Request)
StreamRun operation middleware
func (*ServerInterfaceWrapper) TestNotificationChannel ¶
func (siw *ServerInterfaceWrapper) TestNotificationChannel(w http.ResponseWriter, r *http.Request)
TestNotificationChannel operation middleware
func (*ServerInterfaceWrapper) UpdateProject ¶
func (siw *ServerInterfaceWrapper) UpdateProject(w http.ResponseWriter, r *http.Request)
UpdateProject operation middleware
func (*ServerInterfaceWrapper) UpdateSchedule ¶
func (siw *ServerInterfaceWrapper) UpdateSchedule(w http.ResponseWriter, r *http.Request)
UpdateSchedule operation middleware
func (*ServerInterfaceWrapper) UpdateTarget ¶
func (siw *ServerInterfaceWrapper) UpdateTarget(w http.ResponseWriter, r *http.Request)
UpdateTarget operation middleware
func (*ServerInterfaceWrapper) UpdateUser ¶
func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Request)
UpdateUser operation middleware
func (*ServerInterfaceWrapper) ValidateScenario ¶
func (siw *ServerInterfaceWrapper) ValidateScenario(w http.ResponseWriter, r *http.Request)
ValidateScenario operation middleware
func (*ServerInterfaceWrapper) VerifyTarget ¶
func (siw *ServerInterfaceWrapper) VerifyTarget(w http.ResponseWriter, r *http.Request)
VerifyTarget operation middleware
type Setup201JSONResponse ¶
type Setup201JSONResponse Session
func (Setup201JSONResponse) VisitSetupResponse ¶
func (response Setup201JSONResponse) VisitSetupResponse(w http.ResponseWriter) error
type Setup409JSONResponse ¶
type Setup409JSONResponse struct{ ConflictJSONResponse }
func (Setup409JSONResponse) VisitSetupResponse ¶
func (response Setup409JSONResponse) VisitSetupResponse(w http.ResponseWriter) error
type Setup422JSONResponse ¶
type Setup422JSONResponse struct{ InvalidJSONResponse }
func (Setup422JSONResponse) VisitSetupResponse ¶
func (response Setup422JSONResponse) VisitSetupResponse(w http.ResponseWriter) error
type SetupJSONRequestBody ¶
type SetupJSONRequestBody = SetupRequest
SetupJSONRequestBody defines body for Setup for application/json ContentType.
type SetupRequest ¶
type SetupRequest struct {
Email openapi_types.Email `json:"email"`
Name string `json:"name"`
Organisation string `json:"organisation"`
Password string `json:"password"`
}
SetupRequest defines model for SetupRequest.
type SetupRequestObject ¶
type SetupRequestObject struct {
Body *SetupJSONRequestBody
}
type SetupResponseObject ¶
type SetupResponseObject interface {
VisitSetupResponse(w http.ResponseWriter) error
}
type StepDelta ¶
type StepDelta struct {
Journey string `json:"journey"`
// Metrics p95 and error rate
Metrics []MetricDelta `json:"metrics"`
Step string `json:"step"`
}
StepDelta defines model for StepDelta.
type StopRun202Response ¶
type StopRun202Response struct {
}
func (StopRun202Response) VisitStopRunResponse ¶
func (response StopRun202Response) VisitStopRunResponse(w http.ResponseWriter) error
type StopRun404JSONResponse ¶
type StopRun404JSONResponse struct{ NotFoundJSONResponse }
func (StopRun404JSONResponse) VisitStopRunResponse ¶
func (response StopRun404JSONResponse) VisitStopRunResponse(w http.ResponseWriter) error
type StopRun409JSONResponse ¶
type StopRun409JSONResponse struct{ ConflictJSONResponse }
func (StopRun409JSONResponse) VisitStopRunResponse ¶
func (response StopRun409JSONResponse) VisitStopRunResponse(w http.ResponseWriter) error
type StopRunRequestObject ¶
type StopRunRequestObject struct {
RunId RunId `json:"runId"`
}
type StopRunResponseObject ¶
type StopRunResponseObject interface {
VisitStopRunResponse(w http.ResponseWriter) error
}
type StreamRun200TexteventStreamResponse ¶
func (StreamRun200TexteventStreamResponse) VisitStreamRunResponse ¶
func (response StreamRun200TexteventStreamResponse) VisitStreamRunResponse(w http.ResponseWriter) error
type StreamRun404JSONResponse ¶
type StreamRun404JSONResponse struct{ NotFoundJSONResponse }
func (StreamRun404JSONResponse) VisitStreamRunResponse ¶
func (response StreamRun404JSONResponse) VisitStreamRunResponse(w http.ResponseWriter) error
type StreamRunRequestObject ¶
type StreamRunRequestObject struct {
RunId RunId `json:"runId"`
}
type StreamRunResponseObject ¶
type StreamRunResponseObject interface {
VisitStreamRunResponse(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 StrictMiddlewareFunc ¶
type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// Job status, stage, token usage, proposal, dry-run traces, problems and diff
// (GET /ai/jobs/{jobId})
GetAIJob(ctx context.Context, request GetAIJobRequestObject) (GetAIJobResponseObject, error)
// Save the proposal as a new scenario or a new scenario version
// (POST /ai/jobs/{jobId}/approve)
ApproveAIJob(ctx context.Context, request ApproveAIJobRequestObject) (ApproveAIJobResponseObject, error)
// AI providers configured for the organisation (keys are never returned)
// (GET /ai/providers)
ListAIProviders(ctx context.Context, request ListAIProvidersRequestObject) (ListAIProvidersResponseObject, error)
// Create or replace an AI provider by name
// (POST /ai/providers)
PutAIProvider(ctx context.Context, request PutAIProviderRequestObject) (PutAIProviderResponseObject, error)
// (DELETE /ai/providers/{providerId})
DeleteAIProvider(ctx context.Context, request DeleteAIProviderRequestObject) (DeleteAIProviderResponseObject, error)
// (GET /audit)
ListAudit(ctx context.Context, request ListAuditRequestObject) (ListAuditResponseObject, error)
// How people can sign in (public)
// (GET /auth/config)
GetAuthConfig(ctx context.Context, request GetAuthConfigRequestObject) (GetAuthConfigResponseObject, error)
// (POST /auth/login)
Login(ctx context.Context, request LoginRequestObject) (LoginResponseObject, error)
// (POST /auth/logout)
Logout(ctx context.Context, request LogoutRequestObject) (LogoutResponseObject, error)
// Compare finished runs of version A with runs of version B
// (POST /compare)
CompareRuns(ctx context.Context, request CompareRunsRequestObject) (CompareRunsResponseObject, error)
// One drift check with its redacted dry-run traces and spec diff
// (GET /drift-results/{driftId})
GetDriftResult(ctx context.Context, request GetDriftResultRequestObject) (GetDriftResultResponseObject, error)
// Ask the AI generator to repair the broken journeys (asynchronous)
// (POST /drift-results/{driftId}/repair)
RepairDrift(ctx context.Context, request RepairDriftRequestObject) (RepairDriftResponseObject, error)
// Integrations configured for the organisation (tokens are never returned)
// (GET /integrations)
ListIntegrations(ctx context.Context, request ListIntegrationsRequestObject) (ListIntegrationsResponseObject, error)
// Add a named Prometheus or traces integration
// (POST /integrations)
CreateIntegration(ctx context.Context, request CreateIntegrationRequestObject) (CreateIntegrationResponseObject, error)
// (DELETE /integrations/{integrationId})
DeleteIntegration(ctx context.Context, request DeleteIntegrationRequestObject) (DeleteIntegrationResponseObject, error)
// (GET /me)
GetMe(ctx context.Context, request GetMeRequestObject) (GetMeResponseObject, error)
// (PUT /me/password)
ChangePassword(ctx context.Context, request ChangePasswordRequestObject) (ChangePasswordResponseObject, error)
// Notification channels of the organisation (URLs and secrets are never returned)
// (GET /notifications/channels)
ListNotificationChannels(ctx context.Context, request ListNotificationChannelsRequestObject) (ListNotificationChannelsResponseObject, error)
// Add a webhook, Slack or Discord channel
// (POST /notifications/channels)
CreateNotificationChannel(ctx context.Context, request CreateNotificationChannelRequestObject) (CreateNotificationChannelResponseObject, error)
// (DELETE /notifications/channels/{channelId})
DeleteNotificationChannel(ctx context.Context, request DeleteNotificationChannelRequestObject) (DeleteNotificationChannelResponseObject, error)
// The most recent delivery attempts of a channel, newest first
// (GET /notifications/channels/{channelId}/deliveries)
ListNotificationDeliveries(ctx context.Context, request ListNotificationDeliveriesRequestObject) (ListNotificationDeliveriesResponseObject, error)
// Send a test notification now (one attempt, no retries)
// (POST /notifications/channels/{channelId}/test)
TestNotificationChannel(ctx context.Context, request TestNotificationChannelRequestObject) (TestNotificationChannelResponseObject, error)
// The organisation's hard caps on every run
// (GET /organisation/caps)
GetOrgCaps(ctx context.Context, request GetOrgCapsRequestObject) (GetOrgCapsResponseObject, error)
// Set the organisation's hard caps (admin)
// (PUT /organisation/caps)
PutOrgCaps(ctx context.Context, request PutOrgCapsRequestObject) (PutOrgCapsResponseObject, error)
// The product packs built into this server
// (GET /packs)
ListPacks(ctx context.Context, request ListPacksRequestObject) (ListPacksResponseObject, error)
// A shipped pack with its journey and stress scenarios
// (GET /packs/{packName})
GetPack(ctx context.Context, request GetPackRequestObject) (GetPackResponseObject, error)
// (GET /projects)
ListProjects(ctx context.Context, request ListProjectsRequestObject) (ListProjectsResponseObject, error)
// (POST /projects)
CreateProject(ctx context.Context, request CreateProjectRequestObject) (CreateProjectResponseObject, error)
// (DELETE /projects/{projectId})
DeleteProject(ctx context.Context, request DeleteProjectRequestObject) (DeleteProjectResponseObject, error)
// (GET /projects/{projectId})
GetProject(ctx context.Context, request GetProjectRequestObject) (GetProjectResponseObject, error)
// (PATCH /projects/{projectId})
UpdateProject(ctx context.Context, request UpdateProjectRequestObject) (UpdateProjectResponseObject, error)
// (GET /projects/{projectId}/ai/jobs)
ListAIJobs(ctx context.Context, request ListAIJobsRequestObject) (ListAIJobsResponseObject, error)
// Generate a scenario with an AI model (asynchronous)
// (POST /projects/{projectId}/ai/jobs)
CreateAIJob(ctx context.Context, request CreateAIJobRequestObject) (CreateAIJobResponseObject, error)
// Results of scheduled drift checks, newest first
// (GET /projects/{projectId}/drift-results)
ListDriftResults(ctx context.Context, request ListDriftResultsRequestObject) (ListDriftResultsResponseObject, error)
// Per-project role overrides
// (GET /projects/{projectId}/roles)
ListProjectRoles(ctx context.Context, request ListProjectRolesRequestObject) (ListProjectRolesResponseObject, error)
// Remove an override, so the organisation role applies again (admin)
// (DELETE /projects/{projectId}/roles/{userId})
DeleteProjectRole(ctx context.Context, request DeleteProjectRoleRequestObject) (DeleteProjectRoleResponseObject, error)
// Give a member a different role in this project (admin)
// (PUT /projects/{projectId}/roles/{userId})
PutProjectRole(ctx context.Context, request PutProjectRoleRequestObject) (PutProjectRoleResponseObject, error)
// (GET /projects/{projectId}/runs)
ListRuns(ctx context.Context, request ListRunsRequestObject) (ListRunsResponseObject, error)
// (POST /projects/{projectId}/runs)
CreateRun(ctx context.Context, request CreateRunRequestObject) (CreateRunResponseObject, error)
// (GET /projects/{projectId}/scenarios)
ListScenarios(ctx context.Context, request ListScenariosRequestObject) (ListScenariosResponseObject, error)
// (POST /projects/{projectId}/scenarios)
CreateScenario(ctx context.Context, request CreateScenarioRequestObject) (CreateScenarioResponseObject, error)
// (GET /projects/{projectId}/schedules)
ListSchedules(ctx context.Context, request ListSchedulesRequestObject) (ListSchedulesResponseObject, error)
// Create a schedule
// (POST /projects/{projectId}/schedules)
CreateSchedule(ctx context.Context, request CreateScheduleRequestObject) (CreateScheduleResponseObject, error)
// (GET /projects/{projectId}/secrets)
ListSecrets(ctx context.Context, request ListSecretsRequestObject) (ListSecretsResponseObject, error)
// (PUT /projects/{projectId}/secrets)
PutSecret(ctx context.Context, request PutSecretRequestObject) (PutSecretResponseObject, error)
// (DELETE /projects/{projectId}/secrets/{name})
DeleteSecret(ctx context.Context, request DeleteSecretRequestObject) (DeleteSecretResponseObject, error)
// (GET /projects/{projectId}/settings)
GetProjectSettings(ctx context.Context, request GetProjectSettingsRequestObject) (GetProjectSettingsResponseObject, error)
// Set the project's caps and dry-run gate (admin)
// (PUT /projects/{projectId}/settings)
PutProjectSettings(ctx context.Context, request PutProjectSettingsRequestObject) (PutProjectSettingsResponseObject, error)
// (GET /projects/{projectId}/targets)
ListTargets(ctx context.Context, request ListTargetsRequestObject) (ListTargetsResponseObject, error)
// (POST /projects/{projectId}/targets)
CreateTarget(ctx context.Context, request CreateTargetRequestObject) (CreateTargetResponseObject, error)
// Kill switch for every active run in the organisation
// (POST /runs/kill-all)
KillAllRuns(ctx context.Context, request KillAllRunsRequestObject) (KillAllRunsResponseObject, error)
// (GET /runs/{runId})
GetRun(ctx context.Context, request GetRunRequestObject) (GetRunResponseObject, error)
// Events recorded for a run
// (GET /runs/{runId}/events)
ListRunEvents(ctx context.Context, request ListRunEventsRequestObject) (ListRunEventsResponseObject, error)
// Kill switch for one run; all load stops immediately
// (POST /runs/{runId}/kill)
KillRun(ctx context.Context, request KillRunRequestObject) (KillRunResponseObject, error)
// Live metrics as server-sent events
// (GET /runs/{runId}/live)
StreamRun(ctx context.Context, request StreamRunRequestObject) (StreamRunResponseObject, error)
// Write an AI summary of a finished run's report
// (POST /runs/{runId}/narrative)
CreateRunNarrative(ctx context.Context, request CreateRunNarrativeRequestObject) (CreateRunNarrativeResponseObject, error)
// (GET /runs/{runId}/report)
GetRunReport(ctx context.Context, request GetRunReportRequestObject) (GetRunReportResponseObject, error)
// Stop gracefully; in-flight iterations may finish
// (POST /runs/{runId}/stop)
StopRun(ctx context.Context, request StopRunRequestObject) (StopRunResponseObject, error)
// (GET /runs/{runId}/timeline)
GetRunTimeline(ctx context.Context, request GetRunTimelineRequestObject) (GetRunTimelineResponseObject, error)
// Health of the load generators running a run
// (GET /runs/{runId}/workers)
ListRunWorkers(ctx context.Context, request ListRunWorkersRequestObject) (ListRunWorkersResponseObject, error)
// (POST /scenarios/validate)
ValidateScenario(ctx context.Context, request ValidateScenarioRequestObject) (ValidateScenarioResponseObject, error)
// (DELETE /scenarios/{scenarioId})
DeleteScenario(ctx context.Context, request DeleteScenarioRequestObject) (DeleteScenarioResponseObject, error)
// (GET /scenarios/{scenarioId})
GetScenario(ctx context.Context, request GetScenarioRequestObject) (GetScenarioResponseObject, error)
// Which endpoints of an API the scenario's journeys exercise
// (POST /scenarios/{scenarioId}/coverage)
ScenarioCoverage(ctx context.Context, request ScenarioCoverageRequestObject) (ScenarioCoverageResponseObject, error)
// Find journeys an API change broke
// (POST /scenarios/{scenarioId}/drift)
ScenarioDrift(ctx context.Context, request ScenarioDriftRequestObject) (ScenarioDriftResponseObject, error)
// (GET /scenarios/{scenarioId}/versions)
ListScenarioVersions(ctx context.Context, request ListScenarioVersionsRequestObject) (ListScenarioVersionsResponseObject, error)
// (POST /scenarios/{scenarioId}/versions)
CreateScenarioVersion(ctx context.Context, request CreateScenarioVersionRequestObject) (CreateScenarioVersionResponseObject, error)
// (GET /scenarios/{scenarioId}/versions/{version})
GetScenarioVersion(ctx context.Context, request GetScenarioVersionRequestObject) (GetScenarioVersionResponseObject, error)
// The next times a cron expression fires
// (GET /schedules/preview)
PreviewSchedule(ctx context.Context, request PreviewScheduleRequestObject) (PreviewScheduleResponseObject, error)
// (DELETE /schedules/{scheduleId})
DeleteSchedule(ctx context.Context, request DeleteScheduleRequestObject) (DeleteScheduleResponseObject, error)
// (GET /schedules/{scheduleId})
GetSchedule(ctx context.Context, request GetScheduleRequestObject) (GetScheduleResponseObject, error)
// Change a schedule, or enable or disable it
// (PATCH /schedules/{scheduleId})
UpdateSchedule(ctx context.Context, request UpdateScheduleRequestObject) (UpdateScheduleResponseObject, error)
// Start the schedule's run now
// (POST /schedules/{scheduleId}/run)
RunSchedule(ctx context.Context, request RunScheduleRequestObject) (RunScheduleResponseObject, error)
// The caps every run is checked against (admin)
// (GET /settings/limits)
GetLimitSettings(ctx context.Context, request GetLimitSettingsRequestObject) (GetLimitSettingsResponseObject, error)
// The server's single sign-on configuration (admin)
// (GET /settings/sso)
GetSSOSettings(ctx context.Context, request GetSSOSettingsRequestObject) (GetSSOSettingsResponseObject, error)
// Create the first organisation and owner account
// (POST /setup)
Setup(ctx context.Context, request SetupRequestObject) (SetupResponseObject, error)
// (DELETE /targets/{targetId})
DeleteTarget(ctx context.Context, request DeleteTargetRequestObject) (DeleteTargetResponseObject, error)
// (GET /targets/{targetId})
GetTarget(ctx context.Context, request GetTargetRequestObject) (GetTargetResponseObject, error)
// (PATCH /targets/{targetId})
UpdateTarget(ctx context.Context, request UpdateTargetRequestObject) (UpdateTargetResponseObject, error)
// Check the ownership token for a public target
// (POST /targets/{targetId}/verify)
VerifyTarget(ctx context.Context, request VerifyTargetRequestObject) (VerifyTargetResponseObject, error)
// (GET /tokens)
ListTokens(ctx context.Context, request ListTokensRequestObject) (ListTokensResponseObject, error)
// (POST /tokens)
CreateToken(ctx context.Context, request CreateTokenRequestObject) (CreateTokenResponseObject, error)
// (DELETE /tokens/{tokenId})
DeleteToken(ctx context.Context, request DeleteTokenRequestObject) (DeleteTokenResponseObject, error)
// (GET /users)
ListUsers(ctx context.Context, request ListUsersRequestObject) (ListUsersResponseObject, error)
// (POST /users)
CreateUser(ctx context.Context, request CreateUserRequestObject) (CreateUserResponseObject, error)
// (DELETE /users/{userId})
DeleteUser(ctx context.Context, request DeleteUserRequestObject) (DeleteUserResponseObject, error)
// (PATCH /users/{userId})
UpdateUser(ctx context.Context, request UpdateUserRequestObject) (UpdateUserResponseObject, error)
// (GET /version)
GetVersion(ctx context.Context, request GetVersionRequestObject) (GetVersionResponseObject, error)
// (GET /workers)
ListWorkers(ctx context.Context, request ListWorkersRequestObject) (ListWorkersResponseObject, error)
}
StrictServerInterface represents all server handlers.
type Target ¶
type Target struct {
AllowHosts *[]string `json:"allowHosts,omitempty"`
BaseURL string `json:"baseURL"`
Caps Caps `json:"caps"`
CreatedAt time.Time `json:"createdAt"`
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
// Private Loopback or private network; needs no verification.
Private bool `json:"private"`
ProjectId openapi_types.UUID `json:"projectId"`
VerificationMethod *string `json:"verificationMethod,omitempty"`
// VerificationToken Publish as a DNS TXT record `stampede-verify=<token>` or at /.well-known/stampede-verify.txt
VerificationToken string `json:"verificationToken"`
Verified bool `json:"verified"`
VerifiedAt *time.Time `json:"verifiedAt,omitempty"`
}
Target defines model for Target.
type TargetCreate ¶
type TargetCreate struct {
AllowHosts *[]string `json:"allowHosts,omitempty"`
BaseURL string `json:"baseURL"`
Caps *Caps `json:"caps,omitempty"`
Name string `json:"name"`
}
TargetCreate defines model for TargetCreate.
type TargetLimits ¶
type TargetLimits struct {
BaseURL string `json:"baseURL"`
Caps LimitCaps `json:"caps"`
Effective LimitCaps `json:"effective"`
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
Private bool `json:"private"`
ProjectId openapi_types.UUID `json:"projectId"`
ProjectName string `json:"projectName"`
Verified bool `json:"verified"`
}
TargetLimits A target's own caps, and its effective caps, the tightest of the server's, the organisation's, its project's and its own, and the unverified public caps when they apply.
type TestNotificationChannel200JSONResponse ¶
type TestNotificationChannel200JSONResponse NotificationDelivery
func (TestNotificationChannel200JSONResponse) VisitTestNotificationChannelResponse ¶
func (response TestNotificationChannel200JSONResponse) VisitTestNotificationChannelResponse(w http.ResponseWriter) error
type TestNotificationChannel403JSONResponse ¶
type TestNotificationChannel403JSONResponse struct{ ForbiddenJSONResponse }
func (TestNotificationChannel403JSONResponse) VisitTestNotificationChannelResponse ¶
func (response TestNotificationChannel403JSONResponse) VisitTestNotificationChannelResponse(w http.ResponseWriter) error
type TestNotificationChannel404JSONResponse ¶
type TestNotificationChannel404JSONResponse struct{ NotFoundJSONResponse }
func (TestNotificationChannel404JSONResponse) VisitTestNotificationChannelResponse ¶
func (response TestNotificationChannel404JSONResponse) VisitTestNotificationChannelResponse(w http.ResponseWriter) error
type TestNotificationChannel409JSONResponse ¶
type TestNotificationChannel409JSONResponse struct{ ConflictJSONResponse }
func (TestNotificationChannel409JSONResponse) VisitTestNotificationChannelResponse ¶
func (response TestNotificationChannel409JSONResponse) VisitTestNotificationChannelResponse(w http.ResponseWriter) error
type TestNotificationChannelRequestObject ¶
type TestNotificationChannelRequestObject struct {
ChannelId ChannelId `json:"channelId"`
}
type TestNotificationChannelResponseObject ¶
type TestNotificationChannelResponseObject interface {
VisitTestNotificationChannelResponse(w http.ResponseWriter) error
}
type Token ¶
type Token struct {
CreatedAt time.Time `json:"createdAt"`
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
Id openapi_types.UUID `json:"id"`
LastUsedAt *time.Time `json:"lastUsedAt,omitempty"`
Name string `json:"name"`
// Prefix First characters of the token
Prefix string `json:"prefix"`
Role Role `json:"role"`
}
Token defines model for Token.
type TokenCreate ¶
type TokenCreate struct {
ExpiresInDays *int `json:"expiresInDays,omitempty"`
Name string `json:"name"`
Role *Role `json:"role,omitempty"`
}
TokenCreate defines model for TokenCreate.
type TokenCreated ¶
type TokenCreated struct {
CreatedAt time.Time `json:"createdAt"`
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
Id openapi_types.UUID `json:"id"`
LastUsedAt *time.Time `json:"lastUsedAt,omitempty"`
Name string `json:"name"`
// Prefix First characters of the token
Prefix string `json:"prefix"`
Role Role `json:"role"`
// Secret The full token. Shown once.
Secret string `json:"secret"`
}
TokenCreated defines model for TokenCreated.
type TooManyJSONResponse ¶
type TooManyJSONResponse Error
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnauthorizedJSONResponse ¶
type UnauthorizedJSONResponse Error
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) ApproveAIJob ¶
func (_ Unimplemented) ApproveAIJob(w http.ResponseWriter, r *http.Request, jobId openapi_types.UUID)
Save the proposal as a new scenario or a new scenario version (POST /ai/jobs/{jobId}/approve)
func (Unimplemented) ChangePassword ¶
func (_ Unimplemented) ChangePassword(w http.ResponseWriter, r *http.Request)
(PUT /me/password)
func (Unimplemented) CompareRuns ¶
func (_ Unimplemented) CompareRuns(w http.ResponseWriter, r *http.Request)
Compare finished runs of version A with runs of version B (POST /compare)
func (Unimplemented) CreateAIJob ¶
func (_ Unimplemented) CreateAIJob(w http.ResponseWriter, r *http.Request, projectId ProjectId)
Generate a scenario with an AI model (asynchronous) (POST /projects/{projectId}/ai/jobs)
func (Unimplemented) CreateIntegration ¶
func (_ Unimplemented) CreateIntegration(w http.ResponseWriter, r *http.Request)
Add a named Prometheus or traces integration (POST /integrations)
func (Unimplemented) CreateNotificationChannel ¶
func (_ Unimplemented) CreateNotificationChannel(w http.ResponseWriter, r *http.Request)
Add a webhook, Slack or Discord channel (POST /notifications/channels)
func (Unimplemented) CreateProject ¶
func (_ Unimplemented) CreateProject(w http.ResponseWriter, r *http.Request)
(POST /projects)
func (Unimplemented) CreateRun ¶
func (_ Unimplemented) CreateRun(w http.ResponseWriter, r *http.Request, projectId ProjectId)
(POST /projects/{projectId}/runs)
func (Unimplemented) CreateRunNarrative ¶
func (_ Unimplemented) CreateRunNarrative(w http.ResponseWriter, r *http.Request, runId RunId)
Write an AI summary of a finished run's report (POST /runs/{runId}/narrative)
func (Unimplemented) CreateScenario ¶
func (_ Unimplemented) CreateScenario(w http.ResponseWriter, r *http.Request, projectId ProjectId)
(POST /projects/{projectId}/scenarios)
func (Unimplemented) CreateScenarioVersion ¶
func (_ Unimplemented) CreateScenarioVersion(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId)
(POST /scenarios/{scenarioId}/versions)
func (Unimplemented) CreateSchedule ¶
func (_ Unimplemented) CreateSchedule(w http.ResponseWriter, r *http.Request, projectId ProjectId)
Create a schedule (POST /projects/{projectId}/schedules)
func (Unimplemented) CreateTarget ¶
func (_ Unimplemented) CreateTarget(w http.ResponseWriter, r *http.Request, projectId ProjectId)
(POST /projects/{projectId}/targets)
func (Unimplemented) CreateToken ¶
func (_ Unimplemented) CreateToken(w http.ResponseWriter, r *http.Request)
(POST /tokens)
func (Unimplemented) CreateUser ¶
func (_ Unimplemented) CreateUser(w http.ResponseWriter, r *http.Request)
(POST /users)
func (Unimplemented) DeleteAIProvider ¶
func (_ Unimplemented) DeleteAIProvider(w http.ResponseWriter, r *http.Request, providerId openapi_types.UUID)
(DELETE /ai/providers/{providerId})
func (Unimplemented) DeleteIntegration ¶
func (_ Unimplemented) DeleteIntegration(w http.ResponseWriter, r *http.Request, integrationId openapi_types.UUID)
(DELETE /integrations/{integrationId})
func (Unimplemented) DeleteNotificationChannel ¶
func (_ Unimplemented) DeleteNotificationChannel(w http.ResponseWriter, r *http.Request, channelId ChannelId)
(DELETE /notifications/channels/{channelId})
func (Unimplemented) DeleteProject ¶
func (_ Unimplemented) DeleteProject(w http.ResponseWriter, r *http.Request, projectId ProjectId)
(DELETE /projects/{projectId})
func (Unimplemented) DeleteProjectRole ¶
func (_ Unimplemented) DeleteProjectRole(w http.ResponseWriter, r *http.Request, projectId ProjectId, userId UserId)
Remove an override, so the organisation role applies again (admin) (DELETE /projects/{projectId}/roles/{userId})
func (Unimplemented) DeleteScenario ¶
func (_ Unimplemented) DeleteScenario(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId)
(DELETE /scenarios/{scenarioId})
func (Unimplemented) DeleteSchedule ¶
func (_ Unimplemented) DeleteSchedule(w http.ResponseWriter, r *http.Request, scheduleId ScheduleId)
(DELETE /schedules/{scheduleId})
func (Unimplemented) DeleteSecret ¶
func (_ Unimplemented) DeleteSecret(w http.ResponseWriter, r *http.Request, projectId ProjectId, name string)
(DELETE /projects/{projectId}/secrets/{name})
func (Unimplemented) DeleteTarget ¶
func (_ Unimplemented) DeleteTarget(w http.ResponseWriter, r *http.Request, targetId TargetId)
(DELETE /targets/{targetId})
func (Unimplemented) DeleteToken ¶
func (_ Unimplemented) DeleteToken(w http.ResponseWriter, r *http.Request, tokenId TokenId)
(DELETE /tokens/{tokenId})
func (Unimplemented) DeleteUser ¶
func (_ Unimplemented) DeleteUser(w http.ResponseWriter, r *http.Request, userId UserId)
(DELETE /users/{userId})
func (Unimplemented) GetAIJob ¶
func (_ Unimplemented) GetAIJob(w http.ResponseWriter, r *http.Request, jobId openapi_types.UUID)
Job status, stage, token usage, proposal, dry-run traces, problems and diff (GET /ai/jobs/{jobId})
func (Unimplemented) GetAuthConfig ¶
func (_ Unimplemented) GetAuthConfig(w http.ResponseWriter, r *http.Request)
How people can sign in (public) (GET /auth/config)
func (Unimplemented) GetDriftResult ¶
func (_ Unimplemented) GetDriftResult(w http.ResponseWriter, r *http.Request, driftId DriftId)
One drift check with its redacted dry-run traces and spec diff (GET /drift-results/{driftId})
func (Unimplemented) GetLimitSettings ¶
func (_ Unimplemented) GetLimitSettings(w http.ResponseWriter, r *http.Request)
The caps every run is checked against (admin) (GET /settings/limits)
func (Unimplemented) GetMe ¶
func (_ Unimplemented) GetMe(w http.ResponseWriter, r *http.Request)
(GET /me)
func (Unimplemented) GetOrgCaps ¶
func (_ Unimplemented) GetOrgCaps(w http.ResponseWriter, r *http.Request)
The organisation's hard caps on every run (GET /organisation/caps)
func (Unimplemented) GetPack ¶
func (_ Unimplemented) GetPack(w http.ResponseWriter, r *http.Request, packName string)
A shipped pack with its journey and stress scenarios (GET /packs/{packName})
func (Unimplemented) GetProject ¶
func (_ Unimplemented) GetProject(w http.ResponseWriter, r *http.Request, projectId ProjectId)
(GET /projects/{projectId})
func (Unimplemented) GetProjectSettings ¶
func (_ Unimplemented) GetProjectSettings(w http.ResponseWriter, r *http.Request, projectId ProjectId)
(GET /projects/{projectId}/settings)
func (Unimplemented) GetRun ¶
func (_ Unimplemented) GetRun(w http.ResponseWriter, r *http.Request, runId RunId)
(GET /runs/{runId})
func (Unimplemented) GetRunReport ¶
func (_ Unimplemented) GetRunReport(w http.ResponseWriter, r *http.Request, runId RunId, params GetRunReportParams)
(GET /runs/{runId}/report)
func (Unimplemented) GetRunTimeline ¶
func (_ Unimplemented) GetRunTimeline(w http.ResponseWriter, r *http.Request, runId RunId, params GetRunTimelineParams)
(GET /runs/{runId}/timeline)
func (Unimplemented) GetSSOSettings ¶
func (_ Unimplemented) GetSSOSettings(w http.ResponseWriter, r *http.Request)
The server's single sign-on configuration (admin) (GET /settings/sso)
func (Unimplemented) GetScenario ¶
func (_ Unimplemented) GetScenario(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId)
(GET /scenarios/{scenarioId})
func (Unimplemented) GetScenarioVersion ¶
func (_ Unimplemented) GetScenarioVersion(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId, version int)
(GET /scenarios/{scenarioId}/versions/{version})
func (Unimplemented) GetSchedule ¶
func (_ Unimplemented) GetSchedule(w http.ResponseWriter, r *http.Request, scheduleId ScheduleId)
(GET /schedules/{scheduleId})
func (Unimplemented) GetTarget ¶
func (_ Unimplemented) GetTarget(w http.ResponseWriter, r *http.Request, targetId TargetId)
(GET /targets/{targetId})
func (Unimplemented) GetVersion ¶
func (_ Unimplemented) GetVersion(w http.ResponseWriter, r *http.Request)
(GET /version)
func (Unimplemented) KillAllRuns ¶
func (_ Unimplemented) KillAllRuns(w http.ResponseWriter, r *http.Request)
Kill switch for every active run in the organisation (POST /runs/kill-all)
func (Unimplemented) KillRun ¶
func (_ Unimplemented) KillRun(w http.ResponseWriter, r *http.Request, runId RunId)
Kill switch for one run; all load stops immediately (POST /runs/{runId}/kill)
func (Unimplemented) ListAIJobs ¶
func (_ Unimplemented) ListAIJobs(w http.ResponseWriter, r *http.Request, projectId ProjectId, params ListAIJobsParams)
(GET /projects/{projectId}/ai/jobs)
func (Unimplemented) ListAIProviders ¶
func (_ Unimplemented) ListAIProviders(w http.ResponseWriter, r *http.Request)
AI providers configured for the organisation (keys are never returned) (GET /ai/providers)
func (Unimplemented) ListAudit ¶
func (_ Unimplemented) ListAudit(w http.ResponseWriter, r *http.Request, params ListAuditParams)
(GET /audit)
func (Unimplemented) ListDriftResults ¶
func (_ Unimplemented) ListDriftResults(w http.ResponseWriter, r *http.Request, projectId ProjectId, params ListDriftResultsParams)
Results of scheduled drift checks, newest first (GET /projects/{projectId}/drift-results)
func (Unimplemented) ListIntegrations ¶
func (_ Unimplemented) ListIntegrations(w http.ResponseWriter, r *http.Request)
Integrations configured for the organisation (tokens are never returned) (GET /integrations)
func (Unimplemented) ListNotificationChannels ¶
func (_ Unimplemented) ListNotificationChannels(w http.ResponseWriter, r *http.Request)
Notification channels of the organisation (URLs and secrets are never returned) (GET /notifications/channels)
func (Unimplemented) ListNotificationDeliveries ¶
func (_ Unimplemented) ListNotificationDeliveries(w http.ResponseWriter, r *http.Request, channelId ChannelId, params ListNotificationDeliveriesParams)
The most recent delivery attempts of a channel, newest first (GET /notifications/channels/{channelId}/deliveries)
func (Unimplemented) ListPacks ¶
func (_ Unimplemented) ListPacks(w http.ResponseWriter, r *http.Request)
The product packs built into this server (GET /packs)
func (Unimplemented) ListProjectRoles ¶
func (_ Unimplemented) ListProjectRoles(w http.ResponseWriter, r *http.Request, projectId ProjectId)
Per-project role overrides (GET /projects/{projectId}/roles)
func (Unimplemented) ListProjects ¶
func (_ Unimplemented) ListProjects(w http.ResponseWriter, r *http.Request)
(GET /projects)
func (Unimplemented) ListRunEvents ¶
func (_ Unimplemented) ListRunEvents(w http.ResponseWriter, r *http.Request, runId RunId)
Events recorded for a run (GET /runs/{runId}/events)
func (Unimplemented) ListRunWorkers ¶
func (_ Unimplemented) ListRunWorkers(w http.ResponseWriter, r *http.Request, runId RunId)
Health of the load generators running a run (GET /runs/{runId}/workers)
func (Unimplemented) ListRuns ¶
func (_ Unimplemented) ListRuns(w http.ResponseWriter, r *http.Request, projectId ProjectId, params ListRunsParams)
(GET /projects/{projectId}/runs)
func (Unimplemented) ListScenarioVersions ¶
func (_ Unimplemented) ListScenarioVersions(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId)
(GET /scenarios/{scenarioId}/versions)
func (Unimplemented) ListScenarios ¶
func (_ Unimplemented) ListScenarios(w http.ResponseWriter, r *http.Request, projectId ProjectId, params ListScenariosParams)
(GET /projects/{projectId}/scenarios)
func (Unimplemented) ListSchedules ¶
func (_ Unimplemented) ListSchedules(w http.ResponseWriter, r *http.Request, projectId ProjectId)
(GET /projects/{projectId}/schedules)
func (Unimplemented) ListSecrets ¶
func (_ Unimplemented) ListSecrets(w http.ResponseWriter, r *http.Request, projectId ProjectId)
(GET /projects/{projectId}/secrets)
func (Unimplemented) ListTargets ¶
func (_ Unimplemented) ListTargets(w http.ResponseWriter, r *http.Request, projectId ProjectId)
(GET /projects/{projectId}/targets)
func (Unimplemented) ListTokens ¶
func (_ Unimplemented) ListTokens(w http.ResponseWriter, r *http.Request)
(GET /tokens)
func (Unimplemented) ListUsers ¶
func (_ Unimplemented) ListUsers(w http.ResponseWriter, r *http.Request)
(GET /users)
func (Unimplemented) ListWorkers ¶
func (_ Unimplemented) ListWorkers(w http.ResponseWriter, r *http.Request)
(GET /workers)
func (Unimplemented) Login ¶
func (_ Unimplemented) Login(w http.ResponseWriter, r *http.Request)
(POST /auth/login)
func (Unimplemented) Logout ¶
func (_ Unimplemented) Logout(w http.ResponseWriter, r *http.Request)
(POST /auth/logout)
func (Unimplemented) PreviewSchedule ¶
func (_ Unimplemented) PreviewSchedule(w http.ResponseWriter, r *http.Request, params PreviewScheduleParams)
The next times a cron expression fires (GET /schedules/preview)
func (Unimplemented) PutAIProvider ¶
func (_ Unimplemented) PutAIProvider(w http.ResponseWriter, r *http.Request)
Create or replace an AI provider by name (POST /ai/providers)
func (Unimplemented) PutOrgCaps ¶
func (_ Unimplemented) PutOrgCaps(w http.ResponseWriter, r *http.Request)
Set the organisation's hard caps (admin) (PUT /organisation/caps)
func (Unimplemented) PutProjectRole ¶
func (_ Unimplemented) PutProjectRole(w http.ResponseWriter, r *http.Request, projectId ProjectId, userId UserId)
Give a member a different role in this project (admin) (PUT /projects/{projectId}/roles/{userId})
func (Unimplemented) PutProjectSettings ¶
func (_ Unimplemented) PutProjectSettings(w http.ResponseWriter, r *http.Request, projectId ProjectId)
Set the project's caps and dry-run gate (admin) (PUT /projects/{projectId}/settings)
func (Unimplemented) PutSecret ¶
func (_ Unimplemented) PutSecret(w http.ResponseWriter, r *http.Request, projectId ProjectId)
(PUT /projects/{projectId}/secrets)
func (Unimplemented) RepairDrift ¶
func (_ Unimplemented) RepairDrift(w http.ResponseWriter, r *http.Request, driftId DriftId)
Ask the AI generator to repair the broken journeys (asynchronous) (POST /drift-results/{driftId}/repair)
func (Unimplemented) RunSchedule ¶
func (_ Unimplemented) RunSchedule(w http.ResponseWriter, r *http.Request, scheduleId ScheduleId)
Start the schedule's run now (POST /schedules/{scheduleId}/run)
func (Unimplemented) ScenarioCoverage ¶
func (_ Unimplemented) ScenarioCoverage(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId)
Which endpoints of an API the scenario's journeys exercise (POST /scenarios/{scenarioId}/coverage)
func (Unimplemented) ScenarioDrift ¶
func (_ Unimplemented) ScenarioDrift(w http.ResponseWriter, r *http.Request, scenarioId ScenarioId)
Find journeys an API change broke (POST /scenarios/{scenarioId}/drift)
func (Unimplemented) Setup ¶
func (_ Unimplemented) Setup(w http.ResponseWriter, r *http.Request)
Create the first organisation and owner account (POST /setup)
func (Unimplemented) StopRun ¶
func (_ Unimplemented) StopRun(w http.ResponseWriter, r *http.Request, runId RunId)
Stop gracefully; in-flight iterations may finish (POST /runs/{runId}/stop)
func (Unimplemented) StreamRun ¶
func (_ Unimplemented) StreamRun(w http.ResponseWriter, r *http.Request, runId RunId)
Live metrics as server-sent events (GET /runs/{runId}/live)
func (Unimplemented) TestNotificationChannel ¶
func (_ Unimplemented) TestNotificationChannel(w http.ResponseWriter, r *http.Request, channelId ChannelId)
Send a test notification now (one attempt, no retries) (POST /notifications/channels/{channelId}/test)
func (Unimplemented) UpdateProject ¶
func (_ Unimplemented) UpdateProject(w http.ResponseWriter, r *http.Request, projectId ProjectId)
(PATCH /projects/{projectId})
func (Unimplemented) UpdateSchedule ¶
func (_ Unimplemented) UpdateSchedule(w http.ResponseWriter, r *http.Request, scheduleId ScheduleId)
Change a schedule, or enable or disable it (PATCH /schedules/{scheduleId})
func (Unimplemented) UpdateTarget ¶
func (_ Unimplemented) UpdateTarget(w http.ResponseWriter, r *http.Request, targetId TargetId)
(PATCH /targets/{targetId})
func (Unimplemented) UpdateUser ¶
func (_ Unimplemented) UpdateUser(w http.ResponseWriter, r *http.Request, userId UserId)
(PATCH /users/{userId})
func (Unimplemented) ValidateScenario ¶
func (_ Unimplemented) ValidateScenario(w http.ResponseWriter, r *http.Request)
(POST /scenarios/validate)
func (Unimplemented) VerifyTarget ¶
func (_ Unimplemented) VerifyTarget(w http.ResponseWriter, r *http.Request, targetId TargetId)
Check the ownership token for a public target (POST /targets/{targetId}/verify)
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UpdateProject200JSONResponse ¶
type UpdateProject200JSONResponse Project
func (UpdateProject200JSONResponse) VisitUpdateProjectResponse ¶
func (response UpdateProject200JSONResponse) VisitUpdateProjectResponse(w http.ResponseWriter) error
type UpdateProject404JSONResponse ¶
type UpdateProject404JSONResponse struct{ NotFoundJSONResponse }
func (UpdateProject404JSONResponse) VisitUpdateProjectResponse ¶
func (response UpdateProject404JSONResponse) VisitUpdateProjectResponse(w http.ResponseWriter) error
type UpdateProjectJSONRequestBody ¶
type UpdateProjectJSONRequestBody = ProjectCreate
UpdateProjectJSONRequestBody defines body for UpdateProject for application/json ContentType.
type UpdateProjectRequestObject ¶
type UpdateProjectRequestObject struct {
ProjectId ProjectId `json:"projectId"`
Body *UpdateProjectJSONRequestBody
}
type UpdateProjectResponseObject ¶
type UpdateProjectResponseObject interface {
VisitUpdateProjectResponse(w http.ResponseWriter) error
}
type UpdateSchedule200JSONResponse ¶
type UpdateSchedule200JSONResponse Schedule
func (UpdateSchedule200JSONResponse) VisitUpdateScheduleResponse ¶
func (response UpdateSchedule200JSONResponse) VisitUpdateScheduleResponse(w http.ResponseWriter) error
type UpdateSchedule403JSONResponse ¶
type UpdateSchedule403JSONResponse struct{ ForbiddenJSONResponse }
func (UpdateSchedule403JSONResponse) VisitUpdateScheduleResponse ¶
func (response UpdateSchedule403JSONResponse) VisitUpdateScheduleResponse(w http.ResponseWriter) error
type UpdateSchedule404JSONResponse ¶
type UpdateSchedule404JSONResponse struct{ NotFoundJSONResponse }
func (UpdateSchedule404JSONResponse) VisitUpdateScheduleResponse ¶
func (response UpdateSchedule404JSONResponse) VisitUpdateScheduleResponse(w http.ResponseWriter) error
type UpdateSchedule409JSONResponse ¶
type UpdateSchedule409JSONResponse struct{ ConflictJSONResponse }
func (UpdateSchedule409JSONResponse) VisitUpdateScheduleResponse ¶
func (response UpdateSchedule409JSONResponse) VisitUpdateScheduleResponse(w http.ResponseWriter) error
type UpdateSchedule422JSONResponse ¶
type UpdateSchedule422JSONResponse struct{ InvalidJSONResponse }
func (UpdateSchedule422JSONResponse) VisitUpdateScheduleResponse ¶
func (response UpdateSchedule422JSONResponse) VisitUpdateScheduleResponse(w http.ResponseWriter) error
type UpdateScheduleJSONRequestBody ¶
type UpdateScheduleJSONRequestBody = ScheduleUpdate
UpdateScheduleJSONRequestBody defines body for UpdateSchedule for application/json ContentType.
type UpdateScheduleRequestObject ¶
type UpdateScheduleRequestObject struct {
ScheduleId ScheduleId `json:"scheduleId"`
Body *UpdateScheduleJSONRequestBody
}
type UpdateScheduleResponseObject ¶
type UpdateScheduleResponseObject interface {
VisitUpdateScheduleResponse(w http.ResponseWriter) error
}
type UpdateTarget200JSONResponse ¶
type UpdateTarget200JSONResponse Target
func (UpdateTarget200JSONResponse) VisitUpdateTargetResponse ¶
func (response UpdateTarget200JSONResponse) VisitUpdateTargetResponse(w http.ResponseWriter) error
type UpdateTarget404JSONResponse ¶
type UpdateTarget404JSONResponse struct{ NotFoundJSONResponse }
func (UpdateTarget404JSONResponse) VisitUpdateTargetResponse ¶
func (response UpdateTarget404JSONResponse) VisitUpdateTargetResponse(w http.ResponseWriter) error
type UpdateTargetJSONRequestBody ¶
type UpdateTargetJSONRequestBody = TargetCreate
UpdateTargetJSONRequestBody defines body for UpdateTarget for application/json ContentType.
type UpdateTargetRequestObject ¶
type UpdateTargetRequestObject struct {
TargetId TargetId `json:"targetId"`
Body *UpdateTargetJSONRequestBody
}
type UpdateTargetResponseObject ¶
type UpdateTargetResponseObject interface {
VisitUpdateTargetResponse(w http.ResponseWriter) error
}
type UpdateUser200JSONResponse ¶
type UpdateUser200JSONResponse User
func (UpdateUser200JSONResponse) VisitUpdateUserResponse ¶
func (response UpdateUser200JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUser403JSONResponse ¶
type UpdateUser403JSONResponse struct{ ForbiddenJSONResponse }
func (UpdateUser403JSONResponse) VisitUpdateUserResponse ¶
func (response UpdateUser403JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUser404JSONResponse ¶
type UpdateUser404JSONResponse struct{ NotFoundJSONResponse }
func (UpdateUser404JSONResponse) VisitUpdateUserResponse ¶
func (response UpdateUser404JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUserJSONBody ¶
type UpdateUserJSONBody struct {
Name *string `json:"name,omitempty"`
Role *Role `json:"role,omitempty"`
}
UpdateUserJSONBody defines parameters for UpdateUser.
type UpdateUserJSONRequestBody ¶
type UpdateUserJSONRequestBody UpdateUserJSONBody
UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.
type UpdateUserRequestObject ¶
type UpdateUserRequestObject struct {
UserId UserId `json:"userId"`
Body *UpdateUserJSONRequestBody
}
type UpdateUserResponseObject ¶
type UpdateUserResponseObject interface {
VisitUpdateUserResponse(w http.ResponseWriter) error
}
type User ¶
type User struct {
CreatedAt time.Time `json:"createdAt"`
Email string `json:"email"`
Id openapi_types.UUID `json:"id"`
LastLoginAt *time.Time `json:"lastLoginAt,omitempty"`
Name string `json:"name"`
Role Role `json:"role"`
}
User defines model for User.
type UserCreate ¶
type UserCreate struct {
Email openapi_types.Email `json:"email"`
Name string `json:"name"`
Password string `json:"password"`
Role Role `json:"role"`
}
UserCreate defines model for UserCreate.
type ValidateScenario200JSONResponse ¶
type ValidateScenario200JSONResponse Validation
func (ValidateScenario200JSONResponse) VisitValidateScenarioResponse ¶
func (response ValidateScenario200JSONResponse) VisitValidateScenarioResponse(w http.ResponseWriter) error
type ValidateScenarioJSONBody ¶
type ValidateScenarioJSONBody struct {
Yaml string `json:"yaml"`
}
ValidateScenarioJSONBody defines parameters for ValidateScenario.
type ValidateScenarioJSONRequestBody ¶
type ValidateScenarioJSONRequestBody ValidateScenarioJSONBody
ValidateScenarioJSONRequestBody defines body for ValidateScenario for application/json ContentType.
type ValidateScenarioRequestObject ¶
type ValidateScenarioRequestObject struct {
Body *ValidateScenarioJSONRequestBody
}
type ValidateScenarioResponseObject ¶
type ValidateScenarioResponseObject interface {
VisitValidateScenarioResponse(w http.ResponseWriter) error
}
type Validation ¶
type Validation struct {
Plan *PlanSummary `json:"plan,omitempty"`
Problems []string `json:"problems"`
Valid bool `json:"valid"`
}
Validation defines model for Validation.
type VerifyTarget200JSONResponse ¶
type VerifyTarget200JSONResponse Target
func (VerifyTarget200JSONResponse) VisitVerifyTargetResponse ¶
func (response VerifyTarget200JSONResponse) VisitVerifyTargetResponse(w http.ResponseWriter) error
type VerifyTarget404JSONResponse ¶
type VerifyTarget404JSONResponse struct{ NotFoundJSONResponse }
func (VerifyTarget404JSONResponse) VisitVerifyTargetResponse ¶
func (response VerifyTarget404JSONResponse) VisitVerifyTargetResponse(w http.ResponseWriter) error
type VerifyTargetRequestObject ¶
type VerifyTargetRequestObject struct {
TargetId TargetId `json:"targetId"`
}
type VerifyTargetResponseObject ¶
type VerifyTargetResponseObject interface {
VisitVerifyTargetResponse(w http.ResponseWriter) error
}
type VersionInfo ¶
type VersionInfo struct {
Commit string `json:"commit"`
SetupRequired bool `json:"setupRequired"`
Version string `json:"version"`
}
VersionInfo defines model for VersionInfo.
type Worker ¶
type Worker struct {
ConnectedAt time.Time `json:"connectedAt"`
Cpus *int `json:"cpus,omitempty"`
Id string `json:"id"`
Labels *map[string]string `json:"labels,omitempty"`
LastSeenAt time.Time `json:"lastSeenAt"`
MemoryBytes *int `json:"memoryBytes,omitempty"`
Name string `json:"name"`
// Plugins Plugins installed on the worker, such as mqtt or kafka.
Plugins *[]string `json:"plugins,omitempty"`
// Protocols Drivers the worker supports, such as http, grpc or browser.
Protocols *[]string `json:"protocols,omitempty"`
Region string `json:"region"`
RunId *string `json:"runId,omitempty"`
Status WorkerStatus `json:"status"`
Version *string `json:"version,omitempty"`
}
Worker defines model for Worker.
type WorkerStatus ¶
type WorkerStatus string
WorkerStatus defines model for Worker.Status.
const ( Busy WorkerStatus = "busy" Idle WorkerStatus = "idle" Lost WorkerStatus = "lost" Saturated WorkerStatus = "saturated" )
Defines values for WorkerStatus.
func (WorkerStatus) Valid ¶
func (e WorkerStatus) Valid() bool
Valid indicates whether the value is a known member of the WorkerStatus enum.