Documentation ¶
Index ¶
- type Client
- func (a *Client) GetRun(params *GetRunParams, authInfo runtime.ClientAuthInfoWriter) (*GetRunOK, error)
- func (a *Client) GetRuns(params *GetRunsParams, authInfo runtime.ClientAuthInfoWriter) (*GetRunsOK, error)
- func (a *Client) RunFunction(params *RunFunctionParams, authInfo runtime.ClientAuthInfoWriter) (*RunFunctionOK, *RunFunctionAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type GetRunBadRequest
- type GetRunInternalServerError
- type GetRunNotFound
- type GetRunOK
- type GetRunParams
- func (o *GetRunParams) SetContext(ctx context.Context)
- func (o *GetRunParams) SetFunctionName(functionName *string)
- func (o *GetRunParams) SetHTTPClient(client *http.Client)
- func (o *GetRunParams) SetRunName(runName strfmt.UUID)
- func (o *GetRunParams) SetTags(tags []string)
- func (o *GetRunParams) SetTimeout(timeout time.Duration)
- func (o *GetRunParams) WithContext(ctx context.Context) *GetRunParams
- func (o *GetRunParams) WithFunctionName(functionName *string) *GetRunParams
- func (o *GetRunParams) WithHTTPClient(client *http.Client) *GetRunParams
- func (o *GetRunParams) WithRunName(runName strfmt.UUID) *GetRunParams
- func (o *GetRunParams) WithTags(tags []string) *GetRunParams
- func (o *GetRunParams) WithTimeout(timeout time.Duration) *GetRunParams
- func (o *GetRunParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRunReader
- type GetRunsBadRequest
- type GetRunsInternalServerError
- type GetRunsNotFound
- type GetRunsOK
- type GetRunsParams
- func (o *GetRunsParams) SetContext(ctx context.Context)
- func (o *GetRunsParams) SetFunctionName(functionName *string)
- func (o *GetRunsParams) SetHTTPClient(client *http.Client)
- func (o *GetRunsParams) SetTags(tags []string)
- func (o *GetRunsParams) SetTimeout(timeout time.Duration)
- func (o *GetRunsParams) WithContext(ctx context.Context) *GetRunsParams
- func (o *GetRunsParams) WithFunctionName(functionName *string) *GetRunsParams
- func (o *GetRunsParams) WithHTTPClient(client *http.Client) *GetRunsParams
- func (o *GetRunsParams) WithTags(tags []string) *GetRunsParams
- func (o *GetRunsParams) WithTimeout(timeout time.Duration) *GetRunsParams
- func (o *GetRunsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRunsReader
- type RunFunctionAccepted
- type RunFunctionBadGateway
- type RunFunctionBadRequest
- type RunFunctionInternalServerError
- type RunFunctionNotFound
- type RunFunctionOK
- type RunFunctionParams
- func (o *RunFunctionParams) SetBody(body *v1.Run)
- func (o *RunFunctionParams) SetContext(ctx context.Context)
- func (o *RunFunctionParams) SetFunctionName(functionName *string)
- func (o *RunFunctionParams) SetHTTPClient(client *http.Client)
- func (o *RunFunctionParams) SetTags(tags []string)
- func (o *RunFunctionParams) SetTimeout(timeout time.Duration)
- func (o *RunFunctionParams) WithBody(body *v1.Run) *RunFunctionParams
- func (o *RunFunctionParams) WithContext(ctx context.Context) *RunFunctionParams
- func (o *RunFunctionParams) WithFunctionName(functionName *string) *RunFunctionParams
- func (o *RunFunctionParams) WithHTTPClient(client *http.Client) *RunFunctionParams
- func (o *RunFunctionParams) WithTags(tags []string) *RunFunctionParams
- func (o *RunFunctionParams) WithTimeout(timeout time.Duration) *RunFunctionParams
- func (o *RunFunctionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RunFunctionReader
- type RunFunctionUnprocessableEntity
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 ¶
func (a *Client) RunFunction(params *RunFunctionParams, authInfo runtime.ClientAuthInfoWriter) (*RunFunctionOK, *RunFunctionAccepted, error)
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
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 ¶
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 ¶
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 ¶
GetRunOK handles this case with default header values.
Function Run
func NewGetRunOK ¶
func NewGetRunOK() *GetRunOK
NewGetRunOK creates a GetRunOK with default headers values
type GetRunParams ¶
type GetRunParams struct { /*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) 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) 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
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 ¶
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 ¶
func (o *GetRunsInternalServerError) Error() string
type GetRunsNotFound ¶
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 ¶
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
type GetRunsParams ¶
type GetRunsParams struct { /*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) 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) 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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (o *RunFunctionInternalServerError) Error() string
type RunFunctionNotFound ¶
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 ¶
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 *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) 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) 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 ¶
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 ¶
func (o *RunFunctionUnprocessableEntity) Error() string