Documentation ¶
Index ¶
- type API
- func (api *API) CompleteWorkflowRun(id string, success bool) error
- func (api *API) GetWorkflow(hash, id string) (*config.Workflow, error)
- func (api *API) GetWorkflowFromWorkflowRunID(workflowRunID string) (*config.Workflow, error)
- func (api *API) GetWorkflows(hash string) (map[string]config.Workflow, error)
- func (api *API) Handler() http.Handler
- func (api *API) LatestConfigHash() (string, error)
- func (api *API) LoadConfig() error
- func (api *API) PreviewDataset(id string) ([]interface{}, error)
- func (api *API) ReadDataConnection(hash, id string) (*config.DataConnection, error)
- func (api *API) ReadDatasets() ([]config.Dataset, error)
- func (api *API) ScheduleTask(workflowRunID string, workflowTaskID string, input map[string]interface{}) error
- func (api *API) StartWorkflow(hash, id string, workflowInput map[string]interface{}) error
- func (api *API) StoreDataConnection(hash string, connection config.DataConnection) error
- func (api *API) StoreDataset(hash string, dataset config.Dataset) error
- func (api *API) StoreWorkflow(hash string, workflow config.Workflow) error
- func (api *API) Tick(now time.Time) error
- type DataConnection
- type GitHubContentResponse
- type Response
- type StatusSummary
- type SummaryTaskRun
- type Task
- type TaskResult
- type TaskRun
- type WorkflowRun
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) CompleteWorkflowRun ¶
func (*API) GetWorkflowFromWorkflowRunID ¶
func (*API) GetWorkflows ¶
func (*API) LatestConfigHash ¶ added in v0.2.2
func (*API) LoadConfig ¶ added in v0.2.2
func (*API) PreviewDataset ¶
func (*API) ReadDataConnection ¶
func (api *API) ReadDataConnection(hash, id string) (*config.DataConnection, error)
func (*API) ScheduleTask ¶
func (*API) StartWorkflow ¶
func (*API) StoreDataConnection ¶
func (api *API) StoreDataConnection(hash string, connection config.DataConnection) error
func (*API) StoreWorkflow ¶
type DataConnection ¶
type GitHubContentResponse ¶ added in v0.2.2
type Response ¶
type Response struct { OK bool `json:"ok"` Status int `json:"-"` Error string `json:"error,omitempty"` Response interface{} `json:"response,omitempty"` // contains filtered or unexported fields }
func CustomResponse ¶
func CustomResponse() Response
type StatusSummary ¶ added in v0.2.1
type StatusSummary struct { RecentTaskRuns []SummaryTaskRun `json:"recent_task_runs"` RecentTaskFailures []SummaryTaskRun `json:"recent_task_failures"` TotalConnections int `json:"total_connections"` TotalDatasets int `json:"total_datasets"` TotalWorkflows int `json:"total_workflows"` TotalTasksCompleted int `json:"total_tasks_completed"` }
type SummaryTaskRun ¶ added in v0.2.1
type SummaryTaskRun struct { ID string `json:"id"` WorkflowID string `json:"workflow_id"` WorkflowRunID string `json:"workflow_run_id"` WorkflowTaskID string `json:"workflow_task_id"` CreatedAt time.Time `json:"created_at"` StartedAt *time.Time `json:"started_at"` CompletedAt *time.Time `json:"completed_at"` Success *bool `json:"success"` }
type TaskResult ¶
type TaskRun ¶
type TaskRun struct { ID string `json:"id"` WorkflowRunID string `json:"workflow_run_id"` WorkflowTaskID string `json:"workflow_task_id"` Input json.RawMessage `json:"input"` Output json.RawMessage `json:"output"` CreatedAt time.Time `json:"created_at"` StartedAt *time.Time `json:"started_at"` TimeoutAt *time.Time `json:"timeout_at"` CompletedAt *time.Time `json:"completed_at"` AttemptsLeft int `json:"attempts_left"` Stdout *string `json:"stdout"` Stderr *string `json:"stderr"` Success *bool `json:"success"` }
Source Files ¶
- api.go
- api_config.go
- api_data_connections.go
- api_datasets.go
- api_datasets_download.go
- api_datasets_preview.go
- api_db_schema.go
- api_status_summary.go
- api_tasks_poll.go
- api_tasks_result.go
- api_workflows.go
- api_workflows_runs.go
- api_workflows_runs_tasks.go
- api_workflows_start.go
- config.go
- data_connections.go
- datasets.go
- db.go
- github.go
- timer.go
- types.go
- workflows.go
Click to show internal directories.
Click to hide internal directories.