runner

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 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 runner API

func New

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

New creates a new runner API client.

func (*Client) GetFunctionRuns

func (a *Client) GetFunctionRuns(params *GetFunctionRunsParams, authInfo runtime.ClientAuthInfoWriter) (*GetFunctionRunsOK, error)

GetFunctionRuns gets function runs that are being executed

func (*Client) GetRun

func (a *Client) GetRun(params *GetRunParams, authInfo runtime.ClientAuthInfoWriter) (*GetRunOK, error)

GetRun gets function run by its name

func (*Client) GetRuns

func (a *Client) GetRuns(params *GetRunsParams, authInfo runtime.ClientAuthInfoWriter) (*GetRunsOK, error)

GetRuns gets function runs that are being executed

func (*Client) RunFunction

RunFunction runs a function

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetFunctionRunsInternalServerError

type GetFunctionRunsInternalServerError struct {
	Payload *models.Error
}

GetFunctionRunsInternalServerError handles this case with default header values.

Internal error

func NewGetFunctionRunsInternalServerError

func NewGetFunctionRunsInternalServerError() *GetFunctionRunsInternalServerError

NewGetFunctionRunsInternalServerError creates a GetFunctionRunsInternalServerError with default headers values

func (*GetFunctionRunsInternalServerError) Error

type GetFunctionRunsNotFound

type GetFunctionRunsNotFound struct {
	Payload *models.Error
}

GetFunctionRunsNotFound handles this case with default header values.

Function not found

func NewGetFunctionRunsNotFound

func NewGetFunctionRunsNotFound() *GetFunctionRunsNotFound

NewGetFunctionRunsNotFound creates a GetFunctionRunsNotFound with default headers values

func (*GetFunctionRunsNotFound) Error

func (o *GetFunctionRunsNotFound) Error() string

type GetFunctionRunsOK

type GetFunctionRunsOK struct {
	Payload models.GetFunctionRunsOKBody
}

GetFunctionRunsOK handles this case with default header values.

List of function runs

func NewGetFunctionRunsOK

func NewGetFunctionRunsOK() *GetFunctionRunsOK

NewGetFunctionRunsOK creates a GetFunctionRunsOK with default headers values

func (*GetFunctionRunsOK) Error

func (o *GetFunctionRunsOK) Error() string

type GetFunctionRunsParams

type GetFunctionRunsParams struct {

	/*FunctionName
	  Name of function to run

	*/
	FunctionName string

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

GetFunctionRunsParams contains all the parameters to send to the API endpoint for the get function runs operation typically these are written to a http.Request

func NewGetFunctionRunsParams

func NewGetFunctionRunsParams() *GetFunctionRunsParams

NewGetFunctionRunsParams creates a new GetFunctionRunsParams object with the default values initialized.

func NewGetFunctionRunsParamsWithContext

func NewGetFunctionRunsParamsWithContext(ctx context.Context) *GetFunctionRunsParams

NewGetFunctionRunsParamsWithContext creates a new GetFunctionRunsParams object with the default values initialized, and the ability to set a context for a request

func NewGetFunctionRunsParamsWithHTTPClient

func NewGetFunctionRunsParamsWithHTTPClient(client *http.Client) *GetFunctionRunsParams

NewGetFunctionRunsParamsWithHTTPClient creates a new GetFunctionRunsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetFunctionRunsParamsWithTimeout

func NewGetFunctionRunsParamsWithTimeout(timeout time.Duration) *GetFunctionRunsParams

NewGetFunctionRunsParamsWithTimeout creates a new GetFunctionRunsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetFunctionRunsParams) SetContext

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

SetContext adds the context to the get function runs params

func (*GetFunctionRunsParams) SetFunctionName

func (o *GetFunctionRunsParams) SetFunctionName(functionName string)

SetFunctionName adds the functionName to the get function runs params

func (*GetFunctionRunsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get function runs params

func (*GetFunctionRunsParams) SetTimeout

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

SetTimeout adds the timeout to the get function runs params

func (*GetFunctionRunsParams) WithContext

WithContext adds the context to the get function runs params

func (*GetFunctionRunsParams) WithFunctionName

func (o *GetFunctionRunsParams) WithFunctionName(functionName string) *GetFunctionRunsParams

WithFunctionName adds the functionName to the get function runs params

func (*GetFunctionRunsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get function runs params

func (*GetFunctionRunsParams) WithTimeout

func (o *GetFunctionRunsParams) WithTimeout(timeout time.Duration) *GetFunctionRunsParams

WithTimeout adds the timeout to the get function runs params

func (*GetFunctionRunsParams) WriteToRequest

func (o *GetFunctionRunsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetFunctionRunsReader

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

GetFunctionRunsReader is a Reader for the GetFunctionRuns structure.

func (*GetFunctionRunsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRunInternalServerError

type GetRunInternalServerError struct {
	Payload *models.Error
}

GetRunInternalServerError handles this case with default header values.

Internal error

func NewGetRunInternalServerError

func NewGetRunInternalServerError() *GetRunInternalServerError

NewGetRunInternalServerError creates a GetRunInternalServerError with default headers values

func (*GetRunInternalServerError) Error

func (o *GetRunInternalServerError) Error() string

type GetRunNotFound

type GetRunNotFound struct {
	Payload *models.Error
}

GetRunNotFound handles this case with default header values.

Function or Run not found

func NewGetRunNotFound

func NewGetRunNotFound() *GetRunNotFound

NewGetRunNotFound creates a GetRunNotFound with default headers values

func (*GetRunNotFound) Error

func (o *GetRunNotFound) Error() string

type GetRunOK

type GetRunOK struct {
	Payload *models.Run
}

GetRunOK handles this case with default header values.

Function Run

func NewGetRunOK

func NewGetRunOK() *GetRunOK

NewGetRunOK creates a GetRunOK with default headers values

func (*GetRunOK) Error

func (o *GetRunOK) Error() string

type GetRunParams

type GetRunParams struct {

	/*FunctionName
	  Name of function to retrieve a run for

	*/
	FunctionName string
	/*RunName
	  name of run to retrieve

	*/
	RunName strfmt.UUID

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

GetRunParams contains all the parameters to send to the API endpoint for the get run operation typically these are written to a http.Request

func NewGetRunParams

func NewGetRunParams() *GetRunParams

NewGetRunParams creates a new GetRunParams object with the default values initialized.

func NewGetRunParamsWithContext

func NewGetRunParamsWithContext(ctx context.Context) *GetRunParams

NewGetRunParamsWithContext creates a new GetRunParams object with the default values initialized, and the ability to set a context for a request

func NewGetRunParamsWithHTTPClient

func NewGetRunParamsWithHTTPClient(client *http.Client) *GetRunParams

NewGetRunParamsWithHTTPClient creates a new GetRunParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetRunParamsWithTimeout

func NewGetRunParamsWithTimeout(timeout time.Duration) *GetRunParams

NewGetRunParamsWithTimeout creates a new GetRunParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetRunParams) SetContext

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

SetContext adds the context to the get run params

func (*GetRunParams) SetFunctionName

func (o *GetRunParams) SetFunctionName(functionName string)

SetFunctionName adds the functionName to the get run params

func (*GetRunParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get run params

func (*GetRunParams) SetRunName

func (o *GetRunParams) SetRunName(runName strfmt.UUID)

SetRunName adds the runName to the get run params

func (*GetRunParams) SetTimeout

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

SetTimeout adds the timeout to the get run params

func (*GetRunParams) WithContext

func (o *GetRunParams) WithContext(ctx context.Context) *GetRunParams

WithContext adds the context to the get run params

func (*GetRunParams) WithFunctionName

func (o *GetRunParams) WithFunctionName(functionName string) *GetRunParams

WithFunctionName adds the functionName to the get run params

func (*GetRunParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get run params

func (*GetRunParams) WithRunName

func (o *GetRunParams) WithRunName(runName strfmt.UUID) *GetRunParams

WithRunName adds the runName to the get run params

func (*GetRunParams) WithTimeout

func (o *GetRunParams) WithTimeout(timeout time.Duration) *GetRunParams

WithTimeout adds the timeout to the get run params

func (*GetRunParams) WriteToRequest

func (o *GetRunParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetRunReader

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

GetRunReader is a Reader for the GetRun structure.

func (*GetRunReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRunsInternalServerError

type GetRunsInternalServerError struct {
	Payload *models.Error
}

GetRunsInternalServerError handles this case with default header values.

Internal error

func NewGetRunsInternalServerError

func NewGetRunsInternalServerError() *GetRunsInternalServerError

NewGetRunsInternalServerError creates a GetRunsInternalServerError with default headers values

func (*GetRunsInternalServerError) Error

type GetRunsNotFound

type GetRunsNotFound struct {
	Payload *models.Error
}

GetRunsNotFound handles this case with default header values.

Function not found

func NewGetRunsNotFound

func NewGetRunsNotFound() *GetRunsNotFound

NewGetRunsNotFound creates a GetRunsNotFound with default headers values

func (*GetRunsNotFound) Error

func (o *GetRunsNotFound) Error() string

type GetRunsOK

type GetRunsOK struct {
	Payload models.GetRunsOKBody
}

GetRunsOK handles this case with default header values.

List of function runs

func NewGetRunsOK

func NewGetRunsOK() *GetRunsOK

NewGetRunsOK creates a GetRunsOK with default headers values

func (*GetRunsOK) Error

func (o *GetRunsOK) Error() string

type GetRunsParams

type GetRunsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetRunsParams contains all the parameters to send to the API endpoint for the get runs operation typically these are written to a http.Request

func NewGetRunsParams

func NewGetRunsParams() *GetRunsParams

NewGetRunsParams creates a new GetRunsParams object with the default values initialized.

func NewGetRunsParamsWithContext

func NewGetRunsParamsWithContext(ctx context.Context) *GetRunsParams

NewGetRunsParamsWithContext creates a new GetRunsParams object with the default values initialized, and the ability to set a context for a request

func NewGetRunsParamsWithHTTPClient

func NewGetRunsParamsWithHTTPClient(client *http.Client) *GetRunsParams

NewGetRunsParamsWithHTTPClient creates a new GetRunsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetRunsParamsWithTimeout

func NewGetRunsParamsWithTimeout(timeout time.Duration) *GetRunsParams

NewGetRunsParamsWithTimeout creates a new GetRunsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetRunsParams) SetContext

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

SetContext adds the context to the get runs params

func (*GetRunsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get runs params

func (*GetRunsParams) SetTimeout

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

SetTimeout adds the timeout to the get runs params

func (*GetRunsParams) WithContext

func (o *GetRunsParams) WithContext(ctx context.Context) *GetRunsParams

WithContext adds the context to the get runs params

func (*GetRunsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get runs params

func (*GetRunsParams) WithTimeout

func (o *GetRunsParams) WithTimeout(timeout time.Duration) *GetRunsParams

WithTimeout adds the timeout to the get runs params

func (*GetRunsParams) WriteToRequest

func (o *GetRunsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetRunsReader

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

GetRunsReader is a Reader for the GetRuns structure.

func (*GetRunsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RunFunctionAccepted

type RunFunctionAccepted struct {
	Payload *models.Run
}

RunFunctionAccepted handles this case with default header values.

Execution started (non-blocking call)

func NewRunFunctionAccepted

func NewRunFunctionAccepted() *RunFunctionAccepted

NewRunFunctionAccepted creates a RunFunctionAccepted with default headers values

func (*RunFunctionAccepted) Error

func (o *RunFunctionAccepted) Error() string

type RunFunctionBadGateway

type RunFunctionBadGateway struct {
	Payload *models.Error
}

RunFunctionBadGateway handles this case with default header values.

Function error occurred (blocking call)

func NewRunFunctionBadGateway

func NewRunFunctionBadGateway() *RunFunctionBadGateway

NewRunFunctionBadGateway creates a RunFunctionBadGateway with default headers values

func (*RunFunctionBadGateway) Error

func (o *RunFunctionBadGateway) Error() string

type RunFunctionBadRequest

type RunFunctionBadRequest struct {
	Payload *models.Error
}

RunFunctionBadRequest handles this case with default header values.

User error

func NewRunFunctionBadRequest

func NewRunFunctionBadRequest() *RunFunctionBadRequest

NewRunFunctionBadRequest creates a RunFunctionBadRequest with default headers values

func (*RunFunctionBadRequest) Error

func (o *RunFunctionBadRequest) Error() string

type RunFunctionInternalServerError

type RunFunctionInternalServerError struct {
	Payload *models.Error
}

RunFunctionInternalServerError handles this case with default header values.

Internal error

func NewRunFunctionInternalServerError

func NewRunFunctionInternalServerError() *RunFunctionInternalServerError

NewRunFunctionInternalServerError creates a RunFunctionInternalServerError with default headers values

func (*RunFunctionInternalServerError) Error

type RunFunctionNotFound

type RunFunctionNotFound struct {
	Payload *models.Error
}

RunFunctionNotFound handles this case with default header values.

Function not found

func NewRunFunctionNotFound

func NewRunFunctionNotFound() *RunFunctionNotFound

NewRunFunctionNotFound creates a RunFunctionNotFound with default headers values

func (*RunFunctionNotFound) Error

func (o *RunFunctionNotFound) Error() string

type RunFunctionOK

type RunFunctionOK struct {
	Payload *models.Run
}

RunFunctionOK handles this case with default header values.

Successful execution (blocking call)

func NewRunFunctionOK

func NewRunFunctionOK() *RunFunctionOK

NewRunFunctionOK creates a RunFunctionOK with default headers values

func (*RunFunctionOK) Error

func (o *RunFunctionOK) Error() string

type RunFunctionParams

type RunFunctionParams struct {

	/*Body*/
	Body *models.Run
	/*FunctionName
	  Name of function to run

	*/
	FunctionName string

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

RunFunctionParams contains all the parameters to send to the API endpoint for the run function operation typically these are written to a http.Request

func NewRunFunctionParams

func NewRunFunctionParams() *RunFunctionParams

NewRunFunctionParams creates a new RunFunctionParams object with the default values initialized.

func NewRunFunctionParamsWithContext

func NewRunFunctionParamsWithContext(ctx context.Context) *RunFunctionParams

NewRunFunctionParamsWithContext creates a new RunFunctionParams object with the default values initialized, and the ability to set a context for a request

func NewRunFunctionParamsWithHTTPClient

func NewRunFunctionParamsWithHTTPClient(client *http.Client) *RunFunctionParams

NewRunFunctionParamsWithHTTPClient creates a new RunFunctionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewRunFunctionParamsWithTimeout

func NewRunFunctionParamsWithTimeout(timeout time.Duration) *RunFunctionParams

NewRunFunctionParamsWithTimeout creates a new RunFunctionParams object with the default values initialized, and the ability to set a timeout on a request

func (*RunFunctionParams) SetBody

func (o *RunFunctionParams) SetBody(body *models.Run)

SetBody adds the body to the run function params

func (*RunFunctionParams) SetContext

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

SetContext adds the context to the run function params

func (*RunFunctionParams) SetFunctionName

func (o *RunFunctionParams) SetFunctionName(functionName string)

SetFunctionName adds the functionName to the run function params

func (*RunFunctionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the run function params

func (*RunFunctionParams) SetTimeout

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

SetTimeout adds the timeout to the run function params

func (*RunFunctionParams) WithBody

func (o *RunFunctionParams) WithBody(body *models.Run) *RunFunctionParams

WithBody adds the body to the run function params

func (*RunFunctionParams) WithContext

func (o *RunFunctionParams) WithContext(ctx context.Context) *RunFunctionParams

WithContext adds the context to the run function params

func (*RunFunctionParams) WithFunctionName

func (o *RunFunctionParams) WithFunctionName(functionName string) *RunFunctionParams

WithFunctionName adds the functionName to the run function params

func (*RunFunctionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the run function params

func (*RunFunctionParams) WithTimeout

func (o *RunFunctionParams) WithTimeout(timeout time.Duration) *RunFunctionParams

WithTimeout adds the timeout to the run function params

func (*RunFunctionParams) WriteToRequest

func (o *RunFunctionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RunFunctionReader

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

RunFunctionReader is a Reader for the RunFunction structure.

func (*RunFunctionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RunFunctionUnprocessableEntity

type RunFunctionUnprocessableEntity struct {
	Payload *models.Error
}

RunFunctionUnprocessableEntity handles this case with default header values.

Input object validation failed

func NewRunFunctionUnprocessableEntity

func NewRunFunctionUnprocessableEntity() *RunFunctionUnprocessableEntity

NewRunFunctionUnprocessableEntity creates a RunFunctionUnprocessableEntity with default headers values

func (*RunFunctionUnprocessableEntity) Error

Jump to

Keyboard shortcuts

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