transactions

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 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 transactions API

func (*Client) CommitTransaction

CommitTransaction commits transaction

Commit transaction, execute all operations in transaction and return msg

func (*Client) DeleteTransaction

func (a *Client) DeleteTransaction(params *DeleteTransactionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteTransactionNoContent, error)

DeleteTransaction deletes a transaction

Deletes a transaction.

func (*Client) GetTransaction

func (a *Client) GetTransaction(params *GetTransactionParams, authInfo runtime.ClientAuthInfoWriter) (*GetTransactionOK, error)

GetTransaction returns one h a proxy configuration transactions

Returns one HAProxy configuration transactions.

func (*Client) GetTransactions

func (a *Client) GetTransactions(params *GetTransactionsParams, authInfo runtime.ClientAuthInfoWriter) (*GetTransactionsOK, error)

GetTransactions returns list of h a proxy configuration transactions

Returns a list of HAProxy configuration transactions. Transactions can be filtered by their status.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) StartTransaction

func (a *Client) StartTransaction(params *StartTransactionParams, authInfo runtime.ClientAuthInfoWriter) (*StartTransactionCreated, error)

StartTransaction starts a new transaction

Starts a new transaction and returns it's id

type ClientService added in v0.2.0

type ClientService interface {
	CommitTransaction(params *CommitTransactionParams, authInfo runtime.ClientAuthInfoWriter) (*CommitTransactionOK, *CommitTransactionAccepted, error)

	DeleteTransaction(params *DeleteTransactionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteTransactionNoContent, error)

	GetTransaction(params *GetTransactionParams, authInfo runtime.ClientAuthInfoWriter) (*GetTransactionOK, error)

	GetTransactions(params *GetTransactionsParams, authInfo runtime.ClientAuthInfoWriter) (*GetTransactionsOK, error)

	StartTransaction(params *StartTransactionParams, authInfo runtime.ClientAuthInfoWriter) (*StartTransactionCreated, 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 transactions API client.

type CommitTransactionAccepted

type CommitTransactionAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string

	Payload *models.Transaction
}

CommitTransactionAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewCommitTransactionAccepted

func NewCommitTransactionAccepted() *CommitTransactionAccepted

NewCommitTransactionAccepted creates a CommitTransactionAccepted with default headers values

func (*CommitTransactionAccepted) Error

func (o *CommitTransactionAccepted) Error() string

func (*CommitTransactionAccepted) GetPayload added in v0.2.0

func (o *CommitTransactionAccepted) GetPayload() *models.Transaction

type CommitTransactionBadRequest

type CommitTransactionBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

CommitTransactionBadRequest handles this case with default header values.

Bad request

func NewCommitTransactionBadRequest

func NewCommitTransactionBadRequest() *CommitTransactionBadRequest

NewCommitTransactionBadRequest creates a CommitTransactionBadRequest with default headers values

func (*CommitTransactionBadRequest) Error

func (*CommitTransactionBadRequest) GetPayload added in v0.2.0

func (o *CommitTransactionBadRequest) GetPayload() *models.Error

type CommitTransactionDefault

type CommitTransactionDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}

CommitTransactionDefault handles this case with default header values.

General Error

func NewCommitTransactionDefault

func NewCommitTransactionDefault(code int) *CommitTransactionDefault

NewCommitTransactionDefault creates a CommitTransactionDefault with default headers values

func (*CommitTransactionDefault) Code

func (o *CommitTransactionDefault) Code() int

Code gets the status code for the commit transaction default response

func (*CommitTransactionDefault) Error

func (o *CommitTransactionDefault) Error() string

func (*CommitTransactionDefault) GetPayload added in v0.2.0

func (o *CommitTransactionDefault) GetPayload() *models.Error

type CommitTransactionNotFound

type CommitTransactionNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

CommitTransactionNotFound handles this case with default header values.

The specified resource was not found

func NewCommitTransactionNotFound

func NewCommitTransactionNotFound() *CommitTransactionNotFound

NewCommitTransactionNotFound creates a CommitTransactionNotFound with default headers values

func (*CommitTransactionNotFound) Error

func (o *CommitTransactionNotFound) Error() string

func (*CommitTransactionNotFound) GetPayload added in v0.2.0

func (o *CommitTransactionNotFound) GetPayload() *models.Error

type CommitTransactionOK

type CommitTransactionOK struct {
	Payload *models.Transaction
}

CommitTransactionOK handles this case with default header values.

Transaction succesfully commited

func NewCommitTransactionOK

func NewCommitTransactionOK() *CommitTransactionOK

NewCommitTransactionOK creates a CommitTransactionOK with default headers values

func (*CommitTransactionOK) Error

func (o *CommitTransactionOK) Error() string

func (*CommitTransactionOK) GetPayload added in v0.2.0

func (o *CommitTransactionOK) GetPayload() *models.Transaction

type CommitTransactionParams

type CommitTransactionParams struct {

	/*ForceReload
	  If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.

	*/
	ForceReload *bool
	/*ID
	  Transaction id

	*/
	ID string

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

CommitTransactionParams contains all the parameters to send to the API endpoint for the commit transaction operation typically these are written to a http.Request

func NewCommitTransactionParams

func NewCommitTransactionParams() *CommitTransactionParams

NewCommitTransactionParams creates a new CommitTransactionParams object with the default values initialized.

func NewCommitTransactionParamsWithContext

func NewCommitTransactionParamsWithContext(ctx context.Context) *CommitTransactionParams

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

func NewCommitTransactionParamsWithHTTPClient

func NewCommitTransactionParamsWithHTTPClient(client *http.Client) *CommitTransactionParams

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

func NewCommitTransactionParamsWithTimeout

func NewCommitTransactionParamsWithTimeout(timeout time.Duration) *CommitTransactionParams

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

func (*CommitTransactionParams) SetContext

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

SetContext adds the context to the commit transaction params

func (*CommitTransactionParams) SetForceReload

func (o *CommitTransactionParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the commit transaction params

func (*CommitTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the commit transaction params

func (*CommitTransactionParams) SetID

func (o *CommitTransactionParams) SetID(id string)

SetID adds the id to the commit transaction params

func (*CommitTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the commit transaction params

func (*CommitTransactionParams) WithContext

WithContext adds the context to the commit transaction params

func (*CommitTransactionParams) WithForceReload

func (o *CommitTransactionParams) WithForceReload(forceReload *bool) *CommitTransactionParams

WithForceReload adds the forceReload to the commit transaction params

func (*CommitTransactionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the commit transaction params

func (*CommitTransactionParams) WithID

WithID adds the id to the commit transaction params

func (*CommitTransactionParams) WithTimeout

WithTimeout adds the timeout to the commit transaction params

func (*CommitTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CommitTransactionReader

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

CommitTransactionReader is a Reader for the CommitTransaction structure.

func (*CommitTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteTransactionDefault

type DeleteTransactionDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteTransactionDefault handles this case with default header values.

General Error

func NewDeleteTransactionDefault

func NewDeleteTransactionDefault(code int) *DeleteTransactionDefault

NewDeleteTransactionDefault creates a DeleteTransactionDefault with default headers values

func (*DeleteTransactionDefault) Code

func (o *DeleteTransactionDefault) Code() int

Code gets the status code for the delete transaction default response

func (*DeleteTransactionDefault) Error

func (o *DeleteTransactionDefault) Error() string

func (*DeleteTransactionDefault) GetPayload added in v0.2.0

func (o *DeleteTransactionDefault) GetPayload() *models.Error

type DeleteTransactionNoContent

type DeleteTransactionNoContent struct {
}

DeleteTransactionNoContent handles this case with default header values.

Transaction deleted

func NewDeleteTransactionNoContent

func NewDeleteTransactionNoContent() *DeleteTransactionNoContent

NewDeleteTransactionNoContent creates a DeleteTransactionNoContent with default headers values

func (*DeleteTransactionNoContent) Error

type DeleteTransactionNotFound

type DeleteTransactionNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

DeleteTransactionNotFound handles this case with default header values.

The specified resource was not found

func NewDeleteTransactionNotFound

func NewDeleteTransactionNotFound() *DeleteTransactionNotFound

NewDeleteTransactionNotFound creates a DeleteTransactionNotFound with default headers values

func (*DeleteTransactionNotFound) Error

func (o *DeleteTransactionNotFound) Error() string

func (*DeleteTransactionNotFound) GetPayload added in v0.2.0

func (o *DeleteTransactionNotFound) GetPayload() *models.Error

type DeleteTransactionParams

type DeleteTransactionParams struct {

	/*ID
	  Transaction id

	*/
	ID string

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

DeleteTransactionParams contains all the parameters to send to the API endpoint for the delete transaction operation typically these are written to a http.Request

func NewDeleteTransactionParams

func NewDeleteTransactionParams() *DeleteTransactionParams

NewDeleteTransactionParams creates a new DeleteTransactionParams object with the default values initialized.

func NewDeleteTransactionParamsWithContext

func NewDeleteTransactionParamsWithContext(ctx context.Context) *DeleteTransactionParams

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

func NewDeleteTransactionParamsWithHTTPClient

func NewDeleteTransactionParamsWithHTTPClient(client *http.Client) *DeleteTransactionParams

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

func NewDeleteTransactionParamsWithTimeout

func NewDeleteTransactionParamsWithTimeout(timeout time.Duration) *DeleteTransactionParams

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

func (*DeleteTransactionParams) SetContext

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

SetContext adds the context to the delete transaction params

func (*DeleteTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete transaction params

func (*DeleteTransactionParams) SetID

func (o *DeleteTransactionParams) SetID(id string)

SetID adds the id to the delete transaction params

func (*DeleteTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the delete transaction params

func (*DeleteTransactionParams) WithContext

WithContext adds the context to the delete transaction params

func (*DeleteTransactionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete transaction params

func (*DeleteTransactionParams) WithID

WithID adds the id to the delete transaction params

func (*DeleteTransactionParams) WithTimeout

WithTimeout adds the timeout to the delete transaction params

func (*DeleteTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteTransactionReader

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

DeleteTransactionReader is a Reader for the DeleteTransaction structure.

func (*DeleteTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTransactionDefault

type GetTransactionDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}

GetTransactionDefault handles this case with default header values.

General Error

func NewGetTransactionDefault

func NewGetTransactionDefault(code int) *GetTransactionDefault

NewGetTransactionDefault creates a GetTransactionDefault with default headers values

func (*GetTransactionDefault) Code

func (o *GetTransactionDefault) Code() int

Code gets the status code for the get transaction default response

func (*GetTransactionDefault) Error

func (o *GetTransactionDefault) Error() string

func (*GetTransactionDefault) GetPayload added in v0.2.0

func (o *GetTransactionDefault) GetPayload() *models.Error

type GetTransactionNotFound

type GetTransactionNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

GetTransactionNotFound handles this case with default header values.

The specified resource was not found

func NewGetTransactionNotFound

func NewGetTransactionNotFound() *GetTransactionNotFound

NewGetTransactionNotFound creates a GetTransactionNotFound with default headers values

func (*GetTransactionNotFound) Error

func (o *GetTransactionNotFound) Error() string

func (*GetTransactionNotFound) GetPayload added in v0.2.0

func (o *GetTransactionNotFound) GetPayload() *models.Error

type GetTransactionOK

type GetTransactionOK struct {
	Payload *models.Transaction
}

GetTransactionOK handles this case with default header values.

Successful operation

func NewGetTransactionOK

func NewGetTransactionOK() *GetTransactionOK

NewGetTransactionOK creates a GetTransactionOK with default headers values

func (*GetTransactionOK) Error

func (o *GetTransactionOK) Error() string

func (*GetTransactionOK) GetPayload added in v0.2.0

func (o *GetTransactionOK) GetPayload() *models.Transaction

type GetTransactionParams

type GetTransactionParams struct {

	/*ID
	  Transaction id

	*/
	ID string

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

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

func NewGetTransactionParams

func NewGetTransactionParams() *GetTransactionParams

NewGetTransactionParams creates a new GetTransactionParams object with the default values initialized.

func NewGetTransactionParamsWithContext

func NewGetTransactionParamsWithContext(ctx context.Context) *GetTransactionParams

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

func NewGetTransactionParamsWithHTTPClient

func NewGetTransactionParamsWithHTTPClient(client *http.Client) *GetTransactionParams

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

func NewGetTransactionParamsWithTimeout

func NewGetTransactionParamsWithTimeout(timeout time.Duration) *GetTransactionParams

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

func (*GetTransactionParams) SetContext

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

SetContext adds the context to the get transaction params

func (*GetTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get transaction params

func (*GetTransactionParams) SetID

func (o *GetTransactionParams) SetID(id string)

SetID adds the id to the get transaction params

func (*GetTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the get transaction params

func (*GetTransactionParams) WithContext

WithContext adds the context to the get transaction params

func (*GetTransactionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get transaction params

func (*GetTransactionParams) WithID

WithID adds the id to the get transaction params

func (*GetTransactionParams) WithTimeout

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

WithTimeout adds the timeout to the get transaction params

func (*GetTransactionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTransactionReader

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

GetTransactionReader is a Reader for the GetTransaction structure.

func (*GetTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTransactionsDefault

type GetTransactionsDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}

GetTransactionsDefault handles this case with default header values.

General Error

func NewGetTransactionsDefault

func NewGetTransactionsDefault(code int) *GetTransactionsDefault

NewGetTransactionsDefault creates a GetTransactionsDefault with default headers values

func (*GetTransactionsDefault) Code

func (o *GetTransactionsDefault) Code() int

Code gets the status code for the get transactions default response

func (*GetTransactionsDefault) Error

func (o *GetTransactionsDefault) Error() string

func (*GetTransactionsDefault) GetPayload added in v0.2.0

func (o *GetTransactionsDefault) GetPayload() *models.Error

type GetTransactionsOK

type GetTransactionsOK struct {
	Payload models.Transactions
}

GetTransactionsOK handles this case with default header values.

Success

func NewGetTransactionsOK

func NewGetTransactionsOK() *GetTransactionsOK

NewGetTransactionsOK creates a GetTransactionsOK with default headers values

func (*GetTransactionsOK) Error

func (o *GetTransactionsOK) Error() string

func (*GetTransactionsOK) GetPayload added in v0.2.0

func (o *GetTransactionsOK) GetPayload() models.Transactions

type GetTransactionsParams

type GetTransactionsParams struct {

	/*Status
	  Filter by transaction status

	*/
	Status *string

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

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

func NewGetTransactionsParams

func NewGetTransactionsParams() *GetTransactionsParams

NewGetTransactionsParams creates a new GetTransactionsParams object with the default values initialized.

func NewGetTransactionsParamsWithContext

func NewGetTransactionsParamsWithContext(ctx context.Context) *GetTransactionsParams

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

func NewGetTransactionsParamsWithHTTPClient

func NewGetTransactionsParamsWithHTTPClient(client *http.Client) *GetTransactionsParams

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

func NewGetTransactionsParamsWithTimeout

func NewGetTransactionsParamsWithTimeout(timeout time.Duration) *GetTransactionsParams

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

func (*GetTransactionsParams) SetContext

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

SetContext adds the context to the get transactions params

func (*GetTransactionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get transactions params

func (*GetTransactionsParams) SetStatus

func (o *GetTransactionsParams) SetStatus(status *string)

SetStatus adds the status to the get transactions params

func (*GetTransactionsParams) SetTimeout

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

SetTimeout adds the timeout to the get transactions params

func (*GetTransactionsParams) WithContext

WithContext adds the context to the get transactions params

func (*GetTransactionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get transactions params

func (*GetTransactionsParams) WithStatus

func (o *GetTransactionsParams) WithStatus(status *string) *GetTransactionsParams

WithStatus adds the status to the get transactions params

func (*GetTransactionsParams) WithTimeout

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

WithTimeout adds the timeout to the get transactions params

func (*GetTransactionsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTransactionsReader

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

GetTransactionsReader is a Reader for the GetTransactions structure.

func (*GetTransactionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StartTransactionCreated

type StartTransactionCreated struct {
	Payload *models.Transaction
}

StartTransactionCreated handles this case with default header values.

Transaction started

func NewStartTransactionCreated

func NewStartTransactionCreated() *StartTransactionCreated

NewStartTransactionCreated creates a StartTransactionCreated with default headers values

func (*StartTransactionCreated) Error

func (o *StartTransactionCreated) Error() string

func (*StartTransactionCreated) GetPayload added in v0.2.0

func (o *StartTransactionCreated) GetPayload() *models.Transaction

type StartTransactionDefault

type StartTransactionDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}

StartTransactionDefault handles this case with default header values.

General Error

func NewStartTransactionDefault

func NewStartTransactionDefault(code int) *StartTransactionDefault

NewStartTransactionDefault creates a StartTransactionDefault with default headers values

func (*StartTransactionDefault) Code

func (o *StartTransactionDefault) Code() int

Code gets the status code for the start transaction default response

func (*StartTransactionDefault) Error

func (o *StartTransactionDefault) Error() string

func (*StartTransactionDefault) GetPayload added in v0.2.0

func (o *StartTransactionDefault) GetPayload() *models.Error

type StartTransactionParams

type StartTransactionParams struct {

	/*Version
	  Configuration version on which to work on

	*/
	Version int64

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

StartTransactionParams contains all the parameters to send to the API endpoint for the start transaction operation typically these are written to a http.Request

func NewStartTransactionParams

func NewStartTransactionParams() *StartTransactionParams

NewStartTransactionParams creates a new StartTransactionParams object with the default values initialized.

func NewStartTransactionParamsWithContext

func NewStartTransactionParamsWithContext(ctx context.Context) *StartTransactionParams

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

func NewStartTransactionParamsWithHTTPClient

func NewStartTransactionParamsWithHTTPClient(client *http.Client) *StartTransactionParams

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

func NewStartTransactionParamsWithTimeout

func NewStartTransactionParamsWithTimeout(timeout time.Duration) *StartTransactionParams

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

func (*StartTransactionParams) SetContext

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

SetContext adds the context to the start transaction params

func (*StartTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the start transaction params

func (*StartTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the start transaction params

func (*StartTransactionParams) SetVersion

func (o *StartTransactionParams) SetVersion(version int64)

SetVersion adds the version to the start transaction params

func (*StartTransactionParams) WithContext

WithContext adds the context to the start transaction params

func (*StartTransactionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the start transaction params

func (*StartTransactionParams) WithTimeout

WithTimeout adds the timeout to the start transaction params

func (*StartTransactionParams) WithVersion

func (o *StartTransactionParams) WithVersion(version int64) *StartTransactionParams

WithVersion adds the version to the start transaction params

func (*StartTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type StartTransactionReader

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

StartTransactionReader is a Reader for the StartTransaction structure.

func (*StartTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StartTransactionTooManyRequests added in v0.3.0

type StartTransactionTooManyRequests struct {
	Payload *StartTransactionTooManyRequestsBody
}

StartTransactionTooManyRequests handles this case with default header values.

Too many open transactions

func NewStartTransactionTooManyRequests added in v0.3.0

func NewStartTransactionTooManyRequests() *StartTransactionTooManyRequests

NewStartTransactionTooManyRequests creates a StartTransactionTooManyRequests with default headers values

func (*StartTransactionTooManyRequests) Error added in v0.3.0

func (*StartTransactionTooManyRequests) GetPayload added in v0.3.0

type StartTransactionTooManyRequestsBody added in v0.3.0

type StartTransactionTooManyRequestsBody struct {

	// code
	Code int64 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

StartTransactionTooManyRequestsBody start transaction too many requests body swagger:model StartTransactionTooManyRequestsBody

func (*StartTransactionTooManyRequestsBody) MarshalBinary added in v0.3.0

func (o *StartTransactionTooManyRequestsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StartTransactionTooManyRequestsBody) UnmarshalBinary added in v0.3.0

func (o *StartTransactionTooManyRequestsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StartTransactionTooManyRequestsBody) Validate added in v0.3.0

Validate validates this start transaction too many requests body

Jump to

Keyboard shortcuts

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