Documentation
¶
Overview ¶
Package gen is the oapi-codegen Echo strict server for api/openapi.yaml: the StrictServerInterface the dispatcher's handlers implement (internal/server), its request/response types and RegisterHandlers. Payloads that are v1alpha1 kinds are the internal/apis/v1alpha1 types (x-go-type), not copies.
Generated: never edit server.gen.go by hand; run make generate.
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.
Index ¶
- Constants
- func RegisterHandlers(router EchoRouter, si ServerInterface)
- func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
- func RegisterHandlersWithOptions(router EchoRouter, si ServerInterface, options RegisterHandlersOptions)
- type AbandonLease204Response
- type AbandonLease400ApplicationProblemPlusJSONResponse
- type AbandonLease401ApplicationProblemPlusJSONResponse
- type AbandonLease403ApplicationProblemPlusJSONResponse
- type AbandonLease404ApplicationProblemPlusJSONResponse
- type AbandonLease409ApplicationProblemPlusJSONResponse
- type AbandonLeaseJSONRequestBody
- type AbandonLeaseRequestObject
- type AbandonLeaseResponseObject
- type AbandonLeasedefaultApplicationProblemPlusJSONResponse
- type AbandonRequest
- type AbandonRequestReason
- type Action
- type ActionIntent
- type ActionIntentType
- type Actor
- type Admission
- type Agent
- type AgentCapabilities
- type AgentID
- type AgentList
- type AgentPhase
- type AgentRegistration
- type AgentSpec
- type AgentStatus
- type AgentUpdate
- type AgentUsage
- type AppIdentity
- type ApprovalPhase
- type ApprovalRef
- type ApprovalSpec
- type Artifact
- type AuthCallback302Response
- type AuthCallback302ResponseHeaders
- type AuthCallback400ApplicationProblemPlusJSONResponse
- type AuthCallback403ApplicationProblemPlusJSONResponse
- type AuthCallbackParams
- type AuthCallbackRequestObject
- type AuthCallbackResponseObject
- type AuthCallbackdefaultApplicationProblemPlusJSONResponse
- type BadRequest
- type BadRequestApplicationProblemPlusJSONResponse
- type Budget
- type BudgetLimit
- type CancelAction
- type CatalogError
- type CatalogFile
- type CatalogFileKind
- type CatalogFileList
- type CatalogFileRef
- type CatalogKind
- type CatalogObject
- func (t CatalogObject) AsGroup() (Group, error)
- func (t CatalogObject) AsPool() (Pool, error)
- func (t CatalogObject) AsProvider() (Provider, error)
- func (t CatalogObject) AsQueue() (Queue, error)
- func (t CatalogObject) AsRule() (Rule, error)
- func (t CatalogObject) AsRuleSet() (RuleSet, error)
- func (t CatalogObject) AsTaskSpec() (TaskSpec, error)
- func (t CatalogObject) AsTemplate() (Template, error)
- func (t CatalogObject) Discriminator() (string, error)
- func (t *CatalogObject) FromGroup(v Group) error
- func (t *CatalogObject) FromPool(v Pool) error
- func (t *CatalogObject) FromProvider(v Provider) error
- func (t *CatalogObject) FromQueue(v Queue) error
- func (t *CatalogObject) FromRule(v Rule) error
- func (t *CatalogObject) FromRuleSet(v RuleSet) error
- func (t *CatalogObject) FromTaskSpec(v TaskSpec) error
- func (t *CatalogObject) FromTemplate(v Template) error
- func (t CatalogObject) MarshalJSON() ([]byte, error)
- func (t *CatalogObject) MergeGroup(v Group) error
- func (t *CatalogObject) MergePool(v Pool) error
- func (t *CatalogObject) MergeProvider(v Provider) error
- func (t *CatalogObject) MergeQueue(v Queue) error
- func (t *CatalogObject) MergeRule(v Rule) error
- func (t *CatalogObject) MergeRuleSet(v RuleSet) error
- func (t *CatalogObject) MergeTaskSpec(v TaskSpec) error
- func (t *CatalogObject) MergeTemplate(v Template) error
- func (t *CatalogObject) UnmarshalJSON(b []byte) error
- func (t CatalogObject) ValueByDiscriminator() (interface{}, error)
- type CatalogObjectRef
- type CatalogSummary
- type CatalogSummaryStatus
- type ChannelRef
- type CloseWorkItem200JSONResponse
- type CloseWorkItem400ApplicationProblemPlusJSONResponse
- type CloseWorkItem401ApplicationProblemPlusJSONResponse
- type CloseWorkItem403ApplicationProblemPlusJSONResponse
- type CloseWorkItem404ApplicationProblemPlusJSONResponse
- type CloseWorkItemJSONRequestBody
- type CloseWorkItemRequest
- type CloseWorkItemRequestObject
- type CloseWorkItemRequestReason
- type CloseWorkItemResponseObject
- type CloseWorkItemdefaultApplicationProblemPlusJSONResponse
- type Command
- type CommandAccepted
- type CommandArgs
- type CommandTarget
- type CommandTargetScope
- type CommandType
- type CompleteLease204Response
- type CompleteLease400ApplicationProblemPlusJSONResponse
- type CompleteLease401ApplicationProblemPlusJSONResponse
- type CompleteLease403ApplicationProblemPlusJSONResponse
- type CompleteLease404ApplicationProblemPlusJSONResponse
- type CompleteLease409ApplicationProblemPlusJSONResponse
- type CompleteLeaseJSONRequestBody
- type CompleteLeaseRequestObject
- type CompleteLeaseResponseObject
- type CompleteLeasedefaultApplicationProblemPlusJSONResponse
- type CompleteRequest
- type Conflict
- type ConflictApplicationProblemPlusJSONResponse
- type ContextItem
- type CreateEffect200JSONResponse
- type CreateEffect400ApplicationProblemPlusJSONResponse
- type CreateEffect401ApplicationProblemPlusJSONResponse
- type CreateEffect403ApplicationProblemPlusJSONResponse
- type CreateEffect404ApplicationProblemPlusJSONResponse
- type CreateEffect429ApplicationProblemPlusJSONResponse
- type CreateEffectJSONRequestBody
- type CreateEffectRequestObject
- type CreateEffectResponseObject
- type CreateEffectdefaultApplicationProblemPlusJSONResponse
- type CreateEnrollment201JSONResponse
- type CreateEnrollment400ApplicationProblemPlusJSONResponse
- type CreateEnrollment401ApplicationProblemPlusJSONResponse
- type CreateEnrollment403ApplicationProblemPlusJSONResponse
- type CreateEnrollmentJSONRequestBody
- type CreateEnrollmentRequestObject
- type CreateEnrollmentResponseObject
- type CreateEnrollmentdefaultApplicationProblemPlusJSONResponse
- type Cursor
- type Debounce
- type Decision
- type DeleteEnrollment204Response
- type DeleteEnrollment401ApplicationProblemPlusJSONResponse
- type DeleteEnrollment403ApplicationProblemPlusJSONResponse
- type DeleteEnrollment404ApplicationProblemPlusJSONResponse
- type DeleteEnrollmentRequestObject
- type DeleteEnrollmentResponseObject
- type DeleteEnrollmentdefaultApplicationProblemPlusJSONResponse
- type DeleteWorkItem200JSONResponse
- type DeleteWorkItem401ApplicationProblemPlusJSONResponse
- type DeleteWorkItem403ApplicationProblemPlusJSONResponse
- type DeleteWorkItem404ApplicationProblemPlusJSONResponse
- type DeleteWorkItem409ApplicationProblemPlusJSONResponse
- type DeleteWorkItemParams
- type DeleteWorkItemRequestObject
- type DeleteWorkItemResponseObject
- type DeleteWorkItemdefaultApplicationProblemPlusJSONResponse
- type DeregisterAgent204Response
- type DeregisterAgent401ApplicationProblemPlusJSONResponse
- type DeregisterAgent403ApplicationProblemPlusJSONResponse
- type DeregisterAgent404ApplicationProblemPlusJSONResponse
- type DeregisterAgentRequestObject
- type DeregisterAgentResponseObject
- type DeregisterAgentdefaultApplicationProblemPlusJSONResponse
- type Destination
- type DispatchAction
- type DryRunCatalog200JSONResponse
- type DryRunCatalog400ApplicationProblemPlusJSONResponse
- type DryRunCatalog401ApplicationProblemPlusJSONResponse
- type DryRunCatalog404ApplicationProblemPlusJSONResponse
- type DryRunCatalogJSONRequestBody
- type DryRunCatalogRequestObject
- type DryRunCatalogResponseObject
- type DryRunCatalogdefaultApplicationProblemPlusJSONResponse
- type DryRunRequest
- type Duration
- type EchoRouter
- type Effect
- type EffectAction
- type EffectOp
- type EffectRequest
- type EffectResponse
- type EffectResult
- type EffectSpec
- type EffectStatus
- type EffectiveConfig
- type EffectsPolicy
- type EgressPolicy
- type Enrollment
- type EnrollmentCreated
- type EnrollmentID
- type EnrollmentList
- type EnrollmentRequest
- type Environment
- type EnvironmentLogUpload
- type Error
- type ErrorApplicationProblemPlusJSONResponse
- type Evaluation
- type EvaluationDecision
- type EvaluationRail
- type EvaluationRailVerdict
- type Event
- type EventData
- type EventID
- type EventType
- type ExprOrHarnessRequest
- type FieldError
- type Forbidden
- type ForbiddenApplicationProblemPlusJSONResponse
- type GetCatalog200JSONResponse
- type GetCatalog401ApplicationProblemPlusJSONResponse
- type GetCatalogFile200JSONResponse
- type GetCatalogFile400ApplicationProblemPlusJSONResponse
- type GetCatalogFile401ApplicationProblemPlusJSONResponse
- type GetCatalogFile404ApplicationProblemPlusJSONResponse
- type GetCatalogFileParams
- type GetCatalogFileRequestObject
- type GetCatalogFileResponseObject
- type GetCatalogFiledefaultApplicationProblemPlusJSONResponse
- type GetCatalogObject200JSONResponse
- type GetCatalogObject401ApplicationProblemPlusJSONResponse
- type GetCatalogObject404ApplicationProblemPlusJSONResponse
- type GetCatalogObjectRequestObject
- type GetCatalogObjectResponseObject
- type GetCatalogObjectdefaultApplicationProblemPlusJSONResponse
- type GetCatalogRequestObject
- type GetCatalogResponseObject
- type GetCatalogdefaultApplicationProblemPlusJSONResponse
- type GetEnvironmentLog200TextResponse
- type GetEnvironmentLog401ApplicationProblemPlusJSONResponse
- type GetEnvironmentLog404ApplicationProblemPlusJSONResponse
- type GetEnvironmentLogRequestObject
- type GetEnvironmentLogResponseObject
- type GetEnvironmentLogdefaultApplicationProblemPlusJSONResponse
- type GetMe200JSONResponse
- type GetMe401ApplicationProblemPlusJSONResponse
- type GetMeRequestObject
- type GetMeResponseObject
- type GetMedefaultApplicationProblemPlusJSONResponse
- type GetRun200JSONResponse
- type GetRun401ApplicationProblemPlusJSONResponse
- type GetRun404ApplicationProblemPlusJSONResponse
- type GetRunRequestObject
- type GetRunResponseObject
- type GetRundefaultApplicationProblemPlusJSONResponse
- type GetTask200JSONResponse
- type GetTask401ApplicationProblemPlusJSONResponse
- type GetTask403ApplicationProblemPlusJSONResponse
- type GetTask404ApplicationProblemPlusJSONResponse
- type GetTaskContext200JSONResponse
- type GetTaskContext401ApplicationProblemPlusJSONResponse
- type GetTaskContext403ApplicationProblemPlusJSONResponse
- type GetTaskContext404ApplicationProblemPlusJSONResponse
- type GetTaskContextRequestObject
- type GetTaskContextResponseObject
- type GetTaskContextdefaultApplicationProblemPlusJSONResponse
- type GetTaskOutputSchema200ApplicationSchemaPlusJSONResponse
- type GetTaskOutputSchema401ApplicationProblemPlusJSONResponse
- type GetTaskOutputSchema403ApplicationProblemPlusJSONResponse
- type GetTaskOutputSchema404ApplicationProblemPlusJSONResponse
- type GetTaskOutputSchemaRequestObject
- type GetTaskOutputSchemaResponseObject
- type GetTaskOutputSchemadefaultApplicationProblemPlusJSONResponse
- type GetTaskPrompt200ResponseHeaders
- type GetTaskPrompt200TextResponse
- type GetTaskPrompt401ApplicationProblemPlusJSONResponse
- type GetTaskPrompt403ApplicationProblemPlusJSONResponse
- type GetTaskPrompt404ApplicationProblemPlusJSONResponse
- type GetTaskPromptRequestObject
- type GetTaskPromptResponseObject
- type GetTaskPromptdefaultApplicationProblemPlusJSONResponse
- type GetTaskRequestObject
- type GetTaskResponseObject
- type GetTaskdefaultApplicationProblemPlusJSONResponse
- type GetTranscript200ApplicationgzipResponse
- type GetTranscript401ApplicationProblemPlusJSONResponse
- type GetTranscript403ApplicationProblemPlusJSONResponse
- type GetTranscript404ApplicationProblemPlusJSONResponse
- type GetTranscriptRequestObject
- type GetTranscriptResponseObject
- type GetTranscriptdefaultApplicationProblemPlusJSONResponse
- type GetWorkItem200JSONResponse
- type GetWorkItem401ApplicationProblemPlusJSONResponse
- type GetWorkItem404ApplicationProblemPlusJSONResponse
- type GetWorkItemRequestObject
- type GetWorkItemResponseObject
- type GetWorkItemdefaultApplicationProblemPlusJSONResponse
- type GitCredential
- type GitCredentialSpec
- type GitHubActionsBackend
- type GitHubProviderSpec
- type Group
- type GroupCache
- type GroupSource
- type GroupSpec
- type HarnessConfig
- type HarnessConstraint
- type HarnessOffer
- type HarnessPolicy
- type HarnessRequest
- type HarnessResolved
- type HeartbeatLease200JSONResponse
- type HeartbeatLease400ApplicationProblemPlusJSONResponse
- type HeartbeatLease401ApplicationProblemPlusJSONResponse
- type HeartbeatLease403ApplicationProblemPlusJSONResponse
- type HeartbeatLease404ApplicationProblemPlusJSONResponse
- type HeartbeatLease409ApplicationProblemPlusJSONResponse
- type HeartbeatLeaseJSONRequestBody
- type HeartbeatLeaseRequestObject
- type HeartbeatLeaseResponseObject
- type HeartbeatLeasedefaultApplicationProblemPlusJSONResponse
- type HeartbeatRequest
- type HeartbeatResponse
- type InlineRule
- type InputSpec
- type Instructions
- type JSONSchemaDocument
- type LLMAuth
- type LabelSelector
- type LabelSelectorParam
- type LabelSelectorRequirement
- type Lease
- type LeaseID
- type LeaseInfo
- type LeasePolicy
- type LeaseTask200JSONResponse
- type LeaseTask204Response
- type LeaseTask400ApplicationProblemPlusJSONResponse
- type LeaseTask401ApplicationProblemPlusJSONResponse
- type LeaseTask403ApplicationProblemPlusJSONResponse
- type LeaseTask404ApplicationProblemPlusJSONResponse
- type LeaseTaskParams
- type LeaseTaskRequestObject
- type LeaseTaskResponseObject
- type LeaseTaskdefaultApplicationProblemPlusJSONResponse
- type Lending
- type Limit
- type Limits
- type Link
- type LinkAction
- type ListAgents200JSONResponse
- type ListAgents400ApplicationProblemPlusJSONResponse
- type ListAgents401ApplicationProblemPlusJSONResponse
- type ListAgentsParams
- type ListAgentsRequestObject
- type ListAgentsResponseObject
- type ListAgentsdefaultApplicationProblemPlusJSONResponse
- type ListCatalogFiles200JSONResponse
- type ListCatalogFiles401ApplicationProblemPlusJSONResponse
- type ListCatalogFilesRequestObject
- type ListCatalogFilesResponseObject
- type ListCatalogFilesdefaultApplicationProblemPlusJSONResponse
- type ListEnrollments200JSONResponse
- type ListEnrollments400ApplicationProblemPlusJSONResponse
- type ListEnrollments401ApplicationProblemPlusJSONResponse
- type ListEnrollments403ApplicationProblemPlusJSONResponse
- type ListEnrollmentsParams
- type ListEnrollmentsRequestObject
- type ListEnrollmentsResponseObject
- type ListEnrollmentsdefaultApplicationProblemPlusJSONResponse
- type ListPools200JSONResponse
- type ListPools400ApplicationProblemPlusJSONResponse
- type ListPools401ApplicationProblemPlusJSONResponse
- type ListPoolsParams
- type ListPoolsRequestObject
- type ListPoolsResponseObject
- type ListPoolsdefaultApplicationProblemPlusJSONResponse
- type ListProviders200JSONResponse
- type ListProviders400ApplicationProblemPlusJSONResponse
- type ListProviders401ApplicationProblemPlusJSONResponse
- type ListProvidersParams
- type ListProvidersRequestObject
- type ListProvidersResponseObject
- type ListProvidersdefaultApplicationProblemPlusJSONResponse
- type ListQueues200JSONResponse
- type ListQueues400ApplicationProblemPlusJSONResponse
- type ListQueues401ApplicationProblemPlusJSONResponse
- type ListQueuesParams
- type ListQueuesRequestObject
- type ListQueuesResponseObject
- type ListQueuesdefaultApplicationProblemPlusJSONResponse
- type ListTasks200JSONResponse
- type ListTasks400ApplicationProblemPlusJSONResponse
- type ListTasks401ApplicationProblemPlusJSONResponse
- type ListTasksParams
- type ListTasksRequestObject
- type ListTasksResponseObject
- type ListTasksdefaultApplicationProblemPlusJSONResponse
- type ListWorkItems200JSONResponse
- type ListWorkItems400ApplicationProblemPlusJSONResponse
- type ListWorkItems401ApplicationProblemPlusJSONResponse
- type ListWorkItemsParams
- type ListWorkItemsRequestObject
- type ListWorkItemsResponseObject
- type ListWorkItemsdefaultApplicationProblemPlusJSONResponse
- type Login302Response
- type Login302ResponseHeaders
- type LoginParams
- type LoginRequestObject
- type LoginResponseObject
- type LogindefaultApplicationProblemPlusJSONResponse
- type Logout204Response
- type Logout204ResponseHeaders
- type LogoutRequestObject
- type LogoutResponseObject
- type LogoutdefaultApplicationProblemPlusJSONResponse
- type Me
- type NotFound
- type NotFoundApplicationProblemPlusJSONResponse
- type NotifyAction
- type ObjectMeta
- type ObjectRef
- type OrgRole
- type OutputSpec
- type PayloadTooLarge
- type PayloadTooLargeApplicationProblemPlusJSONResponse
- type PendingTask
- type Pool
- type PoolBackend
- type PoolList
- type PoolRequirements
- type PoolSpec
- type PoolView
- type PostCommand202JSONResponse
- type PostCommand400ApplicationProblemPlusJSONResponse
- type PostCommand401ApplicationProblemPlusJSONResponse
- type PostCommand403ApplicationProblemPlusJSONResponse
- type PostCommand404ApplicationProblemPlusJSONResponse
- type PostCommandJSONRequestBody
- type PostCommandRequestObject
- type PostCommandResponseObject
- type PostCommanddefaultApplicationProblemPlusJSONResponse
- type Problem
- type ProgressEvent
- type PromptRef
- type Provenance
- type Provider
- type ProviderHealth
- type ProviderHealthStatus
- type ProviderList
- type ProviderScope
- type ProviderSpec
- type ProviderView
- type Queue
- type QueueList
- type QueueSpec
- type QueueView
- type RailVerdict
- type ReadyCheck
- type RegisterAgent201JSONResponse
- type RegisterAgent400ApplicationProblemPlusJSONResponse
- type RegisterAgent401ApplicationProblemPlusJSONResponse
- type RegisterAgent403ApplicationProblemPlusJSONResponse
- type RegisterAgentJSONRequestBody
- type RegisterAgentRequest
- type RegisterAgentRequestObject
- type RegisterAgentResponseObject
- type RegisterAgentdefaultApplicationProblemPlusJSONResponse
- type RegisterHandlersOptions
- type ReplayEvent200JSONResponse
- type ReplayEvent401ApplicationProblemPlusJSONResponse
- type ReplayEvent403ApplicationProblemPlusJSONResponse
- type ReplayEvent404ApplicationProblemPlusJSONResponse
- type ReplayEvent409ApplicationProblemPlusJSONResponse
- type ReplayEvent503ApplicationProblemPlusJSONResponse
- type ReplayEventRequestObject
- type ReplayEventResponseObject
- type ReplayEventdefaultApplicationProblemPlusJSONResponse
- type ReplayResult
- type RepoMount
- type Requires
- type Result
- type ResultHarness
- type ResyncPolicy
- type RetryPolicy
- type Rule
- type RuleMatch
- type RuleMatchResult
- type RuleSelection
- type RuleSet
- type RuleSetSpec
- type RuleSpec
- type Run
- type RunDetail
- type RunID
- type RunSpec
- type RunStatus
- type Scaling
- type Scope
- type SecretRef
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) AbandonLease(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) AuthCallback(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CloseWorkItem(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CompleteLease(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateEffect(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateEnrollment(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteEnrollment(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteWorkItem(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeregisterAgent(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DryRunCatalog(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetCatalog(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetCatalogFile(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetCatalogObject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetEnvironmentLog(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetMe(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetRun(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetTask(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetTaskContext(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetTaskOutputSchema(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetTaskPrompt(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetTranscript(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetWorkItem(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) HeartbeatLease(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) LeaseTask(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListAgents(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListCatalogFiles(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListEnrollments(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListPools(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListProviders(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListQueues(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListTasks(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListWorkItems(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) Login(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) Logout(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostCommand(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) RegisterAgent(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ReplayEvent(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) StreamEvents(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateAgent(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UploadEnvironmentLog(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UploadTranscript(ctx echo.Context) error
- type ServiceUnavailable
- type ServiceUnavailableApplicationProblemPlusJSONResponse
- type SkillRef
- type SlackProviderSpec
- type StreamEvents200TexteventStreamResponse
- type StreamEvents400ApplicationProblemPlusJSONResponse
- type StreamEvents401ApplicationProblemPlusJSONResponse
- type StreamEvents503ApplicationProblemPlusJSONResponse
- type StreamEventsParams
- type StreamEventsRequestObject
- type StreamEventsResponseObject
- type StreamEventsdefaultApplicationProblemPlusJSONResponse
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type StringOrList
- type Suggestion
- type Target
- type Task
- type TaskContext
- type TaskCredentials
- type TaskHarness
- type TaskID
- type TaskList
- type TaskMeta
- type TaskPhase
- type TaskRunSpec
- type TaskSpec
- type TaskSpecRef
- type TaskSpecSpec
- type TaskStatus
- type Template
- type TemplateBody
- type TemplateSpec
- type TooManyRequests
- type TooManyRequestsApplicationProblemPlusJSONResponse
- type TooManyRequestsResponseHeaders
- type TranscriptUpload
- type TrustRule
- type Unauthorized
- type UnauthorizedApplicationProblemPlusJSONResponse
- type UpdateAgent200JSONResponse
- type UpdateAgent400ApplicationProblemPlusJSONResponse
- type UpdateAgent401ApplicationProblemPlusJSONResponse
- type UpdateAgent403ApplicationProblemPlusJSONResponse
- type UpdateAgent404ApplicationProblemPlusJSONResponse
- type UpdateAgentJSONRequestBody
- type UpdateAgentRequestObject
- type UpdateAgentResponseObject
- type UpdateAgentdefaultApplicationProblemPlusJSONResponse
- type UploadEnvironmentLog200JSONResponse
- type UploadEnvironmentLog400ApplicationProblemPlusJSONResponse
- type UploadEnvironmentLog401ApplicationProblemPlusJSONResponse
- type UploadEnvironmentLog403ApplicationProblemPlusJSONResponse
- type UploadEnvironmentLog404ApplicationProblemPlusJSONResponse
- type UploadEnvironmentLog413ApplicationProblemPlusJSONResponse
- type UploadEnvironmentLogRequestObject
- type UploadEnvironmentLogResponseObject
- type UploadEnvironmentLogTextBody
- type UploadEnvironmentLogTextRequestBody
- type UploadEnvironmentLogdefaultApplicationProblemPlusJSONResponse
- type UploadTranscript200JSONResponse
- type UploadTranscript400ApplicationProblemPlusJSONResponse
- type UploadTranscript401ApplicationProblemPlusJSONResponse
- type UploadTranscript403ApplicationProblemPlusJSONResponse
- type UploadTranscript404ApplicationProblemPlusJSONResponse
- type UploadTranscript413ApplicationProblemPlusJSONResponse
- type UploadTranscriptRequestObject
- type UploadTranscriptResponseObject
- type UploadTranscriptdefaultApplicationProblemPlusJSONResponse
- type Usage
- type UsageDelta
- type VersionSource
- type Webhook
- type WorkItem
- type WorkItemClosed
- type WorkItemDeleted
- type WorkItemDetail
- type WorkItemID
- type WorkItemList
- type WorkItemSpec
- type WorkItemStatus
- type Workspace
Constants ¶
const ( AgentRefreshTokenScopes agentRefreshTokenContextKey = "agentRefreshToken.Scopes" AgentTokenScopes agentTokenContextKey = "agentToken.Scopes" CliTokenScopes cliTokenContextKey = "cliToken.Scopes" EnrollmentTokenScopes enrollmentTokenContextKey = "enrollmentToken.Scopes" RunTokenScopes runTokenContextKey = "runToken.Scopes" UiSessionScopes uiSessionContextKey = "uiSession.Scopes" )
Variables ¶
This section is empty.
Functions ¶
func RegisterHandlers ¶
func RegisterHandlers(router EchoRouter, si ServerInterface)
RegisterHandlers adds each server route to the EchoRouter.
func RegisterHandlersWithBaseURL ¶
func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
RegisterHandlersWithBaseURL registers handlers and prepends BaseURL to the paths so the API can be served under a prefix.
func RegisterHandlersWithOptions ¶
func RegisterHandlersWithOptions(router EchoRouter, si ServerInterface, options RegisterHandlersOptions)
RegisterHandlersWithOptions registers handlers using the supplied options, including any per-operation middleware.
Types ¶
type AbandonLease204Response ¶
type AbandonLease204Response struct {
}
func (AbandonLease204Response) VisitAbandonLeaseResponse ¶
func (response AbandonLease204Response) VisitAbandonLeaseResponse(w http.ResponseWriter) error
type AbandonLease400ApplicationProblemPlusJSONResponse ¶
type AbandonLease400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (AbandonLease400ApplicationProblemPlusJSONResponse) VisitAbandonLeaseResponse ¶
func (response AbandonLease400ApplicationProblemPlusJSONResponse) VisitAbandonLeaseResponse(w http.ResponseWriter) error
type AbandonLease401ApplicationProblemPlusJSONResponse ¶
type AbandonLease401ApplicationProblemPlusJSONResponse struct {
}
func (AbandonLease401ApplicationProblemPlusJSONResponse) VisitAbandonLeaseResponse ¶
func (response AbandonLease401ApplicationProblemPlusJSONResponse) VisitAbandonLeaseResponse(w http.ResponseWriter) error
type AbandonLease403ApplicationProblemPlusJSONResponse ¶
type AbandonLease403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AbandonLease403ApplicationProblemPlusJSONResponse) VisitAbandonLeaseResponse ¶
func (response AbandonLease403ApplicationProblemPlusJSONResponse) VisitAbandonLeaseResponse(w http.ResponseWriter) error
type AbandonLease404ApplicationProblemPlusJSONResponse ¶
type AbandonLease404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (AbandonLease404ApplicationProblemPlusJSONResponse) VisitAbandonLeaseResponse ¶
func (response AbandonLease404ApplicationProblemPlusJSONResponse) VisitAbandonLeaseResponse(w http.ResponseWriter) error
type AbandonLease409ApplicationProblemPlusJSONResponse ¶
type AbandonLease409ApplicationProblemPlusJSONResponse struct {
ConflictApplicationProblemPlusJSONResponse
}
func (AbandonLease409ApplicationProblemPlusJSONResponse) VisitAbandonLeaseResponse ¶
func (response AbandonLease409ApplicationProblemPlusJSONResponse) VisitAbandonLeaseResponse(w http.ResponseWriter) error
type AbandonLeaseJSONRequestBody ¶
type AbandonLeaseJSONRequestBody = AbandonRequest
AbandonLeaseJSONRequestBody defines body for AbandonLease for application/json ContentType.
type AbandonLeaseRequestObject ¶
type AbandonLeaseRequestObject struct {
Id LeaseID `json:"id"`
Body *AbandonLeaseJSONRequestBody
}
type AbandonLeaseResponseObject ¶
type AbandonLeaseResponseObject interface {
VisitAbandonLeaseResponse(w http.ResponseWriter) error
}
type AbandonLeasedefaultApplicationProblemPlusJSONResponse ¶
func (AbandonLeasedefaultApplicationProblemPlusJSONResponse) VisitAbandonLeaseResponse ¶
func (response AbandonLeasedefaultApplicationProblemPlusJSONResponse) VisitAbandonLeaseResponse(w http.ResponseWriter) error
type AbandonRequest ¶
type AbandonRequest struct {
Message *string `json:"message,omitempty"`
Reason AbandonRequestReason `json:"reason"`
// Until With `throttled`, when the harness's limit resets.
Until *time.Time `json:"until,omitempty"`
}
AbandonRequest Why the task is handed back.
type AbandonRequestReason ¶
type AbandonRequestReason string
AbandonRequestReason defines model for AbandonRequest.Reason.
const ( AbandonRequestReasonAgentError AbandonRequestReason = "agent-error" AbandonRequestReasonShutdown AbandonRequestReason = "shutdown" AbandonRequestReasonThrottled AbandonRequestReason = "throttled" )
Defines values for AbandonRequestReason.
func (AbandonRequestReason) Valid ¶
func (e AbandonRequestReason) Valid() bool
Valid indicates whether the value is a known member of the AbandonRequestReason enum.
type ActionIntent ¶
type ActionIntent struct {
Type ActionIntentType `json:"type"`
AdditionalProperties map[string]interface{} `json:"-"`
}
ActionIntent A materialised action; the fields besides `type` depend on it.
func (ActionIntent) Get ¶
func (a ActionIntent) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for ActionIntent. Returns the specified element and whether it was found
func (ActionIntent) MarshalJSON ¶
func (a ActionIntent) MarshalJSON() ([]byte, error)
Override default JSON handling for ActionIntent to handle AdditionalProperties
func (*ActionIntent) Set ¶
func (a *ActionIntent) Set(fieldName string, value interface{})
Setter for additional properties for ActionIntent
func (*ActionIntent) UnmarshalJSON ¶
func (a *ActionIntent) UnmarshalJSON(b []byte) error
Override default JSON handling for ActionIntent to handle AdditionalProperties
type ActionIntentType ¶
type ActionIntentType string
ActionIntentType defines model for ActionIntent.Type.
const ( ActionIntentTypeCancel ActionIntentType = "cancel" ActionIntentTypeDebounce ActionIntentType = "debounce" ActionIntentTypeDispatch ActionIntentType = "dispatch" ActionIntentTypeEffect ActionIntentType = "effect" ActionIntentTypeLink ActionIntentType = "link" ActionIntentTypeNotify ActionIntentType = "notify" ActionIntentTypeSet ActionIntentType = "set" ActionIntentTypeUnsupported ActionIntentType = "unsupported" )
Defines values for ActionIntentType.
func (ActionIntentType) Valid ¶
func (e ActionIntentType) Valid() bool
Valid indicates whether the value is a known member of the ActionIntentType enum.
type Admission ¶
Admission Admission marks a registered pool that takes enrollments (P1 §6): an admin mints them with createEnrollment, naming each agent's owner.
type AgentCapabilities ¶
type AgentCapabilities = v1alpha1.AgentCapabilities
AgentCapabilities AgentCapabilities are the agent's harness offers and labels.
type AgentList ¶
type AgentList struct {
Items []Agent `json:"items"`
// NextCursor Absent on the last page.
NextCursor *string `json:"nextCursor,omitempty"`
}
AgentList A page of agents.
type AgentPhase ¶
type AgentPhase = v1alpha1.AgentPhase
AgentPhase AgentPhase is a registered agent's state.
type AgentRegistration ¶
type AgentRegistration struct {
AgentId string `json:"agentId"`
// AgentToken Keep in memory only; re-register on restart.
AgentToken string `json:"agentToken"`
ExpiresAt time.Time `json:"expiresAt"`
// RefreshToken The agent's new refresh token (the `agentRefreshToken` scheme). Present only when
// registering with an enrollment token or a refresh token. Keep it 0600 on the agent
// host; it replaces the previous one, which is now spent.
RefreshToken *string `json:"refreshToken,omitempty"`
}
AgentRegistration The agent's id and its bearer token.
type AgentStatus ¶
type AgentStatus = v1alpha1.AgentStatus
AgentStatus AgentStatus is the agent's state.
type AgentUpdate ¶
type AgentUpdate struct {
// Lending Lending is the owner's consent: what the agent may take.
Lending *Lending `json:"lending,omitempty"`
Phase *v1alpha1.AgentPhase `json:"phase,omitempty"`
// Until Required with `Throttled`.
Until *time.Time `json:"until,omitempty"`
}
AgentUpdate A status report and/or a lending update. At least one field.
type AgentUsage ¶
type AgentUsage = v1alpha1.AgentUsage
AgentUsage AgentUsage is the agent's usage today, checked against its lending.
type ApprovalPhase ¶
type ApprovalPhase = v1alpha1.ApprovalPhase
ApprovalPhase ApprovalPhase is an Approval's state: Pending → Granted | Denied | Expired.
type ApprovalRef ¶
type ApprovalRef = v1alpha1.ApprovalRef
ApprovalRef ApprovalRef is an approval's name and phase, as shown on the work item.
type ApprovalSpec ¶
type ApprovalSpec = v1alpha1.ApprovalSpec
ApprovalSpec ApprovalSpec is what is asked, of whom.
type AuthCallback302Response ¶
type AuthCallback302Response struct {
Headers AuthCallback302ResponseHeaders
}
func (AuthCallback302Response) VisitAuthCallbackResponse ¶
func (response AuthCallback302Response) VisitAuthCallbackResponse(w http.ResponseWriter) error
type AuthCallback400ApplicationProblemPlusJSONResponse ¶
type AuthCallback400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (AuthCallback400ApplicationProblemPlusJSONResponse) VisitAuthCallbackResponse ¶
func (response AuthCallback400ApplicationProblemPlusJSONResponse) VisitAuthCallbackResponse(w http.ResponseWriter) error
type AuthCallback403ApplicationProblemPlusJSONResponse ¶
type AuthCallback403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (AuthCallback403ApplicationProblemPlusJSONResponse) VisitAuthCallbackResponse ¶
func (response AuthCallback403ApplicationProblemPlusJSONResponse) VisitAuthCallbackResponse(w http.ResponseWriter) error
type AuthCallbackParams ¶
type AuthCallbackParams struct {
// Code The authorization code from GitHub.
Code string `form:"code" json:"code"`
// State The state given at login.
State string `form:"state" json:"state"`
}
AuthCallbackParams defines parameters for AuthCallback.
type AuthCallbackRequestObject ¶
type AuthCallbackRequestObject struct {
Params AuthCallbackParams
}
type AuthCallbackResponseObject ¶
type AuthCallbackResponseObject interface {
VisitAuthCallbackResponse(w http.ResponseWriter) error
}
type AuthCallbackdefaultApplicationProblemPlusJSONResponse ¶
func (AuthCallbackdefaultApplicationProblemPlusJSONResponse) VisitAuthCallbackResponse ¶
func (response AuthCallbackdefaultApplicationProblemPlusJSONResponse) VisitAuthCallbackResponse(w http.ResponseWriter) error
type BadRequestApplicationProblemPlusJSONResponse ¶
type BadRequestApplicationProblemPlusJSONResponse Problem
type BudgetLimit ¶
type BudgetLimit = v1alpha1.BudgetLimit
BudgetLimit BudgetLimit is one budget window's limits; an unset limit is unlimited.
type CancelAction ¶
type CancelAction = v1alpha1.CancelAction
CancelAction CancelAction cancels the active tasks of a task spec for the work item.
type CatalogError ¶
type CatalogError struct {
Code *string `json:"code,omitempty"`
File *string `json:"file,omitempty"`
Line *int `json:"line,omitempty"`
Message string `json:"message"`
}
CatalogError One catalog load error.
type CatalogFile ¶
type CatalogFile struct {
// Content The file's text, unrendered.
Content string `json:"content"`
// Digest `sha256:<hex>` of the content (a prompt's is its `spec.prompt.digest`).
Digest string `json:"digest"`
// Kind `prompt` is a template under `prompts/`; `schema` a JSON Schema under `schemas/`.
Kind CatalogFileKind `json:"kind"`
Path string `json:"path"`
}
CatalogFile One prompt or schema file, as the catalog holds it.
type CatalogFileKind ¶
type CatalogFileKind string
CatalogFileKind `prompt` is a template under `prompts/`; `schema` a JSON Schema under `schemas/`.
const ( CatalogFileKindPrompt CatalogFileKind = "prompt" CatalogFileKindSchema CatalogFileKind = "schema" )
Defines values for CatalogFileKind.
func (CatalogFileKind) Valid ¶
func (e CatalogFileKind) Valid() bool
Valid indicates whether the value is a known member of the CatalogFileKind enum.
type CatalogFileList ¶
type CatalogFileList struct {
Items []CatalogFileRef `json:"items"`
}
CatalogFileList The catalog's prompt and schema files.
type CatalogFileRef ¶
type CatalogFileRef struct {
// Kind `prompt` is a template under `prompts/`; `schema` a JSON Schema under `schemas/`.
Kind CatalogFileKind `json:"kind"`
// Path The catalog-relative path, as TaskSpecs reference it.
Path string `json:"path"`
}
CatalogFileRef One prompt or schema file of the catalog.
type CatalogKind ¶
type CatalogKind string
CatalogKind A config kind.
const ( CatalogKindGroup CatalogKind = "Group" CatalogKindPool CatalogKind = "Pool" CatalogKindProvider CatalogKind = "Provider" CatalogKindQueue CatalogKind = "Queue" CatalogKindRule CatalogKind = "Rule" CatalogKindRuleSet CatalogKind = "RuleSet" CatalogKindTaskSpec CatalogKind = "TaskSpec" CatalogKindTemplate CatalogKind = "Template" )
Defines values for CatalogKind.
func (CatalogKind) Valid ¶
func (e CatalogKind) Valid() bool
Valid indicates whether the value is a known member of the CatalogKind enum.
type CatalogObject ¶
type CatalogObject struct {
// contains filtered or unexported fields
}
CatalogObject One config object, by kind.
func (CatalogObject) AsGroup ¶
func (t CatalogObject) AsGroup() (Group, error)
AsGroup returns the union data inside the CatalogObject as a Group
func (CatalogObject) AsPool ¶
func (t CatalogObject) AsPool() (Pool, error)
AsPool returns the union data inside the CatalogObject as a Pool
func (CatalogObject) AsProvider ¶
func (t CatalogObject) AsProvider() (Provider, error)
AsProvider returns the union data inside the CatalogObject as a Provider
func (CatalogObject) AsQueue ¶
func (t CatalogObject) AsQueue() (Queue, error)
AsQueue returns the union data inside the CatalogObject as a Queue
func (CatalogObject) AsRule ¶
func (t CatalogObject) AsRule() (Rule, error)
AsRule returns the union data inside the CatalogObject as a Rule
func (CatalogObject) AsRuleSet ¶
func (t CatalogObject) AsRuleSet() (RuleSet, error)
AsRuleSet returns the union data inside the CatalogObject as a RuleSet
func (CatalogObject) AsTaskSpec ¶
func (t CatalogObject) AsTaskSpec() (TaskSpec, error)
AsTaskSpec returns the union data inside the CatalogObject as a TaskSpec
func (CatalogObject) AsTemplate ¶
func (t CatalogObject) AsTemplate() (Template, error)
AsTemplate returns the union data inside the CatalogObject as a Template
func (CatalogObject) Discriminator ¶
func (t CatalogObject) Discriminator() (string, error)
func (*CatalogObject) FromGroup ¶
func (t *CatalogObject) FromGroup(v Group) error
FromGroup overwrites any union data inside the CatalogObject as the provided Group
func (*CatalogObject) FromPool ¶
func (t *CatalogObject) FromPool(v Pool) error
FromPool overwrites any union data inside the CatalogObject as the provided Pool
func (*CatalogObject) FromProvider ¶
func (t *CatalogObject) FromProvider(v Provider) error
FromProvider overwrites any union data inside the CatalogObject as the provided Provider
func (*CatalogObject) FromQueue ¶
func (t *CatalogObject) FromQueue(v Queue) error
FromQueue overwrites any union data inside the CatalogObject as the provided Queue
func (*CatalogObject) FromRule ¶
func (t *CatalogObject) FromRule(v Rule) error
FromRule overwrites any union data inside the CatalogObject as the provided Rule
func (*CatalogObject) FromRuleSet ¶
func (t *CatalogObject) FromRuleSet(v RuleSet) error
FromRuleSet overwrites any union data inside the CatalogObject as the provided RuleSet
func (*CatalogObject) FromTaskSpec ¶
func (t *CatalogObject) FromTaskSpec(v TaskSpec) error
FromTaskSpec overwrites any union data inside the CatalogObject as the provided TaskSpec
func (*CatalogObject) FromTemplate ¶
func (t *CatalogObject) FromTemplate(v Template) error
FromTemplate overwrites any union data inside the CatalogObject as the provided Template
func (CatalogObject) MarshalJSON ¶
func (t CatalogObject) MarshalJSON() ([]byte, error)
func (*CatalogObject) MergeGroup ¶
func (t *CatalogObject) MergeGroup(v Group) error
MergeGroup performs a merge with any union data inside the CatalogObject, using the provided Group
func (*CatalogObject) MergePool ¶
func (t *CatalogObject) MergePool(v Pool) error
MergePool performs a merge with any union data inside the CatalogObject, using the provided Pool
func (*CatalogObject) MergeProvider ¶
func (t *CatalogObject) MergeProvider(v Provider) error
MergeProvider performs a merge with any union data inside the CatalogObject, using the provided Provider
func (*CatalogObject) MergeQueue ¶
func (t *CatalogObject) MergeQueue(v Queue) error
MergeQueue performs a merge with any union data inside the CatalogObject, using the provided Queue
func (*CatalogObject) MergeRule ¶
func (t *CatalogObject) MergeRule(v Rule) error
MergeRule performs a merge with any union data inside the CatalogObject, using the provided Rule
func (*CatalogObject) MergeRuleSet ¶
func (t *CatalogObject) MergeRuleSet(v RuleSet) error
MergeRuleSet performs a merge with any union data inside the CatalogObject, using the provided RuleSet
func (*CatalogObject) MergeTaskSpec ¶
func (t *CatalogObject) MergeTaskSpec(v TaskSpec) error
MergeTaskSpec performs a merge with any union data inside the CatalogObject, using the provided TaskSpec
func (*CatalogObject) MergeTemplate ¶
func (t *CatalogObject) MergeTemplate(v Template) error
MergeTemplate performs a merge with any union data inside the CatalogObject, using the provided Template
func (*CatalogObject) UnmarshalJSON ¶
func (t *CatalogObject) UnmarshalJSON(b []byte) error
func (CatalogObject) ValueByDiscriminator ¶
func (t CatalogObject) ValueByDiscriminator() (interface{}, error)
type CatalogObjectRef ¶
type CatalogObjectRef struct {
// Kind A config kind.
Kind CatalogKind `json:"kind"`
Labels map[string]string `json:"labels,omitempty"`
Name string `json:"name"`
}
CatalogObjectRef One object in the catalog.
type CatalogSummary ¶
type CatalogSummary struct {
Errors []CatalogError `json:"errors,omitempty"`
LoadedAt *time.Time `json:"loadedAt,omitempty"`
Objects []CatalogObjectRef `json:"objects"`
Ref string `json:"ref"`
// Repo The catalog repo URL, or empty for `--catalog-dir`.
Repo *string `json:"repo,omitempty"`
Sha string `json:"sha"`
// Status `error` keeps serving the last good catalog.
Status CatalogSummaryStatus `json:"status"`
// Warnings The live catalog's warnings, and the missing App installations (code
// `app-not-installed`): an identity's App that isn't installed on a repo a TaskSpec or
// RuleSet can touch.
Warnings []CatalogError `json:"warnings,omitempty"`
}
CatalogSummary The loaded catalog.
type CatalogSummaryStatus ¶
type CatalogSummaryStatus string
CatalogSummaryStatus `error` keeps serving the last good catalog.
const ( CatalogSummaryStatusError CatalogSummaryStatus = "error" CatalogSummaryStatusLoaded CatalogSummaryStatus = "loaded" CatalogSummaryStatusLoading CatalogSummaryStatus = "loading" )
Defines values for CatalogSummaryStatus.
func (CatalogSummaryStatus) Valid ¶
func (e CatalogSummaryStatus) Valid() bool
Valid indicates whether the value is a known member of the CatalogSummaryStatus enum.
type ChannelRef ¶
type ChannelRef = v1alpha1.ChannelRef
ChannelRef ChannelRef is a channel on a provider.
type CloseWorkItem200JSONResponse ¶
type CloseWorkItem200JSONResponse WorkItem
func (CloseWorkItem200JSONResponse) VisitCloseWorkItemResponse ¶
func (response CloseWorkItem200JSONResponse) VisitCloseWorkItemResponse(w http.ResponseWriter) error
type CloseWorkItem400ApplicationProblemPlusJSONResponse ¶
type CloseWorkItem400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (CloseWorkItem400ApplicationProblemPlusJSONResponse) VisitCloseWorkItemResponse ¶
func (response CloseWorkItem400ApplicationProblemPlusJSONResponse) VisitCloseWorkItemResponse(w http.ResponseWriter) error
type CloseWorkItem401ApplicationProblemPlusJSONResponse ¶
type CloseWorkItem401ApplicationProblemPlusJSONResponse struct {
}
func (CloseWorkItem401ApplicationProblemPlusJSONResponse) VisitCloseWorkItemResponse ¶
func (response CloseWorkItem401ApplicationProblemPlusJSONResponse) VisitCloseWorkItemResponse(w http.ResponseWriter) error
type CloseWorkItem403ApplicationProblemPlusJSONResponse ¶
type CloseWorkItem403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (CloseWorkItem403ApplicationProblemPlusJSONResponse) VisitCloseWorkItemResponse ¶
func (response CloseWorkItem403ApplicationProblemPlusJSONResponse) VisitCloseWorkItemResponse(w http.ResponseWriter) error
type CloseWorkItem404ApplicationProblemPlusJSONResponse ¶
type CloseWorkItem404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (CloseWorkItem404ApplicationProblemPlusJSONResponse) VisitCloseWorkItemResponse ¶
func (response CloseWorkItem404ApplicationProblemPlusJSONResponse) VisitCloseWorkItemResponse(w http.ResponseWriter) error
type CloseWorkItemJSONRequestBody ¶
type CloseWorkItemJSONRequestBody = CloseWorkItemRequest
CloseWorkItemJSONRequestBody defines body for CloseWorkItem for application/json ContentType.
type CloseWorkItemRequest ¶
type CloseWorkItemRequest struct {
Note *string `json:"note,omitempty"`
Reason CloseWorkItemRequestReason `json:"reason"`
}
CloseWorkItemRequest Why a work item is closed.
type CloseWorkItemRequestObject ¶
type CloseWorkItemRequestObject struct {
Id WorkItemID `json:"id"`
Body *CloseWorkItemJSONRequestBody
}
type CloseWorkItemRequestReason ¶
type CloseWorkItemRequestReason string
CloseWorkItemRequestReason defines model for CloseWorkItemRequest.Reason.
const ( CloseWorkItemRequestReasonDone CloseWorkItemRequestReason = "done" CloseWorkItemRequestReasonDuplicate CloseWorkItemRequestReason = "duplicate" CloseWorkItemRequestReasonWontDo CloseWorkItemRequestReason = "wont-do" )
Defines values for CloseWorkItemRequestReason.
func (CloseWorkItemRequestReason) Valid ¶
func (e CloseWorkItemRequestReason) Valid() bool
Valid indicates whether the value is a known member of the CloseWorkItemRequestReason enum.
type CloseWorkItemResponseObject ¶
type CloseWorkItemResponseObject interface {
VisitCloseWorkItemResponse(w http.ResponseWriter) error
}
type CloseWorkItemdefaultApplicationProblemPlusJSONResponse ¶
func (CloseWorkItemdefaultApplicationProblemPlusJSONResponse) VisitCloseWorkItemResponse ¶
func (response CloseWorkItemdefaultApplicationProblemPlusJSONResponse) VisitCloseWorkItemResponse(w http.ResponseWriter) error
type Command ¶
type Command struct {
// Args `{harness}` for redispatch; `{event}` for dispatch.
Args *CommandArgs `json:"args,omitempty"`
// Target `{scope, name}` for pause/resume; `{task}` for cancel/redispatch.
Target *CommandTarget `json:"target,omitempty"`
Type CommandType `json:"type"`
}
Command An operator command (api-server.md §Commands).
type CommandAccepted ¶
type CommandAccepted struct {
// Event The id of the `factory.command.*` or injected event.
Event *string `json:"event,omitempty"`
Type string `json:"type"`
}
CommandAccepted The accepted command and the event it became, if any.
type CommandArgs ¶
type CommandArgs struct {
// Event Event is a normalised provider event, shaped as a CloudEvent: its identity is (Source = provider instance or "factory", Type).
Event *Event `json:"event,omitempty"`
// Harness HarnessRequest asks for a harness and config.
Harness *HarnessRequest `json:"harness,omitempty"`
}
CommandArgs `{harness}` for redispatch; `{event}` for dispatch.
type CommandTarget ¶
type CommandTarget struct {
Name *string `json:"name,omitempty"`
Scope *CommandTargetScope `json:"scope,omitempty"`
Task *string `json:"task,omitempty"`
}
CommandTarget `{scope, name}` for pause/resume; `{task}` for cancel/redispatch.
type CommandTargetScope ¶
type CommandTargetScope string
CommandTargetScope defines model for CommandTarget.Scope.
const ( CommandTargetScopeGlobal CommandTargetScope = "global" CommandTargetScopeProvider CommandTargetScope = "provider" CommandTargetScopeQueue CommandTargetScope = "queue" CommandTargetScopeWorkitem CommandTargetScope = "workitem" )
Defines values for CommandTargetScope.
func (CommandTargetScope) Valid ¶
func (e CommandTargetScope) Valid() bool
Valid indicates whether the value is a known member of the CommandTargetScope enum.
type CommandType ¶
type CommandType string
CommandType defines model for Command.Type.
const ( CommandTypeCancel CommandType = "cancel" CommandTypeDispatch CommandType = "dispatch" CommandTypePause CommandType = "pause" CommandTypeRedispatch CommandType = "redispatch" CommandTypeResume CommandType = "resume" CommandTypeResyncCatalog CommandType = "resync-catalog" )
Defines values for CommandType.
func (CommandType) Valid ¶
func (e CommandType) Valid() bool
Valid indicates whether the value is a known member of the CommandType enum.
type CompleteLease204Response ¶
type CompleteLease204Response struct {
}
func (CompleteLease204Response) VisitCompleteLeaseResponse ¶
func (response CompleteLease204Response) VisitCompleteLeaseResponse(w http.ResponseWriter) error
type CompleteLease400ApplicationProblemPlusJSONResponse ¶
type CompleteLease400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (CompleteLease400ApplicationProblemPlusJSONResponse) VisitCompleteLeaseResponse ¶
func (response CompleteLease400ApplicationProblemPlusJSONResponse) VisitCompleteLeaseResponse(w http.ResponseWriter) error
type CompleteLease401ApplicationProblemPlusJSONResponse ¶
type CompleteLease401ApplicationProblemPlusJSONResponse struct {
}
func (CompleteLease401ApplicationProblemPlusJSONResponse) VisitCompleteLeaseResponse ¶
func (response CompleteLease401ApplicationProblemPlusJSONResponse) VisitCompleteLeaseResponse(w http.ResponseWriter) error
type CompleteLease403ApplicationProblemPlusJSONResponse ¶
type CompleteLease403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (CompleteLease403ApplicationProblemPlusJSONResponse) VisitCompleteLeaseResponse ¶
func (response CompleteLease403ApplicationProblemPlusJSONResponse) VisitCompleteLeaseResponse(w http.ResponseWriter) error
type CompleteLease404ApplicationProblemPlusJSONResponse ¶
type CompleteLease404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (CompleteLease404ApplicationProblemPlusJSONResponse) VisitCompleteLeaseResponse ¶
func (response CompleteLease404ApplicationProblemPlusJSONResponse) VisitCompleteLeaseResponse(w http.ResponseWriter) error
type CompleteLease409ApplicationProblemPlusJSONResponse ¶
type CompleteLease409ApplicationProblemPlusJSONResponse struct {
ConflictApplicationProblemPlusJSONResponse
}
func (CompleteLease409ApplicationProblemPlusJSONResponse) VisitCompleteLeaseResponse ¶
func (response CompleteLease409ApplicationProblemPlusJSONResponse) VisitCompleteLeaseResponse(w http.ResponseWriter) error
type CompleteLeaseJSONRequestBody ¶
type CompleteLeaseJSONRequestBody = CompleteRequest
CompleteLeaseJSONRequestBody defines body for CompleteLease for application/json ContentType.
type CompleteLeaseRequestObject ¶
type CompleteLeaseRequestObject struct {
Id LeaseID `json:"id"`
Body *CompleteLeaseJSONRequestBody
}
type CompleteLeaseResponseObject ¶
type CompleteLeaseResponseObject interface {
VisitCompleteLeaseResponse(w http.ResponseWriter) error
}
type CompleteLeasedefaultApplicationProblemPlusJSONResponse ¶
func (CompleteLeasedefaultApplicationProblemPlusJSONResponse) VisitCompleteLeaseResponse ¶
func (response CompleteLeasedefaultApplicationProblemPlusJSONResponse) VisitCompleteLeaseResponse(w http.ResponseWriter) error
type CompleteRequest ¶
type CompleteRequest struct {
// Result Result is what an agent reports when a run completes.
Result Result `json:"result"`
// TranscriptRef From `uploadTranscript`.
TranscriptRef *string `json:"transcriptRef,omitempty"`
}
CompleteRequest The run's Result and its transcript.
type ConflictApplicationProblemPlusJSONResponse ¶
type ConflictApplicationProblemPlusJSONResponse Problem
type ContextItem ¶
type ContextItem = v1alpha1.ContextItem
ContextItem ContextItem is something the agent is given, with its trust label.
type CreateEffect200JSONResponse ¶
type CreateEffect200JSONResponse EffectResponse
func (CreateEffect200JSONResponse) VisitCreateEffectResponse ¶
func (response CreateEffect200JSONResponse) VisitCreateEffectResponse(w http.ResponseWriter) error
type CreateEffect400ApplicationProblemPlusJSONResponse ¶
type CreateEffect400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (CreateEffect400ApplicationProblemPlusJSONResponse) VisitCreateEffectResponse ¶
func (response CreateEffect400ApplicationProblemPlusJSONResponse) VisitCreateEffectResponse(w http.ResponseWriter) error
type CreateEffect401ApplicationProblemPlusJSONResponse ¶
type CreateEffect401ApplicationProblemPlusJSONResponse struct {
}
func (CreateEffect401ApplicationProblemPlusJSONResponse) VisitCreateEffectResponse ¶
func (response CreateEffect401ApplicationProblemPlusJSONResponse) VisitCreateEffectResponse(w http.ResponseWriter) error
type CreateEffect403ApplicationProblemPlusJSONResponse ¶
type CreateEffect403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (CreateEffect403ApplicationProblemPlusJSONResponse) VisitCreateEffectResponse ¶
func (response CreateEffect403ApplicationProblemPlusJSONResponse) VisitCreateEffectResponse(w http.ResponseWriter) error
type CreateEffect404ApplicationProblemPlusJSONResponse ¶
type CreateEffect404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (CreateEffect404ApplicationProblemPlusJSONResponse) VisitCreateEffectResponse ¶
func (response CreateEffect404ApplicationProblemPlusJSONResponse) VisitCreateEffectResponse(w http.ResponseWriter) error
type CreateEffect429ApplicationProblemPlusJSONResponse ¶
type CreateEffect429ApplicationProblemPlusJSONResponse struct {
TooManyRequestsApplicationProblemPlusJSONResponse
}
func (CreateEffect429ApplicationProblemPlusJSONResponse) VisitCreateEffectResponse ¶
func (response CreateEffect429ApplicationProblemPlusJSONResponse) VisitCreateEffectResponse(w http.ResponseWriter) error
type CreateEffectJSONRequestBody ¶
type CreateEffectJSONRequestBody = EffectRequest
CreateEffectJSONRequestBody defines body for CreateEffect for application/json ContentType.
type CreateEffectRequestObject ¶
type CreateEffectRequestObject struct {
Id TaskID `json:"id"`
Body *CreateEffectJSONRequestBody
}
type CreateEffectResponseObject ¶
type CreateEffectResponseObject interface {
VisitCreateEffectResponse(w http.ResponseWriter) error
}
type CreateEffectdefaultApplicationProblemPlusJSONResponse ¶
func (CreateEffectdefaultApplicationProblemPlusJSONResponse) VisitCreateEffectResponse ¶
func (response CreateEffectdefaultApplicationProblemPlusJSONResponse) VisitCreateEffectResponse(w http.ResponseWriter) error
type CreateEnrollment201JSONResponse ¶
type CreateEnrollment201JSONResponse EnrollmentCreated
func (CreateEnrollment201JSONResponse) VisitCreateEnrollmentResponse ¶
func (response CreateEnrollment201JSONResponse) VisitCreateEnrollmentResponse(w http.ResponseWriter) error
type CreateEnrollment400ApplicationProblemPlusJSONResponse ¶
type CreateEnrollment400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (CreateEnrollment400ApplicationProblemPlusJSONResponse) VisitCreateEnrollmentResponse ¶
func (response CreateEnrollment400ApplicationProblemPlusJSONResponse) VisitCreateEnrollmentResponse(w http.ResponseWriter) error
type CreateEnrollment401ApplicationProblemPlusJSONResponse ¶
type CreateEnrollment401ApplicationProblemPlusJSONResponse struct {
}
func (CreateEnrollment401ApplicationProblemPlusJSONResponse) VisitCreateEnrollmentResponse ¶
func (response CreateEnrollment401ApplicationProblemPlusJSONResponse) VisitCreateEnrollmentResponse(w http.ResponseWriter) error
type CreateEnrollment403ApplicationProblemPlusJSONResponse ¶
type CreateEnrollment403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (CreateEnrollment403ApplicationProblemPlusJSONResponse) VisitCreateEnrollmentResponse ¶
func (response CreateEnrollment403ApplicationProblemPlusJSONResponse) VisitCreateEnrollmentResponse(w http.ResponseWriter) error
type CreateEnrollmentJSONRequestBody ¶
type CreateEnrollmentJSONRequestBody = EnrollmentRequest
CreateEnrollmentJSONRequestBody defines body for CreateEnrollment for application/json ContentType.
type CreateEnrollmentRequestObject ¶
type CreateEnrollmentRequestObject struct {
Body *CreateEnrollmentJSONRequestBody
}
type CreateEnrollmentResponseObject ¶
type CreateEnrollmentResponseObject interface {
VisitCreateEnrollmentResponse(w http.ResponseWriter) error
}
type CreateEnrollmentdefaultApplicationProblemPlusJSONResponse ¶
type CreateEnrollmentdefaultApplicationProblemPlusJSONResponse struct {
Body Problem
StatusCode int
}
func (CreateEnrollmentdefaultApplicationProblemPlusJSONResponse) VisitCreateEnrollmentResponse ¶
func (response CreateEnrollmentdefaultApplicationProblemPlusJSONResponse) VisitCreateEnrollmentResponse(w http.ResponseWriter) error
type Decision ¶
Decision Decision records why a rule did (or didn't) act: the UI's "why did this happen?".
type DeleteEnrollment204Response ¶
type DeleteEnrollment204Response struct {
}
func (DeleteEnrollment204Response) VisitDeleteEnrollmentResponse ¶
func (response DeleteEnrollment204Response) VisitDeleteEnrollmentResponse(w http.ResponseWriter) error
type DeleteEnrollment401ApplicationProblemPlusJSONResponse ¶
type DeleteEnrollment401ApplicationProblemPlusJSONResponse struct {
}
func (DeleteEnrollment401ApplicationProblemPlusJSONResponse) VisitDeleteEnrollmentResponse ¶
func (response DeleteEnrollment401ApplicationProblemPlusJSONResponse) VisitDeleteEnrollmentResponse(w http.ResponseWriter) error
type DeleteEnrollment403ApplicationProblemPlusJSONResponse ¶
type DeleteEnrollment403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (DeleteEnrollment403ApplicationProblemPlusJSONResponse) VisitDeleteEnrollmentResponse ¶
func (response DeleteEnrollment403ApplicationProblemPlusJSONResponse) VisitDeleteEnrollmentResponse(w http.ResponseWriter) error
type DeleteEnrollment404ApplicationProblemPlusJSONResponse ¶
type DeleteEnrollment404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (DeleteEnrollment404ApplicationProblemPlusJSONResponse) VisitDeleteEnrollmentResponse ¶
func (response DeleteEnrollment404ApplicationProblemPlusJSONResponse) VisitDeleteEnrollmentResponse(w http.ResponseWriter) error
type DeleteEnrollmentRequestObject ¶
type DeleteEnrollmentRequestObject struct {
Id EnrollmentID `json:"id"`
}
type DeleteEnrollmentResponseObject ¶
type DeleteEnrollmentResponseObject interface {
VisitDeleteEnrollmentResponse(w http.ResponseWriter) error
}
type DeleteEnrollmentdefaultApplicationProblemPlusJSONResponse ¶
type DeleteEnrollmentdefaultApplicationProblemPlusJSONResponse struct {
Body Problem
StatusCode int
}
func (DeleteEnrollmentdefaultApplicationProblemPlusJSONResponse) VisitDeleteEnrollmentResponse ¶
func (response DeleteEnrollmentdefaultApplicationProblemPlusJSONResponse) VisitDeleteEnrollmentResponse(w http.ResponseWriter) error
type DeleteWorkItem200JSONResponse ¶
type DeleteWorkItem200JSONResponse WorkItemDeleted
func (DeleteWorkItem200JSONResponse) VisitDeleteWorkItemResponse ¶
func (response DeleteWorkItem200JSONResponse) VisitDeleteWorkItemResponse(w http.ResponseWriter) error
type DeleteWorkItem401ApplicationProblemPlusJSONResponse ¶
type DeleteWorkItem401ApplicationProblemPlusJSONResponse struct {
}
func (DeleteWorkItem401ApplicationProblemPlusJSONResponse) VisitDeleteWorkItemResponse ¶
func (response DeleteWorkItem401ApplicationProblemPlusJSONResponse) VisitDeleteWorkItemResponse(w http.ResponseWriter) error
type DeleteWorkItem403ApplicationProblemPlusJSONResponse ¶
type DeleteWorkItem403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (DeleteWorkItem403ApplicationProblemPlusJSONResponse) VisitDeleteWorkItemResponse ¶
func (response DeleteWorkItem403ApplicationProblemPlusJSONResponse) VisitDeleteWorkItemResponse(w http.ResponseWriter) error
type DeleteWorkItem404ApplicationProblemPlusJSONResponse ¶
type DeleteWorkItem404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (DeleteWorkItem404ApplicationProblemPlusJSONResponse) VisitDeleteWorkItemResponse ¶
func (response DeleteWorkItem404ApplicationProblemPlusJSONResponse) VisitDeleteWorkItemResponse(w http.ResponseWriter) error
type DeleteWorkItem409ApplicationProblemPlusJSONResponse ¶
type DeleteWorkItem409ApplicationProblemPlusJSONResponse struct {
ConflictApplicationProblemPlusJSONResponse
}
func (DeleteWorkItem409ApplicationProblemPlusJSONResponse) VisitDeleteWorkItemResponse ¶
func (response DeleteWorkItem409ApplicationProblemPlusJSONResponse) VisitDeleteWorkItemResponse(w http.ResponseWriter) error
type DeleteWorkItemParams ¶
type DeleteWorkItemParams struct {
// Force Cancel the active tasks and delete even while one is leased.
Force *bool `form:"force,omitempty" json:"force,omitempty"`
}
DeleteWorkItemParams defines parameters for DeleteWorkItem.
type DeleteWorkItemRequestObject ¶
type DeleteWorkItemRequestObject struct {
Id WorkItemID `json:"id"`
Params DeleteWorkItemParams
}
type DeleteWorkItemResponseObject ¶
type DeleteWorkItemResponseObject interface {
VisitDeleteWorkItemResponse(w http.ResponseWriter) error
}
type DeleteWorkItemdefaultApplicationProblemPlusJSONResponse ¶
func (DeleteWorkItemdefaultApplicationProblemPlusJSONResponse) VisitDeleteWorkItemResponse ¶
func (response DeleteWorkItemdefaultApplicationProblemPlusJSONResponse) VisitDeleteWorkItemResponse(w http.ResponseWriter) error
type DeregisterAgent204Response ¶
type DeregisterAgent204Response struct {
}
func (DeregisterAgent204Response) VisitDeregisterAgentResponse ¶
func (response DeregisterAgent204Response) VisitDeregisterAgentResponse(w http.ResponseWriter) error
type DeregisterAgent401ApplicationProblemPlusJSONResponse ¶
type DeregisterAgent401ApplicationProblemPlusJSONResponse struct {
}
func (DeregisterAgent401ApplicationProblemPlusJSONResponse) VisitDeregisterAgentResponse ¶
func (response DeregisterAgent401ApplicationProblemPlusJSONResponse) VisitDeregisterAgentResponse(w http.ResponseWriter) error
type DeregisterAgent403ApplicationProblemPlusJSONResponse ¶
type DeregisterAgent403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (DeregisterAgent403ApplicationProblemPlusJSONResponse) VisitDeregisterAgentResponse ¶
func (response DeregisterAgent403ApplicationProblemPlusJSONResponse) VisitDeregisterAgentResponse(w http.ResponseWriter) error
type DeregisterAgent404ApplicationProblemPlusJSONResponse ¶
type DeregisterAgent404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (DeregisterAgent404ApplicationProblemPlusJSONResponse) VisitDeregisterAgentResponse ¶
func (response DeregisterAgent404ApplicationProblemPlusJSONResponse) VisitDeregisterAgentResponse(w http.ResponseWriter) error
type DeregisterAgentRequestObject ¶
type DeregisterAgentRequestObject struct {
Id AgentID `json:"id"`
}
type DeregisterAgentResponseObject ¶
type DeregisterAgentResponseObject interface {
VisitDeregisterAgentResponse(w http.ResponseWriter) error
}
type DeregisterAgentdefaultApplicationProblemPlusJSONResponse ¶
type DeregisterAgentdefaultApplicationProblemPlusJSONResponse struct {
Body Problem
StatusCode int
}
func (DeregisterAgentdefaultApplicationProblemPlusJSONResponse) VisitDeregisterAgentResponse ¶
func (response DeregisterAgentdefaultApplicationProblemPlusJSONResponse) VisitDeregisterAgentResponse(w http.ResponseWriter) error
type Destination ¶
type Destination = v1alpha1.Destination
Destination Destination is one recipient of a notification.
type DispatchAction ¶
type DispatchAction = v1alpha1.DispatchAction
DispatchAction DispatchAction creates a Task (Pending) in a queue.
type DryRunCatalog200JSONResponse ¶
type DryRunCatalog200JSONResponse Evaluation
func (DryRunCatalog200JSONResponse) VisitDryRunCatalogResponse ¶
func (response DryRunCatalog200JSONResponse) VisitDryRunCatalogResponse(w http.ResponseWriter) error
type DryRunCatalog400ApplicationProblemPlusJSONResponse ¶
type DryRunCatalog400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (DryRunCatalog400ApplicationProblemPlusJSONResponse) VisitDryRunCatalogResponse ¶
func (response DryRunCatalog400ApplicationProblemPlusJSONResponse) VisitDryRunCatalogResponse(w http.ResponseWriter) error
type DryRunCatalog401ApplicationProblemPlusJSONResponse ¶
type DryRunCatalog401ApplicationProblemPlusJSONResponse struct {
}
func (DryRunCatalog401ApplicationProblemPlusJSONResponse) VisitDryRunCatalogResponse ¶
func (response DryRunCatalog401ApplicationProblemPlusJSONResponse) VisitDryRunCatalogResponse(w http.ResponseWriter) error
type DryRunCatalog404ApplicationProblemPlusJSONResponse ¶
type DryRunCatalog404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (DryRunCatalog404ApplicationProblemPlusJSONResponse) VisitDryRunCatalogResponse ¶
func (response DryRunCatalog404ApplicationProblemPlusJSONResponse) VisitDryRunCatalogResponse(w http.ResponseWriter) error
type DryRunCatalogJSONRequestBody ¶
type DryRunCatalogJSONRequestBody = DryRunRequest
DryRunCatalogJSONRequestBody defines body for DryRunCatalog for application/json ContentType.
type DryRunCatalogRequestObject ¶
type DryRunCatalogRequestObject struct {
Body *DryRunCatalogJSONRequestBody
}
type DryRunCatalogResponseObject ¶
type DryRunCatalogResponseObject interface {
VisitDryRunCatalogResponse(w http.ResponseWriter) error
}
type DryRunCatalogdefaultApplicationProblemPlusJSONResponse ¶
func (DryRunCatalogdefaultApplicationProblemPlusJSONResponse) VisitDryRunCatalogResponse ¶
func (response DryRunCatalogdefaultApplicationProblemPlusJSONResponse) VisitDryRunCatalogResponse(w http.ResponseWriter) error
type DryRunRequest ¶
type DryRunRequest struct {
// Event Event is a normalised provider event, shaped as a CloudEvent: its identity is (Source = provider instance or "factory", Type).
Event Event `json:"event"`
// WorkItem Evaluate against this work item's state; an empty one when absent.
WorkItem *string `json:"workItem,omitempty"`
}
DryRunRequest An event to evaluate, optionally against an existing work item.
type Duration ¶
Duration A Go duration ("90s", "15m", "1h30m"), optionally prefixed by whole days ("7d", "1d12h").
type EchoRouter ¶
type EchoRouter interface {
CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration
type EffectAction ¶
type EffectAction = v1alpha1.EffectAction
EffectAction A direct provider effect: op, an optional target, and the op-specific fields inline (e.g. labels for label.add). The catalog loader checks those fields per op.
type EffectOp ¶
EffectOp EffectOp is a provider effect, as named in TaskSpec effects.allow and the effect action.
type EffectRequest ¶
type EffectRequest struct {
// Args Op-specific arguments (`body`, `labels`, `title`, `ref`, `sha`, …).
Args map[string]interface{} `json:"args,omitempty"`
// IdempotencyKey `<taskID>/<op>/<seq>`, or a skill-chosen key. A repeated key replays the stored effect.
IdempotencyKey string `json:"idempotencyKey"`
// Op EffectOp is a provider effect, as named in TaskSpec effects.allow and the effect action.
Op EffectOp `json:"op"`
// Target The object to act on; defaults to the task's primary object.
Target *string `json:"target,omitempty"`
}
EffectRequest One effect. The dispatcher maps the catalog's inline effect fields to `args`.
type EffectResponse ¶
EffectResponse The stored effect and, for API ops, the URL of what it made.
type EffectResult ¶
type EffectResult = v1alpha1.EffectResult
EffectResult EffectResult is the outcome of an effect.
type EffectStatus ¶
type EffectStatus = v1alpha1.EffectStatus
EffectStatus EffectStatus is what happened.
type EffectiveConfig ¶
type EffectiveConfig = v1alpha1.EffectiveConfig
EffectiveConfig EffectiveConfig is the exact config the harness ran with.
type EffectsPolicy ¶
type EffectsPolicy = v1alpha1.EffectsPolicy
EffectsPolicy EffectsPolicy is what a task may do.
type EgressPolicy ¶
type EgressPolicy = v1alpha1.EgressPolicy
EgressPolicy EgressPolicy narrows a workspace's network.
type Enrollment ¶
type Enrollment struct {
// Agent The agent the token registered (`agt_<owner>-<name>`); null while unused.
Agent *string `json:"agent"`
CreatedAt time.Time `json:"createdAt"`
// CreatedBy The admin who minted it, as an actor id (`<provider>:<login>`, or `factory:cli` for the CLI token).
CreatedBy string `json:"createdBy"`
// ExpiresAt After this the token no longer registers an agent.
ExpiresAt time.Time `json:"expiresAt"`
// Id The enrollment's id, `enl_` and a lowercase ULID.
Id string `json:"id"`
// Name The agent host's name.
Name string `json:"name"`
// Owner The GitHub login of the agent's owner.
Owner string `json:"owner"`
// Pool The Pool the agent joins.
Pool string `json:"pool"`
// UsedAt When the token registered the agent; null while unused.
UsedAt *time.Time `json:"usedAt"`
}
Enrollment An enrollment, without its token or the token's hash.
type EnrollmentCreated ¶
type EnrollmentCreated struct {
// Enrollment An enrollment, without its token or the token's hash.
Enrollment Enrollment `json:"enrollment"`
// Token The enrollment token (the `enrollmentToken` scheme), returned only here; the
// dispatcher keeps its hash. Hand it to the agent host's supervisor out of band.
Token string `json:"token"`
}
EnrollmentCreated The minted enrollment and its one-time token.
type EnrollmentList ¶
type EnrollmentList struct {
Items []Enrollment `json:"items"`
// NextCursor Absent on the last page.
NextCursor *string `json:"nextCursor,omitempty"`
}
EnrollmentList A page of enrollments.
type EnrollmentRequest ¶
type EnrollmentRequest struct {
// Name The agent host's name, its `RegisterAgentRequest.host`; the agent is named `agt_<owner>-<name>`.
Name string `json:"name"`
// Owner The GitHub login of the owner who lends the agent (its lending rules apply).
Owner string `json:"owner"`
// Pool The Pool the agent joins.
Pool string `json:"pool"`
// Ttl How long the enrollment token may be used, a Duration (`7d`, `36h`). At most `30d`.
Ttl *v1alpha1.Duration `json:"ttl,omitempty"`
}
EnrollmentRequest The enrollment to mint. The pool, owner and name are fixed by the admin.
type Environment ¶
type Environment = v1alpha1.Environment
Environment Environment is what a task's workspace brings up before the harness runs (P1 §4): plain commands run as root inside the task's VM workspace, which has its own Docker.
type EnvironmentLogUpload ¶
type EnvironmentLogUpload struct {
Bytes int64 `json:"bytes"`
EnvironmentLogRef string `json:"environmentLogRef"`
}
EnvironmentLogUpload Where the environment log was stored.
type ErrorApplicationProblemPlusJSONResponse ¶
type ErrorApplicationProblemPlusJSONResponse Problem
type Evaluation ¶
type Evaluation struct {
// Decisions The ordered actions that would be applied.
Decisions []EvaluationDecision `json:"decisions"`
Event string `json:"event"`
// Matches Every candidate rule and its result.
Matches []RuleMatch `json:"matches"`
// StateAfter The projected work item state after all `set` actions.
StateAfter map[string]interface{} `json:"stateAfter,omitempty"`
WorkItem *string `json:"workItem,omitempty"`
}
Evaluation What the rule engine decided for an event (internal/rules Evaluation).
type EvaluationDecision ¶
type EvaluationDecision struct {
// Action A materialised action; the fields besides `type` depend on it.
Action ActionIntent `json:"action"`
Inputs map[string]interface{} `json:"inputs,omitempty"`
// Rail A safety rail's verdict on an action, as the dry-run summarises it. This is a different view from the stored RailVerdict (lowercase allowed, suppressed, deferred, unsupported): an unsupported action shows as Suppressed, and the rail name is prefixed to the reason.
Rail EvaluationRail `json:"rail"`
Rule string `json:"rule"`
RuleSet string `json:"ruleSet"`
}
EvaluationDecision One action a rule would take, with its rail verdict and the inputs `where` saw.
type EvaluationRail ¶
type EvaluationRail struct {
Reason *string `json:"reason,omitempty"`
Verdict EvaluationRailVerdict `json:"verdict"`
}
EvaluationRail A safety rail's verdict on an action, as the dry-run summarises it. This is a different view from the stored RailVerdict (lowercase allowed, suppressed, deferred, unsupported): an unsupported action shows as Suppressed, and the rail name is prefixed to the reason.
type EvaluationRailVerdict ¶
type EvaluationRailVerdict string
EvaluationRailVerdict defines model for EvaluationRail.Verdict.
const ( EvaluationRailVerdictAllowed EvaluationRailVerdict = "Allowed" EvaluationRailVerdictDeferred EvaluationRailVerdict = "Deferred" EvaluationRailVerdictSuppressed EvaluationRailVerdict = "Suppressed" )
Defines values for EvaluationRailVerdict.
func (EvaluationRailVerdict) Valid ¶
func (e EvaluationRailVerdict) Valid() bool
Valid indicates whether the value is a known member of the EvaluationRailVerdict enum.
type Event ¶
Event Event is a normalised provider event, shaped as a CloudEvent: its identity is (Source = provider instance or "factory", Type).
type ExprOrHarnessRequest ¶
type ExprOrHarnessRequest = v1alpha1.ExprOr[v1alpha1.HarnessRequest]
ExprOrHarnessRequest ExprOr holds either an expression string or a typed value.
type FieldError ¶
type FieldError struct {
// Field The field's path, e.g. `capabilities.harnesses[0].name`.
Field string `json:"field"`
// Message What is wrong with it.
Message string `json:"message"`
}
FieldError One invalid field.
type ForbiddenApplicationProblemPlusJSONResponse ¶
type ForbiddenApplicationProblemPlusJSONResponse Problem
type GetCatalog200JSONResponse ¶
type GetCatalog200JSONResponse CatalogSummary
func (GetCatalog200JSONResponse) VisitGetCatalogResponse ¶
func (response GetCatalog200JSONResponse) VisitGetCatalogResponse(w http.ResponseWriter) error
type GetCatalog401ApplicationProblemPlusJSONResponse ¶
type GetCatalog401ApplicationProblemPlusJSONResponse struct {
}
func (GetCatalog401ApplicationProblemPlusJSONResponse) VisitGetCatalogResponse ¶
func (response GetCatalog401ApplicationProblemPlusJSONResponse) VisitGetCatalogResponse(w http.ResponseWriter) error
type GetCatalogFile200JSONResponse ¶
type GetCatalogFile200JSONResponse CatalogFile
func (GetCatalogFile200JSONResponse) VisitGetCatalogFileResponse ¶
func (response GetCatalogFile200JSONResponse) VisitGetCatalogFileResponse(w http.ResponseWriter) error
type GetCatalogFile400ApplicationProblemPlusJSONResponse ¶
type GetCatalogFile400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (GetCatalogFile400ApplicationProblemPlusJSONResponse) VisitGetCatalogFileResponse ¶
func (response GetCatalogFile400ApplicationProblemPlusJSONResponse) VisitGetCatalogFileResponse(w http.ResponseWriter) error
type GetCatalogFile401ApplicationProblemPlusJSONResponse ¶
type GetCatalogFile401ApplicationProblemPlusJSONResponse struct {
}
func (GetCatalogFile401ApplicationProblemPlusJSONResponse) VisitGetCatalogFileResponse ¶
func (response GetCatalogFile401ApplicationProblemPlusJSONResponse) VisitGetCatalogFileResponse(w http.ResponseWriter) error
type GetCatalogFile404ApplicationProblemPlusJSONResponse ¶
type GetCatalogFile404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (GetCatalogFile404ApplicationProblemPlusJSONResponse) VisitGetCatalogFileResponse ¶
func (response GetCatalogFile404ApplicationProblemPlusJSONResponse) VisitGetCatalogFileResponse(w http.ResponseWriter) error
type GetCatalogFileParams ¶
type GetCatalogFileParams struct {
// Path The file's catalog-relative path, e.g. `prompts/implement.md.tmpl`.
Path string `form:"path" json:"path"`
}
GetCatalogFileParams defines parameters for GetCatalogFile.
type GetCatalogFileRequestObject ¶
type GetCatalogFileRequestObject struct {
Params GetCatalogFileParams
}
type GetCatalogFileResponseObject ¶
type GetCatalogFileResponseObject interface {
VisitGetCatalogFileResponse(w http.ResponseWriter) error
}
type GetCatalogFiledefaultApplicationProblemPlusJSONResponse ¶
func (GetCatalogFiledefaultApplicationProblemPlusJSONResponse) VisitGetCatalogFileResponse ¶
func (response GetCatalogFiledefaultApplicationProblemPlusJSONResponse) VisitGetCatalogFileResponse(w http.ResponseWriter) error
type GetCatalogObject200JSONResponse ¶
type GetCatalogObject200JSONResponse CatalogObject
func (GetCatalogObject200JSONResponse) MarshalJSON ¶
func (t GetCatalogObject200JSONResponse) MarshalJSON() ([]byte, error)
func (*GetCatalogObject200JSONResponse) UnmarshalJSON ¶
func (t *GetCatalogObject200JSONResponse) UnmarshalJSON(b []byte) error
func (GetCatalogObject200JSONResponse) VisitGetCatalogObjectResponse ¶
func (response GetCatalogObject200JSONResponse) VisitGetCatalogObjectResponse(w http.ResponseWriter) error
type GetCatalogObject401ApplicationProblemPlusJSONResponse ¶
type GetCatalogObject401ApplicationProblemPlusJSONResponse struct {
}
func (GetCatalogObject401ApplicationProblemPlusJSONResponse) VisitGetCatalogObjectResponse ¶
func (response GetCatalogObject401ApplicationProblemPlusJSONResponse) VisitGetCatalogObjectResponse(w http.ResponseWriter) error
type GetCatalogObject404ApplicationProblemPlusJSONResponse ¶
type GetCatalogObject404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (GetCatalogObject404ApplicationProblemPlusJSONResponse) VisitGetCatalogObjectResponse ¶
func (response GetCatalogObject404ApplicationProblemPlusJSONResponse) VisitGetCatalogObjectResponse(w http.ResponseWriter) error
type GetCatalogObjectRequestObject ¶
type GetCatalogObjectRequestObject struct {
Kind CatalogKind `json:"kind"`
Name string `json:"name"`
}
type GetCatalogObjectResponseObject ¶
type GetCatalogObjectResponseObject interface {
VisitGetCatalogObjectResponse(w http.ResponseWriter) error
}
type GetCatalogObjectdefaultApplicationProblemPlusJSONResponse ¶
type GetCatalogObjectdefaultApplicationProblemPlusJSONResponse struct {
Body Problem
StatusCode int
}
func (GetCatalogObjectdefaultApplicationProblemPlusJSONResponse) VisitGetCatalogObjectResponse ¶
func (response GetCatalogObjectdefaultApplicationProblemPlusJSONResponse) VisitGetCatalogObjectResponse(w http.ResponseWriter) error
type GetCatalogRequestObject ¶
type GetCatalogRequestObject struct {
}
type GetCatalogResponseObject ¶
type GetCatalogResponseObject interface {
VisitGetCatalogResponse(w http.ResponseWriter) error
}
type GetCatalogdefaultApplicationProblemPlusJSONResponse ¶
func (GetCatalogdefaultApplicationProblemPlusJSONResponse) VisitGetCatalogResponse ¶
func (response GetCatalogdefaultApplicationProblemPlusJSONResponse) VisitGetCatalogResponse(w http.ResponseWriter) error
type GetEnvironmentLog200TextResponse ¶
type GetEnvironmentLog200TextResponse string
func (GetEnvironmentLog200TextResponse) VisitGetEnvironmentLogResponse ¶
func (response GetEnvironmentLog200TextResponse) VisitGetEnvironmentLogResponse(w http.ResponseWriter) error
type GetEnvironmentLog401ApplicationProblemPlusJSONResponse ¶
type GetEnvironmentLog401ApplicationProblemPlusJSONResponse struct {
}
func (GetEnvironmentLog401ApplicationProblemPlusJSONResponse) VisitGetEnvironmentLogResponse ¶
func (response GetEnvironmentLog401ApplicationProblemPlusJSONResponse) VisitGetEnvironmentLogResponse(w http.ResponseWriter) error
type GetEnvironmentLog404ApplicationProblemPlusJSONResponse ¶
type GetEnvironmentLog404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (GetEnvironmentLog404ApplicationProblemPlusJSONResponse) VisitGetEnvironmentLogResponse ¶
func (response GetEnvironmentLog404ApplicationProblemPlusJSONResponse) VisitGetEnvironmentLogResponse(w http.ResponseWriter) error
type GetEnvironmentLogRequestObject ¶
type GetEnvironmentLogRequestObject struct {
Id RunID `json:"id"`
}
type GetEnvironmentLogResponseObject ¶
type GetEnvironmentLogResponseObject interface {
VisitGetEnvironmentLogResponse(w http.ResponseWriter) error
}
type GetEnvironmentLogdefaultApplicationProblemPlusJSONResponse ¶
type GetEnvironmentLogdefaultApplicationProblemPlusJSONResponse struct {
Body Problem
StatusCode int
}
func (GetEnvironmentLogdefaultApplicationProblemPlusJSONResponse) VisitGetEnvironmentLogResponse ¶
func (response GetEnvironmentLogdefaultApplicationProblemPlusJSONResponse) VisitGetEnvironmentLogResponse(w http.ResponseWriter) error
type GetMe200JSONResponse ¶
type GetMe200JSONResponse Me
func (GetMe200JSONResponse) VisitGetMeResponse ¶
func (response GetMe200JSONResponse) VisitGetMeResponse(w http.ResponseWriter) error
type GetMe401ApplicationProblemPlusJSONResponse ¶
type GetMe401ApplicationProblemPlusJSONResponse struct {
}
func (GetMe401ApplicationProblemPlusJSONResponse) VisitGetMeResponse ¶
func (response GetMe401ApplicationProblemPlusJSONResponse) VisitGetMeResponse(w http.ResponseWriter) error
type GetMeRequestObject ¶
type GetMeRequestObject struct {
}
type GetMeResponseObject ¶
type GetMeResponseObject interface {
VisitGetMeResponse(w http.ResponseWriter) error
}
type GetMedefaultApplicationProblemPlusJSONResponse ¶
func (GetMedefaultApplicationProblemPlusJSONResponse) VisitGetMeResponse ¶
func (response GetMedefaultApplicationProblemPlusJSONResponse) VisitGetMeResponse(w http.ResponseWriter) error
type GetRun200JSONResponse ¶
type GetRun200JSONResponse RunDetail
func (GetRun200JSONResponse) VisitGetRunResponse ¶
func (response GetRun200JSONResponse) VisitGetRunResponse(w http.ResponseWriter) error
type GetRun401ApplicationProblemPlusJSONResponse ¶
type GetRun401ApplicationProblemPlusJSONResponse struct {
}
func (GetRun401ApplicationProblemPlusJSONResponse) VisitGetRunResponse ¶
func (response GetRun401ApplicationProblemPlusJSONResponse) VisitGetRunResponse(w http.ResponseWriter) error
type GetRun404ApplicationProblemPlusJSONResponse ¶
type GetRun404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (GetRun404ApplicationProblemPlusJSONResponse) VisitGetRunResponse ¶
func (response GetRun404ApplicationProblemPlusJSONResponse) VisitGetRunResponse(w http.ResponseWriter) error
type GetRunRequestObject ¶
type GetRunRequestObject struct {
Id RunID `json:"id"`
}
type GetRunResponseObject ¶
type GetRunResponseObject interface {
VisitGetRunResponse(w http.ResponseWriter) error
}
type GetRundefaultApplicationProblemPlusJSONResponse ¶
func (GetRundefaultApplicationProblemPlusJSONResponse) VisitGetRunResponse ¶
func (response GetRundefaultApplicationProblemPlusJSONResponse) VisitGetRunResponse(w http.ResponseWriter) error
type GetTask200JSONResponse ¶
type GetTask200JSONResponse Task
func (GetTask200JSONResponse) VisitGetTaskResponse ¶
func (response GetTask200JSONResponse) VisitGetTaskResponse(w http.ResponseWriter) error
type GetTask401ApplicationProblemPlusJSONResponse ¶
type GetTask401ApplicationProblemPlusJSONResponse struct {
}
func (GetTask401ApplicationProblemPlusJSONResponse) VisitGetTaskResponse ¶
func (response GetTask401ApplicationProblemPlusJSONResponse) VisitGetTaskResponse(w http.ResponseWriter) error
type GetTask403ApplicationProblemPlusJSONResponse ¶
type GetTask403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (GetTask403ApplicationProblemPlusJSONResponse) VisitGetTaskResponse ¶
func (response GetTask403ApplicationProblemPlusJSONResponse) VisitGetTaskResponse(w http.ResponseWriter) error
type GetTask404ApplicationProblemPlusJSONResponse ¶
type GetTask404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (GetTask404ApplicationProblemPlusJSONResponse) VisitGetTaskResponse ¶
func (response GetTask404ApplicationProblemPlusJSONResponse) VisitGetTaskResponse(w http.ResponseWriter) error
type GetTaskContext200JSONResponse ¶
type GetTaskContext200JSONResponse TaskContext
func (GetTaskContext200JSONResponse) VisitGetTaskContextResponse ¶
func (response GetTaskContext200JSONResponse) VisitGetTaskContextResponse(w http.ResponseWriter) error
type GetTaskContext401ApplicationProblemPlusJSONResponse ¶
type GetTaskContext401ApplicationProblemPlusJSONResponse struct {
}
func (GetTaskContext401ApplicationProblemPlusJSONResponse) VisitGetTaskContextResponse ¶
func (response GetTaskContext401ApplicationProblemPlusJSONResponse) VisitGetTaskContextResponse(w http.ResponseWriter) error
type GetTaskContext403ApplicationProblemPlusJSONResponse ¶
type GetTaskContext403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (GetTaskContext403ApplicationProblemPlusJSONResponse) VisitGetTaskContextResponse ¶
func (response GetTaskContext403ApplicationProblemPlusJSONResponse) VisitGetTaskContextResponse(w http.ResponseWriter) error
type GetTaskContext404ApplicationProblemPlusJSONResponse ¶
type GetTaskContext404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (GetTaskContext404ApplicationProblemPlusJSONResponse) VisitGetTaskContextResponse ¶
func (response GetTaskContext404ApplicationProblemPlusJSONResponse) VisitGetTaskContextResponse(w http.ResponseWriter) error
type GetTaskContextResponseObject ¶
type GetTaskContextResponseObject interface {
VisitGetTaskContextResponse(w http.ResponseWriter) error
}
type GetTaskContextdefaultApplicationProblemPlusJSONResponse ¶
func (GetTaskContextdefaultApplicationProblemPlusJSONResponse) VisitGetTaskContextResponse ¶
func (response GetTaskContextdefaultApplicationProblemPlusJSONResponse) VisitGetTaskContextResponse(w http.ResponseWriter) error
type GetTaskOutputSchema200ApplicationSchemaPlusJSONResponse ¶
type GetTaskOutputSchema200ApplicationSchemaPlusJSONResponse JSONSchemaDocument
func (GetTaskOutputSchema200ApplicationSchemaPlusJSONResponse) VisitGetTaskOutputSchemaResponse ¶
func (response GetTaskOutputSchema200ApplicationSchemaPlusJSONResponse) VisitGetTaskOutputSchemaResponse(w http.ResponseWriter) error
type GetTaskOutputSchema401ApplicationProblemPlusJSONResponse ¶
type GetTaskOutputSchema401ApplicationProblemPlusJSONResponse struct {
}
func (GetTaskOutputSchema401ApplicationProblemPlusJSONResponse) VisitGetTaskOutputSchemaResponse ¶
func (response GetTaskOutputSchema401ApplicationProblemPlusJSONResponse) VisitGetTaskOutputSchemaResponse(w http.ResponseWriter) error
type GetTaskOutputSchema403ApplicationProblemPlusJSONResponse ¶
type GetTaskOutputSchema403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (GetTaskOutputSchema403ApplicationProblemPlusJSONResponse) VisitGetTaskOutputSchemaResponse ¶
func (response GetTaskOutputSchema403ApplicationProblemPlusJSONResponse) VisitGetTaskOutputSchemaResponse(w http.ResponseWriter) error
type GetTaskOutputSchema404ApplicationProblemPlusJSONResponse ¶
type GetTaskOutputSchema404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (GetTaskOutputSchema404ApplicationProblemPlusJSONResponse) VisitGetTaskOutputSchemaResponse ¶
func (response GetTaskOutputSchema404ApplicationProblemPlusJSONResponse) VisitGetTaskOutputSchemaResponse(w http.ResponseWriter) error
type GetTaskOutputSchemaRequestObject ¶
type GetTaskOutputSchemaRequestObject struct {
Id TaskID `json:"id"`
}
type GetTaskOutputSchemaResponseObject ¶
type GetTaskOutputSchemaResponseObject interface {
VisitGetTaskOutputSchemaResponse(w http.ResponseWriter) error
}
type GetTaskOutputSchemadefaultApplicationProblemPlusJSONResponse ¶
type GetTaskOutputSchemadefaultApplicationProblemPlusJSONResponse struct {
Body Problem
StatusCode int
}
func (GetTaskOutputSchemadefaultApplicationProblemPlusJSONResponse) VisitGetTaskOutputSchemaResponse ¶
func (response GetTaskOutputSchemadefaultApplicationProblemPlusJSONResponse) VisitGetTaskOutputSchemaResponse(w http.ResponseWriter) error
type GetTaskPrompt200ResponseHeaders ¶
type GetTaskPrompt200ResponseHeaders struct {
Digest *string
}
type GetTaskPrompt200TextResponse ¶
type GetTaskPrompt200TextResponse struct {
Body string
Headers GetTaskPrompt200ResponseHeaders
}
func (GetTaskPrompt200TextResponse) VisitGetTaskPromptResponse ¶
func (response GetTaskPrompt200TextResponse) VisitGetTaskPromptResponse(w http.ResponseWriter) error
type GetTaskPrompt401ApplicationProblemPlusJSONResponse ¶
type GetTaskPrompt401ApplicationProblemPlusJSONResponse struct {
}
func (GetTaskPrompt401ApplicationProblemPlusJSONResponse) VisitGetTaskPromptResponse ¶
func (response GetTaskPrompt401ApplicationProblemPlusJSONResponse) VisitGetTaskPromptResponse(w http.ResponseWriter) error
type GetTaskPrompt403ApplicationProblemPlusJSONResponse ¶
type GetTaskPrompt403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (GetTaskPrompt403ApplicationProblemPlusJSONResponse) VisitGetTaskPromptResponse ¶
func (response GetTaskPrompt403ApplicationProblemPlusJSONResponse) VisitGetTaskPromptResponse(w http.ResponseWriter) error
type GetTaskPrompt404ApplicationProblemPlusJSONResponse ¶
type GetTaskPrompt404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (GetTaskPrompt404ApplicationProblemPlusJSONResponse) VisitGetTaskPromptResponse ¶
func (response GetTaskPrompt404ApplicationProblemPlusJSONResponse) VisitGetTaskPromptResponse(w http.ResponseWriter) error
type GetTaskPromptRequestObject ¶
type GetTaskPromptRequestObject struct {
Id TaskID `json:"id"`
}
type GetTaskPromptResponseObject ¶
type GetTaskPromptResponseObject interface {
VisitGetTaskPromptResponse(w http.ResponseWriter) error
}
type GetTaskPromptdefaultApplicationProblemPlusJSONResponse ¶
func (GetTaskPromptdefaultApplicationProblemPlusJSONResponse) VisitGetTaskPromptResponse ¶
func (response GetTaskPromptdefaultApplicationProblemPlusJSONResponse) VisitGetTaskPromptResponse(w http.ResponseWriter) error
type GetTaskRequestObject ¶
type GetTaskRequestObject struct {
Id TaskID `json:"id"`
}
type GetTaskResponseObject ¶
type GetTaskResponseObject interface {
VisitGetTaskResponse(w http.ResponseWriter) error
}
type GetTaskdefaultApplicationProblemPlusJSONResponse ¶
func (GetTaskdefaultApplicationProblemPlusJSONResponse) VisitGetTaskResponse ¶
func (response GetTaskdefaultApplicationProblemPlusJSONResponse) VisitGetTaskResponse(w http.ResponseWriter) error
type GetTranscript200ApplicationgzipResponse ¶
func (GetTranscript200ApplicationgzipResponse) VisitGetTranscriptResponse ¶
func (response GetTranscript200ApplicationgzipResponse) VisitGetTranscriptResponse(w http.ResponseWriter) error
type GetTranscript401ApplicationProblemPlusJSONResponse ¶
type GetTranscript401ApplicationProblemPlusJSONResponse struct {
}
func (GetTranscript401ApplicationProblemPlusJSONResponse) VisitGetTranscriptResponse ¶
func (response GetTranscript401ApplicationProblemPlusJSONResponse) VisitGetTranscriptResponse(w http.ResponseWriter) error
type GetTranscript403ApplicationProblemPlusJSONResponse ¶
type GetTranscript403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (GetTranscript403ApplicationProblemPlusJSONResponse) VisitGetTranscriptResponse ¶
func (response GetTranscript403ApplicationProblemPlusJSONResponse) VisitGetTranscriptResponse(w http.ResponseWriter) error
type GetTranscript404ApplicationProblemPlusJSONResponse ¶
type GetTranscript404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (GetTranscript404ApplicationProblemPlusJSONResponse) VisitGetTranscriptResponse ¶
func (response GetTranscript404ApplicationProblemPlusJSONResponse) VisitGetTranscriptResponse(w http.ResponseWriter) error
type GetTranscriptRequestObject ¶
type GetTranscriptRequestObject struct {
Id RunID `json:"id"`
}
type GetTranscriptResponseObject ¶
type GetTranscriptResponseObject interface {
VisitGetTranscriptResponse(w http.ResponseWriter) error
}
type GetTranscriptdefaultApplicationProblemPlusJSONResponse ¶
func (GetTranscriptdefaultApplicationProblemPlusJSONResponse) VisitGetTranscriptResponse ¶
func (response GetTranscriptdefaultApplicationProblemPlusJSONResponse) VisitGetTranscriptResponse(w http.ResponseWriter) error
type GetWorkItem200JSONResponse ¶
type GetWorkItem200JSONResponse WorkItemDetail
func (GetWorkItem200JSONResponse) VisitGetWorkItemResponse ¶
func (response GetWorkItem200JSONResponse) VisitGetWorkItemResponse(w http.ResponseWriter) error
type GetWorkItem401ApplicationProblemPlusJSONResponse ¶
type GetWorkItem401ApplicationProblemPlusJSONResponse struct {
}
func (GetWorkItem401ApplicationProblemPlusJSONResponse) VisitGetWorkItemResponse ¶
func (response GetWorkItem401ApplicationProblemPlusJSONResponse) VisitGetWorkItemResponse(w http.ResponseWriter) error
type GetWorkItem404ApplicationProblemPlusJSONResponse ¶
type GetWorkItem404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (GetWorkItem404ApplicationProblemPlusJSONResponse) VisitGetWorkItemResponse ¶
func (response GetWorkItem404ApplicationProblemPlusJSONResponse) VisitGetWorkItemResponse(w http.ResponseWriter) error
type GetWorkItemRequestObject ¶
type GetWorkItemRequestObject struct {
Id WorkItemID `json:"id"`
}
type GetWorkItemResponseObject ¶
type GetWorkItemResponseObject interface {
VisitGetWorkItemResponse(w http.ResponseWriter) error
}
type GetWorkItemdefaultApplicationProblemPlusJSONResponse ¶
func (GetWorkItemdefaultApplicationProblemPlusJSONResponse) VisitGetWorkItemResponse ¶
func (response GetWorkItemdefaultApplicationProblemPlusJSONResponse) VisitGetWorkItemResponse(w http.ResponseWriter) error
type GitCredential ¶
type GitCredential struct {
ExpiresAt time.Time `json:"expiresAt"`
// Host The git host, e.g. `github.com`.
Host string `json:"host"`
Permissions map[string]string `json:"permissions,omitempty"`
Provider string `json:"provider"`
// ReadRepos Further repos a read-only token may read (a token that can write covers `repo` only).
ReadRepos []string `json:"readRepos,omitempty"`
// Repo The repo the token is for, `owner/name`.
Repo string `json:"repo"`
Token string `json:"token"`
// Username The username to present with the token (`x-access-token`).
Username string `json:"username"`
}
GitCredential A scoped installation token for one repo: the task's repo with the TaskSpec permissions, or a private read repo with `contents: read`. Never stored by the dispatcher.
type GitCredentialSpec ¶
type GitCredentialSpec = v1alpha1.GitCredentialSpec
GitCredentialSpec GitCredentialSpec describes the scoped git tokens minted for a task: one for Repo with the TaskSpec permissions and, unless PublicReads is set, a read-only one per read repo.
type GitHubActionsBackend ¶
type GitHubActionsBackend = v1alpha1.GitHubActionsBackend
GitHubActionsBackend GitHubActionsBackend runs agents as a workflow.
type GitHubProviderSpec ¶
type GitHubProviderSpec = v1alpha1.GitHubProviderSpec
GitHubProviderSpec GitHubProviderSpec is the connection to a GitHub (or GHE) instance.
type GroupCache ¶
type GroupCache = v1alpha1.GroupCache
GroupCache GroupCache says how long resolved members are cached.
type GroupSource ¶
type GroupSource = v1alpha1.GroupSource
GroupSource GroupSource is one source of members on one provider.
type HarnessConfig ¶
type HarnessConfig = v1alpha1.HarnessConfig
HarnessConfig HarnessConfig is a requested harness config.
type HarnessConstraint ¶
type HarnessConstraint = v1alpha1.HarnessConstraint
HarnessConstraint HarnessConstraint bounds what a harness may run.
type HarnessOffer ¶
type HarnessOffer = v1alpha1.HarnessOffer
HarnessOffer HarnessOffer is what one agent can actually run with one harness (from the agent's Probe and local config): concrete values, not patterns.
type HarnessPolicy ¶
type HarnessPolicy = v1alpha1.HarnessPolicy
HarnessPolicy HarnessPolicy is a TaskSpec's harness constraints and default request.
type HarnessRequest ¶
type HarnessRequest = v1alpha1.HarnessRequest
HarnessRequest HarnessRequest asks for a harness and config.
type HarnessResolved ¶
type HarnessResolved = v1alpha1.HarnessResolved
HarnessResolved HarnessResolved is the concrete harness config chosen when an agent leased the task.
type HeartbeatLease200JSONResponse ¶
type HeartbeatLease200JSONResponse HeartbeatResponse
func (HeartbeatLease200JSONResponse) VisitHeartbeatLeaseResponse ¶
func (response HeartbeatLease200JSONResponse) VisitHeartbeatLeaseResponse(w http.ResponseWriter) error
type HeartbeatLease400ApplicationProblemPlusJSONResponse ¶
type HeartbeatLease400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (HeartbeatLease400ApplicationProblemPlusJSONResponse) VisitHeartbeatLeaseResponse ¶
func (response HeartbeatLease400ApplicationProblemPlusJSONResponse) VisitHeartbeatLeaseResponse(w http.ResponseWriter) error
type HeartbeatLease401ApplicationProblemPlusJSONResponse ¶
type HeartbeatLease401ApplicationProblemPlusJSONResponse struct {
}
func (HeartbeatLease401ApplicationProblemPlusJSONResponse) VisitHeartbeatLeaseResponse ¶
func (response HeartbeatLease401ApplicationProblemPlusJSONResponse) VisitHeartbeatLeaseResponse(w http.ResponseWriter) error
type HeartbeatLease403ApplicationProblemPlusJSONResponse ¶
type HeartbeatLease403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (HeartbeatLease403ApplicationProblemPlusJSONResponse) VisitHeartbeatLeaseResponse ¶
func (response HeartbeatLease403ApplicationProblemPlusJSONResponse) VisitHeartbeatLeaseResponse(w http.ResponseWriter) error
type HeartbeatLease404ApplicationProblemPlusJSONResponse ¶
type HeartbeatLease404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (HeartbeatLease404ApplicationProblemPlusJSONResponse) VisitHeartbeatLeaseResponse ¶
func (response HeartbeatLease404ApplicationProblemPlusJSONResponse) VisitHeartbeatLeaseResponse(w http.ResponseWriter) error
type HeartbeatLease409ApplicationProblemPlusJSONResponse ¶
type HeartbeatLease409ApplicationProblemPlusJSONResponse struct {
ConflictApplicationProblemPlusJSONResponse
}
func (HeartbeatLease409ApplicationProblemPlusJSONResponse) VisitHeartbeatLeaseResponse ¶
func (response HeartbeatLease409ApplicationProblemPlusJSONResponse) VisitHeartbeatLeaseResponse(w http.ResponseWriter) error
type HeartbeatLeaseJSONRequestBody ¶
type HeartbeatLeaseJSONRequestBody = HeartbeatRequest
HeartbeatLeaseJSONRequestBody defines body for HeartbeatLease for application/json ContentType.
type HeartbeatLeaseRequestObject ¶
type HeartbeatLeaseRequestObject struct {
Id LeaseID `json:"id"`
Body *HeartbeatLeaseJSONRequestBody
}
type HeartbeatLeaseResponseObject ¶
type HeartbeatLeaseResponseObject interface {
VisitHeartbeatLeaseResponse(w http.ResponseWriter) error
}
type HeartbeatLeasedefaultApplicationProblemPlusJSONResponse ¶
func (HeartbeatLeasedefaultApplicationProblemPlusJSONResponse) VisitHeartbeatLeaseResponse ¶
func (response HeartbeatLeasedefaultApplicationProblemPlusJSONResponse) VisitHeartbeatLeaseResponse(w http.ResponseWriter) error
type HeartbeatRequest ¶
type HeartbeatRequest struct {
Progress []ProgressEvent `json:"progress,omitempty"`
// Usage Usage since the previous heartbeat. `costUSD` is null for subscription runs.
Usage *UsageDelta `json:"usage,omitempty"`
}
HeartbeatRequest Progress events and usage deltas since the previous heartbeat.
type HeartbeatResponse ¶
type HeartbeatResponse struct {
// Cancel Cancel the run now (the task is being cancelled).
Cancel bool `json:"cancel"`
ExpiresAt time.Time `json:"expiresAt"`
// RefreshedGitCredential A scoped installation token for one repo: the task's repo with the TaskSpec permissions,
// or a private read repo with `contents: read`. Never stored by the dispatcher.
RefreshedGitCredential *GitCredential `json:"refreshedGitCredential,omitempty"`
// RefreshedReadCredentials Sent with `refreshedGitCredential` when the task has read-only credentials: they
// replace the lease's `readCredentials`, one per private read repo.
RefreshedReadCredentials []GitCredential `json:"refreshedReadCredentials,omitempty"`
}
HeartbeatResponse The new expiry, whether to cancel, and maybe refreshed credentials.
type InlineRule ¶
type InlineRule = v1alpha1.InlineRule
InlineRule InlineRule is a Rule without its TypeMeta, embedded in a RuleSet.
type Instructions ¶
type Instructions = v1alpha1.Instructions
Instructions Instructions is the prompt template.
type JSONSchemaDocument ¶
type JSONSchemaDocument map[string]interface{}
JSONSchemaDocument A JSON Schema (draft 2020-12) document, served as the catalog holds it.
type LabelSelector ¶
type LabelSelector = v1alpha1.LabelSelector
LabelSelector LabelSelector selects objects by their labels, as in Kubernetes.
type LabelSelectorParam ¶
type LabelSelectorParam = string
LabelSelectorParam defines model for LabelSelectorParam.
type LabelSelectorRequirement ¶
type LabelSelectorRequirement = v1alpha1.LabelSelectorRequirement
LabelSelectorRequirement LabelSelectorRequirement is one matchExpressions entry.
type Lease ¶
type Lease struct {
// GitCredential A scoped installation token for one repo: the task's repo with the TaskSpec permissions,
// or a private read repo with `contents: read`. Never stored by the dispatcher.
GitCredential GitCredential `json:"gitCredential"`
// Lease The lease itself.
Lease LeaseInfo `json:"lease"`
// ReadCredentials One read-only credential (`permissions: {contents: read}`) per private read repo of
// the task (`task.spec.credentials.git.readRepos`), its `repo` being that read repo.
// Absent when the task has no read repos or they are public (`publicReads`): those are
// cloned anonymously.
ReadCredentials []GitCredential `json:"readCredentials,omitempty"`
// RunToken The run-scoped token for this lease (the `runToken` scheme). Appears only in this
// response; the dispatcher keeps only its hash. Not refreshed by heartbeats: it lives
// exactly as long as the lease.
RunToken *string `json:"runToken,omitempty"`
// Task Task is one instantiation of a TaskSpec for a work item.
Task Task `json:"task"`
}
Lease A leased task, its lease and its credential bundle for the agent's gateway: the scoped git credential, the read credentials and the run token.
type LeaseInfo ¶
type LeaseInfo struct {
Agent string `json:"agent"`
ExpiresAt time.Time `json:"expiresAt"`
// HeartbeatEvery The heartbeat interval (`pool.lease.heartbeat`), e.g. `30s`.
HeartbeatEvery string `json:"heartbeatEvery"`
Id string `json:"id"`
// Run The Run created for this attempt.
Run *string `json:"run,omitempty"`
Task string `json:"task"`
}
LeaseInfo The lease itself.
type LeasePolicy ¶
type LeasePolicy = v1alpha1.LeasePolicy
LeasePolicy LeasePolicy sets lease timing.
type LeaseTask200JSONResponse ¶
type LeaseTask200JSONResponse Lease
func (LeaseTask200JSONResponse) VisitLeaseTaskResponse ¶
func (response LeaseTask200JSONResponse) VisitLeaseTaskResponse(w http.ResponseWriter) error
type LeaseTask204Response ¶
type LeaseTask204Response struct {
}
func (LeaseTask204Response) VisitLeaseTaskResponse ¶
func (response LeaseTask204Response) VisitLeaseTaskResponse(w http.ResponseWriter) error
type LeaseTask400ApplicationProblemPlusJSONResponse ¶
type LeaseTask400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (LeaseTask400ApplicationProblemPlusJSONResponse) VisitLeaseTaskResponse ¶
func (response LeaseTask400ApplicationProblemPlusJSONResponse) VisitLeaseTaskResponse(w http.ResponseWriter) error
type LeaseTask401ApplicationProblemPlusJSONResponse ¶
type LeaseTask401ApplicationProblemPlusJSONResponse struct {
}
func (LeaseTask401ApplicationProblemPlusJSONResponse) VisitLeaseTaskResponse ¶
func (response LeaseTask401ApplicationProblemPlusJSONResponse) VisitLeaseTaskResponse(w http.ResponseWriter) error
type LeaseTask403ApplicationProblemPlusJSONResponse ¶
type LeaseTask403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (LeaseTask403ApplicationProblemPlusJSONResponse) VisitLeaseTaskResponse ¶
func (response LeaseTask403ApplicationProblemPlusJSONResponse) VisitLeaseTaskResponse(w http.ResponseWriter) error
type LeaseTask404ApplicationProblemPlusJSONResponse ¶
type LeaseTask404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (LeaseTask404ApplicationProblemPlusJSONResponse) VisitLeaseTaskResponse ¶
func (response LeaseTask404ApplicationProblemPlusJSONResponse) VisitLeaseTaskResponse(w http.ResponseWriter) error
type LeaseTaskParams ¶
type LeaseTaskParams struct {
// Wait How long to wait for a task, in seconds (`30s`). At most `60s`.
Wait *string `form:"wait,omitempty" json:"wait,omitempty"`
}
LeaseTaskParams defines parameters for LeaseTask.
type LeaseTaskRequestObject ¶
type LeaseTaskRequestObject struct {
Id AgentID `json:"id"`
Params LeaseTaskParams
}
type LeaseTaskResponseObject ¶
type LeaseTaskResponseObject interface {
VisitLeaseTaskResponse(w http.ResponseWriter) error
}
type LeaseTaskdefaultApplicationProblemPlusJSONResponse ¶
func (LeaseTaskdefaultApplicationProblemPlusJSONResponse) VisitLeaseTaskResponse ¶
func (response LeaseTaskdefaultApplicationProblemPlusJSONResponse) VisitLeaseTaskResponse(w http.ResponseWriter) error
type LinkAction ¶
type LinkAction = v1alpha1.LinkAction
LinkAction LinkAction adds a provider object to the work item.
type ListAgents200JSONResponse ¶
type ListAgents200JSONResponse AgentList
func (ListAgents200JSONResponse) VisitListAgentsResponse ¶
func (response ListAgents200JSONResponse) VisitListAgentsResponse(w http.ResponseWriter) error
type ListAgents400ApplicationProblemPlusJSONResponse ¶
type ListAgents400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (ListAgents400ApplicationProblemPlusJSONResponse) VisitListAgentsResponse ¶
func (response ListAgents400ApplicationProblemPlusJSONResponse) VisitListAgentsResponse(w http.ResponseWriter) error
type ListAgents401ApplicationProblemPlusJSONResponse ¶
type ListAgents401ApplicationProblemPlusJSONResponse struct {
}
func (ListAgents401ApplicationProblemPlusJSONResponse) VisitListAgentsResponse ¶
func (response ListAgents401ApplicationProblemPlusJSONResponse) VisitListAgentsResponse(w http.ResponseWriter) error
type ListAgentsParams ¶
type ListAgentsParams struct {
// Cursor The `nextCursor` of the previous page. Opaque.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit The page size.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// LabelSelector A Kubernetes-style label selector on `metadata.labels`: `pack=intake,env!=prod,owner`.
LabelSelector *LabelSelectorParam `form:"labelSelector,omitempty" json:"labelSelector,omitempty"`
}
ListAgentsParams defines parameters for ListAgents.
type ListAgentsRequestObject ¶
type ListAgentsRequestObject struct {
Params ListAgentsParams
}
type ListAgentsResponseObject ¶
type ListAgentsResponseObject interface {
VisitListAgentsResponse(w http.ResponseWriter) error
}
type ListAgentsdefaultApplicationProblemPlusJSONResponse ¶
func (ListAgentsdefaultApplicationProblemPlusJSONResponse) VisitListAgentsResponse ¶
func (response ListAgentsdefaultApplicationProblemPlusJSONResponse) VisitListAgentsResponse(w http.ResponseWriter) error
type ListCatalogFiles200JSONResponse ¶
type ListCatalogFiles200JSONResponse CatalogFileList
func (ListCatalogFiles200JSONResponse) VisitListCatalogFilesResponse ¶
func (response ListCatalogFiles200JSONResponse) VisitListCatalogFilesResponse(w http.ResponseWriter) error
type ListCatalogFiles401ApplicationProblemPlusJSONResponse ¶
type ListCatalogFiles401ApplicationProblemPlusJSONResponse struct {
}
func (ListCatalogFiles401ApplicationProblemPlusJSONResponse) VisitListCatalogFilesResponse ¶
func (response ListCatalogFiles401ApplicationProblemPlusJSONResponse) VisitListCatalogFilesResponse(w http.ResponseWriter) error
type ListCatalogFilesRequestObject ¶
type ListCatalogFilesRequestObject struct {
}
type ListCatalogFilesResponseObject ¶
type ListCatalogFilesResponseObject interface {
VisitListCatalogFilesResponse(w http.ResponseWriter) error
}
type ListCatalogFilesdefaultApplicationProblemPlusJSONResponse ¶
type ListCatalogFilesdefaultApplicationProblemPlusJSONResponse struct {
Body Problem
StatusCode int
}
func (ListCatalogFilesdefaultApplicationProblemPlusJSONResponse) VisitListCatalogFilesResponse ¶
func (response ListCatalogFilesdefaultApplicationProblemPlusJSONResponse) VisitListCatalogFilesResponse(w http.ResponseWriter) error
type ListEnrollments200JSONResponse ¶
type ListEnrollments200JSONResponse EnrollmentList
func (ListEnrollments200JSONResponse) VisitListEnrollmentsResponse ¶
func (response ListEnrollments200JSONResponse) VisitListEnrollmentsResponse(w http.ResponseWriter) error
type ListEnrollments400ApplicationProblemPlusJSONResponse ¶
type ListEnrollments400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (ListEnrollments400ApplicationProblemPlusJSONResponse) VisitListEnrollmentsResponse ¶
func (response ListEnrollments400ApplicationProblemPlusJSONResponse) VisitListEnrollmentsResponse(w http.ResponseWriter) error
type ListEnrollments401ApplicationProblemPlusJSONResponse ¶
type ListEnrollments401ApplicationProblemPlusJSONResponse struct {
}
func (ListEnrollments401ApplicationProblemPlusJSONResponse) VisitListEnrollmentsResponse ¶
func (response ListEnrollments401ApplicationProblemPlusJSONResponse) VisitListEnrollmentsResponse(w http.ResponseWriter) error
type ListEnrollments403ApplicationProblemPlusJSONResponse ¶
type ListEnrollments403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (ListEnrollments403ApplicationProblemPlusJSONResponse) VisitListEnrollmentsResponse ¶
func (response ListEnrollments403ApplicationProblemPlusJSONResponse) VisitListEnrollmentsResponse(w http.ResponseWriter) error
type ListEnrollmentsParams ¶
type ListEnrollmentsParams struct {
// Cursor The `nextCursor` of the previous page. Opaque.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit The page size.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}
ListEnrollmentsParams defines parameters for ListEnrollments.
type ListEnrollmentsRequestObject ¶
type ListEnrollmentsRequestObject struct {
Params ListEnrollmentsParams
}
type ListEnrollmentsResponseObject ¶
type ListEnrollmentsResponseObject interface {
VisitListEnrollmentsResponse(w http.ResponseWriter) error
}
type ListEnrollmentsdefaultApplicationProblemPlusJSONResponse ¶
type ListEnrollmentsdefaultApplicationProblemPlusJSONResponse struct {
Body Problem
StatusCode int
}
func (ListEnrollmentsdefaultApplicationProblemPlusJSONResponse) VisitListEnrollmentsResponse ¶
func (response ListEnrollmentsdefaultApplicationProblemPlusJSONResponse) VisitListEnrollmentsResponse(w http.ResponseWriter) error
type ListPools200JSONResponse ¶
type ListPools200JSONResponse PoolList
func (ListPools200JSONResponse) VisitListPoolsResponse ¶
func (response ListPools200JSONResponse) VisitListPoolsResponse(w http.ResponseWriter) error
type ListPools400ApplicationProblemPlusJSONResponse ¶
type ListPools400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (ListPools400ApplicationProblemPlusJSONResponse) VisitListPoolsResponse ¶
func (response ListPools400ApplicationProblemPlusJSONResponse) VisitListPoolsResponse(w http.ResponseWriter) error
type ListPools401ApplicationProblemPlusJSONResponse ¶
type ListPools401ApplicationProblemPlusJSONResponse struct {
}
func (ListPools401ApplicationProblemPlusJSONResponse) VisitListPoolsResponse ¶
func (response ListPools401ApplicationProblemPlusJSONResponse) VisitListPoolsResponse(w http.ResponseWriter) error
type ListPoolsParams ¶
type ListPoolsParams struct {
// Cursor The `nextCursor` of the previous page. Opaque.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit The page size.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// LabelSelector A Kubernetes-style label selector on `metadata.labels`: `pack=intake,env!=prod,owner`.
LabelSelector *LabelSelectorParam `form:"labelSelector,omitempty" json:"labelSelector,omitempty"`
}
ListPoolsParams defines parameters for ListPools.
type ListPoolsRequestObject ¶
type ListPoolsRequestObject struct {
Params ListPoolsParams
}
type ListPoolsResponseObject ¶
type ListPoolsResponseObject interface {
VisitListPoolsResponse(w http.ResponseWriter) error
}
type ListPoolsdefaultApplicationProblemPlusJSONResponse ¶
func (ListPoolsdefaultApplicationProblemPlusJSONResponse) VisitListPoolsResponse ¶
func (response ListPoolsdefaultApplicationProblemPlusJSONResponse) VisitListPoolsResponse(w http.ResponseWriter) error
type ListProviders200JSONResponse ¶
type ListProviders200JSONResponse ProviderList
func (ListProviders200JSONResponse) VisitListProvidersResponse ¶
func (response ListProviders200JSONResponse) VisitListProvidersResponse(w http.ResponseWriter) error
type ListProviders400ApplicationProblemPlusJSONResponse ¶
type ListProviders400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (ListProviders400ApplicationProblemPlusJSONResponse) VisitListProvidersResponse ¶
func (response ListProviders400ApplicationProblemPlusJSONResponse) VisitListProvidersResponse(w http.ResponseWriter) error
type ListProviders401ApplicationProblemPlusJSONResponse ¶
type ListProviders401ApplicationProblemPlusJSONResponse struct {
}
func (ListProviders401ApplicationProblemPlusJSONResponse) VisitListProvidersResponse ¶
func (response ListProviders401ApplicationProblemPlusJSONResponse) VisitListProvidersResponse(w http.ResponseWriter) error
type ListProvidersParams ¶
type ListProvidersParams struct {
// Cursor The `nextCursor` of the previous page. Opaque.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit The page size.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// LabelSelector A Kubernetes-style label selector on `metadata.labels`: `pack=intake,env!=prod,owner`.
LabelSelector *LabelSelectorParam `form:"labelSelector,omitempty" json:"labelSelector,omitempty"`
}
ListProvidersParams defines parameters for ListProviders.
type ListProvidersRequestObject ¶
type ListProvidersRequestObject struct {
Params ListProvidersParams
}
type ListProvidersResponseObject ¶
type ListProvidersResponseObject interface {
VisitListProvidersResponse(w http.ResponseWriter) error
}
type ListProvidersdefaultApplicationProblemPlusJSONResponse ¶
func (ListProvidersdefaultApplicationProblemPlusJSONResponse) VisitListProvidersResponse ¶
func (response ListProvidersdefaultApplicationProblemPlusJSONResponse) VisitListProvidersResponse(w http.ResponseWriter) error
type ListQueues200JSONResponse ¶
type ListQueues200JSONResponse QueueList
func (ListQueues200JSONResponse) VisitListQueuesResponse ¶
func (response ListQueues200JSONResponse) VisitListQueuesResponse(w http.ResponseWriter) error
type ListQueues400ApplicationProblemPlusJSONResponse ¶
type ListQueues400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (ListQueues400ApplicationProblemPlusJSONResponse) VisitListQueuesResponse ¶
func (response ListQueues400ApplicationProblemPlusJSONResponse) VisitListQueuesResponse(w http.ResponseWriter) error
type ListQueues401ApplicationProblemPlusJSONResponse ¶
type ListQueues401ApplicationProblemPlusJSONResponse struct {
}
func (ListQueues401ApplicationProblemPlusJSONResponse) VisitListQueuesResponse ¶
func (response ListQueues401ApplicationProblemPlusJSONResponse) VisitListQueuesResponse(w http.ResponseWriter) error
type ListQueuesParams ¶
type ListQueuesParams struct {
// Cursor The `nextCursor` of the previous page. Opaque.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit The page size.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// LabelSelector A Kubernetes-style label selector on `metadata.labels`: `pack=intake,env!=prod,owner`.
LabelSelector *LabelSelectorParam `form:"labelSelector,omitempty" json:"labelSelector,omitempty"`
}
ListQueuesParams defines parameters for ListQueues.
type ListQueuesRequestObject ¶
type ListQueuesRequestObject struct {
Params ListQueuesParams
}
type ListQueuesResponseObject ¶
type ListQueuesResponseObject interface {
VisitListQueuesResponse(w http.ResponseWriter) error
}
type ListQueuesdefaultApplicationProblemPlusJSONResponse ¶
func (ListQueuesdefaultApplicationProblemPlusJSONResponse) VisitListQueuesResponse ¶
func (response ListQueuesdefaultApplicationProblemPlusJSONResponse) VisitListQueuesResponse(w http.ResponseWriter) error
type ListTasks200JSONResponse ¶
type ListTasks200JSONResponse TaskList
func (ListTasks200JSONResponse) VisitListTasksResponse ¶
func (response ListTasks200JSONResponse) VisitListTasksResponse(w http.ResponseWriter) error
type ListTasks400ApplicationProblemPlusJSONResponse ¶
type ListTasks400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (ListTasks400ApplicationProblemPlusJSONResponse) VisitListTasksResponse ¶
func (response ListTasks400ApplicationProblemPlusJSONResponse) VisitListTasksResponse(w http.ResponseWriter) error
type ListTasks401ApplicationProblemPlusJSONResponse ¶
type ListTasks401ApplicationProblemPlusJSONResponse struct {
}
func (ListTasks401ApplicationProblemPlusJSONResponse) VisitListTasksResponse ¶
func (response ListTasks401ApplicationProblemPlusJSONResponse) VisitListTasksResponse(w http.ResponseWriter) error
type ListTasksParams ¶
type ListTasksParams struct {
// Cursor The `nextCursor` of the previous page. Opaque.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit The page size.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// LabelSelector A Kubernetes-style label selector on `metadata.labels`: `pack=intake,env!=prod,owner`.
LabelSelector *LabelSelectorParam `form:"labelSelector,omitempty" json:"labelSelector,omitempty"`
}
ListTasksParams defines parameters for ListTasks.
type ListTasksRequestObject ¶
type ListTasksRequestObject struct {
Params ListTasksParams
}
type ListTasksResponseObject ¶
type ListTasksResponseObject interface {
VisitListTasksResponse(w http.ResponseWriter) error
}
type ListTasksdefaultApplicationProblemPlusJSONResponse ¶
func (ListTasksdefaultApplicationProblemPlusJSONResponse) VisitListTasksResponse ¶
func (response ListTasksdefaultApplicationProblemPlusJSONResponse) VisitListTasksResponse(w http.ResponseWriter) error
type ListWorkItems200JSONResponse ¶
type ListWorkItems200JSONResponse WorkItemList
func (ListWorkItems200JSONResponse) VisitListWorkItemsResponse ¶
func (response ListWorkItems200JSONResponse) VisitListWorkItemsResponse(w http.ResponseWriter) error
type ListWorkItems400ApplicationProblemPlusJSONResponse ¶
type ListWorkItems400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (ListWorkItems400ApplicationProblemPlusJSONResponse) VisitListWorkItemsResponse ¶
func (response ListWorkItems400ApplicationProblemPlusJSONResponse) VisitListWorkItemsResponse(w http.ResponseWriter) error
type ListWorkItems401ApplicationProblemPlusJSONResponse ¶
type ListWorkItems401ApplicationProblemPlusJSONResponse struct {
}
func (ListWorkItems401ApplicationProblemPlusJSONResponse) VisitListWorkItemsResponse ¶
func (response ListWorkItems401ApplicationProblemPlusJSONResponse) VisitListWorkItemsResponse(w http.ResponseWriter) error
type ListWorkItemsParams ¶
type ListWorkItemsParams struct {
// Cursor The `nextCursor` of the previous page. Opaque.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit The page size.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// LabelSelector A Kubernetes-style label selector on `metadata.labels`: `pack=intake,env!=prod,owner`.
LabelSelector *LabelSelectorParam `form:"labelSelector,omitempty" json:"labelSelector,omitempty"`
}
ListWorkItemsParams defines parameters for ListWorkItems.
type ListWorkItemsRequestObject ¶
type ListWorkItemsRequestObject struct {
Params ListWorkItemsParams
}
type ListWorkItemsResponseObject ¶
type ListWorkItemsResponseObject interface {
VisitListWorkItemsResponse(w http.ResponseWriter) error
}
type ListWorkItemsdefaultApplicationProblemPlusJSONResponse ¶
func (ListWorkItemsdefaultApplicationProblemPlusJSONResponse) VisitListWorkItemsResponse ¶
func (response ListWorkItemsdefaultApplicationProblemPlusJSONResponse) VisitListWorkItemsResponse(w http.ResponseWriter) error
type Login302Response ¶
type Login302Response struct {
Headers Login302ResponseHeaders
}
func (Login302Response) VisitLoginResponse ¶
func (response Login302Response) VisitLoginResponse(w http.ResponseWriter) error
type Login302ResponseHeaders ¶
type Login302ResponseHeaders struct {
Location *string
}
type LoginParams ¶
type LoginParams struct {
// ReturnTo A same-origin path to return to after login.
ReturnTo *string `form:"returnTo,omitempty" json:"returnTo,omitempty"`
}
LoginParams defines parameters for Login.
type LoginRequestObject ¶
type LoginRequestObject struct {
Params LoginParams
}
type LoginResponseObject ¶
type LoginResponseObject interface {
VisitLoginResponse(w http.ResponseWriter) error
}
type LogindefaultApplicationProblemPlusJSONResponse ¶
func (LogindefaultApplicationProblemPlusJSONResponse) VisitLoginResponse ¶
func (response LogindefaultApplicationProblemPlusJSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type Logout204Response ¶
type Logout204Response struct {
Headers Logout204ResponseHeaders
}
func (Logout204Response) VisitLogoutResponse ¶
func (response Logout204Response) VisitLogoutResponse(w http.ResponseWriter) error
type Logout204ResponseHeaders ¶
type Logout204ResponseHeaders struct {
SetCookie *string
}
type LogoutRequestObject ¶
type LogoutRequestObject struct {
}
type LogoutResponseObject ¶
type LogoutResponseObject interface {
VisitLogoutResponse(w http.ResponseWriter) error
}
type LogoutdefaultApplicationProblemPlusJSONResponse ¶
func (LogoutdefaultApplicationProblemPlusJSONResponse) VisitLogoutResponse ¶
func (response LogoutdefaultApplicationProblemPlusJSONResponse) VisitLogoutResponse(w http.ResponseWriter) error
type Me ¶
type Me struct {
AvatarUrl *string `json:"avatarUrl,omitempty"`
// IsAdmin Member of the `maintainers` Group; may send commands.
IsAdmin bool `json:"isAdmin"`
Login string `json:"login"`
Name *string `json:"name,omitempty"`
}
Me The signed-in user.
type NotFoundApplicationProblemPlusJSONResponse ¶
type NotFoundApplicationProblemPlusJSONResponse Problem
type NotifyAction ¶
type NotifyAction = v1alpha1.NotifyAction
NotifyAction NotifyAction sends a templated message through the providers; no LLM involved.
type ObjectMeta ¶
type ObjectMeta = v1alpha1.ObjectMeta
ObjectMeta ObjectMeta is the metadata of every kind except Task (TaskMeta) and Event (CloudEvents attributes).
type OutputSpec ¶
type OutputSpec = v1alpha1.OutputSpec
OutputSpec OutputSpec is the expected Result: its spec-specific schema and outcomes.
type PayloadTooLargeApplicationProblemPlusJSONResponse ¶
type PayloadTooLargeApplicationProblemPlusJSONResponse Problem
type PendingTask ¶
type PendingTask struct {
// Reason `queue-full`, `budget`, `agent-busy`, `agent-throttled`, `lending`, `no-capable-agent`, `anti-affinity`.
Reason *string `json:"reason,omitempty"`
Since *time.Time `json:"since,omitempty"`
Task string `json:"task"`
}
PendingTask A pending task and the first matching check it failed.
type PoolBackend ¶
type PoolBackend = v1alpha1.PoolBackend
PoolBackend PoolBackend runs ephemeral agents.
type PoolList ¶
type PoolList struct {
Items []PoolView `json:"items"`
// NextCursor Absent on the last page.
NextCursor *string `json:"nextCursor,omitempty"`
}
PoolList A page of pools.
type PoolRequirements ¶
type PoolRequirements = v1alpha1.PoolRequirements
PoolRequirements PoolRequirements is the minimum an agent must offer to join.
type PoolView ¶
type PoolView struct {
// Agents The names of the agents registered in the pool.
Agents []string `json:"agents"`
// Pool Pool is who takes tasks out of queues and how capacity scales.
Pool Pool `json:"pool"`
}
PoolView A pool and its agents.
type PostCommand202JSONResponse ¶
type PostCommand202JSONResponse CommandAccepted
func (PostCommand202JSONResponse) VisitPostCommandResponse ¶
func (response PostCommand202JSONResponse) VisitPostCommandResponse(w http.ResponseWriter) error
type PostCommand400ApplicationProblemPlusJSONResponse ¶
type PostCommand400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (PostCommand400ApplicationProblemPlusJSONResponse) VisitPostCommandResponse ¶
func (response PostCommand400ApplicationProblemPlusJSONResponse) VisitPostCommandResponse(w http.ResponseWriter) error
type PostCommand401ApplicationProblemPlusJSONResponse ¶
type PostCommand401ApplicationProblemPlusJSONResponse struct {
}
func (PostCommand401ApplicationProblemPlusJSONResponse) VisitPostCommandResponse ¶
func (response PostCommand401ApplicationProblemPlusJSONResponse) VisitPostCommandResponse(w http.ResponseWriter) error
type PostCommand403ApplicationProblemPlusJSONResponse ¶
type PostCommand403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (PostCommand403ApplicationProblemPlusJSONResponse) VisitPostCommandResponse ¶
func (response PostCommand403ApplicationProblemPlusJSONResponse) VisitPostCommandResponse(w http.ResponseWriter) error
type PostCommand404ApplicationProblemPlusJSONResponse ¶
type PostCommand404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (PostCommand404ApplicationProblemPlusJSONResponse) VisitPostCommandResponse ¶
func (response PostCommand404ApplicationProblemPlusJSONResponse) VisitPostCommandResponse(w http.ResponseWriter) error
type PostCommandJSONRequestBody ¶
type PostCommandJSONRequestBody = Command
PostCommandJSONRequestBody defines body for PostCommand for application/json ContentType.
type PostCommandRequestObject ¶
type PostCommandRequestObject struct {
Body *PostCommandJSONRequestBody
}
type PostCommandResponseObject ¶
type PostCommandResponseObject interface {
VisitPostCommandResponse(w http.ResponseWriter) error
}
type PostCommanddefaultApplicationProblemPlusJSONResponse ¶
func (PostCommanddefaultApplicationProblemPlusJSONResponse) VisitPostCommandResponse ¶
func (response PostCommanddefaultApplicationProblemPlusJSONResponse) VisitPostCommandResponse(w http.ResponseWriter) error
type Problem ¶
type Problem struct {
// Code A stable machine-readable code: `idempotency-key-required`, `effect-not-allowed`, `lease-expired`, ….
Code *string `json:"code,omitempty"`
// Detail This occurrence's explanation.
Detail *string `json:"detail,omitempty"`
// Errors Field-level validation errors.
Errors []FieldError `json:"errors,omitempty"`
// Instance The request id of this occurrence.
Instance *string `json:"instance,omitempty"`
// Status The HTTP status code.
Status int `json:"status"`
// Title A short summary of the problem type.
Title string `json:"title"`
// Type A URI identifying the problem type; `about:blank` when only `code` matters.
Type *string `json:"type,omitempty"`
}
Problem An RFC 9457 problem detail.
type ProgressEvent ¶
type ProgressEvent = v1alpha1.ProgressEvent
ProgressEvent ProgressEvent is one progress line streamed by the agent.
type Provenance ¶
type Provenance = v1alpha1.Provenance
Provenance Provenance is the event, RuleSet, rule and catalog commit that created a task.
type ProviderHealth ¶
type ProviderHealth struct {
CheckedAt *time.Time `json:"checkedAt,omitempty"`
Message *string `json:"message,omitempty"`
Status ProviderHealthStatus `json:"status"`
}
ProviderHealth A provider connection's health (`Conn.Health()`).
type ProviderHealthStatus ¶
type ProviderHealthStatus string
ProviderHealthStatus defines model for ProviderHealth.Status.
const ( ProviderHealthStatusDegraded ProviderHealthStatus = "degraded" ProviderHealthStatusDown ProviderHealthStatus = "down" ProviderHealthStatusOk ProviderHealthStatus = "ok" ProviderHealthStatusUnknown ProviderHealthStatus = "unknown" )
Defines values for ProviderHealthStatus.
func (ProviderHealthStatus) Valid ¶
func (e ProviderHealthStatus) Valid() bool
Valid indicates whether the value is a known member of the ProviderHealthStatus enum.
type ProviderList ¶
type ProviderList struct {
Items []ProviderView `json:"items"`
// NextCursor Absent on the last page.
NextCursor *string `json:"nextCursor,omitempty"`
}
ProviderList A page of providers.
type ProviderScope ¶
type ProviderScope = v1alpha1.ProviderScope
ProviderScope ProviderScope bounds what a provider instance covers.
type ProviderSpec ¶
type ProviderSpec = v1alpha1.ProviderSpec
ProviderSpec ProviderSpec is the spec of a Provider.
type ProviderView ¶
type ProviderView struct {
// Health A provider connection's health (`Conn.Health()`).
Health ProviderHealth `json:"health"`
// Provider Provider says how to connect to one provider instance.
Provider Provider `json:"provider"`
}
ProviderView A provider and its health.
type QueueList ¶
type QueueList struct {
Items []QueueView `json:"items"`
// NextCursor Absent on the last page.
NextCursor *string `json:"nextCursor,omitempty"`
}
QueueList A page of queues.
type QueueView ¶
type QueueView struct {
// Depth Pending tasks.
Depth int `json:"depth"`
// Pending The pending tasks and why each waits.
Pending []PendingTask `json:"pending"`
// Queue Queue holds tasks until a pool's agents take them.
Queue Queue `json:"queue"`
// Running Leased or running tasks.
Running int `json:"running"`
}
QueueView A queue and its depth.
type RailVerdict ¶
type RailVerdict = v1alpha1.RailVerdict
RailVerdict RailVerdict is one safety rail's verdict on a decision as the work item stores it (lowercase, unsupported included); the dry-run API's EvaluationRail is a different view of it (Allowed, Suppressed or Deferred), where unsupported shows as Suppressed and the rail name is prefixed to the reason.
type ReadyCheck ¶
type ReadyCheck = v1alpha1.ReadyCheck
ReadyCheck ReadyCheck is how the runtime waits for an environment.
type RegisterAgent201JSONResponse ¶
type RegisterAgent201JSONResponse AgentRegistration
func (RegisterAgent201JSONResponse) VisitRegisterAgentResponse ¶
func (response RegisterAgent201JSONResponse) VisitRegisterAgentResponse(w http.ResponseWriter) error
type RegisterAgent400ApplicationProblemPlusJSONResponse ¶
type RegisterAgent400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (RegisterAgent400ApplicationProblemPlusJSONResponse) VisitRegisterAgentResponse ¶
func (response RegisterAgent400ApplicationProblemPlusJSONResponse) VisitRegisterAgentResponse(w http.ResponseWriter) error
type RegisterAgent401ApplicationProblemPlusJSONResponse ¶
type RegisterAgent401ApplicationProblemPlusJSONResponse struct {
}
func (RegisterAgent401ApplicationProblemPlusJSONResponse) VisitRegisterAgentResponse ¶
func (response RegisterAgent401ApplicationProblemPlusJSONResponse) VisitRegisterAgentResponse(w http.ResponseWriter) error
type RegisterAgent403ApplicationProblemPlusJSONResponse ¶
type RegisterAgent403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (RegisterAgent403ApplicationProblemPlusJSONResponse) VisitRegisterAgentResponse ¶
func (response RegisterAgent403ApplicationProblemPlusJSONResponse) VisitRegisterAgentResponse(w http.ResponseWriter) error
type RegisterAgentJSONRequestBody ¶
type RegisterAgentJSONRequestBody = RegisterAgentRequest
RegisterAgentJSONRequestBody defines body for RegisterAgent for application/json ContentType.
type RegisterAgentRequest ¶
type RegisterAgentRequest struct {
// AgentVersion The `factory-agent` version.
AgentVersion string `json:"agentVersion"`
// Capabilities AgentCapabilities are the agent's harness offers and labels.
Capabilities AgentCapabilities `json:"capabilities"`
// Host The worker's host name; the agent is named `agt_<owner>-<host>`.
Host string `json:"host"`
// Lending Lending is the owner's consent: what the agent may take.
Lending *Lending `json:"lending,omitempty"`
// Pool The Pool to join.
Pool string `json:"pool"`
}
RegisterAgentRequest The agent's pool, host and offer. The credentials travel in the security headers.
type RegisterAgentRequestObject ¶
type RegisterAgentRequestObject struct {
Body *RegisterAgentJSONRequestBody
}
type RegisterAgentResponseObject ¶
type RegisterAgentResponseObject interface {
VisitRegisterAgentResponse(w http.ResponseWriter) error
}
type RegisterAgentdefaultApplicationProblemPlusJSONResponse ¶
func (RegisterAgentdefaultApplicationProblemPlusJSONResponse) VisitRegisterAgentResponse ¶
func (response RegisterAgentdefaultApplicationProblemPlusJSONResponse) VisitRegisterAgentResponse(w http.ResponseWriter) error
type RegisterHandlersOptions ¶
type RegisterHandlersOptions struct {
// BaseURL is prepended to every registered path so the API can be served
// under a prefix.
BaseURL string
// OperationMiddlewares lets the caller attach per-operation middleware at
// registration time. The map key is the OpenAPI `operationId` value as it
// appears in the spec (the raw, un-normalized form). Operations that have
// no entry are registered with no extra middleware. A nil map disables
// per-operation middleware entirely.
OperationMiddlewares map[string][]echo.MiddlewareFunc
}
RegisterHandlersOptions configures RegisterHandlersWithOptions.
type ReplayEvent200JSONResponse ¶
type ReplayEvent200JSONResponse ReplayResult
func (ReplayEvent200JSONResponse) VisitReplayEventResponse ¶
func (response ReplayEvent200JSONResponse) VisitReplayEventResponse(w http.ResponseWriter) error
type ReplayEvent401ApplicationProblemPlusJSONResponse ¶
type ReplayEvent401ApplicationProblemPlusJSONResponse struct {
}
func (ReplayEvent401ApplicationProblemPlusJSONResponse) VisitReplayEventResponse ¶
func (response ReplayEvent401ApplicationProblemPlusJSONResponse) VisitReplayEventResponse(w http.ResponseWriter) error
type ReplayEvent403ApplicationProblemPlusJSONResponse ¶
type ReplayEvent403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (ReplayEvent403ApplicationProblemPlusJSONResponse) VisitReplayEventResponse ¶
func (response ReplayEvent403ApplicationProblemPlusJSONResponse) VisitReplayEventResponse(w http.ResponseWriter) error
type ReplayEvent404ApplicationProblemPlusJSONResponse ¶
type ReplayEvent404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (ReplayEvent404ApplicationProblemPlusJSONResponse) VisitReplayEventResponse ¶
func (response ReplayEvent404ApplicationProblemPlusJSONResponse) VisitReplayEventResponse(w http.ResponseWriter) error
type ReplayEvent409ApplicationProblemPlusJSONResponse ¶
type ReplayEvent409ApplicationProblemPlusJSONResponse struct {
ConflictApplicationProblemPlusJSONResponse
}
func (ReplayEvent409ApplicationProblemPlusJSONResponse) VisitReplayEventResponse ¶
func (response ReplayEvent409ApplicationProblemPlusJSONResponse) VisitReplayEventResponse(w http.ResponseWriter) error
type ReplayEvent503ApplicationProblemPlusJSONResponse ¶
type ReplayEvent503ApplicationProblemPlusJSONResponse struct {
}
func (ReplayEvent503ApplicationProblemPlusJSONResponse) VisitReplayEventResponse ¶
func (response ReplayEvent503ApplicationProblemPlusJSONResponse) VisitReplayEventResponse(w http.ResponseWriter) error
type ReplayEventRequestObject ¶
type ReplayEventRequestObject struct {
Id EventID `json:"id"`
}
type ReplayEventResponseObject ¶
type ReplayEventResponseObject interface {
VisitReplayEventResponse(w http.ResponseWriter) error
}
type ReplayEventdefaultApplicationProblemPlusJSONResponse ¶
func (ReplayEventdefaultApplicationProblemPlusJSONResponse) VisitReplayEventResponse ¶
func (response ReplayEventdefaultApplicationProblemPlusJSONResponse) VisitReplayEventResponse(w http.ResponseWriter) error
type ReplayResult ¶
type ReplayResult struct {
// Decisions The decisions the replay recorded (each with `replay`), none when it changed nothing.
Decisions []Decision `json:"decisions"`
Event string `json:"event"`
// WorkItem The work item the event was evaluated for; absent when no rule fires for it.
WorkItem *string `json:"workItem,omitempty"`
}
ReplayResult A replay's outcome.
type ResultHarness ¶
type ResultHarness = v1alpha1.ResultHarness
ResultHarness ResultHarness is the harness that ran, its effective config and usage.
type ResyncPolicy ¶
type ResyncPolicy = v1alpha1.ResyncPolicy
ResyncPolicy ResyncPolicy says how often the provider's objects are re-observed.
type RetryPolicy ¶
type RetryPolicy = v1alpha1.RetryPolicy
RetryPolicy RetryPolicy says how often, and on what, a task is retried.
type RuleMatch ¶
type RuleMatch struct {
// ActionIndex With `action-error`, the failing action.
ActionIndex *int `json:"actionIndex,omitempty"`
Error *string `json:"error,omitempty"`
Result RuleMatchResult `json:"result"`
Rule string `json:"rule"`
RuleSet string `json:"ruleSet"`
}
RuleMatch One candidate rule's result.
type RuleMatchResult ¶
type RuleMatchResult string
RuleMatchResult defines model for RuleMatch.Result.
const ( RuleMatchResultActionError RuleMatchResult = "action-error" RuleMatchResultDuplicate RuleMatchResult = "duplicate" RuleMatchResultError RuleMatchResult = "error" RuleMatchResultMatched RuleMatchResult = "matched" RuleMatchResultNotMatched RuleMatchResult = "not-matched" RuleMatchResultSuppressedByFinal RuleMatchResult = "suppressed-by-final" )
Defines values for RuleMatchResult.
func (RuleMatchResult) Valid ¶
func (e RuleMatchResult) Valid() bool
Valid indicates whether the value is a known member of the RuleMatchResult enum.
type RuleSelection ¶
type RuleSelection = v1alpha1.RuleSelection
RuleSelection RuleSelection picks rules: refs ∪ selector, minus exclude.
type RuleSet ¶
RuleSet RuleSet is where rules apply: it binds provider instances, sets the scope, selects rules and overrides their params.
type RuleSetSpec ¶
type RuleSetSpec = v1alpha1.RuleSetSpec
RuleSetSpec RuleSetSpec is the spec of a RuleSet.
type RunDetail ¶
type RunDetail struct {
Effects []Effect `json:"effects"`
// Run Run is one attempt at a Task by one agent.
Run Run `json:"run"`
}
RunDetail A run and its effects.
type ServerInterface ¶
type ServerInterface interface {
// List agents
// (GET /agents)
ListAgents(ctx echo.Context, params ListAgentsParams) error
// Register an agent
// (POST /agents)
RegisterAgent(ctx echo.Context) error
// Deregister an agent
// (DELETE /agents/{id})
DeregisterAgent(ctx echo.Context, id AgentID) error
// Update an agent's status or lending
// (PATCH /agents/{id})
UpdateAgent(ctx echo.Context, id AgentID) error
// Long-poll for a task
// (GET /agents/{id}/lease)
LeaseTask(ctx echo.Context, id AgentID, params LeaseTaskParams) error
// Finish the GitHub OAuth login
// (GET /auth/callback)
AuthCallback(ctx echo.Context, params AuthCallbackParams) error
// Start the GitHub OAuth login
// (GET /auth/login)
Login(ctx echo.Context, params LoginParams) error
// Sign out
// (POST /auth/logout)
Logout(ctx echo.Context) error
// Who am I
// (GET /auth/me)
GetMe(ctx echo.Context) error
// Get the loaded catalog
// (GET /catalog)
GetCatalog(ctx echo.Context) error
// Evaluate an event against the catalog
// (POST /catalog/dry-run)
DryRunCatalog(ctx echo.Context) error
// Get one prompt or schema file of the catalog
// (GET /catalog/file)
GetCatalogFile(ctx echo.Context, params GetCatalogFileParams) error
// List the catalog's prompt and schema files
// (GET /catalog/files)
ListCatalogFiles(ctx echo.Context) error
// Get one catalog object
// (GET /catalog/{kind}/{name})
GetCatalogObject(ctx echo.Context, kind CatalogKind, name string) error
// Run an operator command
// (POST /commands)
PostCommand(ctx echo.Context) error
// List enrollments
// (GET /enrollments)
ListEnrollments(ctx echo.Context, params ListEnrollmentsParams) error
// Mint an enrollment
// (POST /enrollments)
CreateEnrollment(ctx echo.Context) error
// Revoke an enrollment
// (DELETE /enrollments/{id})
DeleteEnrollment(ctx echo.Context, id EnrollmentID) error
// Replay a stored event through the rules
// (POST /events/{id}/replay)
ReplayEvent(ctx echo.Context, id EventID) error
// Hand a leased task back
// (POST /leases/{id}/abandon)
AbandonLease(ctx echo.Context, id LeaseID) error
// Complete a lease with a Result
// (POST /leases/{id}/complete)
CompleteLease(ctx echo.Context, id LeaseID) error
// Extend a lease and report progress
// (POST /leases/{id}/heartbeat)
HeartbeatLease(ctx echo.Context, id LeaseID) error
// List pools with their agents
// (GET /pools)
ListPools(ctx echo.Context, params ListPoolsParams) error
// List providers with their health
// (GET /providers)
ListProviders(ctx echo.Context, params ListProvidersParams) error
// List queues with their depth
// (GET /queues)
ListQueues(ctx echo.Context, params ListQueuesParams) error
// Get a run with its effects
// (GET /runs/{id})
GetRun(ctx echo.Context, id RunID) error
// Download a run's environment log
// (GET /runs/{id}/environment-log)
GetEnvironmentLog(ctx echo.Context, id RunID) error
// Upload a run's environment log
// (PUT /runs/{id}/environment-log)
UploadEnvironmentLog(ctx echo.Context, id RunID) error
// Download a run's transcript
// (GET /runs/{id}/transcript)
GetTranscript(ctx echo.Context, id RunID) error
// Upload a run's transcript
// (PUT /runs/{id}/transcript)
UploadTranscript(ctx echo.Context, id RunID) error
// Subscribe to live updates
// (GET /stream)
StreamEvents(ctx echo.Context, params StreamEventsParams) error
// List tasks
// (GET /tasks)
ListTasks(ctx echo.Context, params ListTasksParams) error
// Get a task
// (GET /tasks/{id})
GetTask(ctx echo.Context, id TaskID) error
// Get one fetched context item
// (GET /tasks/{id}/context/{n})
GetTaskContext(ctx echo.Context, id TaskID, n int) error
// Apply (or record) an effect
// (POST /tasks/{id}/effects)
CreateEffect(ctx echo.Context, id TaskID) error
// Get a task's output schema
// (GET /tasks/{id}/output-schema)
GetTaskOutputSchema(ctx echo.Context, id TaskID) error
// Get a task's rendered prompt
// (GET /tasks/{id}/prompt)
GetTaskPrompt(ctx echo.Context, id TaskID) error
// List work items
// (GET /workitems)
ListWorkItems(ctx echo.Context, params ListWorkItemsParams) error
// Delete a work item and everything keyed to it
// (DELETE /workitems/{id})
DeleteWorkItem(ctx echo.Context, id WorkItemID, params DeleteWorkItemParams) error
// Get a work item with its timeline
// (GET /workitems/{id})
GetWorkItem(ctx echo.Context, id WorkItemID) error
// Close a work item
// (POST /workitems/{id}/close)
CloseWorkItem(ctx echo.Context, id WorkItemID) error
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) AbandonLease ¶
func (w *ServerInterfaceWrapper) AbandonLease(ctx echo.Context) error
AbandonLease converts echo context to params.
func (*ServerInterfaceWrapper) AuthCallback ¶
func (w *ServerInterfaceWrapper) AuthCallback(ctx echo.Context) error
AuthCallback converts echo context to params.
func (*ServerInterfaceWrapper) CloseWorkItem ¶
func (w *ServerInterfaceWrapper) CloseWorkItem(ctx echo.Context) error
CloseWorkItem converts echo context to params.
func (*ServerInterfaceWrapper) CompleteLease ¶
func (w *ServerInterfaceWrapper) CompleteLease(ctx echo.Context) error
CompleteLease converts echo context to params.
func (*ServerInterfaceWrapper) CreateEffect ¶
func (w *ServerInterfaceWrapper) CreateEffect(ctx echo.Context) error
CreateEffect converts echo context to params.
func (*ServerInterfaceWrapper) CreateEnrollment ¶
func (w *ServerInterfaceWrapper) CreateEnrollment(ctx echo.Context) error
CreateEnrollment converts echo context to params.
func (*ServerInterfaceWrapper) DeleteEnrollment ¶
func (w *ServerInterfaceWrapper) DeleteEnrollment(ctx echo.Context) error
DeleteEnrollment converts echo context to params.
func (*ServerInterfaceWrapper) DeleteWorkItem ¶
func (w *ServerInterfaceWrapper) DeleteWorkItem(ctx echo.Context) error
DeleteWorkItem converts echo context to params.
func (*ServerInterfaceWrapper) DeregisterAgent ¶
func (w *ServerInterfaceWrapper) DeregisterAgent(ctx echo.Context) error
DeregisterAgent converts echo context to params.
func (*ServerInterfaceWrapper) DryRunCatalog ¶
func (w *ServerInterfaceWrapper) DryRunCatalog(ctx echo.Context) error
DryRunCatalog converts echo context to params.
func (*ServerInterfaceWrapper) GetCatalog ¶
func (w *ServerInterfaceWrapper) GetCatalog(ctx echo.Context) error
GetCatalog converts echo context to params.
func (*ServerInterfaceWrapper) GetCatalogFile ¶
func (w *ServerInterfaceWrapper) GetCatalogFile(ctx echo.Context) error
GetCatalogFile converts echo context to params.
func (*ServerInterfaceWrapper) GetCatalogObject ¶
func (w *ServerInterfaceWrapper) GetCatalogObject(ctx echo.Context) error
GetCatalogObject converts echo context to params.
func (*ServerInterfaceWrapper) GetEnvironmentLog ¶
func (w *ServerInterfaceWrapper) GetEnvironmentLog(ctx echo.Context) error
GetEnvironmentLog converts echo context to params.
func (*ServerInterfaceWrapper) GetMe ¶
func (w *ServerInterfaceWrapper) GetMe(ctx echo.Context) error
GetMe converts echo context to params.
func (*ServerInterfaceWrapper) GetRun ¶
func (w *ServerInterfaceWrapper) GetRun(ctx echo.Context) error
GetRun converts echo context to params.
func (*ServerInterfaceWrapper) GetTask ¶
func (w *ServerInterfaceWrapper) GetTask(ctx echo.Context) error
GetTask converts echo context to params.
func (*ServerInterfaceWrapper) GetTaskContext ¶
func (w *ServerInterfaceWrapper) GetTaskContext(ctx echo.Context) error
GetTaskContext converts echo context to params.
func (*ServerInterfaceWrapper) GetTaskOutputSchema ¶
func (w *ServerInterfaceWrapper) GetTaskOutputSchema(ctx echo.Context) error
GetTaskOutputSchema converts echo context to params.
func (*ServerInterfaceWrapper) GetTaskPrompt ¶
func (w *ServerInterfaceWrapper) GetTaskPrompt(ctx echo.Context) error
GetTaskPrompt converts echo context to params.
func (*ServerInterfaceWrapper) GetTranscript ¶
func (w *ServerInterfaceWrapper) GetTranscript(ctx echo.Context) error
GetTranscript converts echo context to params.
func (*ServerInterfaceWrapper) GetWorkItem ¶
func (w *ServerInterfaceWrapper) GetWorkItem(ctx echo.Context) error
GetWorkItem converts echo context to params.
func (*ServerInterfaceWrapper) HeartbeatLease ¶
func (w *ServerInterfaceWrapper) HeartbeatLease(ctx echo.Context) error
HeartbeatLease converts echo context to params.
func (*ServerInterfaceWrapper) LeaseTask ¶
func (w *ServerInterfaceWrapper) LeaseTask(ctx echo.Context) error
LeaseTask converts echo context to params.
func (*ServerInterfaceWrapper) ListAgents ¶
func (w *ServerInterfaceWrapper) ListAgents(ctx echo.Context) error
ListAgents converts echo context to params.
func (*ServerInterfaceWrapper) ListCatalogFiles ¶
func (w *ServerInterfaceWrapper) ListCatalogFiles(ctx echo.Context) error
ListCatalogFiles converts echo context to params.
func (*ServerInterfaceWrapper) ListEnrollments ¶
func (w *ServerInterfaceWrapper) ListEnrollments(ctx echo.Context) error
ListEnrollments converts echo context to params.
func (*ServerInterfaceWrapper) ListPools ¶
func (w *ServerInterfaceWrapper) ListPools(ctx echo.Context) error
ListPools converts echo context to params.
func (*ServerInterfaceWrapper) ListProviders ¶
func (w *ServerInterfaceWrapper) ListProviders(ctx echo.Context) error
ListProviders converts echo context to params.
func (*ServerInterfaceWrapper) ListQueues ¶
func (w *ServerInterfaceWrapper) ListQueues(ctx echo.Context) error
ListQueues converts echo context to params.
func (*ServerInterfaceWrapper) ListTasks ¶
func (w *ServerInterfaceWrapper) ListTasks(ctx echo.Context) error
ListTasks converts echo context to params.
func (*ServerInterfaceWrapper) ListWorkItems ¶
func (w *ServerInterfaceWrapper) ListWorkItems(ctx echo.Context) error
ListWorkItems converts echo context to params.
func (*ServerInterfaceWrapper) Login ¶
func (w *ServerInterfaceWrapper) Login(ctx echo.Context) error
Login converts echo context to params.
func (*ServerInterfaceWrapper) Logout ¶
func (w *ServerInterfaceWrapper) Logout(ctx echo.Context) error
Logout converts echo context to params.
func (*ServerInterfaceWrapper) PostCommand ¶
func (w *ServerInterfaceWrapper) PostCommand(ctx echo.Context) error
PostCommand converts echo context to params.
func (*ServerInterfaceWrapper) RegisterAgent ¶
func (w *ServerInterfaceWrapper) RegisterAgent(ctx echo.Context) error
RegisterAgent converts echo context to params.
func (*ServerInterfaceWrapper) ReplayEvent ¶
func (w *ServerInterfaceWrapper) ReplayEvent(ctx echo.Context) error
ReplayEvent converts echo context to params.
func (*ServerInterfaceWrapper) StreamEvents ¶
func (w *ServerInterfaceWrapper) StreamEvents(ctx echo.Context) error
StreamEvents converts echo context to params.
func (*ServerInterfaceWrapper) UpdateAgent ¶
func (w *ServerInterfaceWrapper) UpdateAgent(ctx echo.Context) error
UpdateAgent converts echo context to params.
func (*ServerInterfaceWrapper) UploadEnvironmentLog ¶
func (w *ServerInterfaceWrapper) UploadEnvironmentLog(ctx echo.Context) error
UploadEnvironmentLog converts echo context to params.
func (*ServerInterfaceWrapper) UploadTranscript ¶
func (w *ServerInterfaceWrapper) UploadTranscript(ctx echo.Context) error
UploadTranscript converts echo context to params.
type ServiceUnavailable ¶
type ServiceUnavailable = Problem
ServiceUnavailable An RFC 9457 problem detail.
type ServiceUnavailableApplicationProblemPlusJSONResponse ¶
type ServiceUnavailableApplicationProblemPlusJSONResponse Problem
type SlackProviderSpec ¶
type SlackProviderSpec = v1alpha1.SlackProviderSpec
SlackProviderSpec SlackProviderSpec is the connection to a Slack workspace (future).
type StreamEvents200TexteventStreamResponse ¶
func (StreamEvents200TexteventStreamResponse) VisitStreamEventsResponse ¶
func (response StreamEvents200TexteventStreamResponse) VisitStreamEventsResponse(w http.ResponseWriter) error
type StreamEvents400ApplicationProblemPlusJSONResponse ¶
type StreamEvents400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (StreamEvents400ApplicationProblemPlusJSONResponse) VisitStreamEventsResponse ¶
func (response StreamEvents400ApplicationProblemPlusJSONResponse) VisitStreamEventsResponse(w http.ResponseWriter) error
type StreamEvents401ApplicationProblemPlusJSONResponse ¶
type StreamEvents401ApplicationProblemPlusJSONResponse struct {
}
func (StreamEvents401ApplicationProblemPlusJSONResponse) VisitStreamEventsResponse ¶
func (response StreamEvents401ApplicationProblemPlusJSONResponse) VisitStreamEventsResponse(w http.ResponseWriter) error
type StreamEvents503ApplicationProblemPlusJSONResponse ¶
type StreamEvents503ApplicationProblemPlusJSONResponse struct {
}
func (StreamEvents503ApplicationProblemPlusJSONResponse) VisitStreamEventsResponse ¶
func (response StreamEvents503ApplicationProblemPlusJSONResponse) VisitStreamEventsResponse(w http.ResponseWriter) error
type StreamEventsParams ¶
type StreamEventsParams struct {
// Topics Comma-separated topics: `runs/<id>`, `workitems`, `workitems/<id>`, `tasks`, `agents`.
Topics []string `form:"topics" json:"topics"`
// LastEventID The `id` of the last event received, to resume after a reconnect.
LastEventID *string `json:"Last-Event-ID,omitempty"`
}
StreamEventsParams defines parameters for StreamEvents.
type StreamEventsRequestObject ¶
type StreamEventsRequestObject struct {
Params StreamEventsParams
}
type StreamEventsResponseObject ¶
type StreamEventsResponseObject interface {
VisitStreamEventsResponse(w http.ResponseWriter) error
}
type StreamEventsdefaultApplicationProblemPlusJSONResponse ¶
func (StreamEventsdefaultApplicationProblemPlusJSONResponse) VisitStreamEventsResponse ¶
func (response StreamEventsdefaultApplicationProblemPlusJSONResponse) VisitStreamEventsResponse(w http.ResponseWriter) error
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// List agents
// (GET /agents)
ListAgents(ctx context.Context, request ListAgentsRequestObject) (ListAgentsResponseObject, error)
// Register an agent
// (POST /agents)
RegisterAgent(ctx context.Context, request RegisterAgentRequestObject) (RegisterAgentResponseObject, error)
// Deregister an agent
// (DELETE /agents/{id})
DeregisterAgent(ctx context.Context, request DeregisterAgentRequestObject) (DeregisterAgentResponseObject, error)
// Update an agent's status or lending
// (PATCH /agents/{id})
UpdateAgent(ctx context.Context, request UpdateAgentRequestObject) (UpdateAgentResponseObject, error)
// Long-poll for a task
// (GET /agents/{id}/lease)
LeaseTask(ctx context.Context, request LeaseTaskRequestObject) (LeaseTaskResponseObject, error)
// Finish the GitHub OAuth login
// (GET /auth/callback)
AuthCallback(ctx context.Context, request AuthCallbackRequestObject) (AuthCallbackResponseObject, error)
// Start the GitHub OAuth login
// (GET /auth/login)
Login(ctx context.Context, request LoginRequestObject) (LoginResponseObject, error)
// Sign out
// (POST /auth/logout)
Logout(ctx context.Context, request LogoutRequestObject) (LogoutResponseObject, error)
// Who am I
// (GET /auth/me)
GetMe(ctx context.Context, request GetMeRequestObject) (GetMeResponseObject, error)
// Get the loaded catalog
// (GET /catalog)
GetCatalog(ctx context.Context, request GetCatalogRequestObject) (GetCatalogResponseObject, error)
// Evaluate an event against the catalog
// (POST /catalog/dry-run)
DryRunCatalog(ctx context.Context, request DryRunCatalogRequestObject) (DryRunCatalogResponseObject, error)
// Get one prompt or schema file of the catalog
// (GET /catalog/file)
GetCatalogFile(ctx context.Context, request GetCatalogFileRequestObject) (GetCatalogFileResponseObject, error)
// List the catalog's prompt and schema files
// (GET /catalog/files)
ListCatalogFiles(ctx context.Context, request ListCatalogFilesRequestObject) (ListCatalogFilesResponseObject, error)
// Get one catalog object
// (GET /catalog/{kind}/{name})
GetCatalogObject(ctx context.Context, request GetCatalogObjectRequestObject) (GetCatalogObjectResponseObject, error)
// Run an operator command
// (POST /commands)
PostCommand(ctx context.Context, request PostCommandRequestObject) (PostCommandResponseObject, error)
// List enrollments
// (GET /enrollments)
ListEnrollments(ctx context.Context, request ListEnrollmentsRequestObject) (ListEnrollmentsResponseObject, error)
// Mint an enrollment
// (POST /enrollments)
CreateEnrollment(ctx context.Context, request CreateEnrollmentRequestObject) (CreateEnrollmentResponseObject, error)
// Revoke an enrollment
// (DELETE /enrollments/{id})
DeleteEnrollment(ctx context.Context, request DeleteEnrollmentRequestObject) (DeleteEnrollmentResponseObject, error)
// Replay a stored event through the rules
// (POST /events/{id}/replay)
ReplayEvent(ctx context.Context, request ReplayEventRequestObject) (ReplayEventResponseObject, error)
// Hand a leased task back
// (POST /leases/{id}/abandon)
AbandonLease(ctx context.Context, request AbandonLeaseRequestObject) (AbandonLeaseResponseObject, error)
// Complete a lease with a Result
// (POST /leases/{id}/complete)
CompleteLease(ctx context.Context, request CompleteLeaseRequestObject) (CompleteLeaseResponseObject, error)
// Extend a lease and report progress
// (POST /leases/{id}/heartbeat)
HeartbeatLease(ctx context.Context, request HeartbeatLeaseRequestObject) (HeartbeatLeaseResponseObject, error)
// List pools with their agents
// (GET /pools)
ListPools(ctx context.Context, request ListPoolsRequestObject) (ListPoolsResponseObject, error)
// List providers with their health
// (GET /providers)
ListProviders(ctx context.Context, request ListProvidersRequestObject) (ListProvidersResponseObject, error)
// List queues with their depth
// (GET /queues)
ListQueues(ctx context.Context, request ListQueuesRequestObject) (ListQueuesResponseObject, error)
// Get a run with its effects
// (GET /runs/{id})
GetRun(ctx context.Context, request GetRunRequestObject) (GetRunResponseObject, error)
// Download a run's environment log
// (GET /runs/{id}/environment-log)
GetEnvironmentLog(ctx context.Context, request GetEnvironmentLogRequestObject) (GetEnvironmentLogResponseObject, error)
// Upload a run's environment log
// (PUT /runs/{id}/environment-log)
UploadEnvironmentLog(ctx context.Context, request UploadEnvironmentLogRequestObject) (UploadEnvironmentLogResponseObject, error)
// Download a run's transcript
// (GET /runs/{id}/transcript)
GetTranscript(ctx context.Context, request GetTranscriptRequestObject) (GetTranscriptResponseObject, error)
// Upload a run's transcript
// (PUT /runs/{id}/transcript)
UploadTranscript(ctx context.Context, request UploadTranscriptRequestObject) (UploadTranscriptResponseObject, error)
// Subscribe to live updates
// (GET /stream)
StreamEvents(ctx context.Context, request StreamEventsRequestObject) (StreamEventsResponseObject, error)
// List tasks
// (GET /tasks)
ListTasks(ctx context.Context, request ListTasksRequestObject) (ListTasksResponseObject, error)
// Get a task
// (GET /tasks/{id})
GetTask(ctx context.Context, request GetTaskRequestObject) (GetTaskResponseObject, error)
// Get one fetched context item
// (GET /tasks/{id}/context/{n})
GetTaskContext(ctx context.Context, request GetTaskContextRequestObject) (GetTaskContextResponseObject, error)
// Apply (or record) an effect
// (POST /tasks/{id}/effects)
CreateEffect(ctx context.Context, request CreateEffectRequestObject) (CreateEffectResponseObject, error)
// Get a task's output schema
// (GET /tasks/{id}/output-schema)
GetTaskOutputSchema(ctx context.Context, request GetTaskOutputSchemaRequestObject) (GetTaskOutputSchemaResponseObject, error)
// Get a task's rendered prompt
// (GET /tasks/{id}/prompt)
GetTaskPrompt(ctx context.Context, request GetTaskPromptRequestObject) (GetTaskPromptResponseObject, error)
// List work items
// (GET /workitems)
ListWorkItems(ctx context.Context, request ListWorkItemsRequestObject) (ListWorkItemsResponseObject, error)
// Delete a work item and everything keyed to it
// (DELETE /workitems/{id})
DeleteWorkItem(ctx context.Context, request DeleteWorkItemRequestObject) (DeleteWorkItemResponseObject, error)
// Get a work item with its timeline
// (GET /workitems/{id})
GetWorkItem(ctx context.Context, request GetWorkItemRequestObject) (GetWorkItemResponseObject, error)
// Close a work item
// (POST /workitems/{id}/close)
CloseWorkItem(ctx context.Context, request CloseWorkItemRequestObject) (CloseWorkItemResponseObject, error)
}
StrictServerInterface represents all server handlers.
type StringOrList ¶
type StringOrList = v1alpha1.StringOrList
StringOrList StringOrList is a field that takes one string (often a pattern, e.g.
type Suggestion ¶
type Suggestion = v1alpha1.Suggestion
Suggestion Suggestion is a follow-up the agent proposes; rules decide.
type Target ¶
Target Target says which repo or object the work happens on, when it isn't the event's object.
type TaskContext ¶
type TaskContext struct {
// Content The fetched content. Untrusted content is fenced and hidden parts are marked, not stripped.
Content string `json:"content"`
Index int `json:"index"`
Kind string `json:"kind"`
MediaType *string `json:"mediaType,omitempty"`
Provider *string `json:"provider,omitempty"`
Ref string `json:"ref"`
// Trust `trusted` or `untrusted`.
Trust string `json:"trust"`
}
TaskContext One fetched context item, labelled with its trust.
type TaskCredentials ¶
type TaskCredentials = v1alpha1.TaskCredentials
TaskCredentials TaskCredentials are the credentials a task gets.
type TaskHarness ¶
type TaskHarness = v1alpha1.TaskHarness
TaskHarness TaskHarness is the requested harness and, once leased, the resolved one (null until then).
type TaskList ¶
type TaskList struct {
Items []Task `json:"items"`
// NextCursor Absent on the last page.
NextCursor *string `json:"nextCursor,omitempty"`
}
TaskList A page of tasks.
type TaskMeta ¶
TaskMeta TaskMeta is a Task's metadata: tasks are named by id and carry their provenance.
type TaskRunSpec ¶
type TaskRunSpec = v1alpha1.TaskRunSpec
TaskRunSpec TaskRunSpec is a Task's spec: the TaskSpec resolved for this work item.
type TaskSpecRef ¶
type TaskSpecRef = v1alpha1.TaskSpecRef
TaskSpecRef TaskSpecRef is the TaskSpec a task was made from, by name and digest.
type TaskSpecSpec ¶
type TaskSpecSpec = v1alpha1.TaskSpecSpec
TaskSpecSpec TaskSpecSpec is the spec of a TaskSpec.
type Template ¶
Template Template is the text of notifications and approval prompts, one body per provider type.
type TemplateBody ¶
type TemplateBody = v1alpha1.TemplateBody
TemplateBody TemplateBody is either an inline Go text/template (written as a string) or, for Slack, a Block Kit file ({blocks: path}).
type TemplateSpec ¶
type TemplateSpec = v1alpha1.TemplateSpec
TemplateSpec TemplateSpec is the spec of a Template.
type TooManyRequestsApplicationProblemPlusJSONResponse ¶
type TooManyRequestsApplicationProblemPlusJSONResponse struct {
Body Problem
Headers TooManyRequestsResponseHeaders
}
type TooManyRequestsResponseHeaders ¶
type TooManyRequestsResponseHeaders struct {
RetryAfter *int
}
type TranscriptUpload ¶
type TranscriptUpload struct {
Bytes int64 `json:"bytes"`
TranscriptRef string `json:"transcriptRef"`
}
TranscriptUpload Where the transcript was stored.
type UnauthorizedApplicationProblemPlusJSONResponse ¶
type UnauthorizedApplicationProblemPlusJSONResponse Problem
type UpdateAgent200JSONResponse ¶
type UpdateAgent200JSONResponse Agent
func (UpdateAgent200JSONResponse) VisitUpdateAgentResponse ¶
func (response UpdateAgent200JSONResponse) VisitUpdateAgentResponse(w http.ResponseWriter) error
type UpdateAgent400ApplicationProblemPlusJSONResponse ¶
type UpdateAgent400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (UpdateAgent400ApplicationProblemPlusJSONResponse) VisitUpdateAgentResponse ¶
func (response UpdateAgent400ApplicationProblemPlusJSONResponse) VisitUpdateAgentResponse(w http.ResponseWriter) error
type UpdateAgent401ApplicationProblemPlusJSONResponse ¶
type UpdateAgent401ApplicationProblemPlusJSONResponse struct {
}
func (UpdateAgent401ApplicationProblemPlusJSONResponse) VisitUpdateAgentResponse ¶
func (response UpdateAgent401ApplicationProblemPlusJSONResponse) VisitUpdateAgentResponse(w http.ResponseWriter) error
type UpdateAgent403ApplicationProblemPlusJSONResponse ¶
type UpdateAgent403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (UpdateAgent403ApplicationProblemPlusJSONResponse) VisitUpdateAgentResponse ¶
func (response UpdateAgent403ApplicationProblemPlusJSONResponse) VisitUpdateAgentResponse(w http.ResponseWriter) error
type UpdateAgent404ApplicationProblemPlusJSONResponse ¶
type UpdateAgent404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (UpdateAgent404ApplicationProblemPlusJSONResponse) VisitUpdateAgentResponse ¶
func (response UpdateAgent404ApplicationProblemPlusJSONResponse) VisitUpdateAgentResponse(w http.ResponseWriter) error
type UpdateAgentJSONRequestBody ¶
type UpdateAgentJSONRequestBody = AgentUpdate
UpdateAgentJSONRequestBody defines body for UpdateAgent for application/json ContentType.
type UpdateAgentRequestObject ¶
type UpdateAgentRequestObject struct {
Id AgentID `json:"id"`
Body *UpdateAgentJSONRequestBody
}
type UpdateAgentResponseObject ¶
type UpdateAgentResponseObject interface {
VisitUpdateAgentResponse(w http.ResponseWriter) error
}
type UpdateAgentdefaultApplicationProblemPlusJSONResponse ¶
func (UpdateAgentdefaultApplicationProblemPlusJSONResponse) VisitUpdateAgentResponse ¶
func (response UpdateAgentdefaultApplicationProblemPlusJSONResponse) VisitUpdateAgentResponse(w http.ResponseWriter) error
type UploadEnvironmentLog200JSONResponse ¶
type UploadEnvironmentLog200JSONResponse EnvironmentLogUpload
func (UploadEnvironmentLog200JSONResponse) VisitUploadEnvironmentLogResponse ¶
func (response UploadEnvironmentLog200JSONResponse) VisitUploadEnvironmentLogResponse(w http.ResponseWriter) error
type UploadEnvironmentLog400ApplicationProblemPlusJSONResponse ¶
type UploadEnvironmentLog400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (UploadEnvironmentLog400ApplicationProblemPlusJSONResponse) VisitUploadEnvironmentLogResponse ¶
func (response UploadEnvironmentLog400ApplicationProblemPlusJSONResponse) VisitUploadEnvironmentLogResponse(w http.ResponseWriter) error
type UploadEnvironmentLog401ApplicationProblemPlusJSONResponse ¶
type UploadEnvironmentLog401ApplicationProblemPlusJSONResponse struct {
}
func (UploadEnvironmentLog401ApplicationProblemPlusJSONResponse) VisitUploadEnvironmentLogResponse ¶
func (response UploadEnvironmentLog401ApplicationProblemPlusJSONResponse) VisitUploadEnvironmentLogResponse(w http.ResponseWriter) error
type UploadEnvironmentLog403ApplicationProblemPlusJSONResponse ¶
type UploadEnvironmentLog403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (UploadEnvironmentLog403ApplicationProblemPlusJSONResponse) VisitUploadEnvironmentLogResponse ¶
func (response UploadEnvironmentLog403ApplicationProblemPlusJSONResponse) VisitUploadEnvironmentLogResponse(w http.ResponseWriter) error
type UploadEnvironmentLog404ApplicationProblemPlusJSONResponse ¶
type UploadEnvironmentLog404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (UploadEnvironmentLog404ApplicationProblemPlusJSONResponse) VisitUploadEnvironmentLogResponse ¶
func (response UploadEnvironmentLog404ApplicationProblemPlusJSONResponse) VisitUploadEnvironmentLogResponse(w http.ResponseWriter) error
type UploadEnvironmentLog413ApplicationProblemPlusJSONResponse ¶
type UploadEnvironmentLog413ApplicationProblemPlusJSONResponse struct {
PayloadTooLargeApplicationProblemPlusJSONResponse
}
func (UploadEnvironmentLog413ApplicationProblemPlusJSONResponse) VisitUploadEnvironmentLogResponse ¶
func (response UploadEnvironmentLog413ApplicationProblemPlusJSONResponse) VisitUploadEnvironmentLogResponse(w http.ResponseWriter) error
type UploadEnvironmentLogRequestObject ¶
type UploadEnvironmentLogRequestObject struct {
Id RunID `json:"id"`
Body *UploadEnvironmentLogTextRequestBody
}
type UploadEnvironmentLogResponseObject ¶
type UploadEnvironmentLogResponseObject interface {
VisitUploadEnvironmentLogResponse(w http.ResponseWriter) error
}
type UploadEnvironmentLogTextBody ¶
type UploadEnvironmentLogTextBody = string
UploadEnvironmentLogTextBody defines parameters for UploadEnvironmentLog.
type UploadEnvironmentLogTextRequestBody ¶
type UploadEnvironmentLogTextRequestBody = UploadEnvironmentLogTextBody
UploadEnvironmentLogTextRequestBody defines body for UploadEnvironmentLog for text/plain ContentType.
type UploadEnvironmentLogdefaultApplicationProblemPlusJSONResponse ¶
type UploadEnvironmentLogdefaultApplicationProblemPlusJSONResponse struct {
Body Problem
StatusCode int
}
func (UploadEnvironmentLogdefaultApplicationProblemPlusJSONResponse) VisitUploadEnvironmentLogResponse ¶
func (response UploadEnvironmentLogdefaultApplicationProblemPlusJSONResponse) VisitUploadEnvironmentLogResponse(w http.ResponseWriter) error
type UploadTranscript200JSONResponse ¶
type UploadTranscript200JSONResponse TranscriptUpload
func (UploadTranscript200JSONResponse) VisitUploadTranscriptResponse ¶
func (response UploadTranscript200JSONResponse) VisitUploadTranscriptResponse(w http.ResponseWriter) error
type UploadTranscript400ApplicationProblemPlusJSONResponse ¶
type UploadTranscript400ApplicationProblemPlusJSONResponse struct {
BadRequestApplicationProblemPlusJSONResponse
}
func (UploadTranscript400ApplicationProblemPlusJSONResponse) VisitUploadTranscriptResponse ¶
func (response UploadTranscript400ApplicationProblemPlusJSONResponse) VisitUploadTranscriptResponse(w http.ResponseWriter) error
type UploadTranscript401ApplicationProblemPlusJSONResponse ¶
type UploadTranscript401ApplicationProblemPlusJSONResponse struct {
}
func (UploadTranscript401ApplicationProblemPlusJSONResponse) VisitUploadTranscriptResponse ¶
func (response UploadTranscript401ApplicationProblemPlusJSONResponse) VisitUploadTranscriptResponse(w http.ResponseWriter) error
type UploadTranscript403ApplicationProblemPlusJSONResponse ¶
type UploadTranscript403ApplicationProblemPlusJSONResponse struct {
ForbiddenApplicationProblemPlusJSONResponse
}
func (UploadTranscript403ApplicationProblemPlusJSONResponse) VisitUploadTranscriptResponse ¶
func (response UploadTranscript403ApplicationProblemPlusJSONResponse) VisitUploadTranscriptResponse(w http.ResponseWriter) error
type UploadTranscript404ApplicationProblemPlusJSONResponse ¶
type UploadTranscript404ApplicationProblemPlusJSONResponse struct {
NotFoundApplicationProblemPlusJSONResponse
}
func (UploadTranscript404ApplicationProblemPlusJSONResponse) VisitUploadTranscriptResponse ¶
func (response UploadTranscript404ApplicationProblemPlusJSONResponse) VisitUploadTranscriptResponse(w http.ResponseWriter) error
type UploadTranscript413ApplicationProblemPlusJSONResponse ¶
type UploadTranscript413ApplicationProblemPlusJSONResponse struct {
PayloadTooLargeApplicationProblemPlusJSONResponse
}
func (UploadTranscript413ApplicationProblemPlusJSONResponse) VisitUploadTranscriptResponse ¶
func (response UploadTranscript413ApplicationProblemPlusJSONResponse) VisitUploadTranscriptResponse(w http.ResponseWriter) error
type UploadTranscriptResponseObject ¶
type UploadTranscriptResponseObject interface {
VisitUploadTranscriptResponse(w http.ResponseWriter) error
}
type UploadTranscriptdefaultApplicationProblemPlusJSONResponse ¶
type UploadTranscriptdefaultApplicationProblemPlusJSONResponse struct {
Body Problem
StatusCode int
}
func (UploadTranscriptdefaultApplicationProblemPlusJSONResponse) VisitUploadTranscriptResponse ¶
func (response UploadTranscriptdefaultApplicationProblemPlusJSONResponse) VisitUploadTranscriptResponse(w http.ResponseWriter) error
type UsageDelta ¶
type UsageDelta struct {
CostUSD *float32 `json:"costUSD,omitempty"`
InputTokens *int64 `json:"inputTokens,omitempty"`
OutputTokens *int64 `json:"outputTokens,omitempty"`
}
UsageDelta Usage since the previous heartbeat. `costUSD` is null for subscription runs.
type VersionSource ¶
type VersionSource = v1alpha1.VersionSource
VersionSource VersionSource is where an environment's component versions come from.
type Webhook ¶
Webhook Webhook is where the provider's webhook is mounted, and the secret that signs it.
type WorkItemClosed ¶
type WorkItemClosed = v1alpha1.WorkItemClosed
WorkItemClosed WorkItemClosed records why and when an admin closed a work item.
type WorkItemDeleted ¶
type WorkItemDeleted struct {
// Deleted How many objects of each kind were deleted (Task, Run, Effect, Event, …).
Deleted map[string]int `json:"deleted"`
WorkItem string `json:"workItem"`
}
WorkItemDeleted What deleting a work item removed, by kind.
type WorkItemDetail ¶
type WorkItemDetail struct {
Effects []Effect `json:"effects"`
Events []Event `json:"events"`
Runs []Run `json:"runs"`
Tasks []Task `json:"tasks"`
// WorkItem WorkItem groups the provider objects that are about one piece of work.
WorkItem WorkItem `json:"workItem"`
}
WorkItemDetail A work item and its timeline.
type WorkItemList ¶
type WorkItemList struct {
Items []WorkItem `json:"items"`
// NextCursor Absent on the last page.
NextCursor *string `json:"nextCursor,omitempty"`
}
WorkItemList A page of work items.
type WorkItemSpec ¶
type WorkItemSpec = v1alpha1.WorkItemSpec
WorkItemSpec WorkItemSpec is the spec of a WorkItem.
type WorkItemStatus ¶
type WorkItemStatus = v1alpha1.WorkItemStatus
WorkItemStatus WorkItemStatus is the work item's state, set only by rules and controllers.