executions

package
v0.0.0-...-92dc8bc Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for executions API

func (*Client) ListExecutionsByJob

func (a *Client) ListExecutionsByJob(params *ListExecutionsByJobParams, opts ...ClientOption) (*ListExecutionsByJobOK, error)

ListExecutionsByJob List executions.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ListExecutionsByJob(params *ListExecutionsByJobParams, opts ...ClientOption) (*ListExecutionsByJobOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new executions API client.

type ListExecutionsByJobOK

type ListExecutionsByJobOK struct {
	Payload []*models.Execution
}
ListExecutionsByJobOK describes a response with status code 200, with default header values.

Successful response

func NewListExecutionsByJobOK

func NewListExecutionsByJobOK() *ListExecutionsByJobOK

NewListExecutionsByJobOK creates a ListExecutionsByJobOK with default headers values

func (*ListExecutionsByJobOK) Error

func (o *ListExecutionsByJobOK) Error() string

func (*ListExecutionsByJobOK) GetPayload

func (o *ListExecutionsByJobOK) GetPayload() []*models.Execution

type ListExecutionsByJobParams

type ListExecutionsByJobParams struct {

	/* JobName.

	   The job that owns the executions to be fetched.
	*/
	JobName string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListExecutionsByJobParams contains all the parameters to send to the API endpoint

for the list executions by job operation.

Typically these are written to a http.Request.

func NewListExecutionsByJobParams

func NewListExecutionsByJobParams() *ListExecutionsByJobParams

NewListExecutionsByJobParams creates a new ListExecutionsByJobParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListExecutionsByJobParamsWithContext

func NewListExecutionsByJobParamsWithContext(ctx context.Context) *ListExecutionsByJobParams

NewListExecutionsByJobParamsWithContext creates a new ListExecutionsByJobParams object with the ability to set a context for a request.

func NewListExecutionsByJobParamsWithHTTPClient

func NewListExecutionsByJobParamsWithHTTPClient(client *http.Client) *ListExecutionsByJobParams

NewListExecutionsByJobParamsWithHTTPClient creates a new ListExecutionsByJobParams object with the ability to set a custom HTTPClient for a request.

func NewListExecutionsByJobParamsWithTimeout

func NewListExecutionsByJobParamsWithTimeout(timeout time.Duration) *ListExecutionsByJobParams

NewListExecutionsByJobParamsWithTimeout creates a new ListExecutionsByJobParams object with the ability to set a timeout on a request.

func (*ListExecutionsByJobParams) SetContext

func (o *ListExecutionsByJobParams) SetContext(ctx context.Context)

SetContext adds the context to the list executions by job params

func (*ListExecutionsByJobParams) SetDefaults

func (o *ListExecutionsByJobParams) SetDefaults()

SetDefaults hydrates default values in the list executions by job params (not the query body).

All values with no default are reset to their zero value.

func (*ListExecutionsByJobParams) SetHTTPClient

func (o *ListExecutionsByJobParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list executions by job params

func (*ListExecutionsByJobParams) SetJobName

func (o *ListExecutionsByJobParams) SetJobName(jobName string)

SetJobName adds the jobName to the list executions by job params

func (*ListExecutionsByJobParams) SetTimeout

func (o *ListExecutionsByJobParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list executions by job params

func (*ListExecutionsByJobParams) WithContext

WithContext adds the context to the list executions by job params

func (*ListExecutionsByJobParams) WithDefaults

WithDefaults hydrates default values in the list executions by job params (not the query body).

All values with no default are reset to their zero value.

func (*ListExecutionsByJobParams) WithHTTPClient

func (o *ListExecutionsByJobParams) WithHTTPClient(client *http.Client) *ListExecutionsByJobParams

WithHTTPClient adds the HTTPClient to the list executions by job params

func (*ListExecutionsByJobParams) WithJobName

WithJobName adds the jobName to the list executions by job params

func (*ListExecutionsByJobParams) WithTimeout

WithTimeout adds the timeout to the list executions by job params

func (*ListExecutionsByJobParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListExecutionsByJobReader

type ListExecutionsByJobReader struct {
	// contains filtered or unexported fields
}

ListExecutionsByJobReader is a Reader for the ListExecutionsByJob structure.

func (*ListExecutionsByJobReader) ReadResponse

func (o *ListExecutionsByJobReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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