api

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 15 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package api 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSpec added in v0.6.0

func GetSpec() (swagger *openapi3.T, err error)

GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.

func GetSpecJSON added in v0.6.0

func GetSpecJSON() ([]byte, error)

GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.

func GetSwagger deprecated

func GetSwagger() (*openapi3.T, error)

GetSwagger returns the OpenAPI specification corresponding to the generated code in this file.

Deprecated: GetSwagger predates kin-openapi renaming openapi3.Swagger to openapi3.T. Use GetSpec instead. This wrapper is retained for backwards compatibility.

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func NewDeleteJobsIdRequest

func NewDeleteJobsIdRequest(server string, id string) (*http.Request, error)

NewDeleteJobsIdRequest constructs an http.Request for the DeleteJobsId method

func NewDeleteJobsIdTagsRequest

func NewDeleteJobsIdTagsRequest(server string, id string, params *DeleteJobsIdTagsParams, body DeleteJobsIdTagsJSONRequestBody) (*http.Request, error)

NewDeleteJobsIdTagsRequest calls the generic DeleteJobsIdTags builder with application/json body

func NewDeleteJobsIdTagsRequestWithBody

func NewDeleteJobsIdTagsRequestWithBody(server string, id string, params *DeleteJobsIdTagsParams, contentType string, body io.Reader) (*http.Request, error)

NewDeleteJobsIdTagsRequestWithBody constructs an http.Request for the DeleteJobsIdTags method, with any body, and a specified content type

func NewDeleteWorkflowsNameRequest

func NewDeleteWorkflowsNameRequest(server string, name string) (*http.Request, error)

NewDeleteWorkflowsNameRequest constructs an http.Request for the DeleteWorkflowsName method

func NewGetHealthRequest

func NewGetHealthRequest(server string) (*http.Request, error)

NewGetHealthRequest constructs an http.Request for the GetHealth method

func NewGetJobsEventsRequest

func NewGetJobsEventsRequest(server string, params *GetJobsEventsParams) (*http.Request, error)

NewGetJobsEventsRequest constructs an http.Request for the GetJobsEvents method

func NewGetJobsIdDefinitionRequest

func NewGetJobsIdDefinitionRequest(server string, id string, params *GetJobsIdDefinitionParams) (*http.Request, error)

NewGetJobsIdDefinitionRequest constructs an http.Request for the GetJobsIdDefinition method

func NewGetJobsIdRequest

func NewGetJobsIdRequest(server string, id string, params *GetJobsIdParams) (*http.Request, error)

NewGetJobsIdRequest constructs an http.Request for the GetJobsId method

func NewGetJobsIdStatusRequest

func NewGetJobsIdStatusRequest(server string, id string, params *GetJobsIdStatusParams) (*http.Request, error)

NewGetJobsIdStatusRequest constructs an http.Request for the GetJobsIdStatus method

func NewGetJobsIdTagsRequest

func NewGetJobsIdTagsRequest(server string, id string, params *GetJobsIdTagsParams) (*http.Request, error)

NewGetJobsIdTagsRequest constructs an http.Request for the GetJobsIdTags method

func NewGetJobsRequest

func NewGetJobsRequest(server string, params *GetJobsParams) (*http.Request, error)

NewGetJobsRequest constructs an http.Request for the GetJobs method

func NewGetVersionRequest

func NewGetVersionRequest(server string) (*http.Request, error)

NewGetVersionRequest constructs an http.Request for the GetVersion method

func NewGetWorkflowsNameRequest

func NewGetWorkflowsNameRequest(server string, name string, params *GetWorkflowsNameParams) (*http.Request, error)

NewGetWorkflowsNameRequest constructs an http.Request for the GetWorkflowsName method

func NewGetWorkflowsRequest

func NewGetWorkflowsRequest(server string, params *GetWorkflowsParams) (*http.Request, error)

NewGetWorkflowsRequest constructs an http.Request for the GetWorkflows method

func NewPostJobsIdTagsRequest

func NewPostJobsIdTagsRequest(server string, id string, params *PostJobsIdTagsParams, body PostJobsIdTagsJSONRequestBody) (*http.Request, error)

NewPostJobsIdTagsRequest calls the generic PostJobsIdTags builder with application/json body

func NewPostJobsIdTagsRequestWithBody

func NewPostJobsIdTagsRequestWithBody(server string, id string, params *PostJobsIdTagsParams, contentType string, body io.Reader) (*http.Request, error)

NewPostJobsIdTagsRequestWithBody constructs an http.Request for the PostJobsIdTags method, with any body, and a specified content type

func NewPostJobsRequest

func NewPostJobsRequest(server string, params *PostJobsParams, body PostJobsJSONRequestBody) (*http.Request, error)

NewPostJobsRequest calls the generic PostJobs builder with application/json body

func NewPostJobsRequestWithBody

func NewPostJobsRequestWithBody(server string, params *PostJobsParams, contentType string, body io.Reader) (*http.Request, error)

NewPostJobsRequestWithBody constructs an http.Request for the PostJobs method, with any body, and a specified content type

func NewPostWorkflowsRequest

func NewPostWorkflowsRequest(server string, params *PostWorkflowsParams, body PostWorkflowsJSONRequestBody) (*http.Request, error)

NewPostWorkflowsRequest calls the generic PostWorkflows builder with application/json body

func NewPostWorkflowsRequestWithBody

func NewPostWorkflowsRequestWithBody(server string, params *PostWorkflowsParams, contentType string, body io.Reader) (*http.Request, error)

NewPostWorkflowsRequestWithBody constructs an http.Request for the PostWorkflows method, with any body, and a specified content type

func NewPutJobsIdDefinitionRequest

func NewPutJobsIdDefinitionRequest(server string, id string, params *PutJobsIdDefinitionParams, body PutJobsIdDefinitionJSONRequestBody) (*http.Request, error)

NewPutJobsIdDefinitionRequest calls the generic PutJobsIdDefinition builder with application/json body

func NewPutJobsIdDefinitionRequestWithBody

func NewPutJobsIdDefinitionRequestWithBody(server string, id string, params *PutJobsIdDefinitionParams, contentType string, body io.Reader) (*http.Request, error)

NewPutJobsIdDefinitionRequestWithBody constructs an http.Request for the PutJobsIdDefinition method, with any body, and a specified content type

func NewPutJobsIdStatusRequest

func NewPutJobsIdStatusRequest(server string, id string, params *PutJobsIdStatusParams, body PutJobsIdStatusJSONRequestBody) (*http.Request, error)

NewPutJobsIdStatusRequest calls the generic PutJobsIdStatus builder with application/json body

func NewPutJobsIdStatusRequestWithBody

func NewPutJobsIdStatusRequestWithBody(server string, id string, params *PutJobsIdStatusParams, contentType string, body io.Reader) (*http.Request, error)

NewPutJobsIdStatusRequestWithBody constructs an http.Request for the PutJobsIdStatus method, with any body, and a specified content type

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

Types

type ActionEnum

type ActionEnum string

ActionEnum defines model for ActionEnum.

const (
	IMMEDIATE ActionEnum = "IMMEDIATE"
	WAIT      ActionEnum = "WAIT"
)

Defines values for ActionEnum.

func (ActionEnum) Valid added in v0.5.0

func (e ActionEnum) Valid() bool

Valid indicates whether the value is a known member of the ActionEnum enum.

type AvailabilityStatus

type AvailabilityStatus string

AvailabilityStatus Enumeration of possible availability statuses.

const (
	Down    AvailabilityStatus = "down"
	Unknown AvailabilityStatus = "unknown"
	Up      AvailabilityStatus = "up"
)

Defines values for AvailabilityStatus.

func (AvailabilityStatus) Valid added in v0.5.0

func (e AvailabilityStatus) Valid() bool

Valid indicates whether the value is a known member of the AvailabilityStatus enum.

type CheckResult

type CheckResult struct {
	// Error The check error message, if the check failed.
	//
	// Example: Component not reachable
	Error string `json:"error,omitempty"`

	// Status Enumeration of possible availability statuses.
	Status AvailabilityStatus `json:"status,omitempty"`

	// Timestamp The time when the check was executed.
	//
	// Example: 2023-10-03T10:15:30Z
	Timestamp time.Time `json:"timestamp,omitempty"`
}

CheckResult Health information for a checked component.

type CheckerResult

type CheckerResult struct {
	// Details Details contains health information for all checked components.
	Details *map[string]CheckResult `json:"details,omitempty"`

	// Info Info contains additional information about this health result.
	Info *map[string]interface{} `json:"info,omitempty"`

	// Status Enumeration of possible availability statuses.
	Status AvailabilityStatus `json:"status,omitempty"`
}

CheckerResult defines model for CheckerResult.

type Client

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
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) DeleteJobsId

func (c *Client) DeleteJobsId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteJobsId Delete a specific job

Corresponds with DELETE /jobs/{id} (the `DeleteJobsId` operationId).

func (*Client) DeleteJobsIdTags

func (c *Client) DeleteJobsIdTags(ctx context.Context, id string, params *DeleteJobsIdTagsParams, body DeleteJobsIdTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteJobsIdTags Delete a tag from a specific job

Takes a body of the `application/json` content type.

Corresponds with DELETE /jobs/{id}/tags (the `DeleteJobsIdTags` operationId).

func (*Client) DeleteJobsIdTagsWithBody

func (c *Client) DeleteJobsIdTagsWithBody(ctx context.Context, id string, params *DeleteJobsIdTagsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteJobsIdTagsWithBody Delete a tag from a specific job

Takes any type of body and a specified content type.

Corresponds with DELETE /jobs/{id}/tags (the `DeleteJobsIdTags` operationId).

func (*Client) DeleteWorkflowsName

func (c *Client) DeleteWorkflowsName(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteWorkflowsName Delete a specific workflow

Corresponds with DELETE /workflows/{name} (the `DeleteWorkflowsName` operationId).

func (*Client) GetHealth

func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetHealth Query wfx's health status

Corresponds with GET /health (the `GetHealth` operationId).

func (*Client) GetJobs

func (c *Client) GetJobs(ctx context.Context, params *GetJobsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetJobs List available jobs

Detailed list of jobs By default, this endpoint returns the list of jobs in a specific order and predetermined paging properties. These defaults are:

  • Ascending sort on stime
  • 10 entries per page

Corresponds with GET /jobs (the `GetJobs` operationId).

func (*Client) GetJobsEvents

func (c *Client) GetJobsEvents(ctx context.Context, params *GetJobsEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetJobsEvents Subscribe to job-related events such as status updates

Obtain instant notifications when there are job changes matching the criteria. This endpoint utilizes server-sent events (SSE), where responses are "chunked" with double newline breaks. Note: The filter parameters are independent of each other; an event matches if it satisfies any of the specified filter parameters. For example, a single event might look like this:

data: {"clientId":"example_client","state":"INSTALLING"}\n\n

Corresponds with GET /jobs/events (the `GetJobsEvents` operationId).

func (*Client) GetJobsId

func (c *Client) GetJobsId(ctx context.Context, id string, params *GetJobsIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetJobsId Get specific job's details

Get details of a specific job.

Corresponds with GET /jobs/{id} (the `GetJobsId` operationId).

func (*Client) GetJobsIdDefinition

func (c *Client) GetJobsIdDefinition(ctx context.Context, id string, params *GetJobsIdDefinitionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetJobsIdDefinition Get specific job's definition

Get definition of a specific job.

Corresponds with GET /jobs/{id}/definition (the `GetJobsIdDefinition` operationId).

func (*Client) GetJobsIdStatus

func (c *Client) GetJobsIdStatus(ctx context.Context, id string, params *GetJobsIdStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetJobsIdStatus Get specific job's status

Get status of a specific job.

Corresponds with GET /jobs/{id}/status (the `GetJobsIdStatus` operationId).

func (*Client) GetJobsIdTags

func (c *Client) GetJobsIdTags(ctx context.Context, id string, params *GetJobsIdTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetJobsIdTags Get specific job's tags

Get tags of a specific job.

Corresponds with GET /jobs/{id}/tags (the `GetJobsIdTags` operationId).

func (*Client) GetVersion

func (c *Client) GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetVersion Query wfx's version information

Corresponds with GET /version (the `GetVersion` operationId).

func (*Client) GetWorkflows

func (c *Client) GetWorkflows(ctx context.Context, params *GetWorkflowsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetWorkflows List available workflows

Detailed list of available workflows.

Corresponds with GET /workflows (the `GetWorkflows` operationId).

func (*Client) GetWorkflowsName

func (c *Client) GetWorkflowsName(ctx context.Context, name string, params *GetWorkflowsNameParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetWorkflowsName Get specific workflow's details

Get details of a specific workflow.

Corresponds with GET /workflows/{name} (the `GetWorkflowsName` operationId).

func (*Client) PostJobs

func (c *Client) PostJobs(ctx context.Context, params *PostJobsParams, body PostJobsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PostJobs Add a new job

Takes a body of the `application/json` content type.

Corresponds with POST /jobs (the `PostJobs` operationId).

func (*Client) PostJobsIdTags

func (c *Client) PostJobsIdTags(ctx context.Context, id string, params *PostJobsIdTagsParams, body PostJobsIdTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PostJobsIdTags Add a tag to a specific job

Takes a body of the `application/json` content type.

Corresponds with POST /jobs/{id}/tags (the `PostJobsIdTags` operationId).

func (*Client) PostJobsIdTagsWithBody

func (c *Client) PostJobsIdTagsWithBody(ctx context.Context, id string, params *PostJobsIdTagsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PostJobsIdTagsWithBody Add a tag to a specific job

Takes any type of body and a specified content type.

Corresponds with POST /jobs/{id}/tags (the `PostJobsIdTags` operationId).

func (*Client) PostJobsWithBody

func (c *Client) PostJobsWithBody(ctx context.Context, params *PostJobsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PostJobsWithBody Add a new job

Takes any type of body and a specified content type.

Corresponds with POST /jobs (the `PostJobs` operationId).

func (*Client) PostWorkflows

func (c *Client) PostWorkflows(ctx context.Context, params *PostWorkflowsParams, body PostWorkflowsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PostWorkflows Add a new workflow

Takes a body of the `application/json` content type.

Corresponds with POST /workflows (the `PostWorkflows` operationId).

func (*Client) PostWorkflowsWithBody

func (c *Client) PostWorkflowsWithBody(ctx context.Context, params *PostWorkflowsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PostWorkflowsWithBody Add a new workflow

Takes any type of body and a specified content type.

Corresponds with POST /workflows (the `PostWorkflows` operationId).

func (*Client) PutJobsIdDefinition

func (c *Client) PutJobsIdDefinition(ctx context.Context, id string, params *PutJobsIdDefinitionParams, body PutJobsIdDefinitionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PutJobsIdDefinition Modify specific job's definition

Takes a body of the `application/json` content type.

Corresponds with PUT /jobs/{id}/definition (the `PutJobsIdDefinition` operationId).

func (*Client) PutJobsIdDefinitionWithBody

func (c *Client) PutJobsIdDefinitionWithBody(ctx context.Context, id string, params *PutJobsIdDefinitionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PutJobsIdDefinitionWithBody Modify specific job's definition

Takes any type of body and a specified content type.

Corresponds with PUT /jobs/{id}/definition (the `PutJobsIdDefinition` operationId).

func (*Client) PutJobsIdStatus

func (c *Client) PutJobsIdStatus(ctx context.Context, id string, params *PutJobsIdStatusParams, body PutJobsIdStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PutJobsIdStatus Modify specific job's status

Modify a specific job's status.

Takes a body of the `application/json` content type.

Corresponds with PUT /jobs/{id}/status (the `PutJobsIdStatus` operationId).

func (*Client) PutJobsIdStatusWithBody

func (c *Client) PutJobsIdStatusWithBody(ctx context.Context, id string, params *PutJobsIdStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PutJobsIdStatusWithBody Modify specific job's status

Modify a specific job's status.

Takes any type of body and a specified content type.

Corresponds with PUT /jobs/{id}/status (the `PutJobsIdStatus` operationId).

type ClientInterface

type ClientInterface interface {

	// GetHealth Query wfx's health status
	//
	// Corresponds with GET /health (the `GetHealth` operationId).
	GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetJobs List available jobs
	//
	// Detailed list of jobs
	// By default, this endpoint returns the list of jobs in a specific order and predetermined paging properties.
	// These defaults are:
	//   - Ascending sort on stime
	//   - 10 entries per page
	//
	// Corresponds with GET /jobs (the `GetJobs` operationId).
	GetJobs(ctx context.Context, params *GetJobsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostJobsWithBody Add a new job
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /jobs (the `PostJobs` operationId).
	PostJobsWithBody(ctx context.Context, params *PostJobsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostJobs Add a new job
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /jobs (the `PostJobs` operationId).
	PostJobs(ctx context.Context, params *PostJobsParams, body PostJobsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetJobsEvents Subscribe to job-related events such as status updates
	//
	// Obtain instant notifications when there are job changes matching the criteria. This endpoint utilizes server-sent events (SSE), where responses are "chunked" with double newline breaks.
	// Note: The filter parameters are independent of each other; an event matches if it satisfies any of the specified filter parameters.
	// For example, a single event might look like this:
	//   data: {"clientId":"example_client","state":"INSTALLING"}\n\n
	//
	// Corresponds with GET /jobs/events (the `GetJobsEvents` operationId).
	GetJobsEvents(ctx context.Context, params *GetJobsEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteJobsId Delete a specific job
	//
	// Corresponds with DELETE /jobs/{id} (the `DeleteJobsId` operationId).
	DeleteJobsId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetJobsId Get specific job's details
	//
	// Get details of a specific job.
	//
	// Corresponds with GET /jobs/{id} (the `GetJobsId` operationId).
	GetJobsId(ctx context.Context, id string, params *GetJobsIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetJobsIdDefinition Get specific job's definition
	//
	// Get definition of a specific job.
	//
	// Corresponds with GET /jobs/{id}/definition (the `GetJobsIdDefinition` operationId).
	GetJobsIdDefinition(ctx context.Context, id string, params *GetJobsIdDefinitionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutJobsIdDefinitionWithBody Modify specific job's definition
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /jobs/{id}/definition (the `PutJobsIdDefinition` operationId).
	PutJobsIdDefinitionWithBody(ctx context.Context, id string, params *PutJobsIdDefinitionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutJobsIdDefinition Modify specific job's definition
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /jobs/{id}/definition (the `PutJobsIdDefinition` operationId).
	PutJobsIdDefinition(ctx context.Context, id string, params *PutJobsIdDefinitionParams, body PutJobsIdDefinitionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetJobsIdStatus Get specific job's status
	//
	// Get status of a specific job.
	//
	// Corresponds with GET /jobs/{id}/status (the `GetJobsIdStatus` operationId).
	GetJobsIdStatus(ctx context.Context, id string, params *GetJobsIdStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutJobsIdStatusWithBody Modify specific job's status
	//
	// Modify a specific job's status.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /jobs/{id}/status (the `PutJobsIdStatus` operationId).
	PutJobsIdStatusWithBody(ctx context.Context, id string, params *PutJobsIdStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutJobsIdStatus Modify specific job's status
	//
	// Modify a specific job's status.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /jobs/{id}/status (the `PutJobsIdStatus` operationId).
	PutJobsIdStatus(ctx context.Context, id string, params *PutJobsIdStatusParams, body PutJobsIdStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteJobsIdTagsWithBody Delete a tag from a specific job
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with DELETE /jobs/{id}/tags (the `DeleteJobsIdTags` operationId).
	DeleteJobsIdTagsWithBody(ctx context.Context, id string, params *DeleteJobsIdTagsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteJobsIdTags Delete a tag from a specific job
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with DELETE /jobs/{id}/tags (the `DeleteJobsIdTags` operationId).
	DeleteJobsIdTags(ctx context.Context, id string, params *DeleteJobsIdTagsParams, body DeleteJobsIdTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetJobsIdTags Get specific job's tags
	//
	// Get tags of a specific job.
	//
	// Corresponds with GET /jobs/{id}/tags (the `GetJobsIdTags` operationId).
	GetJobsIdTags(ctx context.Context, id string, params *GetJobsIdTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostJobsIdTagsWithBody Add a tag to a specific job
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /jobs/{id}/tags (the `PostJobsIdTags` operationId).
	PostJobsIdTagsWithBody(ctx context.Context, id string, params *PostJobsIdTagsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostJobsIdTags Add a tag to a specific job
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /jobs/{id}/tags (the `PostJobsIdTags` operationId).
	PostJobsIdTags(ctx context.Context, id string, params *PostJobsIdTagsParams, body PostJobsIdTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVersion Query wfx's version information
	//
	// Corresponds with GET /version (the `GetVersion` operationId).
	GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWorkflows List available workflows
	//
	// Detailed list of available workflows.
	//
	// Corresponds with GET /workflows (the `GetWorkflows` operationId).
	GetWorkflows(ctx context.Context, params *GetWorkflowsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostWorkflowsWithBody Add a new workflow
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /workflows (the `PostWorkflows` operationId).
	PostWorkflowsWithBody(ctx context.Context, params *PostWorkflowsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostWorkflows Add a new workflow
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /workflows (the `PostWorkflows` operationId).
	PostWorkflows(ctx context.Context, params *PostWorkflowsParams, body PostWorkflowsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteWorkflowsName Delete a specific workflow
	//
	// Corresponds with DELETE /workflows/{name} (the `DeleteWorkflowsName` operationId).
	DeleteWorkflowsName(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWorkflowsName Get specific workflow's details
	//
	// Get details of a specific workflow.
	//
	// Corresponds with GET /workflows/{name} (the `GetWorkflowsName` operationId).
	GetWorkflowsName(ctx context.Context, name string, params *GetWorkflowsNameParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

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

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) DeleteJobsIdTagsWithBodyWithResponse

func (c *ClientWithResponses) DeleteJobsIdTagsWithBodyWithResponse(ctx context.Context, id string, params *DeleteJobsIdTagsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteJobsIdTagsResponse, error)

DeleteJobsIdTagsWithBodyWithResponse Delete a tag from a specific job

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with DELETE /jobs/{id}/tags (the `DeleteJobsIdTags` operationId).

func (*ClientWithResponses) DeleteJobsIdTagsWithResponse

func (c *ClientWithResponses) DeleteJobsIdTagsWithResponse(ctx context.Context, id string, params *DeleteJobsIdTagsParams, body DeleteJobsIdTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteJobsIdTagsResponse, error)

DeleteJobsIdTagsWithResponse Delete a tag from a specific job

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with DELETE /jobs/{id}/tags (the `DeleteJobsIdTags` operationId).

func (*ClientWithResponses) DeleteJobsIdWithResponse

func (c *ClientWithResponses) DeleteJobsIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteJobsIdResponse, error)

DeleteJobsIdWithResponse Delete a specific job

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /jobs/{id} (the `DeleteJobsId` operationId).

func (*ClientWithResponses) DeleteWorkflowsNameWithResponse

func (c *ClientWithResponses) DeleteWorkflowsNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteWorkflowsNameResponse, error)

DeleteWorkflowsNameWithResponse Delete a specific workflow

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /workflows/{name} (the `DeleteWorkflowsName` operationId).

func (*ClientWithResponses) GetHealthWithResponse

func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)

GetHealthWithResponse Query wfx's health status

Returns a wrapper object for the known response body format(s).

Corresponds with GET /health (the `GetHealth` operationId).

func (*ClientWithResponses) GetJobsEventsWithResponse

func (c *ClientWithResponses) GetJobsEventsWithResponse(ctx context.Context, params *GetJobsEventsParams, reqEditors ...RequestEditorFn) (*GetJobsEventsResponse, error)

GetJobsEventsWithResponse Subscribe to job-related events such as status updates

Obtain instant notifications when there are job changes matching the criteria. This endpoint utilizes server-sent events (SSE), where responses are "chunked" with double newline breaks. Note: The filter parameters are independent of each other; an event matches if it satisfies any of the specified filter parameters. For example, a single event might look like this:

data: {"clientId":"example_client","state":"INSTALLING"}\n\n

Returns a wrapper object for the known response body format(s).

Corresponds with GET /jobs/events (the `GetJobsEvents` operationId).

func (*ClientWithResponses) GetJobsIdDefinitionWithResponse

func (c *ClientWithResponses) GetJobsIdDefinitionWithResponse(ctx context.Context, id string, params *GetJobsIdDefinitionParams, reqEditors ...RequestEditorFn) (*GetJobsIdDefinitionResponse, error)

GetJobsIdDefinitionWithResponse Get specific job's definition

Get definition of a specific job.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /jobs/{id}/definition (the `GetJobsIdDefinition` operationId).

func (*ClientWithResponses) GetJobsIdStatusWithResponse

func (c *ClientWithResponses) GetJobsIdStatusWithResponse(ctx context.Context, id string, params *GetJobsIdStatusParams, reqEditors ...RequestEditorFn) (*GetJobsIdStatusResponse, error)

GetJobsIdStatusWithResponse Get specific job's status

Get status of a specific job.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /jobs/{id}/status (the `GetJobsIdStatus` operationId).

func (*ClientWithResponses) GetJobsIdTagsWithResponse

func (c *ClientWithResponses) GetJobsIdTagsWithResponse(ctx context.Context, id string, params *GetJobsIdTagsParams, reqEditors ...RequestEditorFn) (*GetJobsIdTagsResponse, error)

GetJobsIdTagsWithResponse Get specific job's tags

Get tags of a specific job.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /jobs/{id}/tags (the `GetJobsIdTags` operationId).

func (*ClientWithResponses) GetJobsIdWithResponse

func (c *ClientWithResponses) GetJobsIdWithResponse(ctx context.Context, id string, params *GetJobsIdParams, reqEditors ...RequestEditorFn) (*GetJobsIdResponse, error)

GetJobsIdWithResponse Get specific job's details

Get details of a specific job.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /jobs/{id} (the `GetJobsId` operationId).

func (*ClientWithResponses) GetJobsWithResponse

func (c *ClientWithResponses) GetJobsWithResponse(ctx context.Context, params *GetJobsParams, reqEditors ...RequestEditorFn) (*GetJobsResponse, error)

GetJobsWithResponse List available jobs

Detailed list of jobs By default, this endpoint returns the list of jobs in a specific order and predetermined paging properties. These defaults are:

  • Ascending sort on stime
  • 10 entries per page

Returns a wrapper object for the known response body format(s).

Corresponds with GET /jobs (the `GetJobs` operationId).

func (*ClientWithResponses) GetVersionWithResponse

func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)

GetVersionWithResponse Query wfx's version information

Returns a wrapper object for the known response body format(s).

Corresponds with GET /version (the `GetVersion` operationId).

func (*ClientWithResponses) GetWorkflowsNameWithResponse

func (c *ClientWithResponses) GetWorkflowsNameWithResponse(ctx context.Context, name string, params *GetWorkflowsNameParams, reqEditors ...RequestEditorFn) (*GetWorkflowsNameResponse, error)

GetWorkflowsNameWithResponse Get specific workflow's details

Get details of a specific workflow.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /workflows/{name} (the `GetWorkflowsName` operationId).

func (*ClientWithResponses) GetWorkflowsWithResponse

func (c *ClientWithResponses) GetWorkflowsWithResponse(ctx context.Context, params *GetWorkflowsParams, reqEditors ...RequestEditorFn) (*GetWorkflowsResponse, error)

GetWorkflowsWithResponse List available workflows

Detailed list of available workflows.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /workflows (the `GetWorkflows` operationId).

func (*ClientWithResponses) PostJobsIdTagsWithBodyWithResponse

func (c *ClientWithResponses) PostJobsIdTagsWithBodyWithResponse(ctx context.Context, id string, params *PostJobsIdTagsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostJobsIdTagsResponse, error)

PostJobsIdTagsWithBodyWithResponse Add a tag to a specific job

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 /jobs/{id}/tags (the `PostJobsIdTags` operationId).

func (*ClientWithResponses) PostJobsIdTagsWithResponse

func (c *ClientWithResponses) PostJobsIdTagsWithResponse(ctx context.Context, id string, params *PostJobsIdTagsParams, body PostJobsIdTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostJobsIdTagsResponse, error)

PostJobsIdTagsWithResponse Add a tag to a specific job

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /jobs/{id}/tags (the `PostJobsIdTags` operationId).

func (*ClientWithResponses) PostJobsWithBodyWithResponse

func (c *ClientWithResponses) PostJobsWithBodyWithResponse(ctx context.Context, params *PostJobsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostJobsResponse, error)

PostJobsWithBodyWithResponse Add a new job

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 /jobs (the `PostJobs` operationId).

func (*ClientWithResponses) PostJobsWithResponse

func (c *ClientWithResponses) PostJobsWithResponse(ctx context.Context, params *PostJobsParams, body PostJobsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostJobsResponse, error)

PostJobsWithResponse Add a new job

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /jobs (the `PostJobs` operationId).

func (*ClientWithResponses) PostWorkflowsWithBodyWithResponse

func (c *ClientWithResponses) PostWorkflowsWithBodyWithResponse(ctx context.Context, params *PostWorkflowsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostWorkflowsResponse, error)

PostWorkflowsWithBodyWithResponse Add a new workflow

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 /workflows (the `PostWorkflows` operationId).

func (*ClientWithResponses) PostWorkflowsWithResponse

func (c *ClientWithResponses) PostWorkflowsWithResponse(ctx context.Context, params *PostWorkflowsParams, body PostWorkflowsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostWorkflowsResponse, error)

PostWorkflowsWithResponse Add a new workflow

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /workflows (the `PostWorkflows` operationId).

func (*ClientWithResponses) PutJobsIdDefinitionWithBodyWithResponse

func (c *ClientWithResponses) PutJobsIdDefinitionWithBodyWithResponse(ctx context.Context, id string, params *PutJobsIdDefinitionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutJobsIdDefinitionResponse, error)

PutJobsIdDefinitionWithBodyWithResponse Modify specific job's definition

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /jobs/{id}/definition (the `PutJobsIdDefinition` operationId).

func (*ClientWithResponses) PutJobsIdDefinitionWithResponse

PutJobsIdDefinitionWithResponse Modify specific job's definition

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /jobs/{id}/definition (the `PutJobsIdDefinition` operationId).

func (*ClientWithResponses) PutJobsIdStatusWithBodyWithResponse

func (c *ClientWithResponses) PutJobsIdStatusWithBodyWithResponse(ctx context.Context, id string, params *PutJobsIdStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutJobsIdStatusResponse, error)

PutJobsIdStatusWithBodyWithResponse Modify specific job's status

Modify a specific job's status.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /jobs/{id}/status (the `PutJobsIdStatus` operationId).

func (*ClientWithResponses) PutJobsIdStatusWithResponse

func (c *ClientWithResponses) PutJobsIdStatusWithResponse(ctx context.Context, id string, params *PutJobsIdStatusParams, body PutJobsIdStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*PutJobsIdStatusResponse, error)

PutJobsIdStatusWithResponse Modify specific job's status

Modify a specific job's status.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /jobs/{id}/status (the `PutJobsIdStatus` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// GetHealthWithResponse Query wfx's health status
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /health (the `GetHealth` operationId).
	GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)

	// GetJobsWithResponse List available jobs
	//
	// Detailed list of jobs
	// By default, this endpoint returns the list of jobs in a specific order and predetermined paging properties.
	// These defaults are:
	//   - Ascending sort on stime
	//   - 10 entries per page
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /jobs (the `GetJobs` operationId).
	GetJobsWithResponse(ctx context.Context, params *GetJobsParams, reqEditors ...RequestEditorFn) (*GetJobsResponse, error)

	// PostJobsWithBodyWithResponse Add a new job
	//
	// 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 /jobs (the `PostJobs` operationId).
	PostJobsWithBodyWithResponse(ctx context.Context, params *PostJobsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostJobsResponse, error)

	// PostJobsWithResponse Add a new job
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /jobs (the `PostJobs` operationId).
	PostJobsWithResponse(ctx context.Context, params *PostJobsParams, body PostJobsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostJobsResponse, error)

	// GetJobsEventsWithResponse Subscribe to job-related events such as status updates
	//
	// Obtain instant notifications when there are job changes matching the criteria. This endpoint utilizes server-sent events (SSE), where responses are "chunked" with double newline breaks.
	// Note: The filter parameters are independent of each other; an event matches if it satisfies any of the specified filter parameters.
	// For example, a single event might look like this:
	//   data: {"clientId":"example_client","state":"INSTALLING"}\n\n
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /jobs/events (the `GetJobsEvents` operationId).
	GetJobsEventsWithResponse(ctx context.Context, params *GetJobsEventsParams, reqEditors ...RequestEditorFn) (*GetJobsEventsResponse, error)

	// DeleteJobsIdWithResponse Delete a specific job
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /jobs/{id} (the `DeleteJobsId` operationId).
	DeleteJobsIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteJobsIdResponse, error)

	// GetJobsIdWithResponse Get specific job's details
	//
	// Get details of a specific job.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /jobs/{id} (the `GetJobsId` operationId).
	GetJobsIdWithResponse(ctx context.Context, id string, params *GetJobsIdParams, reqEditors ...RequestEditorFn) (*GetJobsIdResponse, error)

	// GetJobsIdDefinitionWithResponse Get specific job's definition
	//
	// Get definition of a specific job.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /jobs/{id}/definition (the `GetJobsIdDefinition` operationId).
	GetJobsIdDefinitionWithResponse(ctx context.Context, id string, params *GetJobsIdDefinitionParams, reqEditors ...RequestEditorFn) (*GetJobsIdDefinitionResponse, error)

	// PutJobsIdDefinitionWithBodyWithResponse Modify specific job's definition
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /jobs/{id}/definition (the `PutJobsIdDefinition` operationId).
	PutJobsIdDefinitionWithBodyWithResponse(ctx context.Context, id string, params *PutJobsIdDefinitionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutJobsIdDefinitionResponse, error)

	// PutJobsIdDefinitionWithResponse Modify specific job's definition
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /jobs/{id}/definition (the `PutJobsIdDefinition` operationId).
	PutJobsIdDefinitionWithResponse(ctx context.Context, id string, params *PutJobsIdDefinitionParams, body PutJobsIdDefinitionJSONRequestBody, reqEditors ...RequestEditorFn) (*PutJobsIdDefinitionResponse, error)

	// GetJobsIdStatusWithResponse Get specific job's status
	//
	// Get status of a specific job.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /jobs/{id}/status (the `GetJobsIdStatus` operationId).
	GetJobsIdStatusWithResponse(ctx context.Context, id string, params *GetJobsIdStatusParams, reqEditors ...RequestEditorFn) (*GetJobsIdStatusResponse, error)

	// PutJobsIdStatusWithBodyWithResponse Modify specific job's status
	//
	// Modify a specific job's status.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /jobs/{id}/status (the `PutJobsIdStatus` operationId).
	PutJobsIdStatusWithBodyWithResponse(ctx context.Context, id string, params *PutJobsIdStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutJobsIdStatusResponse, error)

	// PutJobsIdStatusWithResponse Modify specific job's status
	//
	// Modify a specific job's status.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /jobs/{id}/status (the `PutJobsIdStatus` operationId).
	PutJobsIdStatusWithResponse(ctx context.Context, id string, params *PutJobsIdStatusParams, body PutJobsIdStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*PutJobsIdStatusResponse, error)

	// DeleteJobsIdTagsWithBodyWithResponse Delete a tag from a specific job
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /jobs/{id}/tags (the `DeleteJobsIdTags` operationId).
	DeleteJobsIdTagsWithBodyWithResponse(ctx context.Context, id string, params *DeleteJobsIdTagsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteJobsIdTagsResponse, error)

	// DeleteJobsIdTagsWithResponse Delete a tag from a specific job
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /jobs/{id}/tags (the `DeleteJobsIdTags` operationId).
	DeleteJobsIdTagsWithResponse(ctx context.Context, id string, params *DeleteJobsIdTagsParams, body DeleteJobsIdTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteJobsIdTagsResponse, error)

	// GetJobsIdTagsWithResponse Get specific job's tags
	//
	// Get tags of a specific job.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /jobs/{id}/tags (the `GetJobsIdTags` operationId).
	GetJobsIdTagsWithResponse(ctx context.Context, id string, params *GetJobsIdTagsParams, reqEditors ...RequestEditorFn) (*GetJobsIdTagsResponse, error)

	// PostJobsIdTagsWithBodyWithResponse Add a tag to a specific job
	//
	// 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 /jobs/{id}/tags (the `PostJobsIdTags` operationId).
	PostJobsIdTagsWithBodyWithResponse(ctx context.Context, id string, params *PostJobsIdTagsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostJobsIdTagsResponse, error)

	// PostJobsIdTagsWithResponse Add a tag to a specific job
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /jobs/{id}/tags (the `PostJobsIdTags` operationId).
	PostJobsIdTagsWithResponse(ctx context.Context, id string, params *PostJobsIdTagsParams, body PostJobsIdTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostJobsIdTagsResponse, error)

	// GetVersionWithResponse Query wfx's version information
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /version (the `GetVersion` operationId).
	GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)

	// GetWorkflowsWithResponse List available workflows
	//
	// Detailed list of available workflows.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /workflows (the `GetWorkflows` operationId).
	GetWorkflowsWithResponse(ctx context.Context, params *GetWorkflowsParams, reqEditors ...RequestEditorFn) (*GetWorkflowsResponse, error)

	// PostWorkflowsWithBodyWithResponse Add a new workflow
	//
	// 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 /workflows (the `PostWorkflows` operationId).
	PostWorkflowsWithBodyWithResponse(ctx context.Context, params *PostWorkflowsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostWorkflowsResponse, error)

	// PostWorkflowsWithResponse Add a new workflow
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /workflows (the `PostWorkflows` operationId).
	PostWorkflowsWithResponse(ctx context.Context, params *PostWorkflowsParams, body PostWorkflowsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostWorkflowsResponse, error)

	// DeleteWorkflowsNameWithResponse Delete a specific workflow
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /workflows/{name} (the `DeleteWorkflowsName` operationId).
	DeleteWorkflowsNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteWorkflowsNameResponse, error)

	// GetWorkflowsNameWithResponse Get specific workflow's details
	//
	// Get details of a specific workflow.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /workflows/{name} (the `GetWorkflowsName` operationId).
	GetWorkflowsNameWithResponse(ctx context.Context, name string, params *GetWorkflowsNameParams, reqEditors ...RequestEditorFn) (*GetWorkflowsNameResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type DeleteJobsId204Response

type DeleteJobsId204Response struct {
}

func (DeleteJobsId204Response) VisitDeleteJobsIdResponse

func (response DeleteJobsId204Response) VisitDeleteJobsIdResponse(w http.ResponseWriter) error

type DeleteJobsId403Response

type DeleteJobsId403Response struct {
}

func (DeleteJobsId403Response) VisitDeleteJobsIdResponse

func (response DeleteJobsId403Response) VisitDeleteJobsIdResponse(w http.ResponseWriter) error

type DeleteJobsId404JSONResponse

type DeleteJobsId404JSONResponse ErrorResponse

func (DeleteJobsId404JSONResponse) VisitDeleteJobsIdResponse

func (response DeleteJobsId404JSONResponse) VisitDeleteJobsIdResponse(w http.ResponseWriter) error

type DeleteJobsIdRequestObject

type DeleteJobsIdRequestObject struct {
	Id string `json:"id"`
}

type DeleteJobsIdResponse

type DeleteJobsIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
}

func ParseDeleteJobsIdResponse

func ParseDeleteJobsIdResponse(rsp *http.Response) (*DeleteJobsIdResponse, error)

ParseDeleteJobsIdResponse parses an HTTP response from a DeleteJobsIdWithResponse call

func (DeleteJobsIdResponse) ContentType added in v0.6.0

func (r DeleteJobsIdResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteJobsIdResponse) GetBody added in v0.7.0

func (r DeleteJobsIdResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteJobsIdResponse) GetJSON404 added in v0.7.0

func (r DeleteJobsIdResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteJobsIdResponse) Status

func (r DeleteJobsIdResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteJobsIdResponse) StatusCode

func (r DeleteJobsIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteJobsIdResponseObject

type DeleteJobsIdResponseObject interface {
	VisitDeleteJobsIdResponse(w http.ResponseWriter) error
}

type DeleteJobsIdTags200JSONResponse

type DeleteJobsIdTags200JSONResponse TagList

func (DeleteJobsIdTags200JSONResponse) VisitDeleteJobsIdTagsResponse

func (response DeleteJobsIdTags200JSONResponse) VisitDeleteJobsIdTagsResponse(w http.ResponseWriter) error

type DeleteJobsIdTags400JSONResponse

type DeleteJobsIdTags400JSONResponse ErrorResponse

func (DeleteJobsIdTags400JSONResponse) VisitDeleteJobsIdTagsResponse

func (response DeleteJobsIdTags400JSONResponse) VisitDeleteJobsIdTagsResponse(w http.ResponseWriter) error

type DeleteJobsIdTags403Response

type DeleteJobsIdTags403Response struct {
}

func (DeleteJobsIdTags403Response) VisitDeleteJobsIdTagsResponse

func (response DeleteJobsIdTags403Response) VisitDeleteJobsIdTagsResponse(w http.ResponseWriter) error

type DeleteJobsIdTags404JSONResponse

type DeleteJobsIdTags404JSONResponse ErrorResponse

func (DeleteJobsIdTags404JSONResponse) VisitDeleteJobsIdTagsResponse

func (response DeleteJobsIdTags404JSONResponse) VisitDeleteJobsIdTagsResponse(w http.ResponseWriter) error

type DeleteJobsIdTagsJSONBody

type DeleteJobsIdTagsJSONBody = []string

DeleteJobsIdTagsJSONBody defines parameters for DeleteJobsIdTags.

type DeleteJobsIdTagsJSONRequestBody

type DeleteJobsIdTagsJSONRequestBody = DeleteJobsIdTagsJSONBody

DeleteJobsIdTagsJSONRequestBody defines body for DeleteJobsIdTags for application/json ContentType.

type DeleteJobsIdTagsParams

type DeleteJobsIdTagsParams struct {
	// XResponseFilter Apply a jq-like filter to the response
	XResponseFilter *ResponseFilter `json:"X-Response-Filter,omitempty"`
}

DeleteJobsIdTagsParams defines parameters for DeleteJobsIdTags.

type DeleteJobsIdTagsRequestObject

type DeleteJobsIdTagsRequestObject struct {
	Id     string `json:"id"`
	Params DeleteJobsIdTagsParams
	Body   *DeleteJobsIdTagsJSONRequestBody
}

type DeleteJobsIdTagsResponse

type DeleteJobsIdTagsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TagList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
}

func ParseDeleteJobsIdTagsResponse

func ParseDeleteJobsIdTagsResponse(rsp *http.Response) (*DeleteJobsIdTagsResponse, error)

ParseDeleteJobsIdTagsResponse parses an HTTP response from a DeleteJobsIdTagsWithResponse call

func (DeleteJobsIdTagsResponse) ContentType added in v0.6.0

func (r DeleteJobsIdTagsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteJobsIdTagsResponse) GetBody added in v0.7.0

func (r DeleteJobsIdTagsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteJobsIdTagsResponse) GetJSON200 added in v0.7.0

func (r DeleteJobsIdTagsResponse) GetJSON200() *TagList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DeleteJobsIdTagsResponse) GetJSON400 added in v0.7.0

func (r DeleteJobsIdTagsResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (DeleteJobsIdTagsResponse) GetJSON404 added in v0.7.0

func (r DeleteJobsIdTagsResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteJobsIdTagsResponse) Status

func (r DeleteJobsIdTagsResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteJobsIdTagsResponse) StatusCode

func (r DeleteJobsIdTagsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteJobsIdTagsResponseObject

type DeleteJobsIdTagsResponseObject interface {
	VisitDeleteJobsIdTagsResponse(w http.ResponseWriter) error
}

type DeleteJobsIdTagsdefaultResponse

type DeleteJobsIdTagsdefaultResponse struct {
	StatusCode int
}

func (DeleteJobsIdTagsdefaultResponse) VisitDeleteJobsIdTagsResponse

func (response DeleteJobsIdTagsdefaultResponse) VisitDeleteJobsIdTagsResponse(w http.ResponseWriter) error

type DeleteJobsIddefaultResponse

type DeleteJobsIddefaultResponse struct {
	StatusCode int
}

func (DeleteJobsIddefaultResponse) VisitDeleteJobsIdResponse

func (response DeleteJobsIddefaultResponse) VisitDeleteJobsIdResponse(w http.ResponseWriter) error

type DeleteWorkflowsName204Response

type DeleteWorkflowsName204Response struct {
}

func (DeleteWorkflowsName204Response) VisitDeleteWorkflowsNameResponse

func (response DeleteWorkflowsName204Response) VisitDeleteWorkflowsNameResponse(w http.ResponseWriter) error

type DeleteWorkflowsName403Response

type DeleteWorkflowsName403Response struct {
}

func (DeleteWorkflowsName403Response) VisitDeleteWorkflowsNameResponse

func (response DeleteWorkflowsName403Response) VisitDeleteWorkflowsNameResponse(w http.ResponseWriter) error

type DeleteWorkflowsName404JSONResponse

type DeleteWorkflowsName404JSONResponse ErrorResponse

func (DeleteWorkflowsName404JSONResponse) VisitDeleteWorkflowsNameResponse

func (response DeleteWorkflowsName404JSONResponse) VisitDeleteWorkflowsNameResponse(w http.ResponseWriter) error

type DeleteWorkflowsNameRequestObject

type DeleteWorkflowsNameRequestObject struct {
	Name string `json:"name"`
}

type DeleteWorkflowsNameResponse

type DeleteWorkflowsNameResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
}

func ParseDeleteWorkflowsNameResponse

func ParseDeleteWorkflowsNameResponse(rsp *http.Response) (*DeleteWorkflowsNameResponse, error)

ParseDeleteWorkflowsNameResponse parses an HTTP response from a DeleteWorkflowsNameWithResponse call

func (DeleteWorkflowsNameResponse) ContentType added in v0.6.0

func (r DeleteWorkflowsNameResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteWorkflowsNameResponse) GetBody added in v0.7.0

func (r DeleteWorkflowsNameResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteWorkflowsNameResponse) GetJSON404 added in v0.7.0

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteWorkflowsNameResponse) Status

Status returns HTTPResponse.Status

func (DeleteWorkflowsNameResponse) StatusCode

func (r DeleteWorkflowsNameResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteWorkflowsNameResponseObject

type DeleteWorkflowsNameResponseObject interface {
	VisitDeleteWorkflowsNameResponse(w http.ResponseWriter) error
}

type DeleteWorkflowsNamedefaultResponse

type DeleteWorkflowsNamedefaultResponse struct {
	StatusCode int
}

func (DeleteWorkflowsNamedefaultResponse) VisitDeleteWorkflowsNameResponse

func (response DeleteWorkflowsNamedefaultResponse) VisitDeleteWorkflowsNameResponse(w http.ResponseWriter) error

type EligibleEnum

type EligibleEnum string

EligibleEnum defines model for EligibleEnum.

const (
	CLIENT EligibleEnum = "CLIENT"
	WFX    EligibleEnum = "WFX"
)

Defines values for EligibleEnum.

func (EligibleEnum) Valid added in v0.5.0

func (e EligibleEnum) Valid() bool

Valid indicates whether the value is a known member of the EligibleEnum enum.

type Error

type Error struct {
	// Code Identifier code for the reason of the error
	Code string `json:"code"`

	// Logref Log correlation ID
	Logref string `json:"logref"`

	// Message Error message
	Message string `json:"message"`
}

Error defines model for Error.

type ErrorResponse

type ErrorResponse struct {
	Errors *[]Error `json:"errors,omitempty"`
}

ErrorResponse defines model for ErrorResponse.

type GetHealth200JSONResponse

type GetHealth200JSONResponse struct {
	Body    CheckerResult
	Headers GetHealth200ResponseHeaders
}

func (GetHealth200JSONResponse) VisitGetHealthResponse

func (response GetHealth200JSONResponse) VisitGetHealthResponse(w http.ResponseWriter) error

type GetHealth200ResponseHeaders

type GetHealth200ResponseHeaders struct {
	CacheControl *string
	Expires      *string
	Pragma       *string
}

type GetHealth503JSONResponse

type GetHealth503JSONResponse struct {
	Body    CheckerResult
	Headers GetHealth503ResponseHeaders
}

func (GetHealth503JSONResponse) VisitGetHealthResponse

func (response GetHealth503JSONResponse) VisitGetHealthResponse(w http.ResponseWriter) error

type GetHealth503ResponseHeaders

type GetHealth503ResponseHeaders struct {
	CacheControl *string
	Expires      *string
	Pragma       *string
}

type GetHealthRequestObject

type GetHealthRequestObject struct {
}

type GetHealthResponse

type GetHealthResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CheckerResult
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *CheckerResult
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetHealthResponse200Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetHealthResponse503Headers
}

func ParseGetHealthResponse

func ParseGetHealthResponse(rsp *http.Response) (*GetHealthResponse, error)

ParseGetHealthResponse parses an HTTP response from a GetHealthWithResponse call

func (GetHealthResponse) ContentType added in v0.6.0

func (r GetHealthResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetHealthResponse) GetBody added in v0.7.0

func (r GetHealthResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetHealthResponse) GetJSON200 added in v0.7.0

func (r GetHealthResponse) GetJSON200() *CheckerResult

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetHealthResponse) GetJSON503 added in v0.7.0

func (r GetHealthResponse) GetJSON503() *CheckerResult

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetHealthResponse) Status

func (r GetHealthResponse) Status() string

Status returns HTTPResponse.Status

func (GetHealthResponse) StatusCode

func (r GetHealthResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHealthResponse200Headers added in v0.7.0

type GetHealthResponse200Headers struct {
	CacheControl *string
	Expires      *string
	Pragma       *string
}

GetHealthResponse200Headers the declared response headers of an HTTP 200 response for GetHealth

type GetHealthResponse503Headers added in v0.7.0

type GetHealthResponse503Headers struct {
	CacheControl *string
	Expires      *string
	Pragma       *string
}

GetHealthResponse503Headers the declared response headers of an HTTP 503 response for GetHealth

type GetHealthResponseObject

type GetHealthResponseObject interface {
	VisitGetHealthResponse(w http.ResponseWriter) error
}

type GetHealthdefaultResponse

type GetHealthdefaultResponse struct {
	StatusCode int
}

func (GetHealthdefaultResponse) VisitGetHealthResponse

func (response GetHealthdefaultResponse) VisitGetHealthResponse(w http.ResponseWriter) error

type GetJobs200JSONResponse

type GetJobs200JSONResponse PaginatedJobList

func (GetJobs200JSONResponse) VisitGetJobsResponse

func (response GetJobs200JSONResponse) VisitGetJobsResponse(w http.ResponseWriter) error

type GetJobs400JSONResponse

type GetJobs400JSONResponse ErrorResponse

func (GetJobs400JSONResponse) VisitGetJobsResponse

func (response GetJobs400JSONResponse) VisitGetJobsResponse(w http.ResponseWriter) error

type GetJobsEvents200TexteventStreamResponse

type GetJobsEvents200TexteventStreamResponse struct {
	Body          io.Reader
	ContentLength int64
}

func (GetJobsEvents200TexteventStreamResponse) VisitGetJobsEventsResponse

func (response GetJobsEvents200TexteventStreamResponse) VisitGetJobsEventsResponse(w http.ResponseWriter) error

type GetJobsEvents400JSONResponse

type GetJobsEvents400JSONResponse ErrorResponse

func (GetJobsEvents400JSONResponse) VisitGetJobsEventsResponse

func (response GetJobsEvents400JSONResponse) VisitGetJobsEventsResponse(w http.ResponseWriter) error

type GetJobsEvents404JSONResponse

type GetJobsEvents404JSONResponse ErrorResponse

func (GetJobsEvents404JSONResponse) VisitGetJobsEventsResponse

func (response GetJobsEvents404JSONResponse) VisitGetJobsEventsResponse(w http.ResponseWriter) error

type GetJobsEventsParams

type GetJobsEventsParams struct {
	// ClientIDs Subscribe to events whose clientID matches one of the given clientIds (comma-separated). This is a filter.
	ClientIDs *string `form:"clientIds,omitempty" json:"clientIds,omitempty"`

	// JobIds Subscribe to events whose job ID is one of the given jobIds (comma-separated). This is a filter.
	JobIds *string `form:"jobIds,omitempty" json:"jobIds,omitempty"`

	// Workflows Subscribe to events whose workflow name is one of the given workflow names (comma-separated). This is a filter.
	Workflows *string `form:"workflows,omitempty" json:"workflows,omitempty"`

	// Actions Subscribe to events whose job event action is one of the given actions (comma-separated, case-insenstive). This is a filter.
	Actions *string `form:"actions,omitempty" json:"actions,omitempty"`

	// Tags A (comma-separated) list of tags to apply to each job event. This can be used to aggregrate events from multiple wfx instances.
	Tags *string `form:"tags,omitempty" json:"tags,omitempty"`

	// XClientID Limit responses on the southbound API to jobs belonging to this client ID; jobs of any other client are reported as not found. Takes precedence over the clientId query parameter; conflicting values are rejected with an error
	XClientID *XClientID `json:"X-Client-Id,omitempty"`
}

GetJobsEventsParams defines parameters for GetJobsEvents.

type GetJobsEventsRequestObject

type GetJobsEventsRequestObject struct {
	Params GetJobsEventsParams
}

type GetJobsEventsResponse

type GetJobsEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
}

func ParseGetJobsEventsResponse

func ParseGetJobsEventsResponse(rsp *http.Response) (*GetJobsEventsResponse, error)

ParseGetJobsEventsResponse parses an HTTP response from a GetJobsEventsWithResponse call

func (GetJobsEventsResponse) ContentType added in v0.6.0

func (r GetJobsEventsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetJobsEventsResponse) GetBody added in v0.7.0

func (r GetJobsEventsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetJobsEventsResponse) GetJSON400 added in v0.7.0

func (r GetJobsEventsResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetJobsEventsResponse) GetJSON404 added in v0.7.0

func (r GetJobsEventsResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetJobsEventsResponse) Status

func (r GetJobsEventsResponse) Status() string

Status returns HTTPResponse.Status

func (GetJobsEventsResponse) StatusCode

func (r GetJobsEventsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetJobsEventsResponseObject

type GetJobsEventsResponseObject interface {
	VisitGetJobsEventsResponse(w http.ResponseWriter) error
}

type GetJobsEventsdefaultResponse

type GetJobsEventsdefaultResponse struct {
	StatusCode int
}

func (GetJobsEventsdefaultResponse) VisitGetJobsEventsResponse

func (response GetJobsEventsdefaultResponse) VisitGetJobsEventsResponse(w http.ResponseWriter) error

type GetJobsId200JSONResponse

type GetJobsId200JSONResponse Job

func (GetJobsId200JSONResponse) VisitGetJobsIdResponse

func (response GetJobsId200JSONResponse) VisitGetJobsIdResponse(w http.ResponseWriter) error

type GetJobsId400JSONResponse

type GetJobsId400JSONResponse ErrorResponse

func (GetJobsId400JSONResponse) VisitGetJobsIdResponse

func (response GetJobsId400JSONResponse) VisitGetJobsIdResponse(w http.ResponseWriter) error

type GetJobsId404JSONResponse

type GetJobsId404JSONResponse ErrorResponse

func (GetJobsId404JSONResponse) VisitGetJobsIdResponse

func (response GetJobsId404JSONResponse) VisitGetJobsIdResponse(w http.ResponseWriter) error

type GetJobsIdDefinition200JSONResponse

type GetJobsIdDefinition200JSONResponse map[string]interface{}

func (GetJobsIdDefinition200JSONResponse) VisitGetJobsIdDefinitionResponse

func (response GetJobsIdDefinition200JSONResponse) VisitGetJobsIdDefinitionResponse(w http.ResponseWriter) error

type GetJobsIdDefinition404JSONResponse

type GetJobsIdDefinition404JSONResponse ErrorResponse

func (GetJobsIdDefinition404JSONResponse) VisitGetJobsIdDefinitionResponse

func (response GetJobsIdDefinition404JSONResponse) VisitGetJobsIdDefinitionResponse(w http.ResponseWriter) error

type GetJobsIdDefinitionParams

type GetJobsIdDefinitionParams struct {
	// XResponseFilter Apply a jq-like filter to the response
	XResponseFilter *ResponseFilter `json:"X-Response-Filter,omitempty"`

	// XClientID Limit responses on the southbound API to jobs belonging to this client ID; jobs of any other client are reported as not found. Takes precedence over the clientId query parameter; conflicting values are rejected with an error
	XClientID *XClientID `json:"X-Client-Id,omitempty"`
}

GetJobsIdDefinitionParams defines parameters for GetJobsIdDefinition.

type GetJobsIdDefinitionRequestObject

type GetJobsIdDefinitionRequestObject struct {
	Id     string `json:"id"`
	Params GetJobsIdDefinitionParams
}

type GetJobsIdDefinitionResponse

type GetJobsIdDefinitionResponse 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 *ErrorResponse
}

func ParseGetJobsIdDefinitionResponse

func ParseGetJobsIdDefinitionResponse(rsp *http.Response) (*GetJobsIdDefinitionResponse, error)

ParseGetJobsIdDefinitionResponse parses an HTTP response from a GetJobsIdDefinitionWithResponse call

func (GetJobsIdDefinitionResponse) ContentType added in v0.6.0

func (r GetJobsIdDefinitionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetJobsIdDefinitionResponse) GetBody added in v0.7.0

func (r GetJobsIdDefinitionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetJobsIdDefinitionResponse) GetJSON200 added in v0.7.0

func (r GetJobsIdDefinitionResponse) GetJSON200() *map[string]interface{}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetJobsIdDefinitionResponse) GetJSON404 added in v0.7.0

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetJobsIdDefinitionResponse) Status

Status returns HTTPResponse.Status

func (GetJobsIdDefinitionResponse) StatusCode

func (r GetJobsIdDefinitionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetJobsIdDefinitionResponseObject

type GetJobsIdDefinitionResponseObject interface {
	VisitGetJobsIdDefinitionResponse(w http.ResponseWriter) error
}

type GetJobsIdDefinitiondefaultResponse

type GetJobsIdDefinitiondefaultResponse struct {
	StatusCode int
}

func (GetJobsIdDefinitiondefaultResponse) VisitGetJobsIdDefinitionResponse

func (response GetJobsIdDefinitiondefaultResponse) VisitGetJobsIdDefinitionResponse(w http.ResponseWriter) error

type GetJobsIdParams

type GetJobsIdParams struct {
	// ParamHistory Boolean flag to include the transition history of the job
	ParamHistory *paramHistory `form:"history,omitempty" json:"history,omitempty"`

	// XResponseFilter Apply a jq-like filter to the response
	XResponseFilter *ResponseFilter `json:"X-Response-Filter,omitempty"`

	// XClientID Limit responses on the southbound API to jobs belonging to this client ID; jobs of any other client are reported as not found. Takes precedence over the clientId query parameter; conflicting values are rejected with an error
	XClientID *XClientID `json:"X-Client-Id,omitempty"`
}

GetJobsIdParams defines parameters for GetJobsId.

type GetJobsIdRequestObject

type GetJobsIdRequestObject struct {
	Id     string `json:"id"`
	Params GetJobsIdParams
}

type GetJobsIdResponse

type GetJobsIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Job
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
}

func ParseGetJobsIdResponse

func ParseGetJobsIdResponse(rsp *http.Response) (*GetJobsIdResponse, error)

ParseGetJobsIdResponse parses an HTTP response from a GetJobsIdWithResponse call

func (GetJobsIdResponse) ContentType added in v0.6.0

func (r GetJobsIdResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetJobsIdResponse) GetBody added in v0.7.0

func (r GetJobsIdResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetJobsIdResponse) GetJSON200 added in v0.7.0

func (r GetJobsIdResponse) GetJSON200() *Job

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetJobsIdResponse) GetJSON400 added in v0.7.0

func (r GetJobsIdResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetJobsIdResponse) GetJSON404 added in v0.7.0

func (r GetJobsIdResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetJobsIdResponse) Status

func (r GetJobsIdResponse) Status() string

Status returns HTTPResponse.Status

func (GetJobsIdResponse) StatusCode

func (r GetJobsIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetJobsIdResponseObject

type GetJobsIdResponseObject interface {
	VisitGetJobsIdResponse(w http.ResponseWriter) error
}

type GetJobsIdStatus200JSONResponse

type GetJobsIdStatus200JSONResponse JobStatus

func (GetJobsIdStatus200JSONResponse) VisitGetJobsIdStatusResponse

func (response GetJobsIdStatus200JSONResponse) VisitGetJobsIdStatusResponse(w http.ResponseWriter) error

type GetJobsIdStatus404JSONResponse

type GetJobsIdStatus404JSONResponse ErrorResponse

func (GetJobsIdStatus404JSONResponse) VisitGetJobsIdStatusResponse

func (response GetJobsIdStatus404JSONResponse) VisitGetJobsIdStatusResponse(w http.ResponseWriter) error

type GetJobsIdStatusParams

type GetJobsIdStatusParams struct {
	// XResponseFilter Apply a jq-like filter to the response
	XResponseFilter *ResponseFilter `json:"X-Response-Filter,omitempty"`

	// XClientID Limit responses on the southbound API to jobs belonging to this client ID; jobs of any other client are reported as not found. Takes precedence over the clientId query parameter; conflicting values are rejected with an error
	XClientID *XClientID `json:"X-Client-Id,omitempty"`
}

GetJobsIdStatusParams defines parameters for GetJobsIdStatus.

type GetJobsIdStatusRequestObject

type GetJobsIdStatusRequestObject struct {
	Id     string `json:"id"`
	Params GetJobsIdStatusParams
}

type GetJobsIdStatusResponse

type GetJobsIdStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *JobStatus
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
}

func ParseGetJobsIdStatusResponse

func ParseGetJobsIdStatusResponse(rsp *http.Response) (*GetJobsIdStatusResponse, error)

ParseGetJobsIdStatusResponse parses an HTTP response from a GetJobsIdStatusWithResponse call

func (GetJobsIdStatusResponse) ContentType added in v0.6.0

func (r GetJobsIdStatusResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetJobsIdStatusResponse) GetBody added in v0.7.0

func (r GetJobsIdStatusResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetJobsIdStatusResponse) GetJSON200 added in v0.7.0

func (r GetJobsIdStatusResponse) GetJSON200() *JobStatus

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetJobsIdStatusResponse) GetJSON404 added in v0.7.0

func (r GetJobsIdStatusResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetJobsIdStatusResponse) Status

func (r GetJobsIdStatusResponse) Status() string

Status returns HTTPResponse.Status

func (GetJobsIdStatusResponse) StatusCode

func (r GetJobsIdStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetJobsIdStatusResponseObject

type GetJobsIdStatusResponseObject interface {
	VisitGetJobsIdStatusResponse(w http.ResponseWriter) error
}

type GetJobsIdStatusdefaultResponse

type GetJobsIdStatusdefaultResponse struct {
	StatusCode int
}

func (GetJobsIdStatusdefaultResponse) VisitGetJobsIdStatusResponse

func (response GetJobsIdStatusdefaultResponse) VisitGetJobsIdStatusResponse(w http.ResponseWriter) error

type GetJobsIdTags200JSONResponse

type GetJobsIdTags200JSONResponse TagList

func (GetJobsIdTags200JSONResponse) VisitGetJobsIdTagsResponse

func (response GetJobsIdTags200JSONResponse) VisitGetJobsIdTagsResponse(w http.ResponseWriter) error

type GetJobsIdTags404JSONResponse

type GetJobsIdTags404JSONResponse ErrorResponse

func (GetJobsIdTags404JSONResponse) VisitGetJobsIdTagsResponse

func (response GetJobsIdTags404JSONResponse) VisitGetJobsIdTagsResponse(w http.ResponseWriter) error

type GetJobsIdTagsParams

type GetJobsIdTagsParams struct {
	// XResponseFilter Apply a jq-like filter to the response
	XResponseFilter *ResponseFilter `json:"X-Response-Filter,omitempty"`

	// XClientID Limit responses on the southbound API to jobs belonging to this client ID; jobs of any other client are reported as not found. Takes precedence over the clientId query parameter; conflicting values are rejected with an error
	XClientID *XClientID `json:"X-Client-Id,omitempty"`
}

GetJobsIdTagsParams defines parameters for GetJobsIdTags.

type GetJobsIdTagsRequestObject

type GetJobsIdTagsRequestObject struct {
	Id     string `json:"id"`
	Params GetJobsIdTagsParams
}

type GetJobsIdTagsResponse

type GetJobsIdTagsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TagList
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
}

func ParseGetJobsIdTagsResponse

func ParseGetJobsIdTagsResponse(rsp *http.Response) (*GetJobsIdTagsResponse, error)

ParseGetJobsIdTagsResponse parses an HTTP response from a GetJobsIdTagsWithResponse call

func (GetJobsIdTagsResponse) ContentType added in v0.6.0

func (r GetJobsIdTagsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetJobsIdTagsResponse) GetBody added in v0.7.0

func (r GetJobsIdTagsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetJobsIdTagsResponse) GetJSON200 added in v0.7.0

func (r GetJobsIdTagsResponse) GetJSON200() *TagList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetJobsIdTagsResponse) GetJSON404 added in v0.7.0

func (r GetJobsIdTagsResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetJobsIdTagsResponse) Status

func (r GetJobsIdTagsResponse) Status() string

Status returns HTTPResponse.Status

func (GetJobsIdTagsResponse) StatusCode

func (r GetJobsIdTagsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetJobsIdTagsResponseObject

type GetJobsIdTagsResponseObject interface {
	VisitGetJobsIdTagsResponse(w http.ResponseWriter) error
}

type GetJobsIdTagsdefaultResponse

type GetJobsIdTagsdefaultResponse struct {
	StatusCode int
}

func (GetJobsIdTagsdefaultResponse) VisitGetJobsIdTagsResponse

func (response GetJobsIdTagsdefaultResponse) VisitGetJobsIdTagsResponse(w http.ResponseWriter) error

type GetJobsIddefaultResponse

type GetJobsIddefaultResponse struct {
	StatusCode int
}

func (GetJobsIddefaultResponse) VisitGetJobsIdResponse

func (response GetJobsIddefaultResponse) VisitGetJobsIdResponse(w http.ResponseWriter) error

type GetJobsParams

type GetJobsParams struct {
	// ParamLimit the maximum number of items to return
	ParamLimit *paramLimit `form:"limit,omitempty" json:"limit,omitempty"`

	// ParamOffset the number of items to skip before starting to return results
	ParamOffset *paramOffset `form:"offset,omitempty" json:"offset,omitempty"`

	// ParamSort the order of returned elements
	ParamSort *paramSort `form:"sort,omitempty" json:"sort,omitempty"`

	// ParamState Filter jobs based on the current state value
	ParamState *paramState `form:"state,omitempty" json:"state,omitempty"`

	// ParamGroup Filter jobs based on the group they are in
	ParamGroup *paramGroup `form:"group,omitempty" json:"group,omitempty"`

	// ParamClientID Filter jobs belonging to a specific client with clientId
	ParamClientID *paramClientID `form:"clientId,omitempty" json:"clientId,omitempty"`

	// ParamTag A list of tags
	ParamTag *paramTag `form:"tag,omitempty" json:"tag,omitempty"`

	// ParamPagination If true, pagination metadata will be included in the response
	ParamPagination *paramPagination `form:"pagination,omitempty" json:"pagination,omitempty"`

	// ParamWorkflow Filter jobs matching by workflow
	ParamWorkflow *string `form:"workflow,omitempty" json:"workflow,omitempty"`

	// XResponseFilter Apply a jq-like filter to the response
	XResponseFilter *ResponseFilter `json:"X-Response-Filter,omitempty"`

	// XClientID Limit responses on the southbound API to jobs belonging to this client ID; jobs of any other client are reported as not found. Takes precedence over the clientId query parameter; conflicting values are rejected with an error
	XClientID *XClientID `json:"X-Client-Id,omitempty"`
}

GetJobsParams defines parameters for GetJobs.

type GetJobsRequestObject

type GetJobsRequestObject struct {
	Params GetJobsParams
}

type GetJobsResponse

type GetJobsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PaginatedJobList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
}

func ParseGetJobsResponse

func ParseGetJobsResponse(rsp *http.Response) (*GetJobsResponse, error)

ParseGetJobsResponse parses an HTTP response from a GetJobsWithResponse call

func (GetJobsResponse) ContentType added in v0.6.0

func (r GetJobsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetJobsResponse) GetBody added in v0.7.0

func (r GetJobsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetJobsResponse) GetJSON200 added in v0.7.0

func (r GetJobsResponse) GetJSON200() *PaginatedJobList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetJobsResponse) GetJSON400 added in v0.7.0

func (r GetJobsResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetJobsResponse) GetJSONDefault added in v0.7.0

func (r GetJobsResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetJobsResponse) Status

func (r GetJobsResponse) Status() string

Status returns HTTPResponse.Status

func (GetJobsResponse) StatusCode

func (r GetJobsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetJobsResponseObject

type GetJobsResponseObject interface {
	VisitGetJobsResponse(w http.ResponseWriter) error
}

type GetJobsdefaultJSONResponse

type GetJobsdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (GetJobsdefaultJSONResponse) VisitGetJobsResponse

func (response GetJobsdefaultJSONResponse) VisitGetJobsResponse(w http.ResponseWriter) error

type GetVersion200JSONResponse

type GetVersion200JSONResponse struct {
	// ApiVersion Example: v1
	ApiVersion string `json:"apiVersion,omitempty"`

	// Commit Example: 25f4dd3f9828553c9e437a24f7fa451ae60916f2
	Commit string `json:"commit,omitempty"`

	// Version Example: 0.3.1
	Version string `json:"version,omitempty"`
}

func (GetVersion200JSONResponse) VisitGetVersionResponse

func (response GetVersion200JSONResponse) VisitGetVersionResponse(w http.ResponseWriter) error

type GetVersionRequestObject

type GetVersionRequestObject struct {
}

type GetVersionResponse

type GetVersionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		// ApiVersion Example: v1
		ApiVersion string `json:"apiVersion,omitempty"`

		// Commit Example: 25f4dd3f9828553c9e437a24f7fa451ae60916f2
		Commit string `json:"commit,omitempty"`

		// Version Example: 0.3.1
		Version string `json:"version,omitempty"`
	}
}

func ParseGetVersionResponse

func ParseGetVersionResponse(rsp *http.Response) (*GetVersionResponse, error)

ParseGetVersionResponse parses an HTTP response from a GetVersionWithResponse call

func (GetVersionResponse) ContentType added in v0.6.0

func (r GetVersionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetVersionResponse) GetBody added in v0.7.0

func (r GetVersionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetVersionResponse) GetJSON200 added in v0.7.0

func (r GetVersionResponse) GetJSON200() *struct {
	// ApiVersion Example: v1
	ApiVersion string `json:"apiVersion,omitempty"`

	// Commit Example: 25f4dd3f9828553c9e437a24f7fa451ae60916f2
	Commit string `json:"commit,omitempty"`

	// Version Example: 0.3.1
	Version string `json:"version,omitempty"`
}

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 GetVersionResponseObject

type GetVersionResponseObject interface {
	VisitGetVersionResponse(w http.ResponseWriter) error
}

type GetVersiondefaultResponse

type GetVersiondefaultResponse struct {
	StatusCode int
}

func (GetVersiondefaultResponse) VisitGetVersionResponse

func (response GetVersiondefaultResponse) VisitGetVersionResponse(w http.ResponseWriter) error

type GetWorkflows200JSONResponse

type GetWorkflows200JSONResponse PaginatedWorkflowList

func (GetWorkflows200JSONResponse) VisitGetWorkflowsResponse

func (response GetWorkflows200JSONResponse) VisitGetWorkflowsResponse(w http.ResponseWriter) error

type GetWorkflowsName200JSONResponse

type GetWorkflowsName200JSONResponse Workflow

func (GetWorkflowsName200JSONResponse) VisitGetWorkflowsNameResponse

func (response GetWorkflowsName200JSONResponse) VisitGetWorkflowsNameResponse(w http.ResponseWriter) error

type GetWorkflowsName400JSONResponse

type GetWorkflowsName400JSONResponse ErrorResponse

func (GetWorkflowsName400JSONResponse) VisitGetWorkflowsNameResponse

func (response GetWorkflowsName400JSONResponse) VisitGetWorkflowsNameResponse(w http.ResponseWriter) error

type GetWorkflowsName404JSONResponse

type GetWorkflowsName404JSONResponse ErrorResponse

func (GetWorkflowsName404JSONResponse) VisitGetWorkflowsNameResponse

func (response GetWorkflowsName404JSONResponse) VisitGetWorkflowsNameResponse(w http.ResponseWriter) error

type GetWorkflowsNameParams

type GetWorkflowsNameParams struct {
	// XResponseFilter Apply a jq-like filter to the response
	XResponseFilter *ResponseFilter `json:"X-Response-Filter,omitempty"`
}

GetWorkflowsNameParams defines parameters for GetWorkflowsName.

type GetWorkflowsNameRequestObject

type GetWorkflowsNameRequestObject struct {
	Name   string `json:"name"`
	Params GetWorkflowsNameParams
}

type GetWorkflowsNameResponse

type GetWorkflowsNameResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Workflow
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
}

func ParseGetWorkflowsNameResponse

func ParseGetWorkflowsNameResponse(rsp *http.Response) (*GetWorkflowsNameResponse, error)

ParseGetWorkflowsNameResponse parses an HTTP response from a GetWorkflowsNameWithResponse call

func (GetWorkflowsNameResponse) ContentType added in v0.6.0

func (r GetWorkflowsNameResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetWorkflowsNameResponse) GetBody added in v0.7.0

func (r GetWorkflowsNameResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetWorkflowsNameResponse) GetJSON200 added in v0.7.0

func (r GetWorkflowsNameResponse) GetJSON200() *Workflow

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetWorkflowsNameResponse) GetJSON400 added in v0.7.0

func (r GetWorkflowsNameResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetWorkflowsNameResponse) GetJSON404 added in v0.7.0

func (r GetWorkflowsNameResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetWorkflowsNameResponse) Status

func (r GetWorkflowsNameResponse) Status() string

Status returns HTTPResponse.Status

func (GetWorkflowsNameResponse) StatusCode

func (r GetWorkflowsNameResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWorkflowsNameResponseObject

type GetWorkflowsNameResponseObject interface {
	VisitGetWorkflowsNameResponse(w http.ResponseWriter) error
}

type GetWorkflowsNamedefaultResponse

type GetWorkflowsNamedefaultResponse struct {
	StatusCode int
}

func (GetWorkflowsNamedefaultResponse) VisitGetWorkflowsNameResponse

func (response GetWorkflowsNamedefaultResponse) VisitGetWorkflowsNameResponse(w http.ResponseWriter) error

type GetWorkflowsParams

type GetWorkflowsParams struct {
	// ParamLimit the maximum number of items to return
	ParamLimit *paramLimit `form:"limit,omitempty" json:"limit,omitempty"`

	// ParamOffset the number of items to skip before starting to return results
	ParamOffset *paramOffset `form:"offset,omitempty" json:"offset,omitempty"`

	// ParamSort the order of returned elements
	ParamSort *paramSort `form:"sort,omitempty" json:"sort,omitempty"`

	// ParamPagination If true, pagination metadata will be included in the response
	ParamPagination *paramPagination `form:"pagination,omitempty" json:"pagination,omitempty"`

	// XResponseFilter Apply a jq-like filter to the response
	XResponseFilter *ResponseFilter `json:"X-Response-Filter,omitempty"`
}

GetWorkflowsParams defines parameters for GetWorkflows.

type GetWorkflowsRequestObject

type GetWorkflowsRequestObject struct {
	Params GetWorkflowsParams
}

type GetWorkflowsResponse

type GetWorkflowsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PaginatedWorkflowList
}

func ParseGetWorkflowsResponse

func ParseGetWorkflowsResponse(rsp *http.Response) (*GetWorkflowsResponse, error)

ParseGetWorkflowsResponse parses an HTTP response from a GetWorkflowsWithResponse call

func (GetWorkflowsResponse) ContentType added in v0.6.0

func (r GetWorkflowsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetWorkflowsResponse) GetBody added in v0.7.0

func (r GetWorkflowsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetWorkflowsResponse) GetJSON200 added in v0.7.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetWorkflowsResponse) Status

func (r GetWorkflowsResponse) Status() string

Status returns HTTPResponse.Status

func (GetWorkflowsResponse) StatusCode

func (r GetWorkflowsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWorkflowsResponseObject

type GetWorkflowsResponseObject interface {
	VisitGetWorkflowsResponse(w http.ResponseWriter) error
}

type GetWorkflowsdefaultResponse

type GetWorkflowsdefaultResponse struct {
	StatusCode int
}

func (GetWorkflowsdefaultResponse) VisitGetWorkflowsResponse

func (response GetWorkflowsdefaultResponse) VisitGetWorkflowsResponse(w http.ResponseWriter) error

type Group

type Group struct {
	// Description Example: Description of the group
	Description string `json:"description,omitempty"`

	// Name Example: OPEN
	Name string `json:"name"`

	// States A list of states belonging to this group
	States []string `json:"states"`
}

Group defines model for Group.

type History

type History struct {
	// Definition Example: { "userDefined": {} }
	Definition *map[string]interface{} `json:"definition,omitempty"`

	// Mtime Date and time (ISO8601) when the job was modified (set by wfx)
	Mtime *time.Time `json:"mtime,omitempty"`

	// Status Job status information
	Status *JobStatus `json:"status,omitempty"`
}

History defines model for History.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type Job

type Job struct {
	// ClientID Example: client42
	ClientID string `json:"clientId,omitempty"`

	// Definition Example: { "userDefined": {} }
	Definition map[string]interface{} `json:"definition,omitempty"`

	// History The job's history. Last in, first out (LIFO). Array is truncated if its length exceeds the maximum allowed length.
	// By default, the job history is omitted from responses unless explicitly requested by the client (see the `history` URL parameter).
	History *[]History `json:"history,omitempty"`

	// ID Unique job ID (wfx-generated)
	//
	// Example: 3307e5cb-074c-49b7-99d4-5e61839a4c2d
	ID string `json:"id,omitempty"`

	// Mtime Date and time (ISO8601) when the job was last modified (set by wfx)
	Mtime *time.Time `json:"mtime,omitempty"`

	// Status Job status information
	Status *JobStatus `json:"status,omitempty"`

	// Stime Date and time (ISO8601) when the job was created (set by wfx). Although stime conceptually always exists, it's nullable because we don't want to serialize stime in some cases (e.g. for job events).
	Stime    *time.Time `json:"stime,omitempty"`
	Tags     *TagList   `json:"tags,omitempty"`
	Workflow *Workflow  `json:"workflow,omitempty"`
}

Job defines model for Job.

type JobEvent

type JobEvent struct {
	Action JobEventAction `json:"action"`

	// Ctime Date and time (ISO8601) when the event was created
	Ctime time.Time `json:"ctime"`
	Job   Job       `json:"job"`
	Tags  *[]string `json:"tags,omitempty"`
}

JobEvent defines model for JobEvent.

type JobEventAction added in v0.5.0

type JobEventAction string

JobEventAction defines model for JobEventAction.

const (
	ADDTAGS          JobEventAction = "ADD_TAGS"
	CREATE           JobEventAction = "CREATE"
	DELETE           JobEventAction = "DELETE"
	DELETETAGS       JobEventAction = "DELETE_TAGS"
	UPDATEDEFINITION JobEventAction = "UPDATE_DEFINITION"
	UPDATESTATUS     JobEventAction = "UPDATE_STATUS"
)

Defines values for JobEventAction.

func (JobEventAction) Valid added in v0.5.0

func (e JobEventAction) Valid() bool

Valid indicates whether the value is a known member of the JobEventAction enum.

type JobRequest

type JobRequest struct {
	// ClientID Create job for the given client ID
	//
	// Example: client42
	ClientID string `json:"clientId"`

	// Definition The existing job definition will be replaced with this if this property is not empty.
	//
	// Example: { "userDefined": {} }
	Definition map[string]interface{} `json:"definition,omitempty"`
	Tags       *TagList               `json:"tags,omitempty"`

	// Workflow Workflow name
	//
	// Example: wfx.workflow.dau.direct
	Workflow string `json:"workflow"`
}

JobRequest defines model for JobRequest.

type JobStatus

type JobStatus struct {
	// ClientID Client which sent the status update
	//
	// Example: client42
	ClientID string `json:"clientId,omitempty"`

	// Context Client-specific JSON object to report additional context information such as error details, stack traces, etc
	//
	// Example: {
	//   "lines": [ "line1", "line2" ]
	// }
	Context *map[string]interface{} `json:"context,omitempty"`

	// DefinitionHash Job definition hash
	DefinitionHash string `json:"definitionHash,omitempty"`

	// Message Reason message/info, free text from client
	Message string `json:"message,omitempty"`

	// Progress Current job progress percentage
	Progress *int32 `json:"progress,omitempty"`

	// State Name of the new workflow state
	//
	// Example: END
	State string `json:"state"`
}

JobStatus Job status information

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type PaginatedJobList

type PaginatedJobList struct {
	Content    []Job       `json:"content"`
	Pagination *Pagination `json:"pagination,omitempty"`
}

PaginatedJobList Paginated list of jobs

type PaginatedWorkflowList

type PaginatedWorkflowList struct {
	Content    []Workflow  `json:"content"`
	Pagination *Pagination `json:"pagination,omitempty"`
}

PaginatedWorkflowList Paginated list of workflows

type Pagination

type Pagination struct {
	// Limit the maximum number of items to return
	//
	// Example: 20
	Limit int32 `json:"limit"`

	// Offset the number of items to skip before starting to return results
	//
	// Example: 0
	Offset int64 `json:"offset"`

	// Total the total number of items
	//
	// Example: 1000
	Total int64 `json:"total"`
}

Pagination defines model for Pagination.

type PostJobs201JSONResponse

type PostJobs201JSONResponse Job

func (PostJobs201JSONResponse) VisitPostJobsResponse

func (response PostJobs201JSONResponse) VisitPostJobsResponse(w http.ResponseWriter) error

type PostJobs400JSONResponse

type PostJobs400JSONResponse ErrorResponse

func (PostJobs400JSONResponse) VisitPostJobsResponse

func (response PostJobs400JSONResponse) VisitPostJobsResponse(w http.ResponseWriter) error

type PostJobs403Response

type PostJobs403Response struct {
}

func (PostJobs403Response) VisitPostJobsResponse

func (response PostJobs403Response) VisitPostJobsResponse(w http.ResponseWriter) error

type PostJobsIdTags200JSONResponse

type PostJobsIdTags200JSONResponse TagList

func (PostJobsIdTags200JSONResponse) VisitPostJobsIdTagsResponse

func (response PostJobsIdTags200JSONResponse) VisitPostJobsIdTagsResponse(w http.ResponseWriter) error

type PostJobsIdTags400JSONResponse

type PostJobsIdTags400JSONResponse ErrorResponse

func (PostJobsIdTags400JSONResponse) VisitPostJobsIdTagsResponse

func (response PostJobsIdTags400JSONResponse) VisitPostJobsIdTagsResponse(w http.ResponseWriter) error

type PostJobsIdTags403Response

type PostJobsIdTags403Response struct {
}

func (PostJobsIdTags403Response) VisitPostJobsIdTagsResponse

func (response PostJobsIdTags403Response) VisitPostJobsIdTagsResponse(w http.ResponseWriter) error

type PostJobsIdTags404JSONResponse

type PostJobsIdTags404JSONResponse ErrorResponse

func (PostJobsIdTags404JSONResponse) VisitPostJobsIdTagsResponse

func (response PostJobsIdTags404JSONResponse) VisitPostJobsIdTagsResponse(w http.ResponseWriter) error

type PostJobsIdTagsJSONBody

type PostJobsIdTagsJSONBody = []string

PostJobsIdTagsJSONBody defines parameters for PostJobsIdTags.

type PostJobsIdTagsJSONRequestBody

type PostJobsIdTagsJSONRequestBody = PostJobsIdTagsJSONBody

PostJobsIdTagsJSONRequestBody defines body for PostJobsIdTags for application/json ContentType.

type PostJobsIdTagsParams

type PostJobsIdTagsParams struct {
	// XResponseFilter Apply a jq-like filter to the response
	XResponseFilter *ResponseFilter `json:"X-Response-Filter,omitempty"`
}

PostJobsIdTagsParams defines parameters for PostJobsIdTags.

type PostJobsIdTagsRequestObject

type PostJobsIdTagsRequestObject struct {
	Id     string `json:"id"`
	Params PostJobsIdTagsParams
	Body   *PostJobsIdTagsJSONRequestBody
}

type PostJobsIdTagsResponse

type PostJobsIdTagsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TagList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
}

func ParsePostJobsIdTagsResponse

func ParsePostJobsIdTagsResponse(rsp *http.Response) (*PostJobsIdTagsResponse, error)

ParsePostJobsIdTagsResponse parses an HTTP response from a PostJobsIdTagsWithResponse call

func (PostJobsIdTagsResponse) ContentType added in v0.6.0

func (r PostJobsIdTagsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PostJobsIdTagsResponse) GetBody added in v0.7.0

func (r PostJobsIdTagsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PostJobsIdTagsResponse) GetJSON200 added in v0.7.0

func (r PostJobsIdTagsResponse) GetJSON200() *TagList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PostJobsIdTagsResponse) GetJSON400 added in v0.7.0

func (r PostJobsIdTagsResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PostJobsIdTagsResponse) GetJSON404 added in v0.7.0

func (r PostJobsIdTagsResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (PostJobsIdTagsResponse) Status

func (r PostJobsIdTagsResponse) Status() string

Status returns HTTPResponse.Status

func (PostJobsIdTagsResponse) StatusCode

func (r PostJobsIdTagsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostJobsIdTagsResponseObject

type PostJobsIdTagsResponseObject interface {
	VisitPostJobsIdTagsResponse(w http.ResponseWriter) error
}

type PostJobsIdTagsdefaultResponse

type PostJobsIdTagsdefaultResponse struct {
	StatusCode int
}

func (PostJobsIdTagsdefaultResponse) VisitPostJobsIdTagsResponse

func (response PostJobsIdTagsdefaultResponse) VisitPostJobsIdTagsResponse(w http.ResponseWriter) error

type PostJobsJSONRequestBody

type PostJobsJSONRequestBody = JobRequest

PostJobsJSONRequestBody defines body for PostJobs for application/json ContentType.

type PostJobsParams

type PostJobsParams struct {
	// XResponseFilter Apply a jq-like filter to the response
	XResponseFilter *ResponseFilter `json:"X-Response-Filter,omitempty"`
}

PostJobsParams defines parameters for PostJobs.

type PostJobsRequestObject

type PostJobsRequestObject struct {
	Params PostJobsParams
	Body   *PostJobsJSONRequestBody
}

type PostJobsResponse

type PostJobsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Job
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
}

func ParsePostJobsResponse

func ParsePostJobsResponse(rsp *http.Response) (*PostJobsResponse, error)

ParsePostJobsResponse parses an HTTP response from a PostJobsWithResponse call

func (PostJobsResponse) ContentType added in v0.6.0

func (r PostJobsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PostJobsResponse) GetBody added in v0.7.0

func (r PostJobsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PostJobsResponse) GetJSON201 added in v0.7.0

func (r PostJobsResponse) GetJSON201() *Job

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (PostJobsResponse) GetJSON400 added in v0.7.0

func (r PostJobsResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PostJobsResponse) Status

func (r PostJobsResponse) Status() string

Status returns HTTPResponse.Status

func (PostJobsResponse) StatusCode

func (r PostJobsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostJobsResponseObject

type PostJobsResponseObject interface {
	VisitPostJobsResponse(w http.ResponseWriter) error
}

type PostJobsdefaultResponse

type PostJobsdefaultResponse struct {
	StatusCode int
}

func (PostJobsdefaultResponse) VisitPostJobsResponse

func (response PostJobsdefaultResponse) VisitPostJobsResponse(w http.ResponseWriter) error

type PostWorkflows201JSONResponse

type PostWorkflows201JSONResponse Workflow

func (PostWorkflows201JSONResponse) VisitPostWorkflowsResponse

func (response PostWorkflows201JSONResponse) VisitPostWorkflowsResponse(w http.ResponseWriter) error

type PostWorkflows400JSONResponse

type PostWorkflows400JSONResponse ErrorResponse

func (PostWorkflows400JSONResponse) VisitPostWorkflowsResponse

func (response PostWorkflows400JSONResponse) VisitPostWorkflowsResponse(w http.ResponseWriter) error

type PostWorkflows403Response

type PostWorkflows403Response struct {
}

func (PostWorkflows403Response) VisitPostWorkflowsResponse

func (response PostWorkflows403Response) VisitPostWorkflowsResponse(w http.ResponseWriter) error

type PostWorkflowsJSONRequestBody

type PostWorkflowsJSONRequestBody = Workflow

PostWorkflowsJSONRequestBody defines body for PostWorkflows for application/json ContentType.

type PostWorkflowsParams

type PostWorkflowsParams struct {
	// XResponseFilter Apply a jq-like filter to the response
	XResponseFilter *ResponseFilter `json:"X-Response-Filter,omitempty"`
}

PostWorkflowsParams defines parameters for PostWorkflows.

type PostWorkflowsRequestObject

type PostWorkflowsRequestObject struct {
	Params PostWorkflowsParams
	Body   *PostWorkflowsJSONRequestBody
}

type PostWorkflowsResponse

type PostWorkflowsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Workflow
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
}

func ParsePostWorkflowsResponse

func ParsePostWorkflowsResponse(rsp *http.Response) (*PostWorkflowsResponse, error)

ParsePostWorkflowsResponse parses an HTTP response from a PostWorkflowsWithResponse call

func (PostWorkflowsResponse) ContentType added in v0.6.0

func (r PostWorkflowsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PostWorkflowsResponse) GetBody added in v0.7.0

func (r PostWorkflowsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PostWorkflowsResponse) GetJSON201 added in v0.7.0

func (r PostWorkflowsResponse) GetJSON201() *Workflow

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (PostWorkflowsResponse) GetJSON400 added in v0.7.0

func (r PostWorkflowsResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PostWorkflowsResponse) Status

func (r PostWorkflowsResponse) Status() string

Status returns HTTPResponse.Status

func (PostWorkflowsResponse) StatusCode

func (r PostWorkflowsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostWorkflowsResponseObject

type PostWorkflowsResponseObject interface {
	VisitPostWorkflowsResponse(w http.ResponseWriter) error
}

type PostWorkflowsdefaultResponse

type PostWorkflowsdefaultResponse struct {
	StatusCode int
}

func (PostWorkflowsdefaultResponse) VisitPostWorkflowsResponse

func (response PostWorkflowsdefaultResponse) VisitPostWorkflowsResponse(w http.ResponseWriter) error

type PutJobsIdDefinition200JSONResponse

type PutJobsIdDefinition200JSONResponse map[string]interface{}

func (PutJobsIdDefinition200JSONResponse) VisitPutJobsIdDefinitionResponse

func (response PutJobsIdDefinition200JSONResponse) VisitPutJobsIdDefinitionResponse(w http.ResponseWriter) error

type PutJobsIdDefinition400JSONResponse

type PutJobsIdDefinition400JSONResponse ErrorResponse

func (PutJobsIdDefinition400JSONResponse) VisitPutJobsIdDefinitionResponse

func (response PutJobsIdDefinition400JSONResponse) VisitPutJobsIdDefinitionResponse(w http.ResponseWriter) error

type PutJobsIdDefinition403Response added in v0.7.0

type PutJobsIdDefinition403Response struct {
}

func (PutJobsIdDefinition403Response) VisitPutJobsIdDefinitionResponse added in v0.7.0

func (response PutJobsIdDefinition403Response) VisitPutJobsIdDefinitionResponse(w http.ResponseWriter) error

type PutJobsIdDefinition404JSONResponse

type PutJobsIdDefinition404JSONResponse ErrorResponse

func (PutJobsIdDefinition404JSONResponse) VisitPutJobsIdDefinitionResponse

func (response PutJobsIdDefinition404JSONResponse) VisitPutJobsIdDefinitionResponse(w http.ResponseWriter) error

type PutJobsIdDefinitionJSONBody

type PutJobsIdDefinitionJSONBody = map[string]interface{}

PutJobsIdDefinitionJSONBody defines parameters for PutJobsIdDefinition.

type PutJobsIdDefinitionJSONRequestBody

type PutJobsIdDefinitionJSONRequestBody = PutJobsIdDefinitionJSONBody

PutJobsIdDefinitionJSONRequestBody defines body for PutJobsIdDefinition for application/json ContentType.

type PutJobsIdDefinitionParams

type PutJobsIdDefinitionParams struct {
	// XResponseFilter Apply a jq-like filter to the response
	XResponseFilter *ResponseFilter `json:"X-Response-Filter,omitempty"`
}

PutJobsIdDefinitionParams defines parameters for PutJobsIdDefinition.

type PutJobsIdDefinitionRequestObject

type PutJobsIdDefinitionRequestObject struct {
	Id     string `json:"id"`
	Params PutJobsIdDefinitionParams
	Body   *PutJobsIdDefinitionJSONRequestBody
}

type PutJobsIdDefinitionResponse

type PutJobsIdDefinitionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *map[string]interface{}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
}

func ParsePutJobsIdDefinitionResponse

func ParsePutJobsIdDefinitionResponse(rsp *http.Response) (*PutJobsIdDefinitionResponse, error)

ParsePutJobsIdDefinitionResponse parses an HTTP response from a PutJobsIdDefinitionWithResponse call

func (PutJobsIdDefinitionResponse) ContentType added in v0.6.0

func (r PutJobsIdDefinitionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PutJobsIdDefinitionResponse) GetBody added in v0.7.0

func (r PutJobsIdDefinitionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PutJobsIdDefinitionResponse) GetJSON200 added in v0.7.0

func (r PutJobsIdDefinitionResponse) GetJSON200() *map[string]interface{}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PutJobsIdDefinitionResponse) GetJSON400 added in v0.7.0

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PutJobsIdDefinitionResponse) GetJSON404 added in v0.7.0

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (PutJobsIdDefinitionResponse) Status

Status returns HTTPResponse.Status

func (PutJobsIdDefinitionResponse) StatusCode

func (r PutJobsIdDefinitionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutJobsIdDefinitionResponseObject

type PutJobsIdDefinitionResponseObject interface {
	VisitPutJobsIdDefinitionResponse(w http.ResponseWriter) error
}

type PutJobsIdDefinitiondefaultResponse

type PutJobsIdDefinitiondefaultResponse struct {
	StatusCode int
}

func (PutJobsIdDefinitiondefaultResponse) VisitPutJobsIdDefinitionResponse

func (response PutJobsIdDefinitiondefaultResponse) VisitPutJobsIdDefinitionResponse(w http.ResponseWriter) error

type PutJobsIdStatus200JSONResponse

type PutJobsIdStatus200JSONResponse JobStatus

func (PutJobsIdStatus200JSONResponse) VisitPutJobsIdStatusResponse

func (response PutJobsIdStatus200JSONResponse) VisitPutJobsIdStatusResponse(w http.ResponseWriter) error

type PutJobsIdStatus400JSONResponse

type PutJobsIdStatus400JSONResponse ErrorResponse

func (PutJobsIdStatus400JSONResponse) VisitPutJobsIdStatusResponse

func (response PutJobsIdStatus400JSONResponse) VisitPutJobsIdStatusResponse(w http.ResponseWriter) error

type PutJobsIdStatus404JSONResponse

type PutJobsIdStatus404JSONResponse ErrorResponse

func (PutJobsIdStatus404JSONResponse) VisitPutJobsIdStatusResponse

func (response PutJobsIdStatus404JSONResponse) VisitPutJobsIdStatusResponse(w http.ResponseWriter) error

type PutJobsIdStatusJSONRequestBody

type PutJobsIdStatusJSONRequestBody = JobStatus

PutJobsIdStatusJSONRequestBody defines body for PutJobsIdStatus for application/json ContentType.

type PutJobsIdStatusParams

type PutJobsIdStatusParams struct {
	// XResponseFilter Apply a jq-like filter to the response
	XResponseFilter *ResponseFilter `json:"X-Response-Filter,omitempty"`

	// XClientID Limit responses on the southbound API to jobs belonging to this client ID; jobs of any other client are reported as not found. Takes precedence over the clientId query parameter; conflicting values are rejected with an error
	XClientID *XClientID `json:"X-Client-Id,omitempty"`
}

PutJobsIdStatusParams defines parameters for PutJobsIdStatus.

type PutJobsIdStatusRequestObject

type PutJobsIdStatusRequestObject struct {
	Id     string `json:"id"`
	Params PutJobsIdStatusParams
	Body   *PutJobsIdStatusJSONRequestBody
}

type PutJobsIdStatusResponse

type PutJobsIdStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *JobStatus
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
}

func ParsePutJobsIdStatusResponse

func ParsePutJobsIdStatusResponse(rsp *http.Response) (*PutJobsIdStatusResponse, error)

ParsePutJobsIdStatusResponse parses an HTTP response from a PutJobsIdStatusWithResponse call

func (PutJobsIdStatusResponse) ContentType added in v0.6.0

func (r PutJobsIdStatusResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PutJobsIdStatusResponse) GetBody added in v0.7.0

func (r PutJobsIdStatusResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PutJobsIdStatusResponse) GetJSON200 added in v0.7.0

func (r PutJobsIdStatusResponse) GetJSON200() *JobStatus

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PutJobsIdStatusResponse) GetJSON400 added in v0.7.0

func (r PutJobsIdStatusResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PutJobsIdStatusResponse) GetJSON404 added in v0.7.0

func (r PutJobsIdStatusResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (PutJobsIdStatusResponse) Status

func (r PutJobsIdStatusResponse) Status() string

Status returns HTTPResponse.Status

func (PutJobsIdStatusResponse) StatusCode

func (r PutJobsIdStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutJobsIdStatusResponseObject

type PutJobsIdStatusResponseObject interface {
	VisitPutJobsIdStatusResponse(w http.ResponseWriter) error
}

type PutJobsIdStatusdefaultResponse

type PutJobsIdStatusdefaultResponse struct {
	StatusCode int
}

func (PutJobsIdStatusdefaultResponse) VisitPutJobsIdStatusResponse

func (response PutJobsIdStatusdefaultResponse) VisitPutJobsIdStatusResponse(w http.ResponseWriter) error

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type ResponseFilter

type ResponseFilter = string

ResponseFilter defines model for responseFilter.

type ServeMux

type ServeMux interface {
	HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
	http.Handler
}

ServeMux is an abstraction of http.ServeMux.

type ServerInterface

type ServerInterface interface {
	// GetHealth Query wfx's health status
	// (GET /health)
	GetHealth(w http.ResponseWriter, r *http.Request)
	// GetJobs List available jobs
	// (GET /jobs)
	GetJobs(w http.ResponseWriter, r *http.Request, params GetJobsParams)
	// PostJobs Add a new job
	// (POST /jobs)
	PostJobs(w http.ResponseWriter, r *http.Request, params PostJobsParams)
	// GetJobsEvents Subscribe to job-related events such as status updates
	// (GET /jobs/events)
	GetJobsEvents(w http.ResponseWriter, r *http.Request, params GetJobsEventsParams)
	// DeleteJobsId Delete a specific job
	// (DELETE /jobs/{id})
	DeleteJobsId(w http.ResponseWriter, r *http.Request, id string)
	// GetJobsId Get specific job's details
	// (GET /jobs/{id})
	GetJobsId(w http.ResponseWriter, r *http.Request, id string, params GetJobsIdParams)
	// GetJobsIdDefinition Get specific job's definition
	// (GET /jobs/{id}/definition)
	GetJobsIdDefinition(w http.ResponseWriter, r *http.Request, id string, params GetJobsIdDefinitionParams)
	// PutJobsIdDefinition Modify specific job's definition
	// (PUT /jobs/{id}/definition)
	PutJobsIdDefinition(w http.ResponseWriter, r *http.Request, id string, params PutJobsIdDefinitionParams)
	// GetJobsIdStatus Get specific job's status
	// (GET /jobs/{id}/status)
	GetJobsIdStatus(w http.ResponseWriter, r *http.Request, id string, params GetJobsIdStatusParams)
	// PutJobsIdStatus Modify specific job's status
	// (PUT /jobs/{id}/status)
	PutJobsIdStatus(w http.ResponseWriter, r *http.Request, id string, params PutJobsIdStatusParams)
	// DeleteJobsIdTags Delete a tag from a specific job
	// (DELETE /jobs/{id}/tags)
	DeleteJobsIdTags(w http.ResponseWriter, r *http.Request, id string, params DeleteJobsIdTagsParams)
	// GetJobsIdTags Get specific job's tags
	// (GET /jobs/{id}/tags)
	GetJobsIdTags(w http.ResponseWriter, r *http.Request, id string, params GetJobsIdTagsParams)
	// PostJobsIdTags Add a tag to a specific job
	// (POST /jobs/{id}/tags)
	PostJobsIdTags(w http.ResponseWriter, r *http.Request, id string, params PostJobsIdTagsParams)
	// GetVersion Query wfx's version information
	// (GET /version)
	GetVersion(w http.ResponseWriter, r *http.Request)
	// GetWorkflows List available workflows
	// (GET /workflows)
	GetWorkflows(w http.ResponseWriter, r *http.Request, params GetWorkflowsParams)
	// PostWorkflows Add a new workflow
	// (POST /workflows)
	PostWorkflows(w http.ResponseWriter, r *http.Request, params PostWorkflowsParams)
	// DeleteWorkflowsName Delete a specific workflow
	// (DELETE /workflows/{name})
	DeleteWorkflowsName(w http.ResponseWriter, r *http.Request, name string)
	// GetWorkflowsName Get specific workflow's details
	// (GET /workflows/{name})
	GetWorkflowsName(w http.ResponseWriter, r *http.Request, name string, params GetWorkflowsNameParams)
}

ServerInterface represents all server handlers.

func NewStrictHandler

func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface

func NewStrictHandlerWithOptions

func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) DeleteJobsId

func (siw *ServerInterfaceWrapper) DeleteJobsId(w http.ResponseWriter, r *http.Request)

DeleteJobsId operation middleware

func (*ServerInterfaceWrapper) DeleteJobsIdTags

func (siw *ServerInterfaceWrapper) DeleteJobsIdTags(w http.ResponseWriter, r *http.Request)

DeleteJobsIdTags operation middleware

func (*ServerInterfaceWrapper) DeleteWorkflowsName

func (siw *ServerInterfaceWrapper) DeleteWorkflowsName(w http.ResponseWriter, r *http.Request)

DeleteWorkflowsName operation middleware

func (*ServerInterfaceWrapper) GetHealth

func (siw *ServerInterfaceWrapper) GetHealth(w http.ResponseWriter, r *http.Request)

GetHealth operation middleware

func (*ServerInterfaceWrapper) GetJobs

GetJobs operation middleware

func (*ServerInterfaceWrapper) GetJobsEvents

func (siw *ServerInterfaceWrapper) GetJobsEvents(w http.ResponseWriter, r *http.Request)

GetJobsEvents operation middleware

func (*ServerInterfaceWrapper) GetJobsId

func (siw *ServerInterfaceWrapper) GetJobsId(w http.ResponseWriter, r *http.Request)

GetJobsId operation middleware

func (*ServerInterfaceWrapper) GetJobsIdDefinition

func (siw *ServerInterfaceWrapper) GetJobsIdDefinition(w http.ResponseWriter, r *http.Request)

GetJobsIdDefinition operation middleware

func (*ServerInterfaceWrapper) GetJobsIdStatus

func (siw *ServerInterfaceWrapper) GetJobsIdStatus(w http.ResponseWriter, r *http.Request)

GetJobsIdStatus operation middleware

func (*ServerInterfaceWrapper) GetJobsIdTags

func (siw *ServerInterfaceWrapper) GetJobsIdTags(w http.ResponseWriter, r *http.Request)

GetJobsIdTags operation middleware

func (*ServerInterfaceWrapper) GetVersion

func (siw *ServerInterfaceWrapper) GetVersion(w http.ResponseWriter, r *http.Request)

GetVersion operation middleware

func (*ServerInterfaceWrapper) GetWorkflows

func (siw *ServerInterfaceWrapper) GetWorkflows(w http.ResponseWriter, r *http.Request)

GetWorkflows operation middleware

func (*ServerInterfaceWrapper) GetWorkflowsName

func (siw *ServerInterfaceWrapper) GetWorkflowsName(w http.ResponseWriter, r *http.Request)

GetWorkflowsName operation middleware

func (*ServerInterfaceWrapper) PostJobs

func (siw *ServerInterfaceWrapper) PostJobs(w http.ResponseWriter, r *http.Request)

PostJobs operation middleware

func (*ServerInterfaceWrapper) PostJobsIdTags

func (siw *ServerInterfaceWrapper) PostJobsIdTags(w http.ResponseWriter, r *http.Request)

PostJobsIdTags operation middleware

func (*ServerInterfaceWrapper) PostWorkflows

func (siw *ServerInterfaceWrapper) PostWorkflows(w http.ResponseWriter, r *http.Request)

PostWorkflows operation middleware

func (*ServerInterfaceWrapper) PutJobsIdDefinition

func (siw *ServerInterfaceWrapper) PutJobsIdDefinition(w http.ResponseWriter, r *http.Request)

PutJobsIdDefinition operation middleware

func (*ServerInterfaceWrapper) PutJobsIdStatus

func (siw *ServerInterfaceWrapper) PutJobsIdStatus(w http.ResponseWriter, r *http.Request)

PutJobsIdStatus operation middleware

type SortEnum

type SortEnum string

SortEnum defines model for SortEnum.

const (
	Asc  SortEnum = "asc"
	Desc SortEnum = "desc"
)

Defines values for SortEnum.

func (SortEnum) Valid added in v0.5.0

func (e SortEnum) Valid() bool

Valid indicates whether the value is a known member of the SortEnum enum.

type State

type State struct {
	// Description Example: Description of the state
	Description string `json:"description,omitempty"`

	// Name Example: START
	Name string `json:"name"`
}

State defines model for State.

type StdHTTPServerOptions

type StdHTTPServerOptions struct {
	BaseURL          string
	BaseRouter       ServeMux
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type StrictHTTPServerOptions

type StrictHTTPServerOptions struct {
	RequestErrorHandlerFunc  func(w http.ResponseWriter, r *http.Request, err error)
	ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type StrictHandlerFunc

type StrictHandlerFunc func(ctx context.Context, w http.ResponseWriter, r *http.Request, request any) (any, error)

type StrictMiddlewareFunc

type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc

type StrictServerInterface

type StrictServerInterface interface {
	// GetHealth Query wfx's health status
	// (GET /health)
	GetHealth(ctx context.Context, request GetHealthRequestObject) (GetHealthResponseObject, error)
	// GetJobs List available jobs
	// (GET /jobs)
	GetJobs(ctx context.Context, request GetJobsRequestObject) (GetJobsResponseObject, error)
	// PostJobs Add a new job
	// (POST /jobs)
	PostJobs(ctx context.Context, request PostJobsRequestObject) (PostJobsResponseObject, error)
	// GetJobsEvents Subscribe to job-related events such as status updates
	// (GET /jobs/events)
	GetJobsEvents(ctx context.Context, request GetJobsEventsRequestObject) (GetJobsEventsResponseObject, error)
	// DeleteJobsId Delete a specific job
	// (DELETE /jobs/{id})
	DeleteJobsId(ctx context.Context, request DeleteJobsIdRequestObject) (DeleteJobsIdResponseObject, error)
	// GetJobsId Get specific job's details
	// (GET /jobs/{id})
	GetJobsId(ctx context.Context, request GetJobsIdRequestObject) (GetJobsIdResponseObject, error)
	// GetJobsIdDefinition Get specific job's definition
	// (GET /jobs/{id}/definition)
	GetJobsIdDefinition(ctx context.Context, request GetJobsIdDefinitionRequestObject) (GetJobsIdDefinitionResponseObject, error)
	// PutJobsIdDefinition Modify specific job's definition
	// (PUT /jobs/{id}/definition)
	PutJobsIdDefinition(ctx context.Context, request PutJobsIdDefinitionRequestObject) (PutJobsIdDefinitionResponseObject, error)
	// GetJobsIdStatus Get specific job's status
	// (GET /jobs/{id}/status)
	GetJobsIdStatus(ctx context.Context, request GetJobsIdStatusRequestObject) (GetJobsIdStatusResponseObject, error)
	// PutJobsIdStatus Modify specific job's status
	// (PUT /jobs/{id}/status)
	PutJobsIdStatus(ctx context.Context, request PutJobsIdStatusRequestObject) (PutJobsIdStatusResponseObject, error)
	// DeleteJobsIdTags Delete a tag from a specific job
	// (DELETE /jobs/{id}/tags)
	DeleteJobsIdTags(ctx context.Context, request DeleteJobsIdTagsRequestObject) (DeleteJobsIdTagsResponseObject, error)
	// GetJobsIdTags Get specific job's tags
	// (GET /jobs/{id}/tags)
	GetJobsIdTags(ctx context.Context, request GetJobsIdTagsRequestObject) (GetJobsIdTagsResponseObject, error)
	// PostJobsIdTags Add a tag to a specific job
	// (POST /jobs/{id}/tags)
	PostJobsIdTags(ctx context.Context, request PostJobsIdTagsRequestObject) (PostJobsIdTagsResponseObject, error)
	// GetVersion Query wfx's version information
	// (GET /version)
	GetVersion(ctx context.Context, request GetVersionRequestObject) (GetVersionResponseObject, error)
	// GetWorkflows List available workflows
	// (GET /workflows)
	GetWorkflows(ctx context.Context, request GetWorkflowsRequestObject) (GetWorkflowsResponseObject, error)
	// PostWorkflows Add a new workflow
	// (POST /workflows)
	PostWorkflows(ctx context.Context, request PostWorkflowsRequestObject) (PostWorkflowsResponseObject, error)
	// DeleteWorkflowsName Delete a specific workflow
	// (DELETE /workflows/{name})
	DeleteWorkflowsName(ctx context.Context, request DeleteWorkflowsNameRequestObject) (DeleteWorkflowsNameResponseObject, error)
	// GetWorkflowsName Get specific workflow's details
	// (GET /workflows/{name})
	GetWorkflowsName(ctx context.Context, request GetWorkflowsNameRequestObject) (GetWorkflowsNameResponseObject, error)
}

StrictServerInterface represents all server handlers.

type TagList

type TagList = []string

TagList defines model for TagList.

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type Transition

type Transition struct {
	Action *ActionEnum `json:"action,omitempty"`

	// Description Example: Description of the transition
	Description string       `json:"description,omitempty"`
	Eligible    EligibleEnum `json:"eligible"`

	// From Example: START
	From string `json:"from"`

	// To Example: END
	To string `json:"to"`
}

Transition defines model for Transition.

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshalingParamError) Error

func (e *UnmarshalingParamError) Error() string

func (*UnmarshalingParamError) Unwrap

func (e *UnmarshalingParamError) Unwrap() error

type Workflow

type Workflow struct {
	// Description Description of the workflow
	//
	// Example: This is a workflow
	Description string  `json:"description,omitempty"`
	Groups      []Group `json:"groups,omitempty"`

	// Name User provided unique workflow name
	//
	// Example: wfx.workflow.dau.direct
	Name        string       `json:"name"`
	States      []State      `json:"states,omitempty"`
	Transitions []Transition `json:"transitions,omitempty"`
}

Workflow defines model for Workflow.

type XClientID added in v0.7.0

type XClientID = string

XClientID defines model for clientIDHeader.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL