Documentation ¶
Index ¶
- type Client
- func (a *Client) CommitTransaction(params *CommitTransactionParams, authInfo runtime.ClientAuthInfoWriter) (*CommitTransactionOK, *CommitTransactionAccepted, error)
- func (a *Client) DeleteTransaction(params *DeleteTransactionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteTransactionNoContent, error)
- func (a *Client) GetTransaction(params *GetTransactionParams, authInfo runtime.ClientAuthInfoWriter) (*GetTransactionOK, error)
- func (a *Client) GetTransactions(params *GetTransactionsParams, authInfo runtime.ClientAuthInfoWriter) (*GetTransactionsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) StartTransaction(params *StartTransactionParams, authInfo runtime.ClientAuthInfoWriter) (*StartTransactionCreated, error)
- type ClientService
- type CommitTransactionAccepted
- type CommitTransactionBadRequest
- type CommitTransactionDefault
- type CommitTransactionNotAcceptable
- type CommitTransactionNotFound
- type CommitTransactionOK
- type CommitTransactionParams
- func NewCommitTransactionParams() *CommitTransactionParams
- func NewCommitTransactionParamsWithContext(ctx context.Context) *CommitTransactionParams
- func NewCommitTransactionParamsWithHTTPClient(client *http.Client) *CommitTransactionParams
- func NewCommitTransactionParamsWithTimeout(timeout time.Duration) *CommitTransactionParams
- func (o *CommitTransactionParams) SetContext(ctx context.Context)
- func (o *CommitTransactionParams) SetForceReload(forceReload *bool)
- func (o *CommitTransactionParams) SetHTTPClient(client *http.Client)
- func (o *CommitTransactionParams) SetID(id string)
- func (o *CommitTransactionParams) SetTimeout(timeout time.Duration)
- func (o *CommitTransactionParams) WithContext(ctx context.Context) *CommitTransactionParams
- func (o *CommitTransactionParams) WithForceReload(forceReload *bool) *CommitTransactionParams
- func (o *CommitTransactionParams) WithHTTPClient(client *http.Client) *CommitTransactionParams
- func (o *CommitTransactionParams) WithID(id string) *CommitTransactionParams
- func (o *CommitTransactionParams) WithTimeout(timeout time.Duration) *CommitTransactionParams
- func (o *CommitTransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CommitTransactionReader
- type DeleteTransactionDefault
- type DeleteTransactionNoContent
- type DeleteTransactionNotFound
- type DeleteTransactionParams
- func NewDeleteTransactionParams() *DeleteTransactionParams
- func NewDeleteTransactionParamsWithContext(ctx context.Context) *DeleteTransactionParams
- func NewDeleteTransactionParamsWithHTTPClient(client *http.Client) *DeleteTransactionParams
- func NewDeleteTransactionParamsWithTimeout(timeout time.Duration) *DeleteTransactionParams
- func (o *DeleteTransactionParams) SetContext(ctx context.Context)
- func (o *DeleteTransactionParams) SetHTTPClient(client *http.Client)
- func (o *DeleteTransactionParams) SetID(id string)
- func (o *DeleteTransactionParams) SetTimeout(timeout time.Duration)
- func (o *DeleteTransactionParams) WithContext(ctx context.Context) *DeleteTransactionParams
- func (o *DeleteTransactionParams) WithHTTPClient(client *http.Client) *DeleteTransactionParams
- func (o *DeleteTransactionParams) WithID(id string) *DeleteTransactionParams
- func (o *DeleteTransactionParams) WithTimeout(timeout time.Duration) *DeleteTransactionParams
- func (o *DeleteTransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteTransactionReader
- type GetTransactionDefault
- type GetTransactionNotFound
- type GetTransactionOK
- type GetTransactionParams
- func NewGetTransactionParams() *GetTransactionParams
- func NewGetTransactionParamsWithContext(ctx context.Context) *GetTransactionParams
- func NewGetTransactionParamsWithHTTPClient(client *http.Client) *GetTransactionParams
- func NewGetTransactionParamsWithTimeout(timeout time.Duration) *GetTransactionParams
- func (o *GetTransactionParams) SetContext(ctx context.Context)
- func (o *GetTransactionParams) SetHTTPClient(client *http.Client)
- func (o *GetTransactionParams) SetID(id string)
- func (o *GetTransactionParams) SetTimeout(timeout time.Duration)
- func (o *GetTransactionParams) WithContext(ctx context.Context) *GetTransactionParams
- func (o *GetTransactionParams) WithHTTPClient(client *http.Client) *GetTransactionParams
- func (o *GetTransactionParams) WithID(id string) *GetTransactionParams
- func (o *GetTransactionParams) WithTimeout(timeout time.Duration) *GetTransactionParams
- func (o *GetTransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTransactionReader
- type GetTransactionsDefault
- type GetTransactionsOK
- type GetTransactionsParams
- func NewGetTransactionsParams() *GetTransactionsParams
- func NewGetTransactionsParamsWithContext(ctx context.Context) *GetTransactionsParams
- func NewGetTransactionsParamsWithHTTPClient(client *http.Client) *GetTransactionsParams
- func NewGetTransactionsParamsWithTimeout(timeout time.Duration) *GetTransactionsParams
- func (o *GetTransactionsParams) SetContext(ctx context.Context)
- func (o *GetTransactionsParams) SetHTTPClient(client *http.Client)
- func (o *GetTransactionsParams) SetStatus(status *string)
- func (o *GetTransactionsParams) SetTimeout(timeout time.Duration)
- func (o *GetTransactionsParams) WithContext(ctx context.Context) *GetTransactionsParams
- func (o *GetTransactionsParams) WithHTTPClient(client *http.Client) *GetTransactionsParams
- func (o *GetTransactionsParams) WithStatus(status *string) *GetTransactionsParams
- func (o *GetTransactionsParams) WithTimeout(timeout time.Duration) *GetTransactionsParams
- func (o *GetTransactionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTransactionsReader
- type StartTransactionCreated
- type StartTransactionDefault
- type StartTransactionParams
- func NewStartTransactionParams() *StartTransactionParams
- func NewStartTransactionParamsWithContext(ctx context.Context) *StartTransactionParams
- func NewStartTransactionParamsWithHTTPClient(client *http.Client) *StartTransactionParams
- func NewStartTransactionParamsWithTimeout(timeout time.Duration) *StartTransactionParams
- func (o *StartTransactionParams) SetContext(ctx context.Context)
- func (o *StartTransactionParams) SetHTTPClient(client *http.Client)
- func (o *StartTransactionParams) SetTimeout(timeout time.Duration)
- func (o *StartTransactionParams) SetVersion(version int64)
- func (o *StartTransactionParams) WithContext(ctx context.Context) *StartTransactionParams
- func (o *StartTransactionParams) WithHTTPClient(client *http.Client) *StartTransactionParams
- func (o *StartTransactionParams) WithTimeout(timeout time.Duration) *StartTransactionParams
- func (o *StartTransactionParams) WithVersion(version int64) *StartTransactionParams
- func (o *StartTransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StartTransactionReader
- type StartTransactionTooManyRequests
- type StartTransactionTooManyRequestsBody
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 ¶
func (a *Client) CommitTransaction(params *CommitTransactionParams, authInfo runtime.ClientAuthInfoWriter) (*CommitTransactionOK, *CommitTransactionAccepted, error)
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 ¶
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 ¶
func (o *CommitTransactionAccepted) GetPayload() *models.Transaction
type CommitTransactionBadRequest ¶
type CommitTransactionBadRequest struct { /*Configuration file version */ ConfigurationVersion string 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 (o *CommitTransactionBadRequest) Error() string
func (*CommitTransactionBadRequest) GetPayload ¶
func (o *CommitTransactionBadRequest) GetPayload() *models.Error
type CommitTransactionDefault ¶
type CommitTransactionDefault struct { /*Configuration file version */ ConfigurationVersion string 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 ¶
func (o *CommitTransactionDefault) GetPayload() *models.Error
type CommitTransactionNotAcceptable ¶ added in v0.0.2
type CommitTransactionNotAcceptable struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error }
CommitTransactionNotAcceptable handles this case with default header values.
The specified resource cannot be handled
func NewCommitTransactionNotAcceptable ¶ added in v0.0.2
func NewCommitTransactionNotAcceptable() *CommitTransactionNotAcceptable
NewCommitTransactionNotAcceptable creates a CommitTransactionNotAcceptable with default headers values
func (*CommitTransactionNotAcceptable) Error ¶ added in v0.0.2
func (o *CommitTransactionNotAcceptable) Error() string
func (*CommitTransactionNotAcceptable) GetPayload ¶ added in v0.0.2
func (o *CommitTransactionNotAcceptable) GetPayload() *models.Error
type CommitTransactionNotFound ¶
type CommitTransactionNotFound struct { /*Configuration file version */ ConfigurationVersion string 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 ¶
func (o *CommitTransactionNotFound) GetPayload() *models.Error
type CommitTransactionOK ¶
type CommitTransactionOK struct {
Payload *models.Transaction
}
CommitTransactionOK handles this case with default header values.
Transaction successfully committed
func NewCommitTransactionOK ¶
func NewCommitTransactionOK() *CommitTransactionOK
NewCommitTransactionOK creates a CommitTransactionOK with default headers values
func (*CommitTransactionOK) Error ¶
func (o *CommitTransactionOK) Error() string
func (*CommitTransactionOK) GetPayload ¶
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 ¶
func (o *CommitTransactionParams) WithContext(ctx context.Context) *CommitTransactionParams
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 ¶
func (o *CommitTransactionParams) WithID(id string) *CommitTransactionParams
WithID adds the id to the commit transaction params
func (*CommitTransactionParams) WithTimeout ¶
func (o *CommitTransactionParams) WithTimeout(timeout time.Duration) *CommitTransactionParams
WithTimeout adds the timeout to the commit transaction params
func (*CommitTransactionParams) WriteToRequest ¶
func (o *CommitTransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 string 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 ¶
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 ¶
func (o *DeleteTransactionNoContent) Error() string
type DeleteTransactionNotFound ¶
type DeleteTransactionNotFound struct { /*Configuration file version */ ConfigurationVersion string 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 ¶
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 ¶
func (o *DeleteTransactionParams) WithContext(ctx context.Context) *DeleteTransactionParams
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 ¶
func (o *DeleteTransactionParams) WithID(id string) *DeleteTransactionParams
WithID adds the id to the delete transaction params
func (*DeleteTransactionParams) WithTimeout ¶
func (o *DeleteTransactionParams) WithTimeout(timeout time.Duration) *DeleteTransactionParams
WithTimeout adds the timeout to the delete transaction params
func (*DeleteTransactionParams) WriteToRequest ¶
func (o *DeleteTransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 string 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 ¶
func (o *GetTransactionDefault) GetPayload() *models.Error
type GetTransactionNotFound ¶
type GetTransactionNotFound struct { /*Configuration file version */ ConfigurationVersion string 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 ¶
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 ¶
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 ¶
func (o *GetTransactionParams) WithContext(ctx context.Context) *GetTransactionParams
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 ¶
func (o *GetTransactionParams) WithID(id string) *GetTransactionParams
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 string 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 ¶
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 ¶
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 ¶
func (o *GetTransactionsParams) WithContext(ctx context.Context) *GetTransactionsParams
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 ¶
func (o *StartTransactionCreated) GetPayload() *models.Transaction
type StartTransactionDefault ¶
type StartTransactionDefault struct { /*Configuration file version */ ConfigurationVersion string 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 ¶
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 ¶
func (o *StartTransactionParams) WithContext(ctx context.Context) *StartTransactionParams
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 ¶
func (o *StartTransactionParams) WithTimeout(timeout time.Duration) *StartTransactionParams
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 ¶
func (o *StartTransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
type StartTransactionTooManyRequests struct {
Payload *StartTransactionTooManyRequestsBody
}
StartTransactionTooManyRequests handles this case with default header values.
Too many open transactions
func NewStartTransactionTooManyRequests ¶
func NewStartTransactionTooManyRequests() *StartTransactionTooManyRequests
NewStartTransactionTooManyRequests creates a StartTransactionTooManyRequests with default headers values
func (*StartTransactionTooManyRequests) Error ¶
func (o *StartTransactionTooManyRequests) Error() string
func (*StartTransactionTooManyRequests) GetPayload ¶
func (o *StartTransactionTooManyRequests) GetPayload() *StartTransactionTooManyRequestsBody
type StartTransactionTooManyRequestsBody ¶
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 ¶
func (o *StartTransactionTooManyRequestsBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StartTransactionTooManyRequestsBody) UnmarshalBinary ¶
func (o *StartTransactionTooManyRequestsBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files ¶
- commit_transaction_parameters.go
- commit_transaction_responses.go
- delete_transaction_parameters.go
- delete_transaction_responses.go
- get_transaction_parameters.go
- get_transaction_responses.go
- get_transactions_parameters.go
- get_transactions_responses.go
- start_transaction_parameters.go
- start_transaction_responses.go
- transactions_client.go