Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateFn(params *CreateFnParams) (*CreateFnOK, error)
- func (a *Client) DeleteFn(params *DeleteFnParams) (*DeleteFnNoContent, error)
- func (a *Client) GetFn(params *GetFnParams) (*GetFnOK, error)
- func (a *Client) ListFns(params *ListFnsParams) (*ListFnsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateFn(params *UpdateFnParams) (*UpdateFnOK, error)
- type CreateFnBadRequest
- type CreateFnConflict
- type CreateFnDefault
- type CreateFnOK
- type CreateFnParams
- func (o *CreateFnParams) SetBody(body *modelsv2.Fn)
- func (o *CreateFnParams) SetContext(ctx context.Context)
- func (o *CreateFnParams) SetHTTPClient(client *http.Client)
- func (o *CreateFnParams) SetTimeout(timeout time.Duration)
- func (o *CreateFnParams) WithBody(body *modelsv2.Fn) *CreateFnParams
- func (o *CreateFnParams) WithContext(ctx context.Context) *CreateFnParams
- func (o *CreateFnParams) WithHTTPClient(client *http.Client) *CreateFnParams
- func (o *CreateFnParams) WithTimeout(timeout time.Duration) *CreateFnParams
- func (o *CreateFnParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateFnReader
- type DeleteFnDefault
- type DeleteFnNoContent
- type DeleteFnNotFound
- type DeleteFnParams
- func (o *DeleteFnParams) SetContext(ctx context.Context)
- func (o *DeleteFnParams) SetFnID(fnID string)
- func (o *DeleteFnParams) SetHTTPClient(client *http.Client)
- func (o *DeleteFnParams) SetTimeout(timeout time.Duration)
- func (o *DeleteFnParams) WithContext(ctx context.Context) *DeleteFnParams
- func (o *DeleteFnParams) WithFnID(fnID string) *DeleteFnParams
- func (o *DeleteFnParams) WithHTTPClient(client *http.Client) *DeleteFnParams
- func (o *DeleteFnParams) WithTimeout(timeout time.Duration) *DeleteFnParams
- func (o *DeleteFnParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteFnReader
- type GetFnDefault
- type GetFnNotFound
- type GetFnOK
- type GetFnParams
- func (o *GetFnParams) SetContext(ctx context.Context)
- func (o *GetFnParams) SetFnID(fnID string)
- func (o *GetFnParams) SetHTTPClient(client *http.Client)
- func (o *GetFnParams) SetTimeout(timeout time.Duration)
- func (o *GetFnParams) WithContext(ctx context.Context) *GetFnParams
- func (o *GetFnParams) WithFnID(fnID string) *GetFnParams
- func (o *GetFnParams) WithHTTPClient(client *http.Client) *GetFnParams
- func (o *GetFnParams) WithTimeout(timeout time.Duration) *GetFnParams
- func (o *GetFnParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetFnReader
- type ListFnsDefault
- type ListFnsOK
- type ListFnsParams
- func (o *ListFnsParams) SetAppID(appID *string)
- func (o *ListFnsParams) SetContext(ctx context.Context)
- func (o *ListFnsParams) SetCursor(cursor *string)
- func (o *ListFnsParams) SetHTTPClient(client *http.Client)
- func (o *ListFnsParams) SetName(name *string)
- func (o *ListFnsParams) SetPerPage(perPage *int64)
- func (o *ListFnsParams) SetTimeout(timeout time.Duration)
- func (o *ListFnsParams) WithAppID(appID *string) *ListFnsParams
- func (o *ListFnsParams) WithContext(ctx context.Context) *ListFnsParams
- func (o *ListFnsParams) WithCursor(cursor *string) *ListFnsParams
- func (o *ListFnsParams) WithHTTPClient(client *http.Client) *ListFnsParams
- func (o *ListFnsParams) WithName(name *string) *ListFnsParams
- func (o *ListFnsParams) WithPerPage(perPage *int64) *ListFnsParams
- func (o *ListFnsParams) WithTimeout(timeout time.Duration) *ListFnsParams
- func (o *ListFnsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListFnsReader
- type UpdateFnBadRequest
- type UpdateFnDefault
- type UpdateFnNotFound
- type UpdateFnOK
- type UpdateFnParams
- func (o *UpdateFnParams) SetBody(body *modelsv2.Fn)
- func (o *UpdateFnParams) SetContext(ctx context.Context)
- func (o *UpdateFnParams) SetFnID(fnID string)
- func (o *UpdateFnParams) SetHTTPClient(client *http.Client)
- func (o *UpdateFnParams) SetTimeout(timeout time.Duration)
- func (o *UpdateFnParams) WithBody(body *modelsv2.Fn) *UpdateFnParams
- func (o *UpdateFnParams) WithContext(ctx context.Context) *UpdateFnParams
- func (o *UpdateFnParams) WithFnID(fnID string) *UpdateFnParams
- func (o *UpdateFnParams) WithHTTPClient(client *http.Client) *UpdateFnParams
- func (o *UpdateFnParams) WithTimeout(timeout time.Duration) *UpdateFnParams
- func (o *UpdateFnParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateFnReader
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 fns API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new fns API client.
func (*Client) CreateFn ¶
func (a *Client) CreateFn(params *CreateFnParams) (*CreateFnOK, error)
CreateFn creates a new function
Creates a new Function, returning the complete entity.
func (*Client) DeleteFn ¶
func (a *Client) DeleteFn(params *DeleteFnParams) (*DeleteFnNoContent, error)
DeleteFn deletes a function
Delete the specified Function.
func (*Client) GetFn ¶
func (a *Client) GetFn(params *GetFnParams) (*GetFnOK, error)
GetFn gets definition of a function
Gets the definition for the Function with the specified ID.
func (*Client) ListFns ¶
func (a *Client) ListFns(params *ListFnsParams) (*ListFnsOK, error)
ListFns gets a list of functions within an application
Get a filtered list of Functions for an Application, in alphabetical order.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateFn ¶
func (a *Client) UpdateFn(params *UpdateFnParams) (*UpdateFnOK, error)
UpdateFn updates a function
Updates a Function via merging the provided values.
type CreateFnBadRequest ¶
CreateFnBadRequest handles this case with default header values.
Invalid Function.
func NewCreateFnBadRequest ¶
func NewCreateFnBadRequest() *CreateFnBadRequest
NewCreateFnBadRequest creates a CreateFnBadRequest with default headers values
func (*CreateFnBadRequest) Error ¶
func (o *CreateFnBadRequest) Error() string
type CreateFnConflict ¶
CreateFnConflict handles this case with default header values.
Function with name already exists.
func NewCreateFnConflict ¶
func NewCreateFnConflict() *CreateFnConflict
NewCreateFnConflict creates a CreateFnConflict with default headers values
func (*CreateFnConflict) Error ¶
func (o *CreateFnConflict) Error() string
type CreateFnDefault ¶
CreateFnDefault handles this case with default header values.
An unexpected error occurred.
func NewCreateFnDefault ¶
func NewCreateFnDefault(code int) *CreateFnDefault
NewCreateFnDefault creates a CreateFnDefault with default headers values
func (*CreateFnDefault) Code ¶
func (o *CreateFnDefault) Code() int
Code gets the status code for the create fn default response
func (*CreateFnDefault) Error ¶
func (o *CreateFnDefault) Error() string
type CreateFnOK ¶
CreateFnOK handles this case with default header values.
Function details.
func NewCreateFnOK ¶
func NewCreateFnOK() *CreateFnOK
NewCreateFnOK creates a CreateFnOK with default headers values
func (*CreateFnOK) Error ¶
func (o *CreateFnOK) Error() string
type CreateFnParams ¶
type CreateFnParams struct { /*Body Function data to insert. */ Body *modelsv2.Fn Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateFnParams contains all the parameters to send to the API endpoint for the create fn operation typically these are written to a http.Request
func NewCreateFnParams ¶
func NewCreateFnParams() *CreateFnParams
NewCreateFnParams creates a new CreateFnParams object with the default values initialized.
func NewCreateFnParamsWithContext ¶
func NewCreateFnParamsWithContext(ctx context.Context) *CreateFnParams
NewCreateFnParamsWithContext creates a new CreateFnParams object with the default values initialized, and the ability to set a context for a request
func NewCreateFnParamsWithHTTPClient ¶
func NewCreateFnParamsWithHTTPClient(client *http.Client) *CreateFnParams
NewCreateFnParamsWithHTTPClient creates a new CreateFnParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateFnParamsWithTimeout ¶
func NewCreateFnParamsWithTimeout(timeout time.Duration) *CreateFnParams
NewCreateFnParamsWithTimeout creates a new CreateFnParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateFnParams) SetBody ¶
func (o *CreateFnParams) SetBody(body *modelsv2.Fn)
SetBody adds the body to the create fn params
func (*CreateFnParams) SetContext ¶
func (o *CreateFnParams) SetContext(ctx context.Context)
SetContext adds the context to the create fn params
func (*CreateFnParams) SetHTTPClient ¶
func (o *CreateFnParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create fn params
func (*CreateFnParams) SetTimeout ¶
func (o *CreateFnParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create fn params
func (*CreateFnParams) WithBody ¶
func (o *CreateFnParams) WithBody(body *modelsv2.Fn) *CreateFnParams
WithBody adds the body to the create fn params
func (*CreateFnParams) WithContext ¶
func (o *CreateFnParams) WithContext(ctx context.Context) *CreateFnParams
WithContext adds the context to the create fn params
func (*CreateFnParams) WithHTTPClient ¶
func (o *CreateFnParams) WithHTTPClient(client *http.Client) *CreateFnParams
WithHTTPClient adds the HTTPClient to the create fn params
func (*CreateFnParams) WithTimeout ¶
func (o *CreateFnParams) WithTimeout(timeout time.Duration) *CreateFnParams
WithTimeout adds the timeout to the create fn params
func (*CreateFnParams) WriteToRequest ¶
func (o *CreateFnParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateFnReader ¶
type CreateFnReader struct {
// contains filtered or unexported fields
}
CreateFnReader is a Reader for the CreateFn structure.
func (*CreateFnReader) ReadResponse ¶
func (o *CreateFnReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteFnDefault ¶
DeleteFnDefault handles this case with default header values.
Error
func NewDeleteFnDefault ¶
func NewDeleteFnDefault(code int) *DeleteFnDefault
NewDeleteFnDefault creates a DeleteFnDefault with default headers values
func (*DeleteFnDefault) Code ¶
func (o *DeleteFnDefault) Code() int
Code gets the status code for the delete fn default response
func (*DeleteFnDefault) Error ¶
func (o *DeleteFnDefault) Error() string
type DeleteFnNoContent ¶
type DeleteFnNoContent struct { }
DeleteFnNoContent handles this case with default header values.
Function successfully deleted.
func NewDeleteFnNoContent ¶
func NewDeleteFnNoContent() *DeleteFnNoContent
NewDeleteFnNoContent creates a DeleteFnNoContent with default headers values
func (*DeleteFnNoContent) Error ¶
func (o *DeleteFnNoContent) Error() string
type DeleteFnNotFound ¶
DeleteFnNotFound handles this case with default header values.
Function does not exist.
func NewDeleteFnNotFound ¶
func NewDeleteFnNotFound() *DeleteFnNotFound
NewDeleteFnNotFound creates a DeleteFnNotFound with default headers values
func (*DeleteFnNotFound) Error ¶
func (o *DeleteFnNotFound) Error() string
type DeleteFnParams ¶
type DeleteFnParams struct { /*FnID Opaque, unique Function ID. */ FnID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteFnParams contains all the parameters to send to the API endpoint for the delete fn operation typically these are written to a http.Request
func NewDeleteFnParams ¶
func NewDeleteFnParams() *DeleteFnParams
NewDeleteFnParams creates a new DeleteFnParams object with the default values initialized.
func NewDeleteFnParamsWithContext ¶
func NewDeleteFnParamsWithContext(ctx context.Context) *DeleteFnParams
NewDeleteFnParamsWithContext creates a new DeleteFnParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteFnParamsWithHTTPClient ¶
func NewDeleteFnParamsWithHTTPClient(client *http.Client) *DeleteFnParams
NewDeleteFnParamsWithHTTPClient creates a new DeleteFnParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteFnParamsWithTimeout ¶
func NewDeleteFnParamsWithTimeout(timeout time.Duration) *DeleteFnParams
NewDeleteFnParamsWithTimeout creates a new DeleteFnParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteFnParams) SetContext ¶
func (o *DeleteFnParams) SetContext(ctx context.Context)
SetContext adds the context to the delete fn params
func (*DeleteFnParams) SetFnID ¶
func (o *DeleteFnParams) SetFnID(fnID string)
SetFnID adds the fnId to the delete fn params
func (*DeleteFnParams) SetHTTPClient ¶
func (o *DeleteFnParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete fn params
func (*DeleteFnParams) SetTimeout ¶
func (o *DeleteFnParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete fn params
func (*DeleteFnParams) WithContext ¶
func (o *DeleteFnParams) WithContext(ctx context.Context) *DeleteFnParams
WithContext adds the context to the delete fn params
func (*DeleteFnParams) WithFnID ¶
func (o *DeleteFnParams) WithFnID(fnID string) *DeleteFnParams
WithFnID adds the fnID to the delete fn params
func (*DeleteFnParams) WithHTTPClient ¶
func (o *DeleteFnParams) WithHTTPClient(client *http.Client) *DeleteFnParams
WithHTTPClient adds the HTTPClient to the delete fn params
func (*DeleteFnParams) WithTimeout ¶
func (o *DeleteFnParams) WithTimeout(timeout time.Duration) *DeleteFnParams
WithTimeout adds the timeout to the delete fn params
func (*DeleteFnParams) WriteToRequest ¶
func (o *DeleteFnParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteFnReader ¶
type DeleteFnReader struct {
// contains filtered or unexported fields
}
DeleteFnReader is a Reader for the DeleteFn structure.
func (*DeleteFnReader) ReadResponse ¶
func (o *DeleteFnReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetFnDefault ¶
GetFnDefault handles this case with default header values.
Error
func NewGetFnDefault ¶
func NewGetFnDefault(code int) *GetFnDefault
NewGetFnDefault creates a GetFnDefault with default headers values
func (*GetFnDefault) Code ¶
func (o *GetFnDefault) Code() int
Code gets the status code for the get fn default response
func (*GetFnDefault) Error ¶
func (o *GetFnDefault) Error() string
type GetFnNotFound ¶
GetFnNotFound handles this case with default header values.
Function does not exist.
func NewGetFnNotFound ¶
func NewGetFnNotFound() *GetFnNotFound
NewGetFnNotFound creates a GetFnNotFound with default headers values
func (*GetFnNotFound) Error ¶
func (o *GetFnNotFound) Error() string
type GetFnOK ¶
GetFnOK handles this case with default header values.
Function definition
func NewGetFnOK ¶
func NewGetFnOK() *GetFnOK
NewGetFnOK creates a GetFnOK with default headers values
type GetFnParams ¶
type GetFnParams struct { /*FnID Opaque, unique Function ID. */ FnID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetFnParams contains all the parameters to send to the API endpoint for the get fn operation typically these are written to a http.Request
func NewGetFnParams ¶
func NewGetFnParams() *GetFnParams
NewGetFnParams creates a new GetFnParams object with the default values initialized.
func NewGetFnParamsWithContext ¶
func NewGetFnParamsWithContext(ctx context.Context) *GetFnParams
NewGetFnParamsWithContext creates a new GetFnParams object with the default values initialized, and the ability to set a context for a request
func NewGetFnParamsWithHTTPClient ¶
func NewGetFnParamsWithHTTPClient(client *http.Client) *GetFnParams
NewGetFnParamsWithHTTPClient creates a new GetFnParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetFnParamsWithTimeout ¶
func NewGetFnParamsWithTimeout(timeout time.Duration) *GetFnParams
NewGetFnParamsWithTimeout creates a new GetFnParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetFnParams) SetContext ¶
func (o *GetFnParams) SetContext(ctx context.Context)
SetContext adds the context to the get fn params
func (*GetFnParams) SetFnID ¶
func (o *GetFnParams) SetFnID(fnID string)
SetFnID adds the fnId to the get fn params
func (*GetFnParams) SetHTTPClient ¶
func (o *GetFnParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get fn params
func (*GetFnParams) SetTimeout ¶
func (o *GetFnParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get fn params
func (*GetFnParams) WithContext ¶
func (o *GetFnParams) WithContext(ctx context.Context) *GetFnParams
WithContext adds the context to the get fn params
func (*GetFnParams) WithFnID ¶
func (o *GetFnParams) WithFnID(fnID string) *GetFnParams
WithFnID adds the fnID to the get fn params
func (*GetFnParams) WithHTTPClient ¶
func (o *GetFnParams) WithHTTPClient(client *http.Client) *GetFnParams
WithHTTPClient adds the HTTPClient to the get fn params
func (*GetFnParams) WithTimeout ¶
func (o *GetFnParams) WithTimeout(timeout time.Duration) *GetFnParams
WithTimeout adds the timeout to the get fn params
func (*GetFnParams) WriteToRequest ¶
func (o *GetFnParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetFnReader ¶
type GetFnReader struct {
// contains filtered or unexported fields
}
GetFnReader is a Reader for the GetFn structure.
func (*GetFnReader) ReadResponse ¶
func (o *GetFnReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListFnsDefault ¶
ListFnsDefault handles this case with default header values.
Error
func NewListFnsDefault ¶
func NewListFnsDefault(code int) *ListFnsDefault
NewListFnsDefault creates a ListFnsDefault with default headers values
func (*ListFnsDefault) Code ¶
func (o *ListFnsDefault) Code() int
Code gets the status code for the list fns default response
func (*ListFnsDefault) Error ¶
func (o *ListFnsDefault) Error() string
type ListFnsOK ¶
ListFnsOK handles this case with default header values.
List of Functions.
func NewListFnsOK ¶
func NewListFnsOK() *ListFnsOK
NewListFnsOK creates a ListFnsOK with default headers values
type ListFnsParams ¶
type ListFnsParams struct { /*AppID Application ID. */ AppID *string /*Cursor Cursor from previous response.next_cursor to begin results after, if any. */ Cursor *string /*Name Function name to filter by */ Name *string /*PerPage Number of results to return, defaults to 30. Max of 100. */ PerPage *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListFnsParams contains all the parameters to send to the API endpoint for the list fns operation typically these are written to a http.Request
func NewListFnsParams ¶
func NewListFnsParams() *ListFnsParams
NewListFnsParams creates a new ListFnsParams object with the default values initialized.
func NewListFnsParamsWithContext ¶
func NewListFnsParamsWithContext(ctx context.Context) *ListFnsParams
NewListFnsParamsWithContext creates a new ListFnsParams object with the default values initialized, and the ability to set a context for a request
func NewListFnsParamsWithHTTPClient ¶
func NewListFnsParamsWithHTTPClient(client *http.Client) *ListFnsParams
NewListFnsParamsWithHTTPClient creates a new ListFnsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListFnsParamsWithTimeout ¶
func NewListFnsParamsWithTimeout(timeout time.Duration) *ListFnsParams
NewListFnsParamsWithTimeout creates a new ListFnsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListFnsParams) SetAppID ¶
func (o *ListFnsParams) SetAppID(appID *string)
SetAppID adds the appId to the list fns params
func (*ListFnsParams) SetContext ¶
func (o *ListFnsParams) SetContext(ctx context.Context)
SetContext adds the context to the list fns params
func (*ListFnsParams) SetCursor ¶
func (o *ListFnsParams) SetCursor(cursor *string)
SetCursor adds the cursor to the list fns params
func (*ListFnsParams) SetHTTPClient ¶
func (o *ListFnsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list fns params
func (*ListFnsParams) SetName ¶
func (o *ListFnsParams) SetName(name *string)
SetName adds the name to the list fns params
func (*ListFnsParams) SetPerPage ¶
func (o *ListFnsParams) SetPerPage(perPage *int64)
SetPerPage adds the perPage to the list fns params
func (*ListFnsParams) SetTimeout ¶
func (o *ListFnsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list fns params
func (*ListFnsParams) WithAppID ¶
func (o *ListFnsParams) WithAppID(appID *string) *ListFnsParams
WithAppID adds the appID to the list fns params
func (*ListFnsParams) WithContext ¶
func (o *ListFnsParams) WithContext(ctx context.Context) *ListFnsParams
WithContext adds the context to the list fns params
func (*ListFnsParams) WithCursor ¶
func (o *ListFnsParams) WithCursor(cursor *string) *ListFnsParams
WithCursor adds the cursor to the list fns params
func (*ListFnsParams) WithHTTPClient ¶
func (o *ListFnsParams) WithHTTPClient(client *http.Client) *ListFnsParams
WithHTTPClient adds the HTTPClient to the list fns params
func (*ListFnsParams) WithName ¶
func (o *ListFnsParams) WithName(name *string) *ListFnsParams
WithName adds the name to the list fns params
func (*ListFnsParams) WithPerPage ¶
func (o *ListFnsParams) WithPerPage(perPage *int64) *ListFnsParams
WithPerPage adds the perPage to the list fns params
func (*ListFnsParams) WithTimeout ¶
func (o *ListFnsParams) WithTimeout(timeout time.Duration) *ListFnsParams
WithTimeout adds the timeout to the list fns params
func (*ListFnsParams) WriteToRequest ¶
func (o *ListFnsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListFnsReader ¶
type ListFnsReader struct {
// contains filtered or unexported fields
}
ListFnsReader is a Reader for the ListFns structure.
func (*ListFnsReader) ReadResponse ¶
func (o *ListFnsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateFnBadRequest ¶
UpdateFnBadRequest handles this case with default header values.
Parameters are missing or invalid.
func NewUpdateFnBadRequest ¶
func NewUpdateFnBadRequest() *UpdateFnBadRequest
NewUpdateFnBadRequest creates a UpdateFnBadRequest with default headers values
func (*UpdateFnBadRequest) Error ¶
func (o *UpdateFnBadRequest) Error() string
type UpdateFnDefault ¶
UpdateFnDefault handles this case with default header values.
An unexpected error occurred.
func NewUpdateFnDefault ¶
func NewUpdateFnDefault(code int) *UpdateFnDefault
NewUpdateFnDefault creates a UpdateFnDefault with default headers values
func (*UpdateFnDefault) Code ¶
func (o *UpdateFnDefault) Code() int
Code gets the status code for the update fn default response
func (*UpdateFnDefault) Error ¶
func (o *UpdateFnDefault) Error() string
type UpdateFnNotFound ¶
UpdateFnNotFound handles this case with default header values.
The Function does not exist.
func NewUpdateFnNotFound ¶
func NewUpdateFnNotFound() *UpdateFnNotFound
NewUpdateFnNotFound creates a UpdateFnNotFound with default headers values
func (*UpdateFnNotFound) Error ¶
func (o *UpdateFnNotFound) Error() string
type UpdateFnOK ¶
UpdateFnOK handles this case with default header values.
Updated Function metadata.
func NewUpdateFnOK ¶
func NewUpdateFnOK() *UpdateFnOK
NewUpdateFnOK creates a UpdateFnOK with default headers values
func (*UpdateFnOK) Error ¶
func (o *UpdateFnOK) Error() string
type UpdateFnParams ¶
type UpdateFnParams struct { /*Body Function data to merge with current values. */ Body *modelsv2.Fn /*FnID Opaque, unique Function ID. */ FnID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateFnParams contains all the parameters to send to the API endpoint for the update fn operation typically these are written to a http.Request
func NewUpdateFnParams ¶
func NewUpdateFnParams() *UpdateFnParams
NewUpdateFnParams creates a new UpdateFnParams object with the default values initialized.
func NewUpdateFnParamsWithContext ¶
func NewUpdateFnParamsWithContext(ctx context.Context) *UpdateFnParams
NewUpdateFnParamsWithContext creates a new UpdateFnParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateFnParamsWithHTTPClient ¶
func NewUpdateFnParamsWithHTTPClient(client *http.Client) *UpdateFnParams
NewUpdateFnParamsWithHTTPClient creates a new UpdateFnParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateFnParamsWithTimeout ¶
func NewUpdateFnParamsWithTimeout(timeout time.Duration) *UpdateFnParams
NewUpdateFnParamsWithTimeout creates a new UpdateFnParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateFnParams) SetBody ¶
func (o *UpdateFnParams) SetBody(body *modelsv2.Fn)
SetBody adds the body to the update fn params
func (*UpdateFnParams) SetContext ¶
func (o *UpdateFnParams) SetContext(ctx context.Context)
SetContext adds the context to the update fn params
func (*UpdateFnParams) SetFnID ¶
func (o *UpdateFnParams) SetFnID(fnID string)
SetFnID adds the fnId to the update fn params
func (*UpdateFnParams) SetHTTPClient ¶
func (o *UpdateFnParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update fn params
func (*UpdateFnParams) SetTimeout ¶
func (o *UpdateFnParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update fn params
func (*UpdateFnParams) WithBody ¶
func (o *UpdateFnParams) WithBody(body *modelsv2.Fn) *UpdateFnParams
WithBody adds the body to the update fn params
func (*UpdateFnParams) WithContext ¶
func (o *UpdateFnParams) WithContext(ctx context.Context) *UpdateFnParams
WithContext adds the context to the update fn params
func (*UpdateFnParams) WithFnID ¶
func (o *UpdateFnParams) WithFnID(fnID string) *UpdateFnParams
WithFnID adds the fnID to the update fn params
func (*UpdateFnParams) WithHTTPClient ¶
func (o *UpdateFnParams) WithHTTPClient(client *http.Client) *UpdateFnParams
WithHTTPClient adds the HTTPClient to the update fn params
func (*UpdateFnParams) WithTimeout ¶
func (o *UpdateFnParams) WithTimeout(timeout time.Duration) *UpdateFnParams
WithTimeout adds the timeout to the update fn params
func (*UpdateFnParams) WriteToRequest ¶
func (o *UpdateFnParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateFnReader ¶
type UpdateFnReader struct {
// contains filtered or unexported fields
}
UpdateFnReader is a Reader for the UpdateFn structure.
func (*UpdateFnReader) ReadResponse ¶
func (o *UpdateFnReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.