Documentation ¶
Overview ¶
Package gen provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func RegisterHandlers(router EchoRouter, si ServerInterface)
- func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
- type APIError
- type APIErrors
- type APIResourceMeta
- type CreateTenantRequest
- type EchoRouter
- type Event
- type EventData
- type EventDataGet200JSONResponse
- type EventDataGet400JSONResponse
- type EventDataGet403JSONResponse
- type EventDataGetRequestObject
- type EventDataGetResponseObject
- type EventKey
- type EventKeyList
- type EventKeyList200JSONResponse
- type EventKeyList400JSONResponse
- type EventKeyList403JSONResponse
- type EventKeyListRequestObject
- type EventKeyListResponseObject
- type EventList
- type EventList200JSONResponse
- type EventList400JSONResponse
- type EventList403JSONResponse
- type EventListParams
- type EventListRequestObject
- type EventListResponseObject
- type EventOrderByDirection
- type EventOrderByField
- type EventUpdateReplay200JSONResponse
- type EventUpdateReplay400JSONResponse
- type EventUpdateReplay403JSONResponse
- type EventUpdateReplayJSONRequestBody
- type EventUpdateReplayRequestObject
- type EventUpdateReplayResponseObject
- type EventWorkflowRunSummary
- type Job
- type JobRun
- type JobRunStatus
- type PaginationResponse
- type ReplayEventRequest
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) EventDataGet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) EventKeyList(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) EventList(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) EventUpdateReplay(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) TenantCreate(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) TenantMembershipsList(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UserCreate(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UserGetCurrent(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UserUpdateLogin(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UserUpdateLogout(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) WorkerGet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) WorkerList(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) WorkflowGet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) WorkflowList(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) WorkflowRunGet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) WorkflowRunList(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) WorkflowVersionGet(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) WorkflowVersionGetDefinition(ctx echo.Context) error
- type Step
- type StepRun
- type StepRunStatus
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type Tenant
- type TenantCreate200JSONResponse
- type TenantCreate400JSONResponse
- type TenantCreate403JSONResponse
- type TenantCreateJSONRequestBody
- type TenantCreateRequestObject
- type TenantCreateResponseObject
- type TenantMember
- type TenantMemberRole
- type TenantMembershipsList200JSONResponse
- type TenantMembershipsList400JSONResponse
- type TenantMembershipsList403JSONResponse
- type TenantMembershipsListRequestObject
- type TenantMembershipsListResponseObject
- type User
- type UserCreate200JSONResponse
- type UserCreate400JSONResponse
- type UserCreate401JSONResponse
- type UserCreate405JSONResponse
- type UserCreateJSONRequestBody
- type UserCreateRequestObject
- type UserCreateResponseObject
- type UserGetCurrent200JSONResponse
- type UserGetCurrent400JSONResponse
- type UserGetCurrent401JSONResponse
- type UserGetCurrent405JSONResponse
- type UserGetCurrentRequestObject
- type UserGetCurrentResponseObject
- type UserLoginRequest
- type UserRegisterRequest
- type UserTenantMembershipsList
- type UserTenantPublic
- type UserUpdateLogin200JSONResponse
- type UserUpdateLogin400JSONResponse
- type UserUpdateLogin401JSONResponse
- type UserUpdateLogin405JSONResponse
- type UserUpdateLoginJSONRequestBody
- type UserUpdateLoginRequestObject
- type UserUpdateLoginResponseObject
- type UserUpdateLogout200JSONResponse
- type UserUpdateLogout400JSONResponse
- type UserUpdateLogout401JSONResponse
- type UserUpdateLogout405JSONResponse
- type UserUpdateLogoutRequestObject
- type UserUpdateLogoutResponseObject
- type Worker
- type WorkerGet200JSONResponse
- type WorkerGet400JSONResponse
- type WorkerGet403JSONResponse
- type WorkerGetRequestObject
- type WorkerGetResponseObject
- type WorkerList
- type WorkerList200JSONResponse
- type WorkerList400JSONResponse
- type WorkerList403JSONResponse
- type WorkerListRequestObject
- type WorkerListResponseObject
- type Workflow
- type WorkflowGet200JSONResponse
- type WorkflowGet400JSONResponse
- type WorkflowGet403JSONResponse
- type WorkflowGetRequestObject
- type WorkflowGetResponseObject
- type WorkflowList
- type WorkflowList200JSONResponse
- type WorkflowList400JSONResponse
- type WorkflowList403JSONResponse
- type WorkflowListRequestObject
- type WorkflowListResponseObject
- type WorkflowRun
- type WorkflowRunGet200JSONResponse
- type WorkflowRunGet400JSONResponse
- type WorkflowRunGet403JSONResponse
- type WorkflowRunGetRequestObject
- type WorkflowRunGetResponseObject
- type WorkflowRunList
- type WorkflowRunList200JSONResponse
- type WorkflowRunList400JSONResponse
- type WorkflowRunList403JSONResponse
- type WorkflowRunListParams
- type WorkflowRunListRequestObject
- type WorkflowRunListResponseObject
- type WorkflowRunStatus
- type WorkflowRunTriggeredBy
- type WorkflowTag
- type WorkflowTriggerCronRef
- type WorkflowTriggerEventRef
- type WorkflowTriggers
- type WorkflowVersion
- type WorkflowVersionDefinition
- type WorkflowVersionGet200JSONResponse
- type WorkflowVersionGet400JSONResponse
- type WorkflowVersionGet403JSONResponse
- type WorkflowVersionGet404JSONResponse
- type WorkflowVersionGetDefinition200JSONResponse
- type WorkflowVersionGetDefinition400JSONResponse
- type WorkflowVersionGetDefinition403JSONResponse
- type WorkflowVersionGetDefinition404JSONResponse
- type WorkflowVersionGetDefinitionParams
- type WorkflowVersionGetDefinitionRequestObject
- type WorkflowVersionGetDefinitionResponseObject
- type WorkflowVersionGetParams
- type WorkflowVersionGetRequestObject
- type WorkflowVersionGetResponseObject
- type WorkflowVersionMeta
Constants ¶
const ( BearerAuthScopes = "bearerAuth.Scopes" CookieAuthScopes = "cookieAuth.Scopes" )
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
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)
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
Types ¶
type APIError ¶
type APIError struct { // Code a custom Hatchet error code Code *uint64 `json:"code,omitempty"` // Description a description for this error Description string `json:"description"` // DocsLink a link to the documentation for this error, if it exists DocsLink *string `json:"docs_link,omitempty"` // Field the field that this error is associated with, if applicable Field *string `json:"field,omitempty"` }
APIError defines model for APIError.
type APIErrors ¶
type APIErrors struct {
Errors []APIError `json:"errors"`
}
APIErrors defines model for APIErrors.
type APIResourceMeta ¶
type APIResourceMeta struct { // CreatedAt the time that this resource was created CreatedAt time.Time `json:"createdAt"` // Id the id of this resource, in UUID format Id openapi_types.UUID `json:"id"` // UpdatedAt the time that this resource was last updated UpdatedAt time.Time `json:"updatedAt"` }
APIResourceMeta defines model for APIResourceMeta.
type CreateTenantRequest ¶
type CreateTenantRequest struct { // Name The name of the tenant. Name string `json:"name" validate:"required"` // Slug The slug of the tenant. Slug string `json:"slug" validate:"required,hatchetName"` }
CreateTenantRequest defines model for CreateTenantRequest.
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 Event ¶
type Event struct { // Key The key for the event. Key string `json:"key"` Metadata APIResourceMeta `json:"metadata"` Tenant *Tenant `json:"tenant,omitempty"` // TenantId The ID of the tenant associated with this event. TenantId string `json:"tenantId"` WorkflowRunSummary *EventWorkflowRunSummary `json:"workflowRunSummary,omitempty"` }
Event defines model for Event.
type EventData ¶
type EventData struct { // Data The data for the event (JSON bytes). Data string `json:"data"` }
EventData defines model for EventData.
type EventDataGet200JSONResponse ¶
type EventDataGet200JSONResponse EventData
func (EventDataGet200JSONResponse) VisitEventDataGetResponse ¶
func (response EventDataGet200JSONResponse) VisitEventDataGetResponse(w http.ResponseWriter) error
type EventDataGet400JSONResponse ¶
type EventDataGet400JSONResponse APIErrors
func (EventDataGet400JSONResponse) VisitEventDataGetResponse ¶
func (response EventDataGet400JSONResponse) VisitEventDataGetResponse(w http.ResponseWriter) error
type EventDataGet403JSONResponse ¶
type EventDataGet403JSONResponse APIErrors
func (EventDataGet403JSONResponse) VisitEventDataGetResponse ¶
func (response EventDataGet403JSONResponse) VisitEventDataGetResponse(w http.ResponseWriter) error
type EventDataGetRequestObject ¶
type EventDataGetRequestObject struct {
Event openapi_types.UUID `json:"event"`
}
type EventDataGetResponseObject ¶
type EventDataGetResponseObject interface {
VisitEventDataGetResponse(w http.ResponseWriter) error
}
type EventKeyList ¶
type EventKeyList struct { Pagination *PaginationResponse `json:"pagination,omitempty"` Rows *[]EventKey `json:"rows,omitempty"` }
EventKeyList defines model for EventKeyList.
type EventKeyList200JSONResponse ¶
type EventKeyList200JSONResponse EventKeyList
func (EventKeyList200JSONResponse) VisitEventKeyListResponse ¶
func (response EventKeyList200JSONResponse) VisitEventKeyListResponse(w http.ResponseWriter) error
type EventKeyList400JSONResponse ¶
type EventKeyList400JSONResponse APIErrors
func (EventKeyList400JSONResponse) VisitEventKeyListResponse ¶
func (response EventKeyList400JSONResponse) VisitEventKeyListResponse(w http.ResponseWriter) error
type EventKeyList403JSONResponse ¶
type EventKeyList403JSONResponse APIErrors
func (EventKeyList403JSONResponse) VisitEventKeyListResponse ¶
func (response EventKeyList403JSONResponse) VisitEventKeyListResponse(w http.ResponseWriter) error
type EventKeyListRequestObject ¶
type EventKeyListRequestObject struct {
Tenant openapi_types.UUID `json:"tenant"`
}
type EventKeyListResponseObject ¶
type EventKeyListResponseObject interface {
VisitEventKeyListResponse(w http.ResponseWriter) error
}
type EventList ¶
type EventList struct { Pagination *PaginationResponse `json:"pagination,omitempty"` Rows *[]Event `json:"rows,omitempty"` }
EventList defines model for EventList.
type EventList200JSONResponse ¶
type EventList200JSONResponse EventList
func (EventList200JSONResponse) VisitEventListResponse ¶
func (response EventList200JSONResponse) VisitEventListResponse(w http.ResponseWriter) error
type EventList400JSONResponse ¶
type EventList400JSONResponse APIErrors
func (EventList400JSONResponse) VisitEventListResponse ¶
func (response EventList400JSONResponse) VisitEventListResponse(w http.ResponseWriter) error
type EventList403JSONResponse ¶
type EventList403JSONResponse APIErrors
func (EventList403JSONResponse) VisitEventListResponse ¶
func (response EventList403JSONResponse) VisitEventListResponse(w http.ResponseWriter) error
type EventListParams ¶
type EventListParams struct { // Offset The number to skip Offset *int64 `form:"offset,omitempty" json:"offset,omitempty"` // Limit The number to limit by Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"` // Keys A list of keys to filter by Keys *[]EventKey `form:"keys,omitempty" json:"keys,omitempty"` // OrderByField What to order by OrderByField *EventOrderByField `form:"orderByField,omitempty" json:"orderByField,omitempty"` // OrderByDirection The order direction OrderByDirection *EventOrderByDirection `form:"orderByDirection,omitempty" json:"orderByDirection,omitempty"` }
EventListParams defines parameters for EventList.
type EventListRequestObject ¶
type EventListRequestObject struct { Tenant openapi_types.UUID `json:"tenant"` Params EventListParams }
type EventListResponseObject ¶
type EventListResponseObject interface {
VisitEventListResponse(w http.ResponseWriter) error
}
type EventOrderByDirection ¶
type EventOrderByDirection string
EventOrderByDirection defines model for EventOrderByDirection.
const ( Asc EventOrderByDirection = "asc" Desc EventOrderByDirection = "desc" )
Defines values for EventOrderByDirection.
type EventOrderByField ¶
type EventOrderByField string
EventOrderByField defines model for EventOrderByField.
const (
CreatedAt EventOrderByField = "createdAt"
)
Defines values for EventOrderByField.
type EventUpdateReplay200JSONResponse ¶
type EventUpdateReplay200JSONResponse EventList
func (EventUpdateReplay200JSONResponse) VisitEventUpdateReplayResponse ¶
func (response EventUpdateReplay200JSONResponse) VisitEventUpdateReplayResponse(w http.ResponseWriter) error
type EventUpdateReplay400JSONResponse ¶
type EventUpdateReplay400JSONResponse APIErrors
func (EventUpdateReplay400JSONResponse) VisitEventUpdateReplayResponse ¶
func (response EventUpdateReplay400JSONResponse) VisitEventUpdateReplayResponse(w http.ResponseWriter) error
type EventUpdateReplay403JSONResponse ¶
type EventUpdateReplay403JSONResponse APIErrors
func (EventUpdateReplay403JSONResponse) VisitEventUpdateReplayResponse ¶
func (response EventUpdateReplay403JSONResponse) VisitEventUpdateReplayResponse(w http.ResponseWriter) error
type EventUpdateReplayJSONRequestBody ¶
type EventUpdateReplayJSONRequestBody = ReplayEventRequest
EventUpdateReplayJSONRequestBody defines body for EventUpdateReplay for application/json ContentType.
type EventUpdateReplayRequestObject ¶
type EventUpdateReplayRequestObject struct { Tenant openapi_types.UUID `json:"tenant"` Body *EventUpdateReplayJSONRequestBody }
type EventUpdateReplayResponseObject ¶
type EventUpdateReplayResponseObject interface {
VisitEventUpdateReplayResponse(w http.ResponseWriter) error
}
type EventWorkflowRunSummary ¶
type EventWorkflowRunSummary struct { // Failed The number of failed runs. Failed *int64 `json:"failed,omitempty"` // Pending The number of pending runs. Pending *int64 `json:"pending,omitempty"` // Running The number of running runs. Running *int64 `json:"running,omitempty"` // Succeeded The number of succeeded runs. Succeeded *int64 `json:"succeeded,omitempty"` }
EventWorkflowRunSummary defines model for EventWorkflowRunSummary.
type Job ¶
type Job struct { // Description The description of the job. Description *string `json:"description,omitempty"` Metadata APIResourceMeta `json:"metadata"` Name string `json:"name"` Steps []Step `json:"steps"` TenantId string `json:"tenantId"` // Timeout The timeout of the job. Timeout *string `json:"timeout,omitempty"` VersionId string `json:"versionId"` }
Job defines model for Job.
type JobRun ¶
type JobRun struct { CancelledAt *time.Time `json:"cancelledAt,omitempty"` CancelledError *string `json:"cancelledError,omitempty"` CancelledReason *string `json:"cancelledReason,omitempty"` FinishedAt *time.Time `json:"finishedAt,omitempty"` Job *Job `json:"job,omitempty"` JobId string `json:"jobId"` Metadata APIResourceMeta `json:"metadata"` Result *map[string]interface{} `json:"result,omitempty"` StartedAt *time.Time `json:"startedAt,omitempty"` Status JobRunStatus `json:"status"` StepRuns *[]StepRun `json:"stepRuns,omitempty"` TenantId string `json:"tenantId"` TickerId *string `json:"tickerId,omitempty"` TimeoutAt *time.Time `json:"timeoutAt,omitempty"` WorkflowRun *WorkflowRun `json:"workflowRun,omitempty"` WorkflowRunId string `json:"workflowRunId"` }
JobRun defines model for JobRun.
type JobRunStatus ¶
type JobRunStatus string
JobRunStatus defines model for JobRunStatus.
const ( JobRunStatusCANCELLED JobRunStatus = "CANCELLED" JobRunStatusFAILED JobRunStatus = "FAILED" JobRunStatusPENDING JobRunStatus = "PENDING" JobRunStatusRUNNING JobRunStatus = "RUNNING" JobRunStatusSUCCEEDED JobRunStatus = "SUCCEEDED" )
Defines values for JobRunStatus.
type PaginationResponse ¶
type PaginationResponse struct { // CurrentPage the current page CurrentPage *int64 `json:"current_page,omitempty"` // NextPage the next page NextPage *int64 `json:"next_page,omitempty"` // NumPages the total number of pages for listing NumPages *int64 `json:"num_pages,omitempty"` }
PaginationResponse defines model for PaginationResponse.
type ReplayEventRequest ¶
type ReplayEventRequest struct {
EventIds []openapi_types.UUID `json:"eventIds"`
}
ReplayEventRequest defines model for ReplayEventRequest.
type ServerInterface ¶
type ServerInterface interface { // Get event data // (GET /api/v1/events/{event}/data) EventDataGet(ctx echo.Context, event openapi_types.UUID) error // Create tenant // (POST /api/v1/tenants) TenantCreate(ctx echo.Context) error // List events // (GET /api/v1/tenants/{tenant}/events) EventList(ctx echo.Context, tenant openapi_types.UUID, params EventListParams) error // List event keys // (GET /api/v1/tenants/{tenant}/events/keys) EventKeyList(ctx echo.Context, tenant openapi_types.UUID) error // Replay events // (POST /api/v1/tenants/{tenant}/events/replay) EventUpdateReplay(ctx echo.Context, tenant openapi_types.UUID) error // Get workers // (GET /api/v1/tenants/{tenant}/worker) WorkerList(ctx echo.Context, tenant openapi_types.UUID) error // Get workflow run // (GET /api/v1/tenants/{tenant}/workflow-runs/{workflow-run}) WorkflowRunGet(ctx echo.Context, tenant openapi_types.UUID, workflowRun openapi_types.UUID) error // Get workflows // (GET /api/v1/tenants/{tenant}/workflows) WorkflowList(ctx echo.Context, tenant openapi_types.UUID) error // Get workflow runs // (GET /api/v1/tenants/{tenant}/workflows/runs) WorkflowRunList(ctx echo.Context, tenant openapi_types.UUID, params WorkflowRunListParams) error // Get current user // (GET /api/v1/users/current) UserGetCurrent(ctx echo.Context) error // Login user // (POST /api/v1/users/login) UserUpdateLogin(ctx echo.Context) error // Logout user // (POST /api/v1/users/logout) UserUpdateLogout(ctx echo.Context) error // List tenant memberships // (GET /api/v1/users/memberships) TenantMembershipsList(ctx echo.Context) error // Register user // (POST /api/v1/users/register) UserCreate(ctx echo.Context) error // Get worker // (GET /api/v1/workers/{worker}) WorkerGet(ctx echo.Context, worker openapi_types.UUID) error // Get workflow // (GET /api/v1/workflows/{workflow}) WorkflowGet(ctx echo.Context, workflow openapi_types.UUID) error // Get workflow version // (GET /api/v1/workflows/{workflow}/versions) WorkflowVersionGet(ctx echo.Context, workflow openapi_types.UUID, params WorkflowVersionGetParams) error // Get workflow version definition // (GET /api/v1/workflows/{workflow}/versions/definition) WorkflowVersionGetDefinition(ctx echo.Context, workflow openapi_types.UUID, params WorkflowVersionGetDefinitionParams) 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) EventDataGet ¶
func (w *ServerInterfaceWrapper) EventDataGet(ctx echo.Context) error
EventDataGet converts echo context to params.
func (*ServerInterfaceWrapper) EventKeyList ¶
func (w *ServerInterfaceWrapper) EventKeyList(ctx echo.Context) error
EventKeyList converts echo context to params.
func (*ServerInterfaceWrapper) EventList ¶
func (w *ServerInterfaceWrapper) EventList(ctx echo.Context) error
EventList converts echo context to params.
func (*ServerInterfaceWrapper) EventUpdateReplay ¶
func (w *ServerInterfaceWrapper) EventUpdateReplay(ctx echo.Context) error
EventUpdateReplay converts echo context to params.
func (*ServerInterfaceWrapper) TenantCreate ¶
func (w *ServerInterfaceWrapper) TenantCreate(ctx echo.Context) error
TenantCreate converts echo context to params.
func (*ServerInterfaceWrapper) TenantMembershipsList ¶
func (w *ServerInterfaceWrapper) TenantMembershipsList(ctx echo.Context) error
TenantMembershipsList converts echo context to params.
func (*ServerInterfaceWrapper) UserCreate ¶
func (w *ServerInterfaceWrapper) UserCreate(ctx echo.Context) error
UserCreate converts echo context to params.
func (*ServerInterfaceWrapper) UserGetCurrent ¶
func (w *ServerInterfaceWrapper) UserGetCurrent(ctx echo.Context) error
UserGetCurrent converts echo context to params.
func (*ServerInterfaceWrapper) UserUpdateLogin ¶
func (w *ServerInterfaceWrapper) UserUpdateLogin(ctx echo.Context) error
UserUpdateLogin converts echo context to params.
func (*ServerInterfaceWrapper) UserUpdateLogout ¶
func (w *ServerInterfaceWrapper) UserUpdateLogout(ctx echo.Context) error
UserUpdateLogout converts echo context to params.
func (*ServerInterfaceWrapper) WorkerGet ¶
func (w *ServerInterfaceWrapper) WorkerGet(ctx echo.Context) error
WorkerGet converts echo context to params.
func (*ServerInterfaceWrapper) WorkerList ¶
func (w *ServerInterfaceWrapper) WorkerList(ctx echo.Context) error
WorkerList converts echo context to params.
func (*ServerInterfaceWrapper) WorkflowGet ¶
func (w *ServerInterfaceWrapper) WorkflowGet(ctx echo.Context) error
WorkflowGet converts echo context to params.
func (*ServerInterfaceWrapper) WorkflowList ¶
func (w *ServerInterfaceWrapper) WorkflowList(ctx echo.Context) error
WorkflowList converts echo context to params.
func (*ServerInterfaceWrapper) WorkflowRunGet ¶
func (w *ServerInterfaceWrapper) WorkflowRunGet(ctx echo.Context) error
WorkflowRunGet converts echo context to params.
func (*ServerInterfaceWrapper) WorkflowRunList ¶
func (w *ServerInterfaceWrapper) WorkflowRunList(ctx echo.Context) error
WorkflowRunList converts echo context to params.
func (*ServerInterfaceWrapper) WorkflowVersionGet ¶
func (w *ServerInterfaceWrapper) WorkflowVersionGet(ctx echo.Context) error
WorkflowVersionGet converts echo context to params.
func (*ServerInterfaceWrapper) WorkflowVersionGetDefinition ¶
func (w *ServerInterfaceWrapper) WorkflowVersionGetDefinition(ctx echo.Context) error
WorkflowVersionGetDefinition converts echo context to params.
type Step ¶
type Step struct { Action string `json:"action"` JobId string `json:"jobId"` Metadata APIResourceMeta `json:"metadata"` NextId string `json:"nextId"` // ReadableId The readable id of the step. ReadableId string `json:"readableId"` TenantId string `json:"tenantId"` // Timeout The timeout of the step. Timeout *string `json:"timeout,omitempty"` }
Step defines model for Step.
type StepRun ¶
type StepRun struct { CancelledAt *time.Time `json:"cancelledAt,omitempty"` CancelledError *string `json:"cancelledError,omitempty"` CancelledReason *string `json:"cancelledReason,omitempty"` Error *string `json:"error,omitempty"` FinishedAt *time.Time `json:"finishedAt,omitempty"` Input *string `json:"input,omitempty"` JobRun *JobRun `json:"jobRun,omitempty"` JobRunId string `json:"jobRunId"` Metadata APIResourceMeta `json:"metadata"` NextId *string `json:"nextId,omitempty"` Output *string `json:"output,omitempty"` PrevId *string `json:"prevId,omitempty"` RequeueAfter *time.Time `json:"requeueAfter,omitempty"` Result *map[string]interface{} `json:"result,omitempty"` StartedAt *time.Time `json:"startedAt,omitempty"` Status StepRunStatus `json:"status"` Step *Step `json:"step,omitempty"` StepId string `json:"stepId"` TenantId string `json:"tenantId"` TimeoutAt *time.Time `json:"timeoutAt,omitempty"` WorkerId *string `json:"workerId,omitempty"` }
StepRun defines model for StepRun.
type StepRunStatus ¶
type StepRunStatus string
StepRunStatus defines model for StepRunStatus.
const ( StepRunStatusASSIGNED StepRunStatus = "ASSIGNED" StepRunStatusCancelled StepRunStatus = "CANCELLED" StepRunStatusFAILED StepRunStatus = "FAILED" StepRunStatusPENDING StepRunStatus = "PENDING" StepRunStatusPENDINGASSIGNMENT StepRunStatus = "PENDING_ASSIGNMENT" StepRunStatusRUNNING StepRunStatus = "RUNNING" StepRunStatusSUCCEEDED StepRunStatus = "SUCCEEDED" )
Defines values for StepRunStatus.
type StrictHandlerFunc ¶
type StrictHandlerFunc func(ctx echo.Context, args interface{}) (interface{}, error)
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc
type StrictServerInterface ¶
type StrictServerInterface interface { EventDataGet(ctx echo.Context, request EventDataGetRequestObject) (EventDataGetResponseObject, error) TenantCreate(ctx echo.Context, request TenantCreateRequestObject) (TenantCreateResponseObject, error) EventList(ctx echo.Context, request EventListRequestObject) (EventListResponseObject, error) EventKeyList(ctx echo.Context, request EventKeyListRequestObject) (EventKeyListResponseObject, error) EventUpdateReplay(ctx echo.Context, request EventUpdateReplayRequestObject) (EventUpdateReplayResponseObject, error) WorkerList(ctx echo.Context, request WorkerListRequestObject) (WorkerListResponseObject, error) WorkflowRunGet(ctx echo.Context, request WorkflowRunGetRequestObject) (WorkflowRunGetResponseObject, error) WorkflowList(ctx echo.Context, request WorkflowListRequestObject) (WorkflowListResponseObject, error) WorkflowRunList(ctx echo.Context, request WorkflowRunListRequestObject) (WorkflowRunListResponseObject, error) UserGetCurrent(ctx echo.Context, request UserGetCurrentRequestObject) (UserGetCurrentResponseObject, error) UserUpdateLogin(ctx echo.Context, request UserUpdateLoginRequestObject) (UserUpdateLoginResponseObject, error) UserUpdateLogout(ctx echo.Context, request UserUpdateLogoutRequestObject) (UserUpdateLogoutResponseObject, error) TenantMembershipsList(ctx echo.Context, request TenantMembershipsListRequestObject) (TenantMembershipsListResponseObject, error) UserCreate(ctx echo.Context, request UserCreateRequestObject) (UserCreateResponseObject, error) WorkerGet(ctx echo.Context, request WorkerGetRequestObject) (WorkerGetResponseObject, error) WorkflowGet(ctx echo.Context, request WorkflowGetRequestObject) (WorkflowGetResponseObject, error) WorkflowVersionGet(ctx echo.Context, request WorkflowVersionGetRequestObject) (WorkflowVersionGetResponseObject, error) WorkflowVersionGetDefinition(ctx echo.Context, request WorkflowVersionGetDefinitionRequestObject) (WorkflowVersionGetDefinitionResponseObject, error) }
type Tenant ¶
type Tenant struct { Metadata APIResourceMeta `json:"metadata"` // Name The name of the tenant. Name string `json:"name"` // Slug The slug of the tenant. Slug string `json:"slug"` }
Tenant defines model for Tenant.
type TenantCreate200JSONResponse ¶
type TenantCreate200JSONResponse Tenant
func (TenantCreate200JSONResponse) VisitTenantCreateResponse ¶
func (response TenantCreate200JSONResponse) VisitTenantCreateResponse(w http.ResponseWriter) error
type TenantCreate400JSONResponse ¶
type TenantCreate400JSONResponse APIErrors
func (TenantCreate400JSONResponse) VisitTenantCreateResponse ¶
func (response TenantCreate400JSONResponse) VisitTenantCreateResponse(w http.ResponseWriter) error
type TenantCreate403JSONResponse ¶
type TenantCreate403JSONResponse APIError
func (TenantCreate403JSONResponse) VisitTenantCreateResponse ¶
func (response TenantCreate403JSONResponse) VisitTenantCreateResponse(w http.ResponseWriter) error
type TenantCreateJSONRequestBody ¶
type TenantCreateJSONRequestBody = CreateTenantRequest
TenantCreateJSONRequestBody defines body for TenantCreate for application/json ContentType.
type TenantCreateRequestObject ¶
type TenantCreateRequestObject struct {
Body *TenantCreateJSONRequestBody
}
type TenantCreateResponseObject ¶
type TenantCreateResponseObject interface {
VisitTenantCreateResponse(w http.ResponseWriter) error
}
type TenantMember ¶
type TenantMember struct { Metadata APIResourceMeta `json:"metadata"` Role TenantMemberRole `json:"role"` Tenant *Tenant `json:"tenant,omitempty"` User UserTenantPublic `json:"user"` }
TenantMember defines model for TenantMember.
type TenantMemberRole ¶
type TenantMemberRole string
TenantMemberRole defines model for TenantMemberRole.
const ( ADMIN TenantMemberRole = "ADMIN" MEMBER TenantMemberRole = "MEMBER" OWNER TenantMemberRole = "OWNER" )
Defines values for TenantMemberRole.
type TenantMembershipsList200JSONResponse ¶
type TenantMembershipsList200JSONResponse UserTenantMembershipsList
func (TenantMembershipsList200JSONResponse) VisitTenantMembershipsListResponse ¶
func (response TenantMembershipsList200JSONResponse) VisitTenantMembershipsListResponse(w http.ResponseWriter) error
type TenantMembershipsList400JSONResponse ¶
type TenantMembershipsList400JSONResponse APIErrors
func (TenantMembershipsList400JSONResponse) VisitTenantMembershipsListResponse ¶
func (response TenantMembershipsList400JSONResponse) VisitTenantMembershipsListResponse(w http.ResponseWriter) error
type TenantMembershipsList403JSONResponse ¶
type TenantMembershipsList403JSONResponse APIErrors
func (TenantMembershipsList403JSONResponse) VisitTenantMembershipsListResponse ¶
func (response TenantMembershipsList403JSONResponse) VisitTenantMembershipsListResponse(w http.ResponseWriter) error
type TenantMembershipsListRequestObject ¶
type TenantMembershipsListRequestObject struct { }
type TenantMembershipsListResponseObject ¶
type TenantMembershipsListResponseObject interface {
VisitTenantMembershipsListResponse(w http.ResponseWriter) error
}
type User ¶
type User struct { // Email The email address of the user. Email openapi_types.Email `json:"email"` // EmailVerified Whether the user has verified their email address. EmailVerified bool `json:"emailVerified"` Metadata APIResourceMeta `json:"metadata"` // Name The display name of the user. Name *string `json:"name,omitempty"` }
User defines model for User.
type UserCreate200JSONResponse ¶
type UserCreate200JSONResponse User
func (UserCreate200JSONResponse) VisitUserCreateResponse ¶
func (response UserCreate200JSONResponse) VisitUserCreateResponse(w http.ResponseWriter) error
type UserCreate400JSONResponse ¶
type UserCreate400JSONResponse APIErrors
func (UserCreate400JSONResponse) VisitUserCreateResponse ¶
func (response UserCreate400JSONResponse) VisitUserCreateResponse(w http.ResponseWriter) error
type UserCreate401JSONResponse ¶
type UserCreate401JSONResponse APIErrors
func (UserCreate401JSONResponse) VisitUserCreateResponse ¶
func (response UserCreate401JSONResponse) VisitUserCreateResponse(w http.ResponseWriter) error
type UserCreate405JSONResponse ¶
type UserCreate405JSONResponse APIErrors
func (UserCreate405JSONResponse) VisitUserCreateResponse ¶
func (response UserCreate405JSONResponse) VisitUserCreateResponse(w http.ResponseWriter) error
type UserCreateJSONRequestBody ¶
type UserCreateJSONRequestBody = UserRegisterRequest
UserCreateJSONRequestBody defines body for UserCreate for application/json ContentType.
type UserCreateRequestObject ¶
type UserCreateRequestObject struct {
Body *UserCreateJSONRequestBody
}
type UserCreateResponseObject ¶
type UserCreateResponseObject interface {
VisitUserCreateResponse(w http.ResponseWriter) error
}
type UserGetCurrent200JSONResponse ¶
type UserGetCurrent200JSONResponse User
func (UserGetCurrent200JSONResponse) VisitUserGetCurrentResponse ¶
func (response UserGetCurrent200JSONResponse) VisitUserGetCurrentResponse(w http.ResponseWriter) error
type UserGetCurrent400JSONResponse ¶
type UserGetCurrent400JSONResponse APIErrors
func (UserGetCurrent400JSONResponse) VisitUserGetCurrentResponse ¶
func (response UserGetCurrent400JSONResponse) VisitUserGetCurrentResponse(w http.ResponseWriter) error
type UserGetCurrent401JSONResponse ¶
type UserGetCurrent401JSONResponse APIErrors
func (UserGetCurrent401JSONResponse) VisitUserGetCurrentResponse ¶
func (response UserGetCurrent401JSONResponse) VisitUserGetCurrentResponse(w http.ResponseWriter) error
type UserGetCurrent405JSONResponse ¶
type UserGetCurrent405JSONResponse APIErrors
func (UserGetCurrent405JSONResponse) VisitUserGetCurrentResponse ¶
func (response UserGetCurrent405JSONResponse) VisitUserGetCurrentResponse(w http.ResponseWriter) error
type UserGetCurrentRequestObject ¶
type UserGetCurrentRequestObject struct { }
type UserGetCurrentResponseObject ¶
type UserGetCurrentResponseObject interface {
VisitUserGetCurrentResponse(w http.ResponseWriter) error
}
type UserLoginRequest ¶
type UserLoginRequest struct { // Email The email address of the user. Email openapi_types.Email `json:"email" validate:"required,email"` // Password The password of the user. Password string `json:"password" validate:"required,password"` }
UserLoginRequest defines model for UserLoginRequest.
type UserRegisterRequest ¶
type UserRegisterRequest struct { // Email The email address of the user. Email openapi_types.Email `json:"email" validate:"required,email"` // Name The name of the user. Name string `json:"name"` // Password The password of the user. Password string `json:"password" validate:"required,password"` }
UserRegisterRequest defines model for UserRegisterRequest.
type UserTenantMembershipsList ¶
type UserTenantMembershipsList struct { Pagination *PaginationResponse `json:"pagination,omitempty"` Rows *[]TenantMember `json:"rows,omitempty"` }
UserTenantMembershipsList defines model for UserTenantMembershipsList.
type UserTenantPublic ¶
type UserTenantPublic struct { // Email The email address of the user. Email openapi_types.Email `json:"email"` // Name The display name of the user. Name *string `json:"name,omitempty"` }
UserTenantPublic defines model for UserTenantPublic.
type UserUpdateLogin200JSONResponse ¶
type UserUpdateLogin200JSONResponse User
func (UserUpdateLogin200JSONResponse) VisitUserUpdateLoginResponse ¶
func (response UserUpdateLogin200JSONResponse) VisitUserUpdateLoginResponse(w http.ResponseWriter) error
type UserUpdateLogin400JSONResponse ¶
type UserUpdateLogin400JSONResponse APIErrors
func (UserUpdateLogin400JSONResponse) VisitUserUpdateLoginResponse ¶
func (response UserUpdateLogin400JSONResponse) VisitUserUpdateLoginResponse(w http.ResponseWriter) error
type UserUpdateLogin401JSONResponse ¶
type UserUpdateLogin401JSONResponse APIErrors
func (UserUpdateLogin401JSONResponse) VisitUserUpdateLoginResponse ¶
func (response UserUpdateLogin401JSONResponse) VisitUserUpdateLoginResponse(w http.ResponseWriter) error
type UserUpdateLogin405JSONResponse ¶
type UserUpdateLogin405JSONResponse APIErrors
func (UserUpdateLogin405JSONResponse) VisitUserUpdateLoginResponse ¶
func (response UserUpdateLogin405JSONResponse) VisitUserUpdateLoginResponse(w http.ResponseWriter) error
type UserUpdateLoginJSONRequestBody ¶
type UserUpdateLoginJSONRequestBody = UserLoginRequest
UserUpdateLoginJSONRequestBody defines body for UserUpdateLogin for application/json ContentType.
type UserUpdateLoginRequestObject ¶
type UserUpdateLoginRequestObject struct {
Body *UserUpdateLoginJSONRequestBody
}
type UserUpdateLoginResponseObject ¶
type UserUpdateLoginResponseObject interface {
VisitUserUpdateLoginResponse(w http.ResponseWriter) error
}
type UserUpdateLogout200JSONResponse ¶
type UserUpdateLogout200JSONResponse User
func (UserUpdateLogout200JSONResponse) VisitUserUpdateLogoutResponse ¶
func (response UserUpdateLogout200JSONResponse) VisitUserUpdateLogoutResponse(w http.ResponseWriter) error
type UserUpdateLogout400JSONResponse ¶
type UserUpdateLogout400JSONResponse APIErrors
func (UserUpdateLogout400JSONResponse) VisitUserUpdateLogoutResponse ¶
func (response UserUpdateLogout400JSONResponse) VisitUserUpdateLogoutResponse(w http.ResponseWriter) error
type UserUpdateLogout401JSONResponse ¶
type UserUpdateLogout401JSONResponse APIErrors
func (UserUpdateLogout401JSONResponse) VisitUserUpdateLogoutResponse ¶
func (response UserUpdateLogout401JSONResponse) VisitUserUpdateLogoutResponse(w http.ResponseWriter) error
type UserUpdateLogout405JSONResponse ¶
type UserUpdateLogout405JSONResponse APIErrors
func (UserUpdateLogout405JSONResponse) VisitUserUpdateLogoutResponse ¶
func (response UserUpdateLogout405JSONResponse) VisitUserUpdateLogoutResponse(w http.ResponseWriter) error
type UserUpdateLogoutRequestObject ¶
type UserUpdateLogoutRequestObject struct { }
type UserUpdateLogoutResponseObject ¶
type UserUpdateLogoutResponseObject interface {
VisitUserUpdateLogoutResponse(w http.ResponseWriter) error
}
type Worker ¶
type Worker struct { // Actions The actions this worker can perform. Actions *[]string `json:"actions,omitempty"` // LastHeartbeatAt The time this worker last sent a heartbeat. LastHeartbeatAt *time.Time `json:"lastHeartbeatAt,omitempty"` Metadata APIResourceMeta `json:"metadata"` // Name The name of the worker. Name string `json:"name"` // RecentStepRuns The recent step runs for this worker. RecentStepRuns *[]StepRun `json:"recentStepRuns,omitempty"` }
Worker defines model for Worker.
type WorkerGet200JSONResponse ¶
type WorkerGet200JSONResponse Worker
func (WorkerGet200JSONResponse) VisitWorkerGetResponse ¶
func (response WorkerGet200JSONResponse) VisitWorkerGetResponse(w http.ResponseWriter) error
type WorkerGet400JSONResponse ¶
type WorkerGet400JSONResponse APIErrors
func (WorkerGet400JSONResponse) VisitWorkerGetResponse ¶
func (response WorkerGet400JSONResponse) VisitWorkerGetResponse(w http.ResponseWriter) error
type WorkerGet403JSONResponse ¶
type WorkerGet403JSONResponse APIErrors
func (WorkerGet403JSONResponse) VisitWorkerGetResponse ¶
func (response WorkerGet403JSONResponse) VisitWorkerGetResponse(w http.ResponseWriter) error
type WorkerGetRequestObject ¶
type WorkerGetRequestObject struct {
Worker openapi_types.UUID `json:"worker"`
}
type WorkerGetResponseObject ¶
type WorkerGetResponseObject interface {
VisitWorkerGetResponse(w http.ResponseWriter) error
}
type WorkerList ¶
type WorkerList struct { Pagination *PaginationResponse `json:"pagination,omitempty"` Rows *[]Worker `json:"rows,omitempty"` }
WorkerList defines model for WorkerList.
type WorkerList200JSONResponse ¶
type WorkerList200JSONResponse WorkerList
func (WorkerList200JSONResponse) VisitWorkerListResponse ¶
func (response WorkerList200JSONResponse) VisitWorkerListResponse(w http.ResponseWriter) error
type WorkerList400JSONResponse ¶
type WorkerList400JSONResponse APIErrors
func (WorkerList400JSONResponse) VisitWorkerListResponse ¶
func (response WorkerList400JSONResponse) VisitWorkerListResponse(w http.ResponseWriter) error
type WorkerList403JSONResponse ¶
type WorkerList403JSONResponse APIErrors
func (WorkerList403JSONResponse) VisitWorkerListResponse ¶
func (response WorkerList403JSONResponse) VisitWorkerListResponse(w http.ResponseWriter) error
type WorkerListRequestObject ¶
type WorkerListRequestObject struct {
Tenant openapi_types.UUID `json:"tenant"`
}
type WorkerListResponseObject ¶
type WorkerListResponseObject interface {
VisitWorkerListResponse(w http.ResponseWriter) error
}
type Workflow ¶
type Workflow struct { // Description The description of the workflow. Description *string `json:"description,omitempty"` // Jobs The jobs of the workflow. Jobs *[]Job `json:"jobs,omitempty"` LastRun *WorkflowRun `json:"lastRun,omitempty"` Metadata APIResourceMeta `json:"metadata"` // Name The name of the workflow. Name string `json:"name"` // Tags The tags of the workflow. Tags *[]WorkflowTag `json:"tags,omitempty"` Versions *[]WorkflowVersionMeta `json:"versions,omitempty"` }
Workflow defines model for Workflow.
type WorkflowGet200JSONResponse ¶
type WorkflowGet200JSONResponse Workflow
func (WorkflowGet200JSONResponse) VisitWorkflowGetResponse ¶
func (response WorkflowGet200JSONResponse) VisitWorkflowGetResponse(w http.ResponseWriter) error
type WorkflowGet400JSONResponse ¶
type WorkflowGet400JSONResponse APIErrors
func (WorkflowGet400JSONResponse) VisitWorkflowGetResponse ¶
func (response WorkflowGet400JSONResponse) VisitWorkflowGetResponse(w http.ResponseWriter) error
type WorkflowGet403JSONResponse ¶
type WorkflowGet403JSONResponse APIErrors
func (WorkflowGet403JSONResponse) VisitWorkflowGetResponse ¶
func (response WorkflowGet403JSONResponse) VisitWorkflowGetResponse(w http.ResponseWriter) error
type WorkflowGetRequestObject ¶
type WorkflowGetRequestObject struct {
Workflow openapi_types.UUID `json:"workflow"`
}
type WorkflowGetResponseObject ¶
type WorkflowGetResponseObject interface {
VisitWorkflowGetResponse(w http.ResponseWriter) error
}
type WorkflowList ¶
type WorkflowList struct { Metadata *APIResourceMeta `json:"metadata,omitempty"` Pagination *PaginationResponse `json:"pagination,omitempty"` Rows *[]Workflow `json:"rows,omitempty"` }
WorkflowList defines model for WorkflowList.
type WorkflowList200JSONResponse ¶
type WorkflowList200JSONResponse WorkflowList
func (WorkflowList200JSONResponse) VisitWorkflowListResponse ¶
func (response WorkflowList200JSONResponse) VisitWorkflowListResponse(w http.ResponseWriter) error
type WorkflowList400JSONResponse ¶
type WorkflowList400JSONResponse APIErrors
func (WorkflowList400JSONResponse) VisitWorkflowListResponse ¶
func (response WorkflowList400JSONResponse) VisitWorkflowListResponse(w http.ResponseWriter) error
type WorkflowList403JSONResponse ¶
type WorkflowList403JSONResponse APIErrors
func (WorkflowList403JSONResponse) VisitWorkflowListResponse ¶
func (response WorkflowList403JSONResponse) VisitWorkflowListResponse(w http.ResponseWriter) error
type WorkflowListRequestObject ¶
type WorkflowListRequestObject struct {
Tenant openapi_types.UUID `json:"tenant"`
}
type WorkflowListResponseObject ¶
type WorkflowListResponseObject interface {
VisitWorkflowListResponse(w http.ResponseWriter) error
}
type WorkflowRun ¶
type WorkflowRun struct { Error *string `json:"error,omitempty"` FinishedAt *time.Time `json:"finishedAt,omitempty"` Input *map[string]interface{} `json:"input,omitempty"` JobRuns *[]JobRun `json:"jobRuns,omitempty"` Metadata APIResourceMeta `json:"metadata"` StartedAt *time.Time `json:"startedAt,omitempty"` Status WorkflowRunStatus `json:"status"` TenantId string `json:"tenantId"` TriggeredBy WorkflowRunTriggeredBy `json:"triggeredBy"` WorkflowVersion *WorkflowVersion `json:"workflowVersion,omitempty"` WorkflowVersionId string `json:"workflowVersionId"` }
WorkflowRun defines model for WorkflowRun.
type WorkflowRunGet200JSONResponse ¶
type WorkflowRunGet200JSONResponse WorkflowRun
func (WorkflowRunGet200JSONResponse) VisitWorkflowRunGetResponse ¶
func (response WorkflowRunGet200JSONResponse) VisitWorkflowRunGetResponse(w http.ResponseWriter) error
type WorkflowRunGet400JSONResponse ¶
type WorkflowRunGet400JSONResponse APIErrors
func (WorkflowRunGet400JSONResponse) VisitWorkflowRunGetResponse ¶
func (response WorkflowRunGet400JSONResponse) VisitWorkflowRunGetResponse(w http.ResponseWriter) error
type WorkflowRunGet403JSONResponse ¶
type WorkflowRunGet403JSONResponse APIErrors
func (WorkflowRunGet403JSONResponse) VisitWorkflowRunGetResponse ¶
func (response WorkflowRunGet403JSONResponse) VisitWorkflowRunGetResponse(w http.ResponseWriter) error
type WorkflowRunGetRequestObject ¶
type WorkflowRunGetRequestObject struct { Tenant openapi_types.UUID `json:"tenant"` WorkflowRun openapi_types.UUID `json:"workflow-run"` }
type WorkflowRunGetResponseObject ¶
type WorkflowRunGetResponseObject interface {
VisitWorkflowRunGetResponse(w http.ResponseWriter) error
}
type WorkflowRunList ¶
type WorkflowRunList struct { Pagination *PaginationResponse `json:"pagination,omitempty"` Rows *[]WorkflowRun `json:"rows,omitempty"` }
WorkflowRunList defines model for WorkflowRunList.
type WorkflowRunList200JSONResponse ¶
type WorkflowRunList200JSONResponse WorkflowRunList
func (WorkflowRunList200JSONResponse) VisitWorkflowRunListResponse ¶
func (response WorkflowRunList200JSONResponse) VisitWorkflowRunListResponse(w http.ResponseWriter) error
type WorkflowRunList400JSONResponse ¶
type WorkflowRunList400JSONResponse APIErrors
func (WorkflowRunList400JSONResponse) VisitWorkflowRunListResponse ¶
func (response WorkflowRunList400JSONResponse) VisitWorkflowRunListResponse(w http.ResponseWriter) error
type WorkflowRunList403JSONResponse ¶
type WorkflowRunList403JSONResponse APIErrors
func (WorkflowRunList403JSONResponse) VisitWorkflowRunListResponse ¶
func (response WorkflowRunList403JSONResponse) VisitWorkflowRunListResponse(w http.ResponseWriter) error
type WorkflowRunListParams ¶
type WorkflowRunListParams struct { // Offset The number to skip Offset *int64 `form:"offset,omitempty" json:"offset,omitempty"` // Limit The number to limit by Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"` // EventId The event id to get runs for. EventId *openapi_types.UUID `form:"eventId,omitempty" json:"eventId,omitempty"` // WorkflowId The workflow id to get runs for. WorkflowId *openapi_types.UUID `form:"workflowId,omitempty" json:"workflowId,omitempty"` }
WorkflowRunListParams defines parameters for WorkflowRunList.
type WorkflowRunListRequestObject ¶
type WorkflowRunListRequestObject struct { Tenant openapi_types.UUID `json:"tenant"` Params WorkflowRunListParams }
type WorkflowRunListResponseObject ¶
type WorkflowRunListResponseObject interface {
VisitWorkflowRunListResponse(w http.ResponseWriter) error
}
type WorkflowRunStatus ¶
type WorkflowRunStatus string
WorkflowRunStatus defines model for WorkflowRunStatus.
const ( CANCELLED WorkflowRunStatus = "CANCELLED" FAILED WorkflowRunStatus = "FAILED" PENDING WorkflowRunStatus = "PENDING" RUNNING WorkflowRunStatus = "RUNNING" SUCCEEDED WorkflowRunStatus = "SUCCEEDED" )
Defines values for WorkflowRunStatus.
type WorkflowRunTriggeredBy ¶
type WorkflowRunTriggeredBy struct { CronParentId *string `json:"cronParentId,omitempty"` CronSchedule *string `json:"cronSchedule,omitempty"` Event *Event `json:"event,omitempty"` EventId *string `json:"eventId,omitempty"` Metadata APIResourceMeta `json:"metadata"` ParentId string `json:"parentId"` }
WorkflowRunTriggeredBy defines model for WorkflowRunTriggeredBy.
type WorkflowTag ¶
type WorkflowTag struct { // Color The description of the workflow. Color string `json:"color"` // Name The name of the workflow. Name string `json:"name"` }
WorkflowTag defines model for WorkflowTag.
type WorkflowTriggerCronRef ¶
type WorkflowTriggerCronRef struct { Cron *string `json:"cron,omitempty"` ParentId *string `json:"parent_id,omitempty"` }
WorkflowTriggerCronRef defines model for WorkflowTriggerCronRef.
type WorkflowTriggerEventRef ¶
type WorkflowTriggerEventRef struct { EventKey *string `json:"event_key,omitempty"` ParentId *string `json:"parent_id,omitempty"` }
WorkflowTriggerEventRef defines model for WorkflowTriggerEventRef.
type WorkflowTriggers ¶
type WorkflowTriggers struct { Crons *[]WorkflowTriggerCronRef `json:"crons,omitempty"` Events *[]WorkflowTriggerEventRef `json:"events,omitempty"` Metadata *APIResourceMeta `json:"metadata,omitempty"` TenantId *string `json:"tenant_id,omitempty"` WorkflowVersionId *string `json:"workflow_version_id,omitempty"` }
WorkflowTriggers defines model for WorkflowTriggers.
type WorkflowVersion ¶
type WorkflowVersion struct { Jobs *[]Job `json:"jobs,omitempty"` Metadata APIResourceMeta `json:"metadata"` Order int32 `json:"order"` Triggers *WorkflowTriggers `json:"triggers,omitempty"` // Version The version of the workflow. Version string `json:"version"` Workflow *Workflow `json:"workflow,omitempty"` WorkflowId string `json:"workflowId"` }
WorkflowVersion defines model for WorkflowVersion.
type WorkflowVersionDefinition ¶
type WorkflowVersionDefinition struct { // RawDefinition The raw YAML definition of the workflow. RawDefinition string `json:"rawDefinition"` }
WorkflowVersionDefinition defines model for WorkflowVersionDefinition.
type WorkflowVersionGet200JSONResponse ¶
type WorkflowVersionGet200JSONResponse WorkflowVersion
func (WorkflowVersionGet200JSONResponse) VisitWorkflowVersionGetResponse ¶
func (response WorkflowVersionGet200JSONResponse) VisitWorkflowVersionGetResponse(w http.ResponseWriter) error
type WorkflowVersionGet400JSONResponse ¶
type WorkflowVersionGet400JSONResponse APIErrors
func (WorkflowVersionGet400JSONResponse) VisitWorkflowVersionGetResponse ¶
func (response WorkflowVersionGet400JSONResponse) VisitWorkflowVersionGetResponse(w http.ResponseWriter) error
type WorkflowVersionGet403JSONResponse ¶
type WorkflowVersionGet403JSONResponse APIErrors
func (WorkflowVersionGet403JSONResponse) VisitWorkflowVersionGetResponse ¶
func (response WorkflowVersionGet403JSONResponse) VisitWorkflowVersionGetResponse(w http.ResponseWriter) error
type WorkflowVersionGet404JSONResponse ¶
type WorkflowVersionGet404JSONResponse APIErrors
func (WorkflowVersionGet404JSONResponse) VisitWorkflowVersionGetResponse ¶
func (response WorkflowVersionGet404JSONResponse) VisitWorkflowVersionGetResponse(w http.ResponseWriter) error
type WorkflowVersionGetDefinition200JSONResponse ¶
type WorkflowVersionGetDefinition200JSONResponse WorkflowVersionDefinition
func (WorkflowVersionGetDefinition200JSONResponse) VisitWorkflowVersionGetDefinitionResponse ¶
func (response WorkflowVersionGetDefinition200JSONResponse) VisitWorkflowVersionGetDefinitionResponse(w http.ResponseWriter) error
type WorkflowVersionGetDefinition400JSONResponse ¶
type WorkflowVersionGetDefinition400JSONResponse APIErrors
func (WorkflowVersionGetDefinition400JSONResponse) VisitWorkflowVersionGetDefinitionResponse ¶
func (response WorkflowVersionGetDefinition400JSONResponse) VisitWorkflowVersionGetDefinitionResponse(w http.ResponseWriter) error
type WorkflowVersionGetDefinition403JSONResponse ¶
type WorkflowVersionGetDefinition403JSONResponse APIErrors
func (WorkflowVersionGetDefinition403JSONResponse) VisitWorkflowVersionGetDefinitionResponse ¶
func (response WorkflowVersionGetDefinition403JSONResponse) VisitWorkflowVersionGetDefinitionResponse(w http.ResponseWriter) error
type WorkflowVersionGetDefinition404JSONResponse ¶
type WorkflowVersionGetDefinition404JSONResponse APIErrors
func (WorkflowVersionGetDefinition404JSONResponse) VisitWorkflowVersionGetDefinitionResponse ¶
func (response WorkflowVersionGetDefinition404JSONResponse) VisitWorkflowVersionGetDefinitionResponse(w http.ResponseWriter) error
type WorkflowVersionGetDefinitionParams ¶
type WorkflowVersionGetDefinitionParams struct { // Version The workflow version. If not supplied, the latest version is fetched. Version *openapi_types.UUID `form:"version,omitempty" json:"version,omitempty"` }
WorkflowVersionGetDefinitionParams defines parameters for WorkflowVersionGetDefinition.
type WorkflowVersionGetDefinitionRequestObject ¶
type WorkflowVersionGetDefinitionRequestObject struct { Workflow openapi_types.UUID `json:"workflow"` Params WorkflowVersionGetDefinitionParams }
type WorkflowVersionGetDefinitionResponseObject ¶
type WorkflowVersionGetDefinitionResponseObject interface {
VisitWorkflowVersionGetDefinitionResponse(w http.ResponseWriter) error
}
type WorkflowVersionGetParams ¶
type WorkflowVersionGetParams struct { // Version The workflow version. If not supplied, the latest version is fetched. Version *openapi_types.UUID `form:"version,omitempty" json:"version,omitempty"` }
WorkflowVersionGetParams defines parameters for WorkflowVersionGet.
type WorkflowVersionGetRequestObject ¶
type WorkflowVersionGetRequestObject struct { Workflow openapi_types.UUID `json:"workflow"` Params WorkflowVersionGetParams }
type WorkflowVersionGetResponseObject ¶
type WorkflowVersionGetResponseObject interface {
VisitWorkflowVersionGetResponse(w http.ResponseWriter) error
}
type WorkflowVersionMeta ¶
type WorkflowVersionMeta struct { Metadata APIResourceMeta `json:"metadata"` Order int32 `json:"order"` // Version The version of the workflow. Version string `json:"version"` Workflow *Workflow `json:"workflow,omitempty"` WorkflowId string `json:"workflowId"` }
WorkflowVersionMeta defines model for WorkflowVersionMeta.