Version v0.4.0 of the documentation is no longer actively maintained. The site that you are currently viewing is an archived snapshot. For up-to-date documentation, see the latest version.
pkg/client
import "github.com/neochaotic/leoflow/pkg/client"
Package client provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Package client is the typed, generated client for the Leoflow (Airflow-compatible) /api/v2 surface. It is the single control-plane client shared by the CLI, the MCP server, and the smoke tests (ADR 0050 D8) — no component hand-rolls HTTP against /api/v2, and nothing here imports internal/ packages.
client.gen.go is generated from docs/api/openapi.yaml. Do not edit it by hand; run `make pkg-client` from the repo root after changing the spec (the oapi-codegen config’s output path is repo-root-relative, so generation must run from there, not via `go generate` in this package). CI catches drift with `make pkg-client-check`.
Index
- func NewClearTaskInstancesRequest(server string, dagId DagID, body ClearTaskInstancesJSONRequestBody) (*http.Request, error)
- func NewClearTaskInstancesRequestWithBody(server string, dagId DagID, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateUserRequest(server string, body CreateUserJSONRequestBody) (*http.Request, error)
- func NewCreateUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetDagRequest(server string, dagId DagID) (*http.Request, error)
- func NewGetDagRunRequest(server string, dagId DagID, dagRunId DagRunID) (*http.Request, error)
- func NewGetDagSourceRequest(server string, dagId DagID) (*http.Request, error)
- func NewGetDagSpecRequest(server string, dagId DagID) (*http.Request, error)
- func NewGetDagVersionRequest(server string, dagId DagID, versionNumber int) (*http.Request, error)
- func NewGetHealthzRequest(server string) (*http.Request, error)
- func NewGetMonitorExecutorRequest(server string) (*http.Request, error)
- func NewGetMonitorHealthRequest(server string) (*http.Request, error)
- func NewGetReadyzRequest(server string) (*http.Request, error)
- func NewGetTaskInstanceRequest(server string, dagId DagID, dagRunId DagRunID, taskId TaskID) (*http.Request, error)
- func NewGetTaskLogsRequest(server string, dagId DagID, dagRunId DagRunID, taskId TaskID, tryNumber int) (*http.Request, error)
- func NewGetVersionRequest(server string) (*http.Request, error)
- func NewGetXcomEntryRequest(server string, dagId DagID, dagRunId DagRunID, taskId TaskID, key string) (*http.Request, error)
- func NewIssueTokenRequest(server string, body IssueTokenJSONRequestBody) (*http.Request, error)
- func NewIssueTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListDagRunsRequest(server string, dagId DagID, params *ListDagRunsParams) (*http.Request, error)
- func NewListDagVersionsRequest(server string, dagId DagID) (*http.Request, error)
- func NewListDagsRequest(server string, params *ListDagsParams) (*http.Request, error)
- func NewListTaskInstancesRequest(server string, dagId DagID, dagRunId DagRunID) (*http.Request, error)
- func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, error)
- func NewRenewTokenRequest(server string) (*http.Request, error)
- func NewTriggerDagRunRequest(server string, dagId DagID, body TriggerDagRunJSONRequestBody) (*http.Request, error)
- func NewTriggerDagRunRequestWithBody(server string, dagId DagID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateDagRequest(server string, dagId DagID, body UpdateDagJSONRequestBody) (*http.Request, error)
- func NewUpdateDagRequestWithBody(server string, dagId DagID, contentType string, body io.Reader) (*http.Request, error)
- type ClearTaskInstancesJSONRequestBody
- type ClearTaskInstancesRequest
- type ClearTaskInstancesResponse
- func ParseClearTaskInstancesResponse(rsp *http.Response) (*ClearTaskInstancesResponse, error)
- func (r ClearTaskInstancesResponse) ContentType() string
- func (r ClearTaskInstancesResponse) GetBody() []byte
- func (r ClearTaskInstancesResponse) GetJSON200() *TaskInstanceCollection
- func (r ClearTaskInstancesResponse) Status() string
- func (r ClearTaskInstancesResponse) StatusCode() int
- type Client
- func NewClient(server string, opts …ClientOption) (*Client, error)
- func (c *Client) ClearTaskInstances(ctx context.Context, dagId DagID, body ClearTaskInstancesJSONRequestBody, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) ClearTaskInstancesWithBody(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDag(ctx context.Context, dagId DagID, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDagRun(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDagSource(ctx context.Context, dagId DagID, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDagSpec(ctx context.Context, dagId DagID, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDagVersion(ctx context.Context, dagId DagID, versionNumber int, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) GetHealthz(ctx context.Context, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMonitorExecutor(ctx context.Context, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMonitorHealth(ctx context.Context, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) GetReadyz(ctx context.Context, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTaskInstance(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTaskLogs(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, tryNumber int, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) GetVersion(ctx context.Context, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) GetXcomEntry(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, key string, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) IssueToken(ctx context.Context, body IssueTokenJSONRequestBody, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) IssueTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) ListDagRuns(ctx context.Context, dagId DagID, params *ListDagRunsParams, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) ListDagVersions(ctx context.Context, dagId DagID, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) ListDags(ctx context.Context, params *ListDagsParams, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) ListTaskInstances(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) ListUsers(ctx context.Context, params *ListUsersParams, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) RenewToken(ctx context.Context, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) TriggerDagRun(ctx context.Context, dagId DagID, body TriggerDagRunJSONRequestBody, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) TriggerDagRunWithBody(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateDag(ctx context.Context, dagId DagID, body UpdateDagJSONRequestBody, reqEditors …RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateDagWithBody(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors …RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func New(baseURL, token string, opts …ClientOption) (*ClientWithResponses, error)
- func NewClientWithResponses(server string, opts …ClientOption) (*ClientWithResponses, error)
- func (c *ClientWithResponses) ClearTaskInstancesWithBodyWithResponse(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors …RequestEditorFn) (*ClearTaskInstancesResponse, error)
- func (c *ClientWithResponses) ClearTaskInstancesWithResponse(ctx context.Context, dagId DagID, body ClearTaskInstancesJSONRequestBody, reqEditors …RequestEditorFn) (*ClearTaskInstancesResponse, error)
- func (c *ClientWithResponses) CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors …RequestEditorFn) (*CreateUserResponse, error)
- func (c *ClientWithResponses) CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors …RequestEditorFn) (*CreateUserResponse, error)
- func (c *ClientWithResponses) GetDagRunWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors …RequestEditorFn) (*GetDagRunResponse, error)
- func (c *ClientWithResponses) GetDagSourceWithResponse(ctx context.Context, dagId DagID, reqEditors …RequestEditorFn) (*GetDagSourceResponse, error)
- func (c *ClientWithResponses) GetDagSpecWithResponse(ctx context.Context, dagId DagID, reqEditors …RequestEditorFn) (*GetDagSpecResponse, error)
- func (c *ClientWithResponses) GetDagVersionWithResponse(ctx context.Context, dagId DagID, versionNumber int, reqEditors …RequestEditorFn) (*GetDagVersionResponse, error)
- func (c *ClientWithResponses) GetDagWithResponse(ctx context.Context, dagId DagID, reqEditors …RequestEditorFn) (*GetDagResponse, error)
- func (c *ClientWithResponses) GetHealthzWithResponse(ctx context.Context, reqEditors …RequestEditorFn) (*GetHealthzResponse, error)
- func (c *ClientWithResponses) GetMonitorExecutorWithResponse(ctx context.Context, reqEditors …RequestEditorFn) (*GetMonitorExecutorResponse, error)
- func (c *ClientWithResponses) GetMonitorHealthWithResponse(ctx context.Context, reqEditors …RequestEditorFn) (*GetMonitorHealthResponse, error)
- func (c *ClientWithResponses) GetReadyzWithResponse(ctx context.Context, reqEditors …RequestEditorFn) (*GetReadyzResponse, error)
- func (c *ClientWithResponses) GetTaskInstanceWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, reqEditors …RequestEditorFn) (*GetTaskInstanceResponse, error)
- func (c *ClientWithResponses) GetTaskLogsWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, tryNumber int, reqEditors …RequestEditorFn) (*GetTaskLogsResponse, error)
- func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors …RequestEditorFn) (*GetVersionResponse, error)
- func (c *ClientWithResponses) GetXcomEntryWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, key string, reqEditors …RequestEditorFn) (*GetXcomEntryResponse, error)
- func (c *ClientWithResponses) IssueTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors …RequestEditorFn) (*IssueTokenResponse, error)
- func (c *ClientWithResponses) IssueTokenWithResponse(ctx context.Context, body IssueTokenJSONRequestBody, reqEditors …RequestEditorFn) (*IssueTokenResponse, error)
- func (c *ClientWithResponses) ListDagRunsWithResponse(ctx context.Context, dagId DagID, params *ListDagRunsParams, reqEditors …RequestEditorFn) (*ListDagRunsResponse, error)
- func (c *ClientWithResponses) ListDagVersionsWithResponse(ctx context.Context, dagId DagID, reqEditors …RequestEditorFn) (*ListDagVersionsResponse, error)
- func (c *ClientWithResponses) ListDagsWithResponse(ctx context.Context, params *ListDagsParams, reqEditors …RequestEditorFn) (*ListDagsResponse, error)
- func (c *ClientWithResponses) ListTaskInstancesWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors …RequestEditorFn) (*ListTaskInstancesResponse, error)
- func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors …RequestEditorFn) (*ListUsersResponse, error)
- func (c *ClientWithResponses) RenewTokenWithResponse(ctx context.Context, reqEditors …RequestEditorFn) (*RenewTokenResponse, error)
- func (c *ClientWithResponses) TriggerDagRunWithBodyWithResponse(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors …RequestEditorFn) (*TriggerDagRunResponse, error)
- func (c *ClientWithResponses) TriggerDagRunWithResponse(ctx context.Context, dagId DagID, body TriggerDagRunJSONRequestBody, reqEditors …RequestEditorFn) (*TriggerDagRunResponse, error)
- func (c *ClientWithResponses) UpdateDagWithBodyWithResponse(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors …RequestEditorFn) (*UpdateDagResponse, error)
- func (c *ClientWithResponses) UpdateDagWithResponse(ctx context.Context, dagId DagID, body UpdateDagJSONRequestBody, reqEditors …RequestEditorFn) (*UpdateDagResponse, error)
- type ClientWithResponsesInterface
- type ComponentHealth
- type CreateUserJSONRequestBody
- type CreateUserRequest
- type CreateUserResponse
- func ParseCreateUserResponse(rsp *http.Response) (*CreateUserResponse, error)
- func (r CreateUserResponse) ContentType() string
- func (r CreateUserResponse) GetBody() []byte
- func (r CreateUserResponse) GetJSON201() *User
- func (r CreateUserResponse) GetJSON400() *Error
- func (r CreateUserResponse) GetJSON401() *Unauthorized
- func (r CreateUserResponse) GetJSON409() *Error
- func (r CreateUserResponse) Status() string
- func (r CreateUserResponse) StatusCode() int
- type DAG
- type DAGCollection
- type DAGRun
- type DAGRunCollection
- type DAGRunCreate
- type DAGRunRunType
- type DAGRunState
- type DAGUpdate
- type DagID
- type DagRunID
- type DagSource
- type DagVersion
- type DagVersionCollection
- type Error
- type ExecutorInfo
- type GetDagResponse
- func ParseGetDagResponse(rsp *http.Response) (*GetDagResponse, error)
- func (r GetDagResponse) ContentType() string
- func (r GetDagResponse) GetBody() []byte
- func (r GetDagResponse) GetJSON200() *DAG
- func (r GetDagResponse) GetJSON404() *NotFound
- func (r GetDagResponse) Status() string
- func (r GetDagResponse) StatusCode() int
- type GetDagRunResponse
- func ParseGetDagRunResponse(rsp *http.Response) (*GetDagRunResponse, error)
- func (r GetDagRunResponse) ContentType() string
- func (r GetDagRunResponse) GetBody() []byte
- func (r GetDagRunResponse) GetJSON200() *DAGRun
- func (r GetDagRunResponse) GetJSON404() *NotFound
- func (r GetDagRunResponse) Status() string
- func (r GetDagRunResponse) StatusCode() int
- type GetDagSourceResponse
- func ParseGetDagSourceResponse(rsp *http.Response) (*GetDagSourceResponse, error)
- func (r GetDagSourceResponse) ContentType() string
- func (r GetDagSourceResponse) GetBody() []byte
- func (r GetDagSourceResponse) GetJSON200() *DagSource
- func (r GetDagSourceResponse) GetJSON404() *NotFound
- func (r GetDagSourceResponse) Status() string
- func (r GetDagSourceResponse) StatusCode() int
- type GetDagSpecResponse
- func ParseGetDagSpecResponse(rsp *http.Response) (*GetDagSpecResponse, error)
- func (r GetDagSpecResponse) ContentType() string
- func (r GetDagSpecResponse) GetBody() []byte
- func (r GetDagSpecResponse) GetJSON200() *map[string]interface{}
- func (r GetDagSpecResponse) GetJSON404() *NotFound
- func (r GetDagSpecResponse) Status() string
- func (r GetDagSpecResponse) StatusCode() int
- type GetDagVersionResponse
- func ParseGetDagVersionResponse(rsp *http.Response) (*GetDagVersionResponse, error)
- func (r GetDagVersionResponse) ContentType() string
- func (r GetDagVersionResponse) GetBody() []byte
- func (r GetDagVersionResponse) GetJSON200() *DagVersion
- func (r GetDagVersionResponse) GetJSON404() *NotFound
- func (r GetDagVersionResponse) Status() string
- func (r GetDagVersionResponse) StatusCode() int
- type GetHealthzResponse
- type GetMonitorExecutorResponse
- func ParseGetMonitorExecutorResponse(rsp *http.Response) (*GetMonitorExecutorResponse, error)
- func (r GetMonitorExecutorResponse) ContentType() string
- func (r GetMonitorExecutorResponse) GetBody() []byte
- func (r GetMonitorExecutorResponse) GetJSON200() *ExecutorInfo
- func (r GetMonitorExecutorResponse) Status() string
- func (r GetMonitorExecutorResponse) StatusCode() int
- type GetMonitorHealthResponse
- func ParseGetMonitorHealthResponse(rsp *http.Response) (*GetMonitorHealthResponse, error)
- func (r GetMonitorHealthResponse) ContentType() string
- func (r GetMonitorHealthResponse) GetBody() []byte
- func (r GetMonitorHealthResponse) GetJSON200() *HealthInfo
- func (r GetMonitorHealthResponse) Status() string
- func (r GetMonitorHealthResponse) StatusCode() int
- type GetReadyzResponse
- type GetTaskInstanceResponse
- func ParseGetTaskInstanceResponse(rsp *http.Response) (*GetTaskInstanceResponse, error)
- func (r GetTaskInstanceResponse) ContentType() string
- func (r GetTaskInstanceResponse) GetBody() []byte
- func (r GetTaskInstanceResponse) GetJSON200() *TaskInstance
- func (r GetTaskInstanceResponse) Status() string
- func (r GetTaskInstanceResponse) StatusCode() int
- type GetTaskLogsResponse
- type GetVersionResponse
- func ParseGetVersionResponse(rsp *http.Response) (*GetVersionResponse, error)
- func (r GetVersionResponse) ContentType() string
- func (r GetVersionResponse) GetBody() []byte
- func (r GetVersionResponse) GetJSON200() *VersionInfo
- func (r GetVersionResponse) Status() string
- func (r GetVersionResponse) StatusCode() int
- type GetXcomEntryResponse
- func ParseGetXcomEntryResponse(rsp *http.Response) (*GetXcomEntryResponse, error)
- func (r GetXcomEntryResponse) ContentType() string
- func (r GetXcomEntryResponse) GetBody() []byte
- func (r GetXcomEntryResponse) GetJSON200() *XComEntry
- func (r GetXcomEntryResponse) GetJSON404() *NotFound
- func (r GetXcomEntryResponse) Status() string
- func (r GetXcomEntryResponse) StatusCode() int
- type HealthInfo
- type HttpRequestDoer
- type IssueTokenJSONRequestBody
- type IssueTokenResponse
- func ParseIssueTokenResponse(rsp *http.Response) (*IssueTokenResponse, error)
- func (r IssueTokenResponse) ContentType() string
- func (r IssueTokenResponse) GetBody() []byte
- func (r IssueTokenResponse) GetJSON200() *TokenResponse
- func (r IssueTokenResponse) GetJSON401() *Unauthorized
- func (r IssueTokenResponse) Status() string
- func (r IssueTokenResponse) StatusCode() int
- type Limit
- type ListDagRunsParams
- type ListDagRunsParamsState
- type ListDagRunsResponse
- func ParseListDagRunsResponse(rsp *http.Response) (*ListDagRunsResponse, error)
- func (r ListDagRunsResponse) ContentType() string
- func (r ListDagRunsResponse) GetBody() []byte
- func (r ListDagRunsResponse) GetJSON200() *DAGRunCollection
- func (r ListDagRunsResponse) Status() string
- func (r ListDagRunsResponse) StatusCode() int
- type ListDagVersionsResponse
- func ParseListDagVersionsResponse(rsp *http.Response) (*ListDagVersionsResponse, error)
- func (r ListDagVersionsResponse) ContentType() string
- func (r ListDagVersionsResponse) GetBody() []byte
- func (r ListDagVersionsResponse) GetJSON200() *DagVersionCollection
- func (r ListDagVersionsResponse) Status() string
- func (r ListDagVersionsResponse) StatusCode() int
- type ListDagsParams
- type ListDagsResponse
- type ListTaskInstancesResponse
- func ParseListTaskInstancesResponse(rsp *http.Response) (*ListTaskInstancesResponse, error)
- func (r ListTaskInstancesResponse) ContentType() string
- func (r ListTaskInstancesResponse) GetBody() []byte
- func (r ListTaskInstancesResponse) GetJSON200() *TaskInstanceCollection
- func (r ListTaskInstancesResponse) Status() string
- func (r ListTaskInstancesResponse) StatusCode() int
- type ListUsersParams
- type ListUsersResponse
- func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error)
- func (r ListUsersResponse) ContentType() string
- func (r ListUsersResponse) GetBody() []byte
- func (r ListUsersResponse) GetJSON200() *UserCollection
- func (r ListUsersResponse) GetJSON401() *Unauthorized
- func (r ListUsersResponse) Status() string
- func (r ListUsersResponse) StatusCode() int
- type NotFound
- type Offset
- type RenewTokenResponse
- func ParseRenewTokenResponse(rsp *http.Response) (*RenewTokenResponse, error)
- func (r RenewTokenResponse) ContentType() string
- func (r RenewTokenResponse) GetBody() []byte
- func (r RenewTokenResponse) GetJSON200() *TokenResponse
- func (r RenewTokenResponse) GetJSON401() *Unauthorized
- func (r RenewTokenResponse) Status() string
- func (r RenewTokenResponse) StatusCode() int
- type RequestEditorFn
- type TaskID
- type TaskInstance
- type TaskInstanceCollection
- type TaskInstanceState
- type TokenRequest
- type TokenResponse
- type TriggerDagRunJSONRequestBody
- type TriggerDagRunResponse
- func ParseTriggerDagRunResponse(rsp *http.Response) (*TriggerDagRunResponse, error)
- func (r TriggerDagRunResponse) ContentType() string
- func (r TriggerDagRunResponse) GetBody() []byte
- func (r TriggerDagRunResponse) GetJSON200() *DAGRun
- func (r TriggerDagRunResponse) Status() string
- func (r TriggerDagRunResponse) StatusCode() int
- type Unauthorized
- type UpdateDagJSONRequestBody
- type UpdateDagResponse
- type User
- type UserCollection
- type UserListItem
- type VersionInfo
- type XComEntry
func NewClearTaskInstancesRequest
func NewClearTaskInstancesRequest(server string, dagId DagID, body ClearTaskInstancesJSONRequestBody) (*http.Request, error)
NewClearTaskInstancesRequest calls the generic ClearTaskInstances builder with application/json body
func NewClearTaskInstancesRequestWithBody
func NewClearTaskInstancesRequestWithBody(server string, dagId DagID, contentType string, body io.Reader) (*http.Request, error)
NewClearTaskInstancesRequestWithBody constructs an http.Request for the ClearTaskInstances method, with any body, and a specified content type
func NewCreateUserRequest
func NewCreateUserRequest(server string, body CreateUserJSONRequestBody) (*http.Request, error)
NewCreateUserRequest calls the generic CreateUser builder with application/json body
func NewCreateUserRequestWithBody
func NewCreateUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateUserRequestWithBody constructs an http.Request for the CreateUser method, with any body, and a specified content type
func NewGetDagRequest
func NewGetDagRequest(server string, dagId DagID) (*http.Request, error)
NewGetDagRequest constructs an http.Request for the GetDag method
func NewGetDagRunRequest
func NewGetDagRunRequest(server string, dagId DagID, dagRunId DagRunID) (*http.Request, error)
NewGetDagRunRequest constructs an http.Request for the GetDagRun method
func NewGetDagSourceRequest
func NewGetDagSourceRequest(server string, dagId DagID) (*http.Request, error)
NewGetDagSourceRequest constructs an http.Request for the GetDagSource method
func NewGetDagSpecRequest
func NewGetDagSpecRequest(server string, dagId DagID) (*http.Request, error)
NewGetDagSpecRequest constructs an http.Request for the GetDagSpec method
func NewGetDagVersionRequest
func NewGetDagVersionRequest(server string, dagId DagID, versionNumber int) (*http.Request, error)
NewGetDagVersionRequest constructs an http.Request for the GetDagVersion method
func NewGetHealthzRequest
func NewGetHealthzRequest(server string) (*http.Request, error)
NewGetHealthzRequest constructs an http.Request for the GetHealthz method
func NewGetMonitorExecutorRequest
func NewGetMonitorExecutorRequest(server string) (*http.Request, error)
NewGetMonitorExecutorRequest constructs an http.Request for the GetMonitorExecutor method
func NewGetMonitorHealthRequest
func NewGetMonitorHealthRequest(server string) (*http.Request, error)
NewGetMonitorHealthRequest constructs an http.Request for the GetMonitorHealth method
func NewGetReadyzRequest
func NewGetReadyzRequest(server string) (*http.Request, error)
NewGetReadyzRequest constructs an http.Request for the GetReadyz method
func NewGetTaskInstanceRequest
func NewGetTaskInstanceRequest(server string, dagId DagID, dagRunId DagRunID, taskId TaskID) (*http.Request, error)
NewGetTaskInstanceRequest constructs an http.Request for the GetTaskInstance method
func NewGetTaskLogsRequest
func NewGetTaskLogsRequest(server string, dagId DagID, dagRunId DagRunID, taskId TaskID, tryNumber int) (*http.Request, error)
NewGetTaskLogsRequest constructs an http.Request for the GetTaskLogs method
func NewGetVersionRequest
func NewGetVersionRequest(server string) (*http.Request, error)
NewGetVersionRequest constructs an http.Request for the GetVersion method
func NewGetXcomEntryRequest
func NewGetXcomEntryRequest(server string, dagId DagID, dagRunId DagRunID, taskId TaskID, key string) (*http.Request, error)
NewGetXcomEntryRequest constructs an http.Request for the GetXcomEntry method
func NewIssueTokenRequest
func NewIssueTokenRequest(server string, body IssueTokenJSONRequestBody) (*http.Request, error)
NewIssueTokenRequest calls the generic IssueToken builder with application/json body
func NewIssueTokenRequestWithBody
func NewIssueTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewIssueTokenRequestWithBody constructs an http.Request for the IssueToken method, with any body, and a specified content type
func NewListDagRunsRequest
func NewListDagRunsRequest(server string, dagId DagID, params *ListDagRunsParams) (*http.Request, error)
NewListDagRunsRequest constructs an http.Request for the ListDagRuns method
func NewListDagVersionsRequest
func NewListDagVersionsRequest(server string, dagId DagID) (*http.Request, error)
NewListDagVersionsRequest constructs an http.Request for the ListDagVersions method
func NewListDagsRequest
func NewListDagsRequest(server string, params *ListDagsParams) (*http.Request, error)
NewListDagsRequest constructs an http.Request for the ListDags method
func NewListTaskInstancesRequest
func NewListTaskInstancesRequest(server string, dagId DagID, dagRunId DagRunID) (*http.Request, error)
NewListTaskInstancesRequest constructs an http.Request for the ListTaskInstances method
func NewListUsersRequest
func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, error)
NewListUsersRequest constructs an http.Request for the ListUsers method
func NewRenewTokenRequest
func NewRenewTokenRequest(server string) (*http.Request, error)
NewRenewTokenRequest constructs an http.Request for the RenewToken method
func NewTriggerDagRunRequest
func NewTriggerDagRunRequest(server string, dagId DagID, body TriggerDagRunJSONRequestBody) (*http.Request, error)
NewTriggerDagRunRequest calls the generic TriggerDagRun builder with application/json body
func NewTriggerDagRunRequestWithBody
func NewTriggerDagRunRequestWithBody(server string, dagId DagID, contentType string, body io.Reader) (*http.Request, error)
NewTriggerDagRunRequestWithBody constructs an http.Request for the TriggerDagRun method, with any body, and a specified content type
func NewUpdateDagRequest
func NewUpdateDagRequest(server string, dagId DagID, body UpdateDagJSONRequestBody) (*http.Request, error)
NewUpdateDagRequest calls the generic UpdateDag builder with application/json body
func NewUpdateDagRequestWithBody
func NewUpdateDagRequestWithBody(server string, dagId DagID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateDagRequestWithBody constructs an http.Request for the UpdateDag method, with any body, and a specified content type
type ClearTaskInstancesJSONRequestBody
ClearTaskInstancesJSONRequestBody defines body for ClearTaskInstances for application/json ContentType.
type ClearTaskInstancesJSONRequestBody = ClearTaskInstancesRequest
type ClearTaskInstancesRequest
ClearTaskInstancesRequest defines model for ClearTaskInstancesRequest.
type ClearTaskInstancesRequest struct {
DagRunId *string `json:"dag_run_id,omitempty"`
OnlyFailed *bool `json:"only_failed,omitempty"`
OnlyRunning *bool `json:"only_running,omitempty"`
ResetDagRuns *bool `json:"reset_dag_runs,omitempty"`
TaskIds *[]string `json:"task_ids,omitempty"`
}
type ClearTaskInstancesResponse
type ClearTaskInstancesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TaskInstanceCollection
}
func ParseClearTaskInstancesResponse
func ParseClearTaskInstancesResponse(rsp *http.Response) (*ClearTaskInstancesResponse, error)
ParseClearTaskInstancesResponse parses an HTTP response from a ClearTaskInstancesWithResponse call
func (ClearTaskInstancesResponse) ContentType
func (r ClearTaskInstancesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ClearTaskInstancesResponse) GetBody
func (r ClearTaskInstancesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ClearTaskInstancesResponse) GetJSON200
func (r ClearTaskInstancesResponse) GetJSON200() *TaskInstanceCollection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ClearTaskInstancesResponse) Status
func (r ClearTaskInstancesResponse) Status() string
Status returns HTTPResponse.Status
func (ClearTaskInstancesResponse) StatusCode
func (r ClearTaskInstancesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Client
Client which conforms to the OpenAPI3 specification for this service.
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
func NewClient
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) ClearTaskInstances
func (c *Client) ClearTaskInstances(ctx context.Context, dagId DagID, body ClearTaskInstancesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ClearTaskInstances Clear task instances (queue them for re-run)
Takes a body of the `application/json` content type.
Corresponds with POST /api/v2/dags/{dag_id}/clearTaskInstances (the `ClearTaskInstances` operationId).
func (*Client) ClearTaskInstancesWithBody
func (c *Client) ClearTaskInstancesWithBody(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ClearTaskInstancesWithBody Clear task instances (queue them for re-run)
Takes any type of body and a specified content type.
Corresponds with POST /api/v2/dags/{dag_id}/clearTaskInstances (the `ClearTaskInstances` operationId).
func (*Client) CreateUser
func (c *Client) CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateUser Create a user
Admin-only. Creates a control-plane account with the given email and password and grants the requested roles. The password is write-only and is never returned. Requires the write:user permission.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v2/users (the `CreateUser` operationId).
func (*Client) CreateUserWithBody
func (c *Client) CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateUserWithBody Create a user
Admin-only. Creates a control-plane account with the given email and password and grants the requested roles. The password is write-only and is never returned. Requires the write:user permission.
Takes any type of body and a specified content type.
Corresponds with POST /api/v2/users (the `CreateUser` operationId).
func (*Client) GetDag
func (c *Client) GetDag(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDag Get a DAG
Corresponds with GET /api/v2/dags/{dag_id} (the `GetDag` operationId).
func (*Client) GetDagRun
func (c *Client) GetDagRun(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDagRun Get a DAG run
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id} (the `GetDagRun` operationId).
func (*Client) GetDagSource
func (c *Client) GetDagSource(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDagSource Get a DAG’s source (the dag.py text)
Corresponds with GET /api/v2/dagSources/{dag_id} (the `GetDagSource` operationId).
func (*Client) GetDagSpec
func (c *Client) GetDagSpec(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDagSpec Get a DAG’s compiled spec (the dag.json artifact)
Corresponds with GET /api/v2/dags/{dag_id}/spec (the `GetDagSpec` operationId).
func (*Client) GetDagVersion
func (c *Client) GetDagVersion(ctx context.Context, dagId DagID, versionNumber int, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDagVersion Get a specific registered DAG version
Corresponds with GET /api/v2/dags/{dag_id}/dagVersions/{version_number} (the `GetDagVersion` operationId).
func (*Client) GetHealthz
func (c *Client) GetHealthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHealthz Liveness probe
Corresponds with GET /healthz (the `GetHealthz` operationId).
func (*Client) GetMonitorExecutor
func (c *Client) GetMonitorExecutor(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetMonitorExecutor Executor capability and configuration
Corresponds with GET /api/v2/monitor/executor (the `GetMonitorExecutor` operationId).
func (*Client) GetMonitorHealth
func (c *Client) GetMonitorHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetMonitorHealth Control-plane health (Airflow HealthInfoResponse shape)
Corresponds with GET /api/v2/monitor/health (the `GetMonitorHealth` operationId).
func (*Client) GetReadyz
func (c *Client) GetReadyz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetReadyz Readiness probe
Corresponds with GET /readyz (the `GetReadyz` operationId).
func (*Client) GetTaskInstance
func (c *Client) GetTaskInstance(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetTaskInstance Get a task instance
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id} (the `GetTaskInstance` operationId).
func (*Client) GetTaskLogs
func (c *Client) GetTaskLogs(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, tryNumber int, reqEditors ...RequestEditorFn) (*http.Response, error)
GetTaskLogs Get task logs
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{try_number} (the `GetTaskLogs` operationId).
func (*Client) GetVersion
func (c *Client) GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetVersion Control-plane version (Airflow VersionInfo shape)
Corresponds with GET /api/v2/version (the `GetVersion` operationId).
func (*Client) GetXcomEntry
func (c *Client) GetXcomEntry(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, key string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetXcomEntry Read XCom value (read-only proxy for the Redis backend)
Corresponds with GET /api/v2/xcoms/{dag_id}/{dag_run_id}/{task_id}/{key} (the `GetXcomEntry` operationId).
func (*Client) IssueToken
func (c *Client) IssueToken(ctx context.Context, body IssueTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
IssueToken Issue a JWT for username/password credentials
Takes a body of the `application/json` content type.
Corresponds with POST /auth/token (the `IssueToken` operationId).
func (*Client) IssueTokenWithBody
func (c *Client) IssueTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
IssueTokenWithBody Issue a JWT for username/password credentials
Takes any type of body and a specified content type.
Corresponds with POST /auth/token (the `IssueToken` operationId).
func (*Client) ListDagRuns
func (c *Client) ListDagRuns(ctx context.Context, dagId DagID, params *ListDagRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListDagRuns List DAG runs
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns (the `ListDagRuns` operationId).
func (*Client) ListDagVersions
func (c *Client) ListDagVersions(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
ListDagVersions List a DAG’s registered versions
Corresponds with GET /api/v2/dags/{dag_id}/dagVersions (the `ListDagVersions` operationId).
func (*Client) ListDags
func (c *Client) ListDags(ctx context.Context, params *ListDagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListDags List DAGs
Corresponds with GET /api/v2/dags (the `ListDags` operationId).
func (*Client) ListTaskInstances
func (c *Client) ListTaskInstances(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors ...RequestEditorFn) (*http.Response, error)
ListTaskInstances List task instances of a DAG run
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances (the `ListTaskInstances` operationId).
func (*Client) ListUsers
func (c *Client) ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListUsers List users
Lists the tenant’s control-plane accounts, newest first. Each entry carries the full set of roles the user holds; the password and its hash are write-only and never returned. Requires the read:user permission.
Corresponds with GET /api/v2/users (the `ListUsers` operationId).
func (*Client) RenewToken
func (c *Client) RenewToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
RenewToken Renew a still-valid JWT into a fresh short-lived token
Transparent renewal: given a still-valid user bearer, re-mints the same identity with a fresh short TTL, bounded by a server-side max_lifetime measured from first login. Lets a long CLI/dev session avoid re-logging in every token TTL while keeping the access token short-lived. Returns 401 when the presented token is invalid, expired, or past max_lifetime, in which case the client must log in again.
Corresponds with POST /api/v2/auth/token/renew (the `RenewToken` operationId).
func (*Client) TriggerDagRun
func (c *Client) TriggerDagRun(ctx context.Context, dagId DagID, body TriggerDagRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
TriggerDagRun Trigger a DAG run
Takes a body of the `application/json` content type.
Corresponds with POST /api/v2/dags/{dag_id}/dagRuns (the `TriggerDagRun` operationId).
func (*Client) TriggerDagRunWithBody
func (c *Client) TriggerDagRunWithBody(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
TriggerDagRunWithBody Trigger a DAG run
Takes any type of body and a specified content type.
Corresponds with POST /api/v2/dags/{dag_id}/dagRuns (the `TriggerDagRun` operationId).
func (*Client) UpdateDag
func (c *Client) UpdateDag(ctx context.Context, dagId DagID, body UpdateDagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateDag Update DAG (typically pause/unpause)
Takes a body of the `application/json` content type.
Corresponds with PATCH /api/v2/dags/{dag_id} (the `UpdateDag` operationId).
func (*Client) UpdateDagWithBody
func (c *Client) UpdateDagWithBody(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateDagWithBody Update DAG (typically pause/unpause)
Takes any type of body and a specified content type.
Corresponds with PATCH /api/v2/dags/{dag_id} (the `UpdateDag` operationId).
type ClientInterface
The interface specification for the client above.
type ClientInterface interface {
// RenewToken Renew a still-valid JWT into a fresh short-lived token
//
// Transparent renewal: given a still-valid user bearer, re-mints the same identity with a fresh short TTL, bounded by a server-side max_lifetime measured from first login. Lets a long CLI/dev session avoid re-logging in every token TTL while keeping the access token short-lived. Returns 401 when the presented token is invalid, expired, or past max_lifetime, in which case the client must log in again.
//
// Corresponds with POST /api/v2/auth/token/renew (the `RenewToken` operationId).
RenewToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDagSource Get a DAG's source (the dag.py text)
//
// Corresponds with GET /api/v2/dagSources/{dag_id} (the `GetDagSource` operationId).
GetDagSource(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListDags List DAGs
//
// Corresponds with GET /api/v2/dags (the `ListDags` operationId).
ListDags(ctx context.Context, params *ListDagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDag Get a DAG
//
// Corresponds with GET /api/v2/dags/{dag_id} (the `GetDag` operationId).
GetDag(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateDagWithBody Update DAG (typically pause/unpause)
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /api/v2/dags/{dag_id} (the `UpdateDag` operationId).
UpdateDagWithBody(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateDag Update DAG (typically pause/unpause)
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /api/v2/dags/{dag_id} (the `UpdateDag` operationId).
UpdateDag(ctx context.Context, dagId DagID, body UpdateDagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ClearTaskInstancesWithBody Clear task instances (queue them for re-run)
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v2/dags/{dag_id}/clearTaskInstances (the `ClearTaskInstances` operationId).
ClearTaskInstancesWithBody(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ClearTaskInstances Clear task instances (queue them for re-run)
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v2/dags/{dag_id}/clearTaskInstances (the `ClearTaskInstances` operationId).
ClearTaskInstances(ctx context.Context, dagId DagID, body ClearTaskInstancesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListDagRuns List DAG runs
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns (the `ListDagRuns` operationId).
ListDagRuns(ctx context.Context, dagId DagID, params *ListDagRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// TriggerDagRunWithBody Trigger a DAG run
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v2/dags/{dag_id}/dagRuns (the `TriggerDagRun` operationId).
TriggerDagRunWithBody(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// TriggerDagRun Trigger a DAG run
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v2/dags/{dag_id}/dagRuns (the `TriggerDagRun` operationId).
TriggerDagRun(ctx context.Context, dagId DagID, body TriggerDagRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDagRun Get a DAG run
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id} (the `GetDagRun` operationId).
GetDagRun(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListTaskInstances List task instances of a DAG run
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances (the `ListTaskInstances` operationId).
ListTaskInstances(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTaskInstance Get a task instance
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id} (the `GetTaskInstance` operationId).
GetTaskInstance(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTaskLogs Get task logs
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{try_number} (the `GetTaskLogs` operationId).
GetTaskLogs(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, tryNumber int, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListDagVersions List a DAG's registered versions
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagVersions (the `ListDagVersions` operationId).
ListDagVersions(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDagVersion Get a specific registered DAG version
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagVersions/{version_number} (the `GetDagVersion` operationId).
GetDagVersion(ctx context.Context, dagId DagID, versionNumber int, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDagSpec Get a DAG's compiled spec (the dag.json artifact)
//
// Corresponds with GET /api/v2/dags/{dag_id}/spec (the `GetDagSpec` operationId).
GetDagSpec(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMonitorExecutor Executor capability and configuration
//
// Corresponds with GET /api/v2/monitor/executor (the `GetMonitorExecutor` operationId).
GetMonitorExecutor(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMonitorHealth Control-plane health (Airflow HealthInfoResponse shape)
//
// Corresponds with GET /api/v2/monitor/health (the `GetMonitorHealth` operationId).
GetMonitorHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListUsers List users
//
// Lists the tenant's control-plane accounts, newest first. Each entry
// carries the full set of roles the user holds; the password and its hash
// are write-only and never returned. Requires the read:user permission.
//
// Corresponds with GET /api/v2/users (the `ListUsers` operationId).
ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateUserWithBody Create a user
//
// Admin-only. Creates a control-plane account with the given email and
// password and grants the requested roles. The password is write-only and
// is never returned. Requires the write:user permission.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v2/users (the `CreateUser` operationId).
CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateUser Create a user
//
// Admin-only. Creates a control-plane account with the given email and
// password and grants the requested roles. The password is write-only and
// is never returned. Requires the write:user permission.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v2/users (the `CreateUser` operationId).
CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetVersion Control-plane version (Airflow VersionInfo shape)
//
// Corresponds with GET /api/v2/version (the `GetVersion` operationId).
GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetXcomEntry Read XCom value (read-only proxy for the Redis backend)
//
// Corresponds with GET /api/v2/xcoms/{dag_id}/{dag_run_id}/{task_id}/{key} (the `GetXcomEntry` operationId).
GetXcomEntry(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, key string, reqEditors ...RequestEditorFn) (*http.Response, error)
// IssueTokenWithBody Issue a JWT for username/password credentials
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /auth/token (the `IssueToken` operationId).
IssueTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// IssueToken Issue a JWT for username/password credentials
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /auth/token (the `IssueToken` operationId).
IssueToken(ctx context.Context, body IssueTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHealthz Liveness probe
//
// Corresponds with GET /healthz (the `GetHealthz` operationId).
GetHealthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetReadyz Readiness probe
//
// Corresponds with GET /readyz (the `GetReadyz` operationId).
GetReadyz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}
type ClientOption
ClientOption allows setting custom parameters during construction
type ClientOption func(*Client) error
func WithBaseURL
func WithBaseURL(baseURL string) ClientOption
WithBaseURL overrides the baseURL.
func WithHTTPClient
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses
ClientWithResponses builds on ClientInterface to offer response payloads
type ClientWithResponses struct {
ClientInterface
}
func New
func New(baseURL, token string, opts ...ClientOption) (*ClientWithResponses, error)
New builds a typed /api/v2 client for the control plane at baseURL (an origin such as “http://localhost:8080”, with or without a trailing slash). When token is non-empty every request carries “Authorization: Bearer <token>”; the MCP and CLI pass the caller’s JWT through unchanged and never mint one (ADR 0050 D9). An empty token leaves requests unauthenticated, for dev/loopback use. Extra ClientOptions (e.g. WithHTTPClient) are applied after the auth editor.
func NewClientWithResponses
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) ClearTaskInstancesWithBodyWithResponse
func (c *ClientWithResponses) ClearTaskInstancesWithBodyWithResponse(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClearTaskInstancesResponse, error)
ClearTaskInstancesWithBodyWithResponse Clear task instances (queue them for re-run)
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v2/dags/{dag_id}/clearTaskInstances (the `ClearTaskInstances` operationId).
func (*ClientWithResponses) ClearTaskInstancesWithResponse
func (c *ClientWithResponses) ClearTaskInstancesWithResponse(ctx context.Context, dagId DagID, body ClearTaskInstancesJSONRequestBody, reqEditors ...RequestEditorFn) (*ClearTaskInstancesResponse, error)
ClearTaskInstancesWithResponse Clear task instances (queue them for re-run)
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v2/dags/{dag_id}/clearTaskInstances (the `ClearTaskInstances` operationId).
func (*ClientWithResponses) CreateUserWithBodyWithResponse
func (c *ClientWithResponses) CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
CreateUserWithBodyWithResponse Create a user
Admin-only. Creates a control-plane account with the given email and password and grants the requested roles. The password is write-only and is never returned. Requires the write:user permission.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v2/users (the `CreateUser` operationId).
func (*ClientWithResponses) CreateUserWithResponse
func (c *ClientWithResponses) CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
CreateUserWithResponse Create a user
Admin-only. Creates a control-plane account with the given email and password and grants the requested roles. The password is write-only and is never returned. Requires the write:user permission.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v2/users (the `CreateUser` operationId).
func (*ClientWithResponses) GetDagRunWithResponse
func (c *ClientWithResponses) GetDagRunWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors ...RequestEditorFn) (*GetDagRunResponse, error)
GetDagRunWithResponse Get a DAG run
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id} (the `GetDagRun` operationId).
func (*ClientWithResponses) GetDagSourceWithResponse
func (c *ClientWithResponses) GetDagSourceWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*GetDagSourceResponse, error)
GetDagSourceWithResponse Get a DAG’s source (the dag.py text)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dagSources/{dag_id} (the `GetDagSource` operationId).
func (*ClientWithResponses) GetDagSpecWithResponse
func (c *ClientWithResponses) GetDagSpecWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*GetDagSpecResponse, error)
GetDagSpecWithResponse Get a DAG’s compiled spec (the dag.json artifact)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags/{dag_id}/spec (the `GetDagSpec` operationId).
func (*ClientWithResponses) GetDagVersionWithResponse
func (c *ClientWithResponses) GetDagVersionWithResponse(ctx context.Context, dagId DagID, versionNumber int, reqEditors ...RequestEditorFn) (*GetDagVersionResponse, error)
GetDagVersionWithResponse Get a specific registered DAG version
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags/{dag_id}/dagVersions/{version_number} (the `GetDagVersion` operationId).
func (*ClientWithResponses) GetDagWithResponse
func (c *ClientWithResponses) GetDagWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*GetDagResponse, error)
GetDagWithResponse Get a DAG
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags/{dag_id} (the `GetDag` operationId).
func (*ClientWithResponses) GetHealthzWithResponse
func (c *ClientWithResponses) GetHealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthzResponse, error)
GetHealthzWithResponse Liveness probe
Returns a wrapper object for the known response body format(s).
Corresponds with GET /healthz (the `GetHealthz` operationId).
func (*ClientWithResponses) GetMonitorExecutorWithResponse
func (c *ClientWithResponses) GetMonitorExecutorWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMonitorExecutorResponse, error)
GetMonitorExecutorWithResponse Executor capability and configuration
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/monitor/executor (the `GetMonitorExecutor` operationId).
func (*ClientWithResponses) GetMonitorHealthWithResponse
func (c *ClientWithResponses) GetMonitorHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMonitorHealthResponse, error)
GetMonitorHealthWithResponse Control-plane health (Airflow HealthInfoResponse shape)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/monitor/health (the `GetMonitorHealth` operationId).
func (*ClientWithResponses) GetReadyzWithResponse
func (c *ClientWithResponses) GetReadyzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadyzResponse, error)
GetReadyzWithResponse Readiness probe
Returns a wrapper object for the known response body format(s).
Corresponds with GET /readyz (the `GetReadyz` operationId).
func (*ClientWithResponses) GetTaskInstanceWithResponse
func (c *ClientWithResponses) GetTaskInstanceWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, reqEditors ...RequestEditorFn) (*GetTaskInstanceResponse, error)
GetTaskInstanceWithResponse Get a task instance
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id} (the `GetTaskInstance` operationId).
func (*ClientWithResponses) GetTaskLogsWithResponse
func (c *ClientWithResponses) GetTaskLogsWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, tryNumber int, reqEditors ...RequestEditorFn) (*GetTaskLogsResponse, error)
GetTaskLogsWithResponse Get task logs
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{try_number} (the `GetTaskLogs` operationId).
func (*ClientWithResponses) GetVersionWithResponse
func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)
GetVersionWithResponse Control-plane version (Airflow VersionInfo shape)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/version (the `GetVersion` operationId).
func (*ClientWithResponses) GetXcomEntryWithResponse
func (c *ClientWithResponses) GetXcomEntryWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, key string, reqEditors ...RequestEditorFn) (*GetXcomEntryResponse, error)
GetXcomEntryWithResponse Read XCom value (read-only proxy for the Redis backend)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/xcoms/{dag_id}/{dag_run_id}/{task_id}/{key} (the `GetXcomEntry` operationId).
func (*ClientWithResponses) IssueTokenWithBodyWithResponse
func (c *ClientWithResponses) IssueTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssueTokenResponse, error)
IssueTokenWithBodyWithResponse Issue a JWT for username/password credentials
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /auth/token (the `IssueToken` operationId).
func (*ClientWithResponses) IssueTokenWithResponse
func (c *ClientWithResponses) IssueTokenWithResponse(ctx context.Context, body IssueTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*IssueTokenResponse, error)
IssueTokenWithResponse Issue a JWT for username/password credentials
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /auth/token (the `IssueToken` operationId).
func (*ClientWithResponses) ListDagRunsWithResponse
func (c *ClientWithResponses) ListDagRunsWithResponse(ctx context.Context, dagId DagID, params *ListDagRunsParams, reqEditors ...RequestEditorFn) (*ListDagRunsResponse, error)
ListDagRunsWithResponse List DAG runs
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns (the `ListDagRuns` operationId).
func (*ClientWithResponses) ListDagVersionsWithResponse
func (c *ClientWithResponses) ListDagVersionsWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*ListDagVersionsResponse, error)
ListDagVersionsWithResponse List a DAG’s registered versions
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags/{dag_id}/dagVersions (the `ListDagVersions` operationId).
func (*ClientWithResponses) ListDagsWithResponse
func (c *ClientWithResponses) ListDagsWithResponse(ctx context.Context, params *ListDagsParams, reqEditors ...RequestEditorFn) (*ListDagsResponse, error)
ListDagsWithResponse List DAGs
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags (the `ListDags` operationId).
func (*ClientWithResponses) ListTaskInstancesWithResponse
func (c *ClientWithResponses) ListTaskInstancesWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors ...RequestEditorFn) (*ListTaskInstancesResponse, error)
ListTaskInstancesWithResponse List task instances of a DAG run
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances (the `ListTaskInstances` operationId).
func (*ClientWithResponses) ListUsersWithResponse
func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
ListUsersWithResponse List users
Lists the tenant’s control-plane accounts, newest first. Each entry carries the full set of roles the user holds; the password and its hash are write-only and never returned. Requires the read:user permission.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/users (the `ListUsers` operationId).
func (*ClientWithResponses) RenewTokenWithResponse
func (c *ClientWithResponses) RenewTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RenewTokenResponse, error)
RenewTokenWithResponse Renew a still-valid JWT into a fresh short-lived token
Transparent renewal: given a still-valid user bearer, re-mints the same identity with a fresh short TTL, bounded by a server-side max_lifetime measured from first login. Lets a long CLI/dev session avoid re-logging in every token TTL while keeping the access token short-lived. Returns 401 when the presented token is invalid, expired, or past max_lifetime, in which case the client must log in again.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v2/auth/token/renew (the `RenewToken` operationId).
func (*ClientWithResponses) TriggerDagRunWithBodyWithResponse
func (c *ClientWithResponses) TriggerDagRunWithBodyWithResponse(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TriggerDagRunResponse, error)
TriggerDagRunWithBodyWithResponse Trigger a DAG run
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v2/dags/{dag_id}/dagRuns (the `TriggerDagRun` operationId).
func (*ClientWithResponses) TriggerDagRunWithResponse
func (c *ClientWithResponses) TriggerDagRunWithResponse(ctx context.Context, dagId DagID, body TriggerDagRunJSONRequestBody, reqEditors ...RequestEditorFn) (*TriggerDagRunResponse, error)
TriggerDagRunWithResponse Trigger a DAG run
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v2/dags/{dag_id}/dagRuns (the `TriggerDagRun` operationId).
func (*ClientWithResponses) UpdateDagWithBodyWithResponse
func (c *ClientWithResponses) UpdateDagWithBodyWithResponse(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDagResponse, error)
UpdateDagWithBodyWithResponse Update DAG (typically pause/unpause)
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/v2/dags/{dag_id} (the `UpdateDag` operationId).
func (*ClientWithResponses) UpdateDagWithResponse
func (c *ClientWithResponses) UpdateDagWithResponse(ctx context.Context, dagId DagID, body UpdateDagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDagResponse, error)
UpdateDagWithResponse Update DAG (typically pause/unpause)
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/v2/dags/{dag_id} (the `UpdateDag` operationId).
type ClientWithResponsesInterface
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ClientWithResponsesInterface interface {
// RenewTokenWithResponse Renew a still-valid JWT into a fresh short-lived token
//
// Transparent renewal: given a still-valid user bearer, re-mints the same identity with a fresh short TTL, bounded by a server-side max_lifetime measured from first login. Lets a long CLI/dev session avoid re-logging in every token TTL while keeping the access token short-lived. Returns 401 when the presented token is invalid, expired, or past max_lifetime, in which case the client must log in again.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v2/auth/token/renew (the `RenewToken` operationId).
RenewTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RenewTokenResponse, error)
// GetDagSourceWithResponse Get a DAG's source (the dag.py text)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dagSources/{dag_id} (the `GetDagSource` operationId).
GetDagSourceWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*GetDagSourceResponse, error)
// ListDagsWithResponse List DAGs
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags (the `ListDags` operationId).
ListDagsWithResponse(ctx context.Context, params *ListDagsParams, reqEditors ...RequestEditorFn) (*ListDagsResponse, error)
// GetDagWithResponse Get a DAG
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags/{dag_id} (the `GetDag` operationId).
GetDagWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*GetDagResponse, error)
// UpdateDagWithBodyWithResponse Update DAG (typically pause/unpause)
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/v2/dags/{dag_id} (the `UpdateDag` operationId).
UpdateDagWithBodyWithResponse(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDagResponse, error)
// UpdateDagWithResponse Update DAG (typically pause/unpause)
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/v2/dags/{dag_id} (the `UpdateDag` operationId).
UpdateDagWithResponse(ctx context.Context, dagId DagID, body UpdateDagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDagResponse, error)
// ClearTaskInstancesWithBodyWithResponse Clear task instances (queue them for re-run)
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v2/dags/{dag_id}/clearTaskInstances (the `ClearTaskInstances` operationId).
ClearTaskInstancesWithBodyWithResponse(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClearTaskInstancesResponse, error)
// ClearTaskInstancesWithResponse Clear task instances (queue them for re-run)
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v2/dags/{dag_id}/clearTaskInstances (the `ClearTaskInstances` operationId).
ClearTaskInstancesWithResponse(ctx context.Context, dagId DagID, body ClearTaskInstancesJSONRequestBody, reqEditors ...RequestEditorFn) (*ClearTaskInstancesResponse, error)
// ListDagRunsWithResponse List DAG runs
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns (the `ListDagRuns` operationId).
ListDagRunsWithResponse(ctx context.Context, dagId DagID, params *ListDagRunsParams, reqEditors ...RequestEditorFn) (*ListDagRunsResponse, error)
// TriggerDagRunWithBodyWithResponse Trigger a DAG run
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v2/dags/{dag_id}/dagRuns (the `TriggerDagRun` operationId).
TriggerDagRunWithBodyWithResponse(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TriggerDagRunResponse, error)
// TriggerDagRunWithResponse Trigger a DAG run
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v2/dags/{dag_id}/dagRuns (the `TriggerDagRun` operationId).
TriggerDagRunWithResponse(ctx context.Context, dagId DagID, body TriggerDagRunJSONRequestBody, reqEditors ...RequestEditorFn) (*TriggerDagRunResponse, error)
// GetDagRunWithResponse Get a DAG run
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id} (the `GetDagRun` operationId).
GetDagRunWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors ...RequestEditorFn) (*GetDagRunResponse, error)
// ListTaskInstancesWithResponse List task instances of a DAG run
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances (the `ListTaskInstances` operationId).
ListTaskInstancesWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors ...RequestEditorFn) (*ListTaskInstancesResponse, error)
// GetTaskInstanceWithResponse Get a task instance
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id} (the `GetTaskInstance` operationId).
GetTaskInstanceWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, reqEditors ...RequestEditorFn) (*GetTaskInstanceResponse, error)
// GetTaskLogsWithResponse Get task logs
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{try_number} (the `GetTaskLogs` operationId).
GetTaskLogsWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, tryNumber int, reqEditors ...RequestEditorFn) (*GetTaskLogsResponse, error)
// ListDagVersionsWithResponse List a DAG's registered versions
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagVersions (the `ListDagVersions` operationId).
ListDagVersionsWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*ListDagVersionsResponse, error)
// GetDagVersionWithResponse Get a specific registered DAG version
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagVersions/{version_number} (the `GetDagVersion` operationId).
GetDagVersionWithResponse(ctx context.Context, dagId DagID, versionNumber int, reqEditors ...RequestEditorFn) (*GetDagVersionResponse, error)
// GetDagSpecWithResponse Get a DAG's compiled spec (the dag.json artifact)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags/{dag_id}/spec (the `GetDagSpec` operationId).
GetDagSpecWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*GetDagSpecResponse, error)
// GetMonitorExecutorWithResponse Executor capability and configuration
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/monitor/executor (the `GetMonitorExecutor` operationId).
GetMonitorExecutorWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMonitorExecutorResponse, error)
// GetMonitorHealthWithResponse Control-plane health (Airflow HealthInfoResponse shape)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/monitor/health (the `GetMonitorHealth` operationId).
GetMonitorHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMonitorHealthResponse, error)
// ListUsersWithResponse List users
//
// Lists the tenant's control-plane accounts, newest first. Each entry
// carries the full set of roles the user holds; the password and its hash
// are write-only and never returned. Requires the read:user permission.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/users (the `ListUsers` operationId).
ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
// CreateUserWithBodyWithResponse Create a user
//
// Admin-only. Creates a control-plane account with the given email and
// password and grants the requested roles. The password is write-only and
// is never returned. Requires the write:user permission.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v2/users (the `CreateUser` operationId).
CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
// CreateUserWithResponse Create a user
//
// Admin-only. Creates a control-plane account with the given email and
// password and grants the requested roles. The password is write-only and
// is never returned. Requires the write:user permission.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v2/users (the `CreateUser` operationId).
CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
// GetVersionWithResponse Control-plane version (Airflow VersionInfo shape)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/version (the `GetVersion` operationId).
GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)
// GetXcomEntryWithResponse Read XCom value (read-only proxy for the Redis backend)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/xcoms/{dag_id}/{dag_run_id}/{task_id}/{key} (the `GetXcomEntry` operationId).
GetXcomEntryWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, key string, reqEditors ...RequestEditorFn) (*GetXcomEntryResponse, error)
// IssueTokenWithBodyWithResponse Issue a JWT for username/password credentials
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /auth/token (the `IssueToken` operationId).
IssueTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssueTokenResponse, error)
// IssueTokenWithResponse Issue a JWT for username/password credentials
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /auth/token (the `IssueToken` operationId).
IssueTokenWithResponse(ctx context.Context, body IssueTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*IssueTokenResponse, error)
// GetHealthzWithResponse Liveness probe
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /healthz (the `GetHealthz` operationId).
GetHealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthzResponse, error)
// GetReadyzWithResponse Readiness probe
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /readyz (the `GetReadyz` operationId).
GetReadyzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadyzResponse, error)
}
type ComponentHealth
ComponentHealth defines model for ComponentHealth.
type ComponentHealth struct {
LatestDagProcessorHeartbeat *string `json:"latest_dag_processor_heartbeat,omitempty"`
LatestSchedulerHeartbeat *string `json:"latest_scheduler_heartbeat,omitempty"`
LatestTriggererHeartbeat *string `json:"latest_triggerer_heartbeat,omitempty"`
Status *string `json:"status,omitempty"`
}
type CreateUserJSONRequestBody
CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.
type CreateUserJSONRequestBody = CreateUserRequest
type CreateUserRequest
CreateUserRequest defines model for CreateUserRequest.
type CreateUserRequest struct {
// Email Login email. Normalized to lowercase, so it is unique case-insensitively within the tenant.
Email string `json:"email"`
// Password Plaintext password (write-only; never returned). Must be at least 8 characters — the server rejects anything shorter with 400.
Password *string `json:"password,omitempty"`
// Roles Names of existing roles to grant; omit or empty to grant none.
Roles *[]string `json:"roles,omitempty"`
}
type CreateUserResponse
type CreateUserResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *User
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
}
func ParseCreateUserResponse
func ParseCreateUserResponse(rsp *http.Response) (*CreateUserResponse, error)
ParseCreateUserResponse parses an HTTP response from a CreateUserWithResponse call
func (CreateUserResponse) ContentType
func (r CreateUserResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateUserResponse) GetBody
func (r CreateUserResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateUserResponse) GetJSON201
func (r CreateUserResponse) GetJSON201() *User
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateUserResponse) GetJSON400
func (r CreateUserResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateUserResponse) GetJSON401
func (r CreateUserResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CreateUserResponse) GetJSON409
func (r CreateUserResponse) GetJSON409() *Error
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (CreateUserResponse) Status
func (r CreateUserResponse) Status() string
Status returns HTTPResponse.Status
func (CreateUserResponse) StatusCode
func (r CreateUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DAG
DAG defines model for DAG.
type DAG struct {
Catchup *bool `json:"catchup,omitempty"`
DagDisplayName *string `json:"dag_display_name,omitempty"`
DagId *string `json:"dag_id,omitempty"`
Description *string `json:"description,omitempty"`
HasTaskConcurrencyLimits *bool `json:"has_task_concurrency_limits,omitempty"`
IsActive *bool `json:"is_active,omitempty"`
IsPaused *bool `json:"is_paused,omitempty"`
LastParsedTime *time.Time `json:"last_parsed_time,omitempty"`
MaxActiveRuns *int `json:"max_active_runs,omitempty"`
NextDagrun *time.Time `json:"next_dagrun,omitempty"`
Owners *[]string `json:"owners,omitempty"`
ScheduleInterval *map[string]interface{} `json:"schedule_interval,omitempty"`
Tags *[]struct {
Name *string `json:"name,omitempty"`
} `json:"tags,omitempty"`
TimetableDescription *string `json:"timetable_description,omitempty"`
}
type DAGCollection
DAGCollection defines model for DAGCollection.
type DAGCollection struct {
Dags *[]DAG `json:"dags,omitempty"`
TotalEntries *int `json:"total_entries,omitempty"`
}
type DAGRun
DAGRun defines model for DAGRun.
type DAGRun struct {
Conf *map[string]interface{} `json:"conf,omitempty"`
DagId *string `json:"dag_id,omitempty"`
DagRunId *string `json:"dag_run_id,omitempty"`
DataIntervalEnd *time.Time `json:"data_interval_end,omitempty"`
DataIntervalStart *time.Time `json:"data_interval_start,omitempty"`
EndDate *time.Time `json:"end_date,omitempty"`
LogicalDate *time.Time `json:"logical_date,omitempty"`
Note *string `json:"note,omitempty"`
QueuedAt *time.Time `json:"queued_at,omitempty"`
RunType *DAGRunRunType `json:"run_type,omitempty"`
StartDate *time.Time `json:"start_date,omitempty"`
State *DAGRunState `json:"state,omitempty"`
}
type DAGRunCollection
DAGRunCollection defines model for DAGRunCollection.
type DAGRunCollection struct {
DagRuns *[]DAGRun `json:"dag_runs,omitempty"`
TotalEntries *int `json:"total_entries,omitempty"`
}
type DAGRunCreate
DAGRunCreate defines model for DAGRunCreate.
type DAGRunCreate struct {
Conf *map[string]interface{} `json:"conf,omitempty"`
DagRunId *string `json:"dag_run_id,omitempty"`
LogicalDate *time.Time `json:"logical_date,omitempty"`
Note *string `json:"note,omitempty"`
}
type DAGRunRunType
DAGRunRunType defines model for DAGRun.RunType.
type DAGRunRunType string
Defines values for DAGRunRunType.
const (
DAGRunRunTypeBackfill DAGRunRunType = "backfill"
DAGRunRunTypeDatasetTriggered DAGRunRunType = "dataset_triggered"
DAGRunRunTypeManual DAGRunRunType = "manual"
DAGRunRunTypeScheduled DAGRunRunType = "scheduled"
)
func (DAGRunRunType) Valid
func (e DAGRunRunType) Valid() bool
Valid indicates whether the value is a known member of the DAGRunRunType enum.
type DAGRunState
DAGRunState defines model for DAGRun.State.
type DAGRunState string
Defines values for DAGRunState.
const (
DAGRunStateFailed DAGRunState = "failed"
DAGRunStateQueued DAGRunState = "queued"
DAGRunStateRunning DAGRunState = "running"
DAGRunStateSuccess DAGRunState = "success"
)
func (DAGRunState) Valid
func (e DAGRunState) Valid() bool
Valid indicates whether the value is a known member of the DAGRunState enum.
type DAGUpdate
DAGUpdate defines model for DAGUpdate.
type DAGUpdate struct {
IsPaused *bool `json:"is_paused,omitempty"`
}
type DagID
DagID defines model for DagID.
type DagID = string
type DagRunID
DagRunID defines model for DagRunID.
type DagRunID = string
type DagSource
DagSource defines model for DagSource.
type DagSource struct {
// Content The dag.py source text (compiled-spec JSON fallback for pre-source-capture versions).
Content *string `json:"content,omitempty"`
DagDisplayName *string `json:"dag_display_name,omitempty"`
DagId *string `json:"dag_id,omitempty"`
VersionNumber *int `json:"version_number,omitempty"`
}
type DagVersion
DagVersion defines model for DagVersion.
type DagVersion struct {
BundleName *string `json:"bundle_name,omitempty"`
BundleUrl *string `json:"bundle_url,omitempty"`
BundleVersion *string `json:"bundle_version,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
DagDisplayName *string `json:"dag_display_name,omitempty"`
DagId *string `json:"dag_id,omitempty"`
Id *string `json:"id,omitempty"`
VersionNumber *int `json:"version_number,omitempty"`
}
type DagVersionCollection
DagVersionCollection defines model for DagVersionCollection.
type DagVersionCollection struct {
DagVersions *[]DagVersion `json:"dag_versions,omitempty"`
TotalEntries *int `json:"total_entries,omitempty"`
}
type Error
Error defines model for Error.
type Error struct {
Detail *string `json:"detail,omitempty"`
Instance *string `json:"instance,omitempty"`
Status *int `json:"status,omitempty"`
Title *string `json:"title,omitempty"`
Type *string `json:"type,omitempty"`
}
type ExecutorInfo
ExecutorInfo defines model for ExecutorInfo.
type ExecutorInfo struct {
AgentControlPlaneAddr *string `json:"agent_control_plane_addr,omitempty"`
ExecutionModes *[]string `json:"execution_modes,omitempty"`
PodDispatchEnabled *bool `json:"pod_dispatch_enabled,omitempty"`
TaskNamespace *string `json:"task_namespace,omitempty"`
}
type GetDagResponse
type GetDagResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DAG
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseGetDagResponse
func ParseGetDagResponse(rsp *http.Response) (*GetDagResponse, error)
ParseGetDagResponse parses an HTTP response from a GetDagWithResponse call
func (GetDagResponse) ContentType
func (r GetDagResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDagResponse) GetBody
func (r GetDagResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDagResponse) GetJSON200
func (r GetDagResponse) GetJSON200() *DAG
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDagResponse) GetJSON404
func (r GetDagResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetDagResponse) Status
func (r GetDagResponse) Status() string
Status returns HTTPResponse.Status
func (GetDagResponse) StatusCode
func (r GetDagResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDagRunResponse
type GetDagRunResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DAGRun
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseGetDagRunResponse
func ParseGetDagRunResponse(rsp *http.Response) (*GetDagRunResponse, error)
ParseGetDagRunResponse parses an HTTP response from a GetDagRunWithResponse call
func (GetDagRunResponse) ContentType
func (r GetDagRunResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDagRunResponse) GetBody
func (r GetDagRunResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDagRunResponse) GetJSON200
func (r GetDagRunResponse) GetJSON200() *DAGRun
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDagRunResponse) GetJSON404
func (r GetDagRunResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetDagRunResponse) Status
func (r GetDagRunResponse) Status() string
Status returns HTTPResponse.Status
func (GetDagRunResponse) StatusCode
func (r GetDagRunResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDagSourceResponse
type GetDagSourceResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DagSource
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseGetDagSourceResponse
func ParseGetDagSourceResponse(rsp *http.Response) (*GetDagSourceResponse, error)
ParseGetDagSourceResponse parses an HTTP response from a GetDagSourceWithResponse call
func (GetDagSourceResponse) ContentType
func (r GetDagSourceResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDagSourceResponse) GetBody
func (r GetDagSourceResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDagSourceResponse) GetJSON200
func (r GetDagSourceResponse) GetJSON200() *DagSource
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDagSourceResponse) GetJSON404
func (r GetDagSourceResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetDagSourceResponse) Status
func (r GetDagSourceResponse) Status() string
Status returns HTTPResponse.Status
func (GetDagSourceResponse) StatusCode
func (r GetDagSourceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDagSpecResponse
type GetDagSpecResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *map[string]interface{}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseGetDagSpecResponse
func ParseGetDagSpecResponse(rsp *http.Response) (*GetDagSpecResponse, error)
ParseGetDagSpecResponse parses an HTTP response from a GetDagSpecWithResponse call
func (GetDagSpecResponse) ContentType
func (r GetDagSpecResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDagSpecResponse) GetBody
func (r GetDagSpecResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDagSpecResponse) GetJSON200
func (r GetDagSpecResponse) GetJSON200() *map[string]interface{}
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDagSpecResponse) GetJSON404
func (r GetDagSpecResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetDagSpecResponse) Status
func (r GetDagSpecResponse) Status() string
Status returns HTTPResponse.Status
func (GetDagSpecResponse) StatusCode
func (r GetDagSpecResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDagVersionResponse
type GetDagVersionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DagVersion
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseGetDagVersionResponse
func ParseGetDagVersionResponse(rsp *http.Response) (*GetDagVersionResponse, error)
ParseGetDagVersionResponse parses an HTTP response from a GetDagVersionWithResponse call
func (GetDagVersionResponse) ContentType
func (r GetDagVersionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDagVersionResponse) GetBody
func (r GetDagVersionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDagVersionResponse) GetJSON200
func (r GetDagVersionResponse) GetJSON200() *DagVersion
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDagVersionResponse) GetJSON404
func (r GetDagVersionResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetDagVersionResponse) Status
func (r GetDagVersionResponse) Status() string
Status returns HTTPResponse.Status
func (GetDagVersionResponse) StatusCode
func (r GetDagVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHealthzResponse
type GetHealthzResponse struct {
Body []byte
HTTPResponse *http.Response
}
func ParseGetHealthzResponse
func ParseGetHealthzResponse(rsp *http.Response) (*GetHealthzResponse, error)
ParseGetHealthzResponse parses an HTTP response from a GetHealthzWithResponse call
func (GetHealthzResponse) ContentType
func (r GetHealthzResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHealthzResponse) GetBody
func (r GetHealthzResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHealthzResponse) Status
func (r GetHealthzResponse) Status() string
Status returns HTTPResponse.Status
func (GetHealthzResponse) StatusCode
func (r GetHealthzResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMonitorExecutorResponse
type GetMonitorExecutorResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ExecutorInfo
}
func ParseGetMonitorExecutorResponse
func ParseGetMonitorExecutorResponse(rsp *http.Response) (*GetMonitorExecutorResponse, error)
ParseGetMonitorExecutorResponse parses an HTTP response from a GetMonitorExecutorWithResponse call
func (GetMonitorExecutorResponse) ContentType
func (r GetMonitorExecutorResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetMonitorExecutorResponse) GetBody
func (r GetMonitorExecutorResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetMonitorExecutorResponse) GetJSON200
func (r GetMonitorExecutorResponse) GetJSON200() *ExecutorInfo
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetMonitorExecutorResponse) Status
func (r GetMonitorExecutorResponse) Status() string
Status returns HTTPResponse.Status
func (GetMonitorExecutorResponse) StatusCode
func (r GetMonitorExecutorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMonitorHealthResponse
type GetMonitorHealthResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *HealthInfo
}
func ParseGetMonitorHealthResponse
func ParseGetMonitorHealthResponse(rsp *http.Response) (*GetMonitorHealthResponse, error)
ParseGetMonitorHealthResponse parses an HTTP response from a GetMonitorHealthWithResponse call
func (GetMonitorHealthResponse) ContentType
func (r GetMonitorHealthResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetMonitorHealthResponse) GetBody
func (r GetMonitorHealthResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetMonitorHealthResponse) GetJSON200
func (r GetMonitorHealthResponse) GetJSON200() *HealthInfo
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetMonitorHealthResponse) Status
func (r GetMonitorHealthResponse) Status() string
Status returns HTTPResponse.Status
func (GetMonitorHealthResponse) StatusCode
func (r GetMonitorHealthResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetReadyzResponse
type GetReadyzResponse struct {
Body []byte
HTTPResponse *http.Response
}
func ParseGetReadyzResponse
func ParseGetReadyzResponse(rsp *http.Response) (*GetReadyzResponse, error)
ParseGetReadyzResponse parses an HTTP response from a GetReadyzWithResponse call
func (GetReadyzResponse) ContentType
func (r GetReadyzResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetReadyzResponse) GetBody
func (r GetReadyzResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetReadyzResponse) Status
func (r GetReadyzResponse) Status() string
Status returns HTTPResponse.Status
func (GetReadyzResponse) StatusCode
func (r GetReadyzResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTaskInstanceResponse
type GetTaskInstanceResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TaskInstance
}
func ParseGetTaskInstanceResponse
func ParseGetTaskInstanceResponse(rsp *http.Response) (*GetTaskInstanceResponse, error)
ParseGetTaskInstanceResponse parses an HTTP response from a GetTaskInstanceWithResponse call
func (GetTaskInstanceResponse) ContentType
func (r GetTaskInstanceResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetTaskInstanceResponse) GetBody
func (r GetTaskInstanceResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetTaskInstanceResponse) GetJSON200
func (r GetTaskInstanceResponse) GetJSON200() *TaskInstance
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetTaskInstanceResponse) Status
func (r GetTaskInstanceResponse) Status() string
Status returns HTTPResponse.Status
func (GetTaskInstanceResponse) StatusCode
func (r GetTaskInstanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTaskLogsResponse
type GetTaskLogsResponse struct {
Body []byte
HTTPResponse *http.Response
}
func ParseGetTaskLogsResponse
func ParseGetTaskLogsResponse(rsp *http.Response) (*GetTaskLogsResponse, error)
ParseGetTaskLogsResponse parses an HTTP response from a GetTaskLogsWithResponse call
func (GetTaskLogsResponse) ContentType
func (r GetTaskLogsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetTaskLogsResponse) GetBody
func (r GetTaskLogsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetTaskLogsResponse) Status
func (r GetTaskLogsResponse) Status() string
Status returns HTTPResponse.Status
func (GetTaskLogsResponse) StatusCode
func (r GetTaskLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetVersionResponse
type GetVersionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *VersionInfo
}
func ParseGetVersionResponse
func ParseGetVersionResponse(rsp *http.Response) (*GetVersionResponse, error)
ParseGetVersionResponse parses an HTTP response from a GetVersionWithResponse call
func (GetVersionResponse) ContentType
func (r GetVersionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetVersionResponse) GetBody
func (r GetVersionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetVersionResponse) GetJSON200
func (r GetVersionResponse) GetJSON200() *VersionInfo
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetVersionResponse) Status
func (r GetVersionResponse) Status() string
Status returns HTTPResponse.Status
func (GetVersionResponse) StatusCode
func (r GetVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetXcomEntryResponse
type GetXcomEntryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *XComEntry
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseGetXcomEntryResponse
func ParseGetXcomEntryResponse(rsp *http.Response) (*GetXcomEntryResponse, error)
ParseGetXcomEntryResponse parses an HTTP response from a GetXcomEntryWithResponse call
func (GetXcomEntryResponse) ContentType
func (r GetXcomEntryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetXcomEntryResponse) GetBody
func (r GetXcomEntryResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetXcomEntryResponse) GetJSON200
func (r GetXcomEntryResponse) GetJSON200() *XComEntry
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetXcomEntryResponse) GetJSON404
func (r GetXcomEntryResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetXcomEntryResponse) Status
func (r GetXcomEntryResponse) Status() string
Status returns HTTPResponse.Status
func (GetXcomEntryResponse) StatusCode
func (r GetXcomEntryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HealthInfo
HealthInfo defines model for HealthInfo.
type HealthInfo struct {
DagProcessor *ComponentHealth `json:"dag_processor,omitempty"`
Metadatabase *ComponentHealth `json:"metadatabase,omitempty"`
Scheduler *ComponentHealth `json:"scheduler,omitempty"`
Triggerer *ComponentHealth `json:"triggerer,omitempty"`
}
type HttpRequestDoer
Doer performs HTTP requests.
The standard http.Client implements this interface.
type HttpRequestDoer interface {
Do(req *http.Request) (*http.Response, error)
}
type IssueTokenJSONRequestBody
IssueTokenJSONRequestBody defines body for IssueToken for application/json ContentType.
type IssueTokenJSONRequestBody = TokenRequest
type IssueTokenResponse
type IssueTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TokenResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
}
func ParseIssueTokenResponse
func ParseIssueTokenResponse(rsp *http.Response) (*IssueTokenResponse, error)
ParseIssueTokenResponse parses an HTTP response from a IssueTokenWithResponse call
func (IssueTokenResponse) ContentType
func (r IssueTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (IssueTokenResponse) GetBody
func (r IssueTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (IssueTokenResponse) GetJSON200
func (r IssueTokenResponse) GetJSON200() *TokenResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (IssueTokenResponse) GetJSON401
func (r IssueTokenResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (IssueTokenResponse) Status
func (r IssueTokenResponse) Status() string
Status returns HTTPResponse.Status
func (IssueTokenResponse) StatusCode
func (r IssueTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Limit
Limit defines model for Limit.
type Limit = int
type ListDagRunsParams
ListDagRunsParams defines parameters for ListDagRuns.
type ListDagRunsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
State *[]ListDagRunsParamsState `form:"state,omitempty" json:"state,omitempty"`
}
type ListDagRunsParamsState
ListDagRunsParamsState defines parameters for ListDagRuns.
type ListDagRunsParamsState string
Defines values for ListDagRunsParamsState.
const (
ListDagRunsParamsStateFailed ListDagRunsParamsState = "failed"
ListDagRunsParamsStateQueued ListDagRunsParamsState = "queued"
ListDagRunsParamsStateRunning ListDagRunsParamsState = "running"
ListDagRunsParamsStateSuccess ListDagRunsParamsState = "success"
)
func (ListDagRunsParamsState) Valid
func (e ListDagRunsParamsState) Valid() bool
Valid indicates whether the value is a known member of the ListDagRunsParamsState enum.
type ListDagRunsResponse
type ListDagRunsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DAGRunCollection
}
func ParseListDagRunsResponse
func ParseListDagRunsResponse(rsp *http.Response) (*ListDagRunsResponse, error)
ParseListDagRunsResponse parses an HTTP response from a ListDagRunsWithResponse call
func (ListDagRunsResponse) ContentType
func (r ListDagRunsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListDagRunsResponse) GetBody
func (r ListDagRunsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListDagRunsResponse) GetJSON200
func (r ListDagRunsResponse) GetJSON200() *DAGRunCollection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListDagRunsResponse) Status
func (r ListDagRunsResponse) Status() string
Status returns HTTPResponse.Status
func (ListDagRunsResponse) StatusCode
func (r ListDagRunsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListDagVersionsResponse
type ListDagVersionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DagVersionCollection
}
func ParseListDagVersionsResponse
func ParseListDagVersionsResponse(rsp *http.Response) (*ListDagVersionsResponse, error)
ParseListDagVersionsResponse parses an HTTP response from a ListDagVersionsWithResponse call
func (ListDagVersionsResponse) ContentType
func (r ListDagVersionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListDagVersionsResponse) GetBody
func (r ListDagVersionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListDagVersionsResponse) GetJSON200
func (r ListDagVersionsResponse) GetJSON200() *DagVersionCollection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListDagVersionsResponse) Status
func (r ListDagVersionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListDagVersionsResponse) StatusCode
func (r ListDagVersionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListDagsParams
ListDagsParams defines parameters for ListDags.
type ListDagsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
Tags *[]string `form:"tags,omitempty" json:"tags,omitempty"`
OnlyActive *bool `form:"only_active,omitempty" json:"only_active,omitempty"`
Paused *bool `form:"paused,omitempty" json:"paused,omitempty"`
}
type ListDagsResponse
type ListDagsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DAGCollection
}
func ParseListDagsResponse
func ParseListDagsResponse(rsp *http.Response) (*ListDagsResponse, error)
ParseListDagsResponse parses an HTTP response from a ListDagsWithResponse call
func (ListDagsResponse) ContentType
func (r ListDagsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListDagsResponse) GetBody
func (r ListDagsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListDagsResponse) GetJSON200
func (r ListDagsResponse) GetJSON200() *DAGCollection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListDagsResponse) Status
func (r ListDagsResponse) Status() string
Status returns HTTPResponse.Status
func (ListDagsResponse) StatusCode
func (r ListDagsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListTaskInstancesResponse
type ListTaskInstancesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TaskInstanceCollection
}
func ParseListTaskInstancesResponse
func ParseListTaskInstancesResponse(rsp *http.Response) (*ListTaskInstancesResponse, error)
ParseListTaskInstancesResponse parses an HTTP response from a ListTaskInstancesWithResponse call
func (ListTaskInstancesResponse) ContentType
func (r ListTaskInstancesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListTaskInstancesResponse) GetBody
func (r ListTaskInstancesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListTaskInstancesResponse) GetJSON200
func (r ListTaskInstancesResponse) GetJSON200() *TaskInstanceCollection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListTaskInstancesResponse) Status
func (r ListTaskInstancesResponse) Status() string
Status returns HTTPResponse.Status
func (ListTaskInstancesResponse) StatusCode
func (r ListTaskInstancesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListUsersParams
ListUsersParams defines parameters for ListUsers.
type ListUsersParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
}
type ListUsersResponse
type ListUsersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UserCollection
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
}
func ParseListUsersResponse
func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error)
ParseListUsersResponse parses an HTTP response from a ListUsersWithResponse call
func (ListUsersResponse) ContentType
func (r ListUsersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListUsersResponse) GetBody
func (r ListUsersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListUsersResponse) GetJSON200
func (r ListUsersResponse) GetJSON200() *UserCollection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListUsersResponse) GetJSON401
func (r ListUsersResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListUsersResponse) Status
func (r ListUsersResponse) Status() string
Status returns HTTPResponse.Status
func (ListUsersResponse) StatusCode
func (r ListUsersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type NotFound
NotFound defines model for NotFound.
type NotFound = Error
type Offset
Offset defines model for Offset.
type Offset = int
type RenewTokenResponse
type RenewTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TokenResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
}
func ParseRenewTokenResponse
func ParseRenewTokenResponse(rsp *http.Response) (*RenewTokenResponse, error)
ParseRenewTokenResponse parses an HTTP response from a RenewTokenWithResponse call
func (RenewTokenResponse) ContentType
func (r RenewTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RenewTokenResponse) GetBody
func (r RenewTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RenewTokenResponse) GetJSON200
func (r RenewTokenResponse) GetJSON200() *TokenResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RenewTokenResponse) GetJSON401
func (r RenewTokenResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (RenewTokenResponse) Status
func (r RenewTokenResponse) Status() string
Status returns HTTPResponse.Status
func (RenewTokenResponse) StatusCode
func (r RenewTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn
RequestEditorFn is the function signature for the RequestEditor callback function
type RequestEditorFn func(ctx context.Context, req *http.Request) error
type TaskID
TaskID defines model for TaskID.
type TaskID = string
type TaskInstance
TaskInstance defines model for TaskInstance.
type TaskInstance struct {
DagId *string `json:"dag_id,omitempty"`
DagRunId *string `json:"dag_run_id,omitempty"`
Duration *float32 `json:"duration,omitempty"`
EndDate *time.Time `json:"end_date,omitempty"`
// FailureReason Leoflow extension (not part of the Airflow API). A short, human-readable cause for a terminal failure, recorded by whichever component observed it: the task's own report, the reconciler reading the pod (image pull, OOM, exit code), a reaper declaring the pod or agent lost, or the agent's classification of a failure that happened before it could register. It answers "why did this fail?" for an attempt that streamed no logs because its agent never started. Null when no cause was observed. Best-effort and diagnostic: it carries a classification, never a credential or a raw internal error.
//
// Example: the control plane rejected this pod's projected ServiceAccount token; check the control plane's RBAC for tokenreviews and the configured token audience.
FailureReason *string `json:"failure_reason,omitempty"`
Hostname *string `json:"hostname,omitempty"`
MapIndex *int `json:"map_index,omitempty"`
MaxTries *int `json:"max_tries,omitempty"`
Operator *string `json:"operator,omitempty"`
Pool *string `json:"pool,omitempty"`
StartDate *time.Time `json:"start_date,omitempty"`
State *TaskInstanceState `json:"state,omitempty"`
TaskId *string `json:"task_id,omitempty"`
TryNumber *int `json:"try_number,omitempty"`
}
type TaskInstanceCollection
TaskInstanceCollection defines model for TaskInstanceCollection.
type TaskInstanceCollection struct {
TaskInstances *[]TaskInstance `json:"task_instances,omitempty"`
TotalEntries *int `json:"total_entries,omitempty"`
}
type TaskInstanceState
TaskInstanceState defines model for TaskInstance.State.
type TaskInstanceState string
Defines values for TaskInstanceState.
const (
TaskInstanceStateFailed TaskInstanceState = "failed"
TaskInstanceStateNone TaskInstanceState = "none"
TaskInstanceStateQueued TaskInstanceState = "queued"
TaskInstanceStateRunning TaskInstanceState = "running"
TaskInstanceStateScheduled TaskInstanceState = "scheduled"
TaskInstanceStateSkipped TaskInstanceState = "skipped"
TaskInstanceStateSuccess TaskInstanceState = "success"
TaskInstanceStateUpForRetry TaskInstanceState = "up_for_retry"
TaskInstanceStateUpstreamFailed TaskInstanceState = "upstream_failed"
)
func (TaskInstanceState) Valid
func (e TaskInstanceState) Valid() bool
Valid indicates whether the value is a known member of the TaskInstanceState enum.
type TokenRequest
TokenRequest defines model for TokenRequest.
type TokenRequest struct {
Password string `json:"password"`
Username string `json:"username"`
}
type TokenResponse
TokenResponse defines model for TokenResponse.
type TokenResponse struct {
AccessToken *string `json:"access_token,omitempty"`
// ExpiresIn Example: 3600
ExpiresIn *int `json:"expires_in,omitempty"`
// TokenType Example: bearer
TokenType *string `json:"token_type,omitempty"`
}
type TriggerDagRunJSONRequestBody
TriggerDagRunJSONRequestBody defines body for TriggerDagRun for application/json ContentType.
type TriggerDagRunJSONRequestBody = DAGRunCreate
type TriggerDagRunResponse
type TriggerDagRunResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DAGRun
}
func ParseTriggerDagRunResponse
func ParseTriggerDagRunResponse(rsp *http.Response) (*TriggerDagRunResponse, error)
ParseTriggerDagRunResponse parses an HTTP response from a TriggerDagRunWithResponse call
func (TriggerDagRunResponse) ContentType
func (r TriggerDagRunResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (TriggerDagRunResponse) GetBody
func (r TriggerDagRunResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (TriggerDagRunResponse) GetJSON200
func (r TriggerDagRunResponse) GetJSON200() *DAGRun
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (TriggerDagRunResponse) Status
func (r TriggerDagRunResponse) Status() string
Status returns HTTPResponse.Status
func (TriggerDagRunResponse) StatusCode
func (r TriggerDagRunResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Unauthorized
Unauthorized defines model for Unauthorized.
type Unauthorized = Error
type UpdateDagJSONRequestBody
UpdateDagJSONRequestBody defines body for UpdateDag for application/json ContentType.
type UpdateDagJSONRequestBody = DAGUpdate
type UpdateDagResponse
type UpdateDagResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DAG
}
func ParseUpdateDagResponse
func ParseUpdateDagResponse(rsp *http.Response) (*UpdateDagResponse, error)
ParseUpdateDagResponse parses an HTTP response from a UpdateDagWithResponse call
func (UpdateDagResponse) ContentType
func (r UpdateDagResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateDagResponse) GetBody
func (r UpdateDagResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateDagResponse) GetJSON200
func (r UpdateDagResponse) GetJSON200() *DAG
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateDagResponse) Status
func (r UpdateDagResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateDagResponse) StatusCode
func (r UpdateDagResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type User
User defines model for User.
type User struct {
CreatedAt time.Time `json:"created_at"`
Email string `json:"email"`
Id string `json:"id"`
IsActive bool `json:"is_active"`
Roles []string `json:"roles"`
}
type UserCollection
UserCollection defines model for UserCollection.
type UserCollection struct {
TotalEntries *int `json:"total_entries,omitempty"`
Users *[]UserListItem `json:"users,omitempty"`
}
type UserListItem
UserListItem One account in the user list. Leoflow accounts are email-keyed and carry a set of RBAC roles, so this diverges from the Airflow FAB users API (username-keyed with first_name/last_name).
type UserListItem struct {
CreatedAt time.Time `json:"created_at"`
Email string `json:"email"`
Id string `json:"id"`
IsActive bool `json:"is_active"`
Roles []string `json:"roles"`
}
type VersionInfo
VersionInfo defines model for VersionInfo.
type VersionInfo struct {
GitVersion *string `json:"git_version,omitempty"`
Version *string `json:"version,omitempty"`
}
type XComEntry
XComEntry defines model for XComEntry.
type XComEntry struct {
DagId *string `json:"dag_id,omitempty"`
DagRunId *string `json:"dag_run_id,omitempty"`
Key *string `json:"key,omitempty"`
TaskId *string `json:"task_id,omitempty"`
Timestamp *time.Time `json:"timestamp,omitempty"`
Value interface{} `json:"value,omitempty"`
}
Generated by gomarkdoc