runner

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 11 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) 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 GetRunBadRequest added in v0.1.13

type GetRunBadRequest struct {
	Payload *v1.Error
}

GetRunBadRequest handles this case with default header values.

Bad Request

func NewGetRunBadRequest added in v0.1.13

func NewGetRunBadRequest() *GetRunBadRequest

NewGetRunBadRequest creates a GetRunBadRequest with default headers values

func (*GetRunBadRequest) Error added in v0.1.13

func (o *GetRunBadRequest) Error() string

type GetRunInternalServerError

type GetRunInternalServerError struct {
	Payload *v1.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 *v1.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 *v1.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 {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*FunctionName
	  Name of function to retreive a run for

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

	*/
	RunName strfmt.UUID
	/*Tags
	  Filter based on tags

	*/
	Tags []string

	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) SetTags added in v0.1.13

func (o *GetRunParams) SetTags(tags []string)

SetTags adds the tags 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) SetXDispatchOrg added in v0.1.16

func (o *GetRunParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg 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) WithTags added in v0.1.13

func (o *GetRunParams) WithTags(tags []string) *GetRunParams

WithTags adds the tags 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) WithXDispatchOrg added in v0.1.16

func (o *GetRunParams) WithXDispatchOrg(xDispatchOrg string) *GetRunParams

WithXDispatchOrg adds the xDispatchOrg 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 GetRunsBadRequest added in v0.1.13

type GetRunsBadRequest struct {
	Payload *v1.Error
}

GetRunsBadRequest handles this case with default header values.

Invalid input

func NewGetRunsBadRequest added in v0.1.13

func NewGetRunsBadRequest() *GetRunsBadRequest

NewGetRunsBadRequest creates a GetRunsBadRequest with default headers values

func (*GetRunsBadRequest) Error added in v0.1.13

func (o *GetRunsBadRequest) Error() string

type GetRunsInternalServerError

type GetRunsInternalServerError struct {
	Payload *v1.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 *v1.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 []*v1.Run
}

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 {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*FunctionName
	  Name of function to run or retreive runs for

	*/
	FunctionName *string
	/*Tags
	  Filter based on tags

	*/
	Tags []string

	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) SetFunctionName added in v0.1.13

func (o *GetRunsParams) SetFunctionName(functionName *string)

SetFunctionName adds the functionName 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) SetTags added in v0.1.13

func (o *GetRunsParams) SetTags(tags []string)

SetTags adds the tags 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) SetXDispatchOrg added in v0.1.16

func (o *GetRunsParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg 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) WithFunctionName added in v0.1.13

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

WithFunctionName adds the functionName 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) WithTags added in v0.1.13

func (o *GetRunsParams) WithTags(tags []string) *GetRunsParams

WithTags adds the tags 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) WithXDispatchOrg added in v0.1.16

func (o *GetRunsParams) WithXDispatchOrg(xDispatchOrg string) *GetRunsParams

WithXDispatchOrg adds the xDispatchOrg 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 *v1.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 *v1.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 *v1.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 *v1.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 *v1.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 *v1.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 {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*Body*/
	Body *v1.Run
	/*FunctionName
	  Name of function to run or retreive runs for

	*/
	FunctionName *string
	/*Tags
	  Filter based on tags

	*/
	Tags []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 *v1.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) SetTags added in v0.1.13

func (o *RunFunctionParams) SetTags(tags []string)

SetTags adds the tags 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) SetXDispatchOrg added in v0.1.16

func (o *RunFunctionParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg to the run function params

func (*RunFunctionParams) WithBody

func (o *RunFunctionParams) WithBody(body *v1.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) WithTags added in v0.1.13

func (o *RunFunctionParams) WithTags(tags []string) *RunFunctionParams

WithTags adds the tags 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) WithXDispatchOrg added in v0.1.16

func (o *RunFunctionParams) WithXDispatchOrg(xDispatchOrg string) *RunFunctionParams

WithXDispatchOrg adds the xDispatchOrg 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 *v1.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