fns

package
v0.8.10 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 6

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 fns API

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 ClientService added in v0.8.0

type ClientService interface {
	CreateFn(params *CreateFnParams) (*CreateFnOK, error)

	DeleteFn(params *DeleteFnParams) (*DeleteFnNoContent, error)

	GetFn(params *GetFnParams) (*GetFnOK, error)

	ListFns(params *ListFnsParams) (*ListFnsOK, error)

	UpdateFn(params *UpdateFnParams) (*UpdateFnOK, 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 fns API client.

type CreateFnBadRequest

type CreateFnBadRequest struct {
	Payload *modelsv2.Error
}

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

func (*CreateFnBadRequest) GetPayload added in v0.8.0

func (o *CreateFnBadRequest) GetPayload() *modelsv2.Error

type CreateFnConflict

type CreateFnConflict struct {
	Payload *modelsv2.Error
}

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

func (*CreateFnConflict) GetPayload added in v0.8.0

func (o *CreateFnConflict) GetPayload() *modelsv2.Error

type CreateFnDefault

type CreateFnDefault struct {
	Payload *modelsv2.Error
	// contains filtered or unexported fields
}

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

func (*CreateFnDefault) GetPayload added in v0.8.0

func (o *CreateFnDefault) GetPayload() *modelsv2.Error

type CreateFnNotFound added in v0.8.0

type CreateFnNotFound struct {
	Payload *modelsv2.Error
}

CreateFnNotFound handles this case with default header values.

Related app does not exist.

func NewCreateFnNotFound added in v0.8.0

func NewCreateFnNotFound() *CreateFnNotFound

NewCreateFnNotFound creates a CreateFnNotFound with default headers values

func (*CreateFnNotFound) Error added in v0.8.0

func (o *CreateFnNotFound) Error() string

func (*CreateFnNotFound) GetPayload added in v0.8.0

func (o *CreateFnNotFound) GetPayload() *modelsv2.Error

type CreateFnOK

type CreateFnOK struct {
	Payload *modelsv2.Fn
}

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

func (*CreateFnOK) GetPayload added in v0.8.0

func (o *CreateFnOK) GetPayload() *modelsv2.Fn

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

type DeleteFnDefault struct {
	Payload *modelsv2.Error
	// contains filtered or unexported fields
}

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

func (*DeleteFnDefault) GetPayload added in v0.8.0

func (o *DeleteFnDefault) GetPayload() *modelsv2.Error

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

type DeleteFnNotFound struct {
	Payload *modelsv2.Error
}

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

func (*DeleteFnNotFound) GetPayload added in v0.8.0

func (o *DeleteFnNotFound) GetPayload() *modelsv2.Error

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

type GetFnDefault struct {
	Payload *modelsv2.Error
	// contains filtered or unexported fields
}

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

func (*GetFnDefault) GetPayload added in v0.8.0

func (o *GetFnDefault) GetPayload() *modelsv2.Error

type GetFnNotFound

type GetFnNotFound struct {
	Payload *modelsv2.Error
}

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

func (*GetFnNotFound) GetPayload added in v0.8.0

func (o *GetFnNotFound) GetPayload() *modelsv2.Error

type GetFnOK

type GetFnOK struct {
	Payload *modelsv2.Fn
}

GetFnOK handles this case with default header values.

Function definition

func NewGetFnOK

func NewGetFnOK() *GetFnOK

NewGetFnOK creates a GetFnOK with default headers values

func (*GetFnOK) Error

func (o *GetFnOK) Error() string

func (*GetFnOK) GetPayload added in v0.8.0

func (o *GetFnOK) GetPayload() *modelsv2.Fn

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

type ListFnsDefault struct {
	Payload *modelsv2.Error
	// contains filtered or unexported fields
}

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

func (*ListFnsDefault) GetPayload added in v0.8.0

func (o *ListFnsDefault) GetPayload() *modelsv2.Error

type ListFnsOK

type ListFnsOK struct {
	Payload *modelsv2.FnList
}

ListFnsOK handles this case with default header values.

List of Functions.

func NewListFnsOK

func NewListFnsOK() *ListFnsOK

NewListFnsOK creates a ListFnsOK with default headers values

func (*ListFnsOK) Error

func (o *ListFnsOK) Error() string

func (*ListFnsOK) GetPayload added in v0.8.0

func (o *ListFnsOK) GetPayload() *modelsv2.FnList

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

type UpdateFnBadRequest struct {
	Payload *modelsv2.Error
}

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

func (*UpdateFnBadRequest) GetPayload added in v0.8.0

func (o *UpdateFnBadRequest) GetPayload() *modelsv2.Error

type UpdateFnDefault

type UpdateFnDefault struct {
	Payload *modelsv2.Error
	// contains filtered or unexported fields
}

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

func (*UpdateFnDefault) GetPayload added in v0.8.0

func (o *UpdateFnDefault) GetPayload() *modelsv2.Error

type UpdateFnNotFound

type UpdateFnNotFound struct {
	Payload *modelsv2.Error
}

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

func (*UpdateFnNotFound) GetPayload added in v0.8.0

func (o *UpdateFnNotFound) GetPayload() *modelsv2.Error

type UpdateFnOK

type UpdateFnOK struct {
	Payload *modelsv2.Fn
}

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

func (*UpdateFnOK) GetPayload added in v0.8.0

func (o *UpdateFnOK) GetPayload() *modelsv2.Fn

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.

Jump to

Keyboard shortcuts

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