transactions

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CommitTransactionAcceptedCode int = 202

CommitTransactionAcceptedCode is the HTTP code returned for type CommitTransactionAccepted

View Source
const CommitTransactionBadRequestCode int = 400

CommitTransactionBadRequestCode is the HTTP code returned for type CommitTransactionBadRequest

View Source
const CommitTransactionNotFoundCode int = 404

CommitTransactionNotFoundCode is the HTTP code returned for type CommitTransactionNotFound

View Source
const CommitTransactionOKCode int = 200

CommitTransactionOKCode is the HTTP code returned for type CommitTransactionOK

View Source
const DeleteTransactionNoContentCode int = 204

DeleteTransactionNoContentCode is the HTTP code returned for type DeleteTransactionNoContent

View Source
const DeleteTransactionNotFoundCode int = 404

DeleteTransactionNotFoundCode is the HTTP code returned for type DeleteTransactionNotFound

View Source
const GetTransactionNotFoundCode int = 404

GetTransactionNotFoundCode is the HTTP code returned for type GetTransactionNotFound

View Source
const GetTransactionOKCode int = 200

GetTransactionOKCode is the HTTP code returned for type GetTransactionOK

View Source
const GetTransactionsOKCode int = 200

GetTransactionsOKCode is the HTTP code returned for type GetTransactionsOK

View Source
const StartTransactionCreatedCode int = 201

StartTransactionCreatedCode is the HTTP code returned for type StartTransactionCreated

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitTransaction

type CommitTransaction struct {
	Context *middleware.Context
	Handler CommitTransactionHandler
}

CommitTransaction swagger:route PUT /services/haproxy/transactions/{id} Transactions commitTransaction

Commit transaction

Commit transaction, execute all operations in transaction and return msg

func NewCommitTransaction

func NewCommitTransaction(ctx *middleware.Context, handler CommitTransactionHandler) *CommitTransaction

NewCommitTransaction creates a new http.Handler for the commit transaction operation

func (*CommitTransaction) ServeHTTP

func (o *CommitTransaction) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CommitTransactionAccepted

type CommitTransactionAccepted struct {
	/*ID of the requested reload

	 */
	ReloadID string `json:"Reload-ID"`

	/*
	  In: Body
	*/
	Payload *models.Transaction `json:"body,omitempty"`
}

CommitTransactionAccepted Configuration change accepted and reload requested

swagger:response commitTransactionAccepted

func NewCommitTransactionAccepted

func NewCommitTransactionAccepted() *CommitTransactionAccepted

NewCommitTransactionAccepted creates CommitTransactionAccepted with default headers values

func (*CommitTransactionAccepted) SetPayload

func (o *CommitTransactionAccepted) SetPayload(payload *models.Transaction)

SetPayload sets the payload to the commit transaction accepted response

func (*CommitTransactionAccepted) SetReloadID

func (o *CommitTransactionAccepted) SetReloadID(reloadID string)

SetReloadID sets the reloadId to the commit transaction accepted response

func (*CommitTransactionAccepted) WithPayload

WithPayload adds the payload to the commit transaction accepted response

func (*CommitTransactionAccepted) WithReloadID

func (o *CommitTransactionAccepted) WithReloadID(reloadID string) *CommitTransactionAccepted

WithReloadID adds the reloadId to the commit transaction accepted response

func (*CommitTransactionAccepted) WriteResponse

func (o *CommitTransactionAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CommitTransactionBadRequest

type CommitTransactionBadRequest struct {
	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

CommitTransactionBadRequest Bad request

swagger:response commitTransactionBadRequest

func NewCommitTransactionBadRequest

func NewCommitTransactionBadRequest() *CommitTransactionBadRequest

NewCommitTransactionBadRequest creates CommitTransactionBadRequest with default headers values

func (*CommitTransactionBadRequest) SetConfigurationVersion added in v1.2.2

func (o *CommitTransactionBadRequest) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the commit transaction bad request response

func (*CommitTransactionBadRequest) SetPayload

func (o *CommitTransactionBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the commit transaction bad request response

func (*CommitTransactionBadRequest) WithConfigurationVersion added in v1.2.2

func (o *CommitTransactionBadRequest) WithConfigurationVersion(configurationVersion int64) *CommitTransactionBadRequest

WithConfigurationVersion adds the configurationVersion to the commit transaction bad request response

func (*CommitTransactionBadRequest) WithPayload

WithPayload adds the payload to the commit transaction bad request response

func (*CommitTransactionBadRequest) WriteResponse

func (o *CommitTransactionBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CommitTransactionDefault

type CommitTransactionDefault struct {

	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

CommitTransactionDefault General Error

swagger:response commitTransactionDefault

func NewCommitTransactionDefault

func NewCommitTransactionDefault(code int) *CommitTransactionDefault

NewCommitTransactionDefault creates CommitTransactionDefault with default headers values

func (*CommitTransactionDefault) SetConfigurationVersion added in v1.2.2

func (o *CommitTransactionDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the commit transaction default response

func (*CommitTransactionDefault) SetPayload

func (o *CommitTransactionDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the commit transaction default response

func (*CommitTransactionDefault) SetStatusCode

func (o *CommitTransactionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the commit transaction default response

func (*CommitTransactionDefault) WithConfigurationVersion added in v1.2.2

func (o *CommitTransactionDefault) WithConfigurationVersion(configurationVersion int64) *CommitTransactionDefault

WithConfigurationVersion adds the configurationVersion to the commit transaction default response

func (*CommitTransactionDefault) WithPayload

WithPayload adds the payload to the commit transaction default response

func (*CommitTransactionDefault) WithStatusCode

func (o *CommitTransactionDefault) WithStatusCode(code int) *CommitTransactionDefault

WithStatusCode adds the status to the commit transaction default response

func (*CommitTransactionDefault) WriteResponse

func (o *CommitTransactionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CommitTransactionHandler

type CommitTransactionHandler interface {
	Handle(CommitTransactionParams, interface{}) middleware.Responder
}

CommitTransactionHandler interface for that can handle valid commit transaction params

type CommitTransactionHandlerFunc

type CommitTransactionHandlerFunc func(CommitTransactionParams, interface{}) middleware.Responder

CommitTransactionHandlerFunc turns a function with the right signature into a commit transaction handler

func (CommitTransactionHandlerFunc) Handle

func (fn CommitTransactionHandlerFunc) Handle(params CommitTransactionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CommitTransactionNotFound

type CommitTransactionNotFound struct {
	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

CommitTransactionNotFound The specified resource was not found

swagger:response commitTransactionNotFound

func NewCommitTransactionNotFound

func NewCommitTransactionNotFound() *CommitTransactionNotFound

NewCommitTransactionNotFound creates CommitTransactionNotFound with default headers values

func (*CommitTransactionNotFound) SetConfigurationVersion added in v1.2.2

func (o *CommitTransactionNotFound) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the commit transaction not found response

func (*CommitTransactionNotFound) SetPayload

func (o *CommitTransactionNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the commit transaction not found response

func (*CommitTransactionNotFound) WithConfigurationVersion added in v1.2.2

func (o *CommitTransactionNotFound) WithConfigurationVersion(configurationVersion int64) *CommitTransactionNotFound

WithConfigurationVersion adds the configurationVersion to the commit transaction not found response

func (*CommitTransactionNotFound) WithPayload

WithPayload adds the payload to the commit transaction not found response

func (*CommitTransactionNotFound) WriteResponse

func (o *CommitTransactionNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CommitTransactionOK

type CommitTransactionOK struct {

	/*
	  In: Body
	*/
	Payload *models.Transaction `json:"body,omitempty"`
}

CommitTransactionOK Transaction succesfully commited

swagger:response commitTransactionOK

func NewCommitTransactionOK

func NewCommitTransactionOK() *CommitTransactionOK

NewCommitTransactionOK creates CommitTransactionOK with default headers values

func (*CommitTransactionOK) SetPayload

func (o *CommitTransactionOK) SetPayload(payload *models.Transaction)

SetPayload sets the payload to the commit transaction o k response

func (*CommitTransactionOK) WithPayload

func (o *CommitTransactionOK) WithPayload(payload *models.Transaction) *CommitTransactionOK

WithPayload adds the payload to the commit transaction o k response

func (*CommitTransactionOK) WriteResponse

func (o *CommitTransactionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CommitTransactionParams

type CommitTransactionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*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.
	  In: query
	  Default: false
	*/
	ForceReload *bool
	/*Transaction id
	  Required: true
	  In: path
	*/
	ID string
}

CommitTransactionParams contains all the bound params for the commit transaction operation typically these are obtained from a http.Request

swagger:parameters commitTransaction

func NewCommitTransactionParams

func NewCommitTransactionParams() CommitTransactionParams

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

func (*CommitTransactionParams) BindRequest

func (o *CommitTransactionParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCommitTransactionParams() beforehand.

type CommitTransactionURL

type CommitTransactionURL struct {
	ID string

	ForceReload *bool
	// contains filtered or unexported fields
}

CommitTransactionURL generates an URL for the commit transaction operation

func (*CommitTransactionURL) Build

func (o *CommitTransactionURL) Build() (*url.URL, error)

Build a url path and query string

func (*CommitTransactionURL) BuildFull

func (o *CommitTransactionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CommitTransactionURL) Must

func (o *CommitTransactionURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CommitTransactionURL) SetBasePath

func (o *CommitTransactionURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CommitTransactionURL) String

func (o *CommitTransactionURL) String() string

String returns the string representation of the path with query string

func (*CommitTransactionURL) StringFull

func (o *CommitTransactionURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CommitTransactionURL) WithBasePath

func (o *CommitTransactionURL) WithBasePath(bp string) *CommitTransactionURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type DeleteTransaction

type DeleteTransaction struct {
	Context *middleware.Context
	Handler DeleteTransactionHandler
}

DeleteTransaction swagger:route DELETE /services/haproxy/transactions/{id} Transactions deleteTransaction

Delete a transaction

Deletes a transaction.

func NewDeleteTransaction

func NewDeleteTransaction(ctx *middleware.Context, handler DeleteTransactionHandler) *DeleteTransaction

NewDeleteTransaction creates a new http.Handler for the delete transaction operation

func (*DeleteTransaction) ServeHTTP

func (o *DeleteTransaction) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteTransactionDefault

type DeleteTransactionDefault struct {

	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DeleteTransactionDefault General Error

swagger:response deleteTransactionDefault

func NewDeleteTransactionDefault

func NewDeleteTransactionDefault(code int) *DeleteTransactionDefault

NewDeleteTransactionDefault creates DeleteTransactionDefault with default headers values

func (*DeleteTransactionDefault) SetConfigurationVersion added in v1.2.2

func (o *DeleteTransactionDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the delete transaction default response

func (*DeleteTransactionDefault) SetPayload

func (o *DeleteTransactionDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete transaction default response

func (*DeleteTransactionDefault) SetStatusCode

func (o *DeleteTransactionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete transaction default response

func (*DeleteTransactionDefault) WithConfigurationVersion added in v1.2.2

func (o *DeleteTransactionDefault) WithConfigurationVersion(configurationVersion int64) *DeleteTransactionDefault

WithConfigurationVersion adds the configurationVersion to the delete transaction default response

func (*DeleteTransactionDefault) WithPayload

WithPayload adds the payload to the delete transaction default response

func (*DeleteTransactionDefault) WithStatusCode

func (o *DeleteTransactionDefault) WithStatusCode(code int) *DeleteTransactionDefault

WithStatusCode adds the status to the delete transaction default response

func (*DeleteTransactionDefault) WriteResponse

func (o *DeleteTransactionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteTransactionHandler

type DeleteTransactionHandler interface {
	Handle(DeleteTransactionParams, interface{}) middleware.Responder
}

DeleteTransactionHandler interface for that can handle valid delete transaction params

type DeleteTransactionHandlerFunc

type DeleteTransactionHandlerFunc func(DeleteTransactionParams, interface{}) middleware.Responder

DeleteTransactionHandlerFunc turns a function with the right signature into a delete transaction handler

func (DeleteTransactionHandlerFunc) Handle

func (fn DeleteTransactionHandlerFunc) Handle(params DeleteTransactionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteTransactionNoContent

type DeleteTransactionNoContent struct {
}

DeleteTransactionNoContent Transaction deleted

swagger:response deleteTransactionNoContent

func NewDeleteTransactionNoContent

func NewDeleteTransactionNoContent() *DeleteTransactionNoContent

NewDeleteTransactionNoContent creates DeleteTransactionNoContent with default headers values

func (*DeleteTransactionNoContent) WriteResponse

func (o *DeleteTransactionNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteTransactionNotFound

type DeleteTransactionNotFound struct {
	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

DeleteTransactionNotFound The specified resource was not found

swagger:response deleteTransactionNotFound

func NewDeleteTransactionNotFound

func NewDeleteTransactionNotFound() *DeleteTransactionNotFound

NewDeleteTransactionNotFound creates DeleteTransactionNotFound with default headers values

func (*DeleteTransactionNotFound) SetConfigurationVersion added in v1.2.2

func (o *DeleteTransactionNotFound) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the delete transaction not found response

func (*DeleteTransactionNotFound) SetPayload

func (o *DeleteTransactionNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete transaction not found response

func (*DeleteTransactionNotFound) WithConfigurationVersion added in v1.2.2

func (o *DeleteTransactionNotFound) WithConfigurationVersion(configurationVersion int64) *DeleteTransactionNotFound

WithConfigurationVersion adds the configurationVersion to the delete transaction not found response

func (*DeleteTransactionNotFound) WithPayload

WithPayload adds the payload to the delete transaction not found response

func (*DeleteTransactionNotFound) WriteResponse

func (o *DeleteTransactionNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteTransactionParams

type DeleteTransactionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Transaction id
	  Required: true
	  In: path
	*/
	ID string
}

DeleteTransactionParams contains all the bound params for the delete transaction operation typically these are obtained from a http.Request

swagger:parameters deleteTransaction

func NewDeleteTransactionParams

func NewDeleteTransactionParams() DeleteTransactionParams

NewDeleteTransactionParams creates a new DeleteTransactionParams object no default values defined in spec.

func (*DeleteTransactionParams) BindRequest

func (o *DeleteTransactionParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDeleteTransactionParams() beforehand.

type DeleteTransactionURL

type DeleteTransactionURL struct {
	ID string
	// contains filtered or unexported fields
}

DeleteTransactionURL generates an URL for the delete transaction operation

func (*DeleteTransactionURL) Build

func (o *DeleteTransactionURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteTransactionURL) BuildFull

func (o *DeleteTransactionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteTransactionURL) Must

func (o *DeleteTransactionURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteTransactionURL) SetBasePath

func (o *DeleteTransactionURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DeleteTransactionURL) String

func (o *DeleteTransactionURL) String() string

String returns the string representation of the path with query string

func (*DeleteTransactionURL) StringFull

func (o *DeleteTransactionURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteTransactionURL) WithBasePath

func (o *DeleteTransactionURL) WithBasePath(bp string) *DeleteTransactionURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetTransaction

type GetTransaction struct {
	Context *middleware.Context
	Handler GetTransactionHandler
}

GetTransaction swagger:route GET /services/haproxy/transactions/{id} Transactions getTransaction

Return one HAProxy configuration transactions

Returns one HAProxy configuration transactions.

func NewGetTransaction

func NewGetTransaction(ctx *middleware.Context, handler GetTransactionHandler) *GetTransaction

NewGetTransaction creates a new http.Handler for the get transaction operation

func (*GetTransaction) ServeHTTP

func (o *GetTransaction) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetTransactionDefault

type GetTransactionDefault struct {

	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetTransactionDefault General Error

swagger:response getTransactionDefault

func NewGetTransactionDefault

func NewGetTransactionDefault(code int) *GetTransactionDefault

NewGetTransactionDefault creates GetTransactionDefault with default headers values

func (*GetTransactionDefault) SetConfigurationVersion added in v1.2.2

func (o *GetTransactionDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get transaction default response

func (*GetTransactionDefault) SetPayload

func (o *GetTransactionDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get transaction default response

func (*GetTransactionDefault) SetStatusCode

func (o *GetTransactionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get transaction default response

func (*GetTransactionDefault) WithConfigurationVersion added in v1.2.2

func (o *GetTransactionDefault) WithConfigurationVersion(configurationVersion int64) *GetTransactionDefault

WithConfigurationVersion adds the configurationVersion to the get transaction default response

func (*GetTransactionDefault) WithPayload

func (o *GetTransactionDefault) WithPayload(payload *models.Error) *GetTransactionDefault

WithPayload adds the payload to the get transaction default response

func (*GetTransactionDefault) WithStatusCode

func (o *GetTransactionDefault) WithStatusCode(code int) *GetTransactionDefault

WithStatusCode adds the status to the get transaction default response

func (*GetTransactionDefault) WriteResponse

func (o *GetTransactionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTransactionHandler

type GetTransactionHandler interface {
	Handle(GetTransactionParams, interface{}) middleware.Responder
}

GetTransactionHandler interface for that can handle valid get transaction params

type GetTransactionHandlerFunc

type GetTransactionHandlerFunc func(GetTransactionParams, interface{}) middleware.Responder

GetTransactionHandlerFunc turns a function with the right signature into a get transaction handler

func (GetTransactionHandlerFunc) Handle

func (fn GetTransactionHandlerFunc) Handle(params GetTransactionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetTransactionNotFound

type GetTransactionNotFound struct {
	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetTransactionNotFound The specified resource was not found

swagger:response getTransactionNotFound

func NewGetTransactionNotFound

func NewGetTransactionNotFound() *GetTransactionNotFound

NewGetTransactionNotFound creates GetTransactionNotFound with default headers values

func (*GetTransactionNotFound) SetConfigurationVersion added in v1.2.2

func (o *GetTransactionNotFound) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get transaction not found response

func (*GetTransactionNotFound) SetPayload

func (o *GetTransactionNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the get transaction not found response

func (*GetTransactionNotFound) WithConfigurationVersion added in v1.2.2

func (o *GetTransactionNotFound) WithConfigurationVersion(configurationVersion int64) *GetTransactionNotFound

WithConfigurationVersion adds the configurationVersion to the get transaction not found response

func (*GetTransactionNotFound) WithPayload

func (o *GetTransactionNotFound) WithPayload(payload *models.Error) *GetTransactionNotFound

WithPayload adds the payload to the get transaction not found response

func (*GetTransactionNotFound) WriteResponse

func (o *GetTransactionNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTransactionOK

type GetTransactionOK struct {

	/*
	  In: Body
	*/
	Payload *models.Transaction `json:"body,omitempty"`
}

GetTransactionOK Successful operation

swagger:response getTransactionOK

func NewGetTransactionOK

func NewGetTransactionOK() *GetTransactionOK

NewGetTransactionOK creates GetTransactionOK with default headers values

func (*GetTransactionOK) SetPayload

func (o *GetTransactionOK) SetPayload(payload *models.Transaction)

SetPayload sets the payload to the get transaction o k response

func (*GetTransactionOK) WithPayload

func (o *GetTransactionOK) WithPayload(payload *models.Transaction) *GetTransactionOK

WithPayload adds the payload to the get transaction o k response

func (*GetTransactionOK) WriteResponse

func (o *GetTransactionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTransactionParams

type GetTransactionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Transaction id
	  Required: true
	  In: path
	*/
	ID string
}

GetTransactionParams contains all the bound params for the get transaction operation typically these are obtained from a http.Request

swagger:parameters getTransaction

func NewGetTransactionParams

func NewGetTransactionParams() GetTransactionParams

NewGetTransactionParams creates a new GetTransactionParams object no default values defined in spec.

func (*GetTransactionParams) BindRequest

func (o *GetTransactionParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetTransactionParams() beforehand.

type GetTransactionURL

type GetTransactionURL struct {
	ID string
	// contains filtered or unexported fields
}

GetTransactionURL generates an URL for the get transaction operation

func (*GetTransactionURL) Build

func (o *GetTransactionURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetTransactionURL) BuildFull

func (o *GetTransactionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetTransactionURL) Must

func (o *GetTransactionURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetTransactionURL) SetBasePath

func (o *GetTransactionURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetTransactionURL) String

func (o *GetTransactionURL) String() string

String returns the string representation of the path with query string

func (*GetTransactionURL) StringFull

func (o *GetTransactionURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetTransactionURL) WithBasePath

func (o *GetTransactionURL) WithBasePath(bp string) *GetTransactionURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetTransactions

type GetTransactions struct {
	Context *middleware.Context
	Handler GetTransactionsHandler
}

GetTransactions swagger:route GET /services/haproxy/transactions Transactions getTransactions

Return list of HAProxy configuration transactions.

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

func NewGetTransactions

func NewGetTransactions(ctx *middleware.Context, handler GetTransactionsHandler) *GetTransactions

NewGetTransactions creates a new http.Handler for the get transactions operation

func (*GetTransactions) ServeHTTP

func (o *GetTransactions) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetTransactionsDefault

type GetTransactionsDefault struct {

	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetTransactionsDefault General Error

swagger:response getTransactionsDefault

func NewGetTransactionsDefault

func NewGetTransactionsDefault(code int) *GetTransactionsDefault

NewGetTransactionsDefault creates GetTransactionsDefault with default headers values

func (*GetTransactionsDefault) SetConfigurationVersion added in v1.2.2

func (o *GetTransactionsDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get transactions default response

func (*GetTransactionsDefault) SetPayload

func (o *GetTransactionsDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get transactions default response

func (*GetTransactionsDefault) SetStatusCode

func (o *GetTransactionsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get transactions default response

func (*GetTransactionsDefault) WithConfigurationVersion added in v1.2.2

func (o *GetTransactionsDefault) WithConfigurationVersion(configurationVersion int64) *GetTransactionsDefault

WithConfigurationVersion adds the configurationVersion to the get transactions default response

func (*GetTransactionsDefault) WithPayload

func (o *GetTransactionsDefault) WithPayload(payload *models.Error) *GetTransactionsDefault

WithPayload adds the payload to the get transactions default response

func (*GetTransactionsDefault) WithStatusCode

func (o *GetTransactionsDefault) WithStatusCode(code int) *GetTransactionsDefault

WithStatusCode adds the status to the get transactions default response

func (*GetTransactionsDefault) WriteResponse

func (o *GetTransactionsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTransactionsHandler

type GetTransactionsHandler interface {
	Handle(GetTransactionsParams, interface{}) middleware.Responder
}

GetTransactionsHandler interface for that can handle valid get transactions params

type GetTransactionsHandlerFunc

type GetTransactionsHandlerFunc func(GetTransactionsParams, interface{}) middleware.Responder

GetTransactionsHandlerFunc turns a function with the right signature into a get transactions handler

func (GetTransactionsHandlerFunc) Handle

func (fn GetTransactionsHandlerFunc) Handle(params GetTransactionsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetTransactionsOK

type GetTransactionsOK struct {

	/*
	  In: Body
	*/
	Payload models.Transactions `json:"body,omitempty"`
}

GetTransactionsOK Success

swagger:response getTransactionsOK

func NewGetTransactionsOK

func NewGetTransactionsOK() *GetTransactionsOK

NewGetTransactionsOK creates GetTransactionsOK with default headers values

func (*GetTransactionsOK) SetPayload

func (o *GetTransactionsOK) SetPayload(payload models.Transactions)

SetPayload sets the payload to the get transactions o k response

func (*GetTransactionsOK) WithPayload

func (o *GetTransactionsOK) WithPayload(payload models.Transactions) *GetTransactionsOK

WithPayload adds the payload to the get transactions o k response

func (*GetTransactionsOK) WriteResponse

func (o *GetTransactionsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTransactionsParams

type GetTransactionsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Filter by transaction status
	  In: query
	*/
	Status *string
}

GetTransactionsParams contains all the bound params for the get transactions operation typically these are obtained from a http.Request

swagger:parameters getTransactions

func NewGetTransactionsParams

func NewGetTransactionsParams() GetTransactionsParams

NewGetTransactionsParams creates a new GetTransactionsParams object no default values defined in spec.

func (*GetTransactionsParams) BindRequest

func (o *GetTransactionsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetTransactionsParams() beforehand.

type GetTransactionsURL

type GetTransactionsURL struct {
	Status *string
	// contains filtered or unexported fields
}

GetTransactionsURL generates an URL for the get transactions operation

func (*GetTransactionsURL) Build

func (o *GetTransactionsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetTransactionsURL) BuildFull

func (o *GetTransactionsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetTransactionsURL) Must

func (o *GetTransactionsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetTransactionsURL) SetBasePath

func (o *GetTransactionsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetTransactionsURL) String

func (o *GetTransactionsURL) String() string

String returns the string representation of the path with query string

func (*GetTransactionsURL) StringFull

func (o *GetTransactionsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetTransactionsURL) WithBasePath

func (o *GetTransactionsURL) WithBasePath(bp string) *GetTransactionsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type StartTransaction

type StartTransaction struct {
	Context *middleware.Context
	Handler StartTransactionHandler
}

StartTransaction swagger:route POST /services/haproxy/transactions Transactions startTransaction

Start a new transaction

Starts a new transaction and returns it's id

func NewStartTransaction

func NewStartTransaction(ctx *middleware.Context, handler StartTransactionHandler) *StartTransaction

NewStartTransaction creates a new http.Handler for the start transaction operation

func (*StartTransaction) ServeHTTP

func (o *StartTransaction) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type StartTransactionCreated

type StartTransactionCreated struct {

	/*
	  In: Body
	*/
	Payload *models.Transaction `json:"body,omitempty"`
}

StartTransactionCreated Transaction started

swagger:response startTransactionCreated

func NewStartTransactionCreated

func NewStartTransactionCreated() *StartTransactionCreated

NewStartTransactionCreated creates StartTransactionCreated with default headers values

func (*StartTransactionCreated) SetPayload

func (o *StartTransactionCreated) SetPayload(payload *models.Transaction)

SetPayload sets the payload to the start transaction created response

func (*StartTransactionCreated) WithPayload

WithPayload adds the payload to the start transaction created response

func (*StartTransactionCreated) WriteResponse

func (o *StartTransactionCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type StartTransactionDefault

type StartTransactionDefault struct {

	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

StartTransactionDefault General Error

swagger:response startTransactionDefault

func NewStartTransactionDefault

func NewStartTransactionDefault(code int) *StartTransactionDefault

NewStartTransactionDefault creates StartTransactionDefault with default headers values

func (*StartTransactionDefault) SetConfigurationVersion added in v1.2.2

func (o *StartTransactionDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the start transaction default response

func (*StartTransactionDefault) SetPayload

func (o *StartTransactionDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the start transaction default response

func (*StartTransactionDefault) SetStatusCode

func (o *StartTransactionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the start transaction default response

func (*StartTransactionDefault) WithConfigurationVersion added in v1.2.2

func (o *StartTransactionDefault) WithConfigurationVersion(configurationVersion int64) *StartTransactionDefault

WithConfigurationVersion adds the configurationVersion to the start transaction default response

func (*StartTransactionDefault) WithPayload

func (o *StartTransactionDefault) WithPayload(payload *models.Error) *StartTransactionDefault

WithPayload adds the payload to the start transaction default response

func (*StartTransactionDefault) WithStatusCode

func (o *StartTransactionDefault) WithStatusCode(code int) *StartTransactionDefault

WithStatusCode adds the status to the start transaction default response

func (*StartTransactionDefault) WriteResponse

func (o *StartTransactionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type StartTransactionHandler

type StartTransactionHandler interface {
	Handle(StartTransactionParams, interface{}) middleware.Responder
}

StartTransactionHandler interface for that can handle valid start transaction params

type StartTransactionHandlerFunc

type StartTransactionHandlerFunc func(StartTransactionParams, interface{}) middleware.Responder

StartTransactionHandlerFunc turns a function with the right signature into a start transaction handler

func (StartTransactionHandlerFunc) Handle

func (fn StartTransactionHandlerFunc) Handle(params StartTransactionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type StartTransactionParams

type StartTransactionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Configuration version on which to work on
	  Required: true
	  In: query
	*/
	Version int64
}

StartTransactionParams contains all the bound params for the start transaction operation typically these are obtained from a http.Request

swagger:parameters startTransaction

func NewStartTransactionParams

func NewStartTransactionParams() StartTransactionParams

NewStartTransactionParams creates a new StartTransactionParams object no default values defined in spec.

func (*StartTransactionParams) BindRequest

func (o *StartTransactionParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewStartTransactionParams() beforehand.

type StartTransactionURL

type StartTransactionURL struct {
	Version int64
	// contains filtered or unexported fields
}

StartTransactionURL generates an URL for the start transaction operation

func (*StartTransactionURL) Build

func (o *StartTransactionURL) Build() (*url.URL, error)

Build a url path and query string

func (*StartTransactionURL) BuildFull

func (o *StartTransactionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*StartTransactionURL) Must

func (o *StartTransactionURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*StartTransactionURL) SetBasePath

func (o *StartTransactionURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*StartTransactionURL) String

func (o *StartTransactionURL) String() string

String returns the string representation of the path with query string

func (*StartTransactionURL) StringFull

func (o *StartTransactionURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*StartTransactionURL) WithBasePath

func (o *StartTransactionURL) WithBasePath(bp string) *StartTransactionURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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