backend

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: 12 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 backend API

func (*Client) CreateBackend

CreateBackend adds a backend

Adds a new backend to the configuration file.

func (*Client) DeleteBackend

DeleteBackend deletes a backend

Deletes a backend from the configuration by it's name.

func (*Client) GetBackend

func (a *Client) GetBackend(params *GetBackendParams, authInfo runtime.ClientAuthInfoWriter) (*GetBackendOK, error)

GetBackend returns a backend

Returns one backend configuration by it's name.

func (*Client) GetBackends

func (a *Client) GetBackends(params *GetBackendsParams, authInfo runtime.ClientAuthInfoWriter) (*GetBackendsOK, error)

GetBackends returns an array of backends

Returns an array of all configured backends.

func (*Client) ReplaceBackend

ReplaceBackend replaces a backend

Replaces a backend configuration by it's name.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService added in v0.2.0

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new backend API client.

type CreateBackendAccepted

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

	Payload *models.Backend
}

CreateBackendAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewCreateBackendAccepted

func NewCreateBackendAccepted() *CreateBackendAccepted

NewCreateBackendAccepted creates a CreateBackendAccepted with default headers values

func (*CreateBackendAccepted) Error

func (o *CreateBackendAccepted) Error() string

func (*CreateBackendAccepted) GetPayload added in v0.2.0

func (o *CreateBackendAccepted) GetPayload() *models.Backend

type CreateBackendBadRequest

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

	Payload *models.Error
}

CreateBackendBadRequest handles this case with default header values.

Bad request

func NewCreateBackendBadRequest

func NewCreateBackendBadRequest() *CreateBackendBadRequest

NewCreateBackendBadRequest creates a CreateBackendBadRequest with default headers values

func (*CreateBackendBadRequest) Error

func (o *CreateBackendBadRequest) Error() string

func (*CreateBackendBadRequest) GetPayload added in v0.2.0

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

type CreateBackendConflict

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

	Payload *models.Error
}

CreateBackendConflict handles this case with default header values.

The specified resource already exists

func NewCreateBackendConflict

func NewCreateBackendConflict() *CreateBackendConflict

NewCreateBackendConflict creates a CreateBackendConflict with default headers values

func (*CreateBackendConflict) Error

func (o *CreateBackendConflict) Error() string

func (*CreateBackendConflict) GetPayload added in v0.2.0

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

type CreateBackendCreated

type CreateBackendCreated struct {
	Payload *models.Backend
}

CreateBackendCreated handles this case with default header values.

Backend created

func NewCreateBackendCreated

func NewCreateBackendCreated() *CreateBackendCreated

NewCreateBackendCreated creates a CreateBackendCreated with default headers values

func (*CreateBackendCreated) Error

func (o *CreateBackendCreated) Error() string

func (*CreateBackendCreated) GetPayload added in v0.2.0

func (o *CreateBackendCreated) GetPayload() *models.Backend

type CreateBackendDefault

type CreateBackendDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

CreateBackendDefault handles this case with default header values.

General Error

func NewCreateBackendDefault

func NewCreateBackendDefault(code int) *CreateBackendDefault

NewCreateBackendDefault creates a CreateBackendDefault with default headers values

func (*CreateBackendDefault) Code

func (o *CreateBackendDefault) Code() int

Code gets the status code for the create backend default response

func (*CreateBackendDefault) Error

func (o *CreateBackendDefault) Error() string

func (*CreateBackendDefault) GetPayload added in v0.2.0

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

type CreateBackendParams

type CreateBackendParams struct {

	/*Data*/
	Data *models.Backend
	/*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
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string
	/*Version
	  Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.

	*/
	Version *int64

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

CreateBackendParams contains all the parameters to send to the API endpoint for the create backend operation typically these are written to a http.Request

func NewCreateBackendParams

func NewCreateBackendParams() *CreateBackendParams

NewCreateBackendParams creates a new CreateBackendParams object with the default values initialized.

func NewCreateBackendParamsWithContext

func NewCreateBackendParamsWithContext(ctx context.Context) *CreateBackendParams

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

func NewCreateBackendParamsWithHTTPClient

func NewCreateBackendParamsWithHTTPClient(client *http.Client) *CreateBackendParams

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

func NewCreateBackendParamsWithTimeout

func NewCreateBackendParamsWithTimeout(timeout time.Duration) *CreateBackendParams

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

func (*CreateBackendParams) SetContext

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

SetContext adds the context to the create backend params

func (*CreateBackendParams) SetData

func (o *CreateBackendParams) SetData(data *models.Backend)

SetData adds the data to the create backend params

func (*CreateBackendParams) SetForceReload

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

SetForceReload adds the forceReload to the create backend params

func (*CreateBackendParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create backend params

func (*CreateBackendParams) SetTimeout

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

SetTimeout adds the timeout to the create backend params

func (*CreateBackendParams) SetTransactionID

func (o *CreateBackendParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the create backend params

func (*CreateBackendParams) SetVersion

func (o *CreateBackendParams) SetVersion(version *int64)

SetVersion adds the version to the create backend params

func (*CreateBackendParams) WithContext

WithContext adds the context to the create backend params

func (*CreateBackendParams) WithData

WithData adds the data to the create backend params

func (*CreateBackendParams) WithForceReload

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

WithForceReload adds the forceReload to the create backend params

func (*CreateBackendParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create backend params

func (*CreateBackendParams) WithTimeout

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

WithTimeout adds the timeout to the create backend params

func (*CreateBackendParams) WithTransactionID

func (o *CreateBackendParams) WithTransactionID(transactionID *string) *CreateBackendParams

WithTransactionID adds the transactionID to the create backend params

func (*CreateBackendParams) WithVersion

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

WithVersion adds the version to the create backend params

func (*CreateBackendParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateBackendReader

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

CreateBackendReader is a Reader for the CreateBackend structure.

func (*CreateBackendReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteBackendAccepted

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

DeleteBackendAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewDeleteBackendAccepted

func NewDeleteBackendAccepted() *DeleteBackendAccepted

NewDeleteBackendAccepted creates a DeleteBackendAccepted with default headers values

func (*DeleteBackendAccepted) Error

func (o *DeleteBackendAccepted) Error() string

type DeleteBackendDefault

type DeleteBackendDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

DeleteBackendDefault handles this case with default header values.

General Error

func NewDeleteBackendDefault

func NewDeleteBackendDefault(code int) *DeleteBackendDefault

NewDeleteBackendDefault creates a DeleteBackendDefault with default headers values

func (*DeleteBackendDefault) Code

func (o *DeleteBackendDefault) Code() int

Code gets the status code for the delete backend default response

func (*DeleteBackendDefault) Error

func (o *DeleteBackendDefault) Error() string

func (*DeleteBackendDefault) GetPayload added in v0.2.0

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

type DeleteBackendNoContent

type DeleteBackendNoContent struct {
}

DeleteBackendNoContent handles this case with default header values.

Backend deleted

func NewDeleteBackendNoContent

func NewDeleteBackendNoContent() *DeleteBackendNoContent

NewDeleteBackendNoContent creates a DeleteBackendNoContent with default headers values

func (*DeleteBackendNoContent) Error

func (o *DeleteBackendNoContent) Error() string

type DeleteBackendNotFound

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

	Payload *models.Error
}

DeleteBackendNotFound handles this case with default header values.

The specified resource was not found

func NewDeleteBackendNotFound

func NewDeleteBackendNotFound() *DeleteBackendNotFound

NewDeleteBackendNotFound creates a DeleteBackendNotFound with default headers values

func (*DeleteBackendNotFound) Error

func (o *DeleteBackendNotFound) Error() string

func (*DeleteBackendNotFound) GetPayload added in v0.2.0

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

type DeleteBackendParams

type DeleteBackendParams 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
	/*Name
	  Backend name

	*/
	Name string
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string
	/*Version
	  Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.

	*/
	Version *int64

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

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

func NewDeleteBackendParams

func NewDeleteBackendParams() *DeleteBackendParams

NewDeleteBackendParams creates a new DeleteBackendParams object with the default values initialized.

func NewDeleteBackendParamsWithContext

func NewDeleteBackendParamsWithContext(ctx context.Context) *DeleteBackendParams

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

func NewDeleteBackendParamsWithHTTPClient

func NewDeleteBackendParamsWithHTTPClient(client *http.Client) *DeleteBackendParams

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

func NewDeleteBackendParamsWithTimeout

func NewDeleteBackendParamsWithTimeout(timeout time.Duration) *DeleteBackendParams

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

func (*DeleteBackendParams) SetContext

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

SetContext adds the context to the delete backend params

func (*DeleteBackendParams) SetForceReload

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

SetForceReload adds the forceReload to the delete backend params

func (*DeleteBackendParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete backend params

func (*DeleteBackendParams) SetName

func (o *DeleteBackendParams) SetName(name string)

SetName adds the name to the delete backend params

func (*DeleteBackendParams) SetTimeout

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

SetTimeout adds the timeout to the delete backend params

func (*DeleteBackendParams) SetTransactionID

func (o *DeleteBackendParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the delete backend params

func (*DeleteBackendParams) SetVersion

func (o *DeleteBackendParams) SetVersion(version *int64)

SetVersion adds the version to the delete backend params

func (*DeleteBackendParams) WithContext

WithContext adds the context to the delete backend params

func (*DeleteBackendParams) WithForceReload

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

WithForceReload adds the forceReload to the delete backend params

func (*DeleteBackendParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete backend params

func (*DeleteBackendParams) WithName

func (o *DeleteBackendParams) WithName(name string) *DeleteBackendParams

WithName adds the name to the delete backend params

func (*DeleteBackendParams) WithTimeout

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

WithTimeout adds the timeout to the delete backend params

func (*DeleteBackendParams) WithTransactionID

func (o *DeleteBackendParams) WithTransactionID(transactionID *string) *DeleteBackendParams

WithTransactionID adds the transactionID to the delete backend params

func (*DeleteBackendParams) WithVersion

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

WithVersion adds the version to the delete backend params

func (*DeleteBackendParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteBackendReader

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

DeleteBackendReader is a Reader for the DeleteBackend structure.

func (*DeleteBackendReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetBackendDefault

type GetBackendDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

GetBackendDefault handles this case with default header values.

General Error

func NewGetBackendDefault

func NewGetBackendDefault(code int) *GetBackendDefault

NewGetBackendDefault creates a GetBackendDefault with default headers values

func (*GetBackendDefault) Code

func (o *GetBackendDefault) Code() int

Code gets the status code for the get backend default response

func (*GetBackendDefault) Error

func (o *GetBackendDefault) Error() string

func (*GetBackendDefault) GetPayload added in v0.2.0

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

type GetBackendNotFound

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

	Payload *models.Error
}

GetBackendNotFound handles this case with default header values.

The specified resource was not found

func NewGetBackendNotFound

func NewGetBackendNotFound() *GetBackendNotFound

NewGetBackendNotFound creates a GetBackendNotFound with default headers values

func (*GetBackendNotFound) Error

func (o *GetBackendNotFound) Error() string

func (*GetBackendNotFound) GetPayload added in v0.2.0

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

type GetBackendOK

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

	Payload *GetBackendOKBody
}

GetBackendOK handles this case with default header values.

Successful operation

func NewGetBackendOK

func NewGetBackendOK() *GetBackendOK

NewGetBackendOK creates a GetBackendOK with default headers values

func (*GetBackendOK) Error

func (o *GetBackendOK) Error() string

func (*GetBackendOK) GetPayload added in v0.2.0

func (o *GetBackendOK) GetPayload() *GetBackendOKBody

type GetBackendOKBody

type GetBackendOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	Data *models.Backend `json:"data,omitempty"`
}

GetBackendOKBody get backend o k body swagger:model GetBackendOKBody

func (*GetBackendOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetBackendOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetBackendOKBody) Validate

func (o *GetBackendOKBody) Validate(formats strfmt.Registry) error

Validate validates this get backend o k body

type GetBackendParams

type GetBackendParams struct {

	/*Name
	  Backend name

	*/
	Name string
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string

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

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

func NewGetBackendParams

func NewGetBackendParams() *GetBackendParams

NewGetBackendParams creates a new GetBackendParams object with the default values initialized.

func NewGetBackendParamsWithContext

func NewGetBackendParamsWithContext(ctx context.Context) *GetBackendParams

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

func NewGetBackendParamsWithHTTPClient

func NewGetBackendParamsWithHTTPClient(client *http.Client) *GetBackendParams

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

func NewGetBackendParamsWithTimeout

func NewGetBackendParamsWithTimeout(timeout time.Duration) *GetBackendParams

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

func (*GetBackendParams) SetContext

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

SetContext adds the context to the get backend params

func (*GetBackendParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get backend params

func (*GetBackendParams) SetName

func (o *GetBackendParams) SetName(name string)

SetName adds the name to the get backend params

func (*GetBackendParams) SetTimeout

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

SetTimeout adds the timeout to the get backend params

func (*GetBackendParams) SetTransactionID

func (o *GetBackendParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get backend params

func (*GetBackendParams) WithContext

func (o *GetBackendParams) WithContext(ctx context.Context) *GetBackendParams

WithContext adds the context to the get backend params

func (*GetBackendParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get backend params

func (*GetBackendParams) WithName

func (o *GetBackendParams) WithName(name string) *GetBackendParams

WithName adds the name to the get backend params

func (*GetBackendParams) WithTimeout

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

WithTimeout adds the timeout to the get backend params

func (*GetBackendParams) WithTransactionID

func (o *GetBackendParams) WithTransactionID(transactionID *string) *GetBackendParams

WithTransactionID adds the transactionID to the get backend params

func (*GetBackendParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetBackendReader

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

GetBackendReader is a Reader for the GetBackend structure.

func (*GetBackendReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetBackendsDefault

type GetBackendsDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

GetBackendsDefault handles this case with default header values.

General Error

func NewGetBackendsDefault

func NewGetBackendsDefault(code int) *GetBackendsDefault

NewGetBackendsDefault creates a GetBackendsDefault with default headers values

func (*GetBackendsDefault) Code

func (o *GetBackendsDefault) Code() int

Code gets the status code for the get backends default response

func (*GetBackendsDefault) Error

func (o *GetBackendsDefault) Error() string

func (*GetBackendsDefault) GetPayload added in v0.2.0

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

type GetBackendsOK

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

	Payload *GetBackendsOKBody
}

GetBackendsOK handles this case with default header values.

Successful operation

func NewGetBackendsOK

func NewGetBackendsOK() *GetBackendsOK

NewGetBackendsOK creates a GetBackendsOK with default headers values

func (*GetBackendsOK) Error

func (o *GetBackendsOK) Error() string

func (*GetBackendsOK) GetPayload added in v0.2.0

func (o *GetBackendsOK) GetPayload() *GetBackendsOKBody

type GetBackendsOKBody

type GetBackendsOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	// Required: true
	Data models.Backends `json:"data"`
}

GetBackendsOKBody get backends o k body swagger:model GetBackendsOKBody

func (*GetBackendsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetBackendsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetBackendsOKBody) Validate

func (o *GetBackendsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get backends o k body

type GetBackendsParams

type GetBackendsParams struct {

	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string

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

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

func NewGetBackendsParams

func NewGetBackendsParams() *GetBackendsParams

NewGetBackendsParams creates a new GetBackendsParams object with the default values initialized.

func NewGetBackendsParamsWithContext

func NewGetBackendsParamsWithContext(ctx context.Context) *GetBackendsParams

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

func NewGetBackendsParamsWithHTTPClient

func NewGetBackendsParamsWithHTTPClient(client *http.Client) *GetBackendsParams

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

func NewGetBackendsParamsWithTimeout

func NewGetBackendsParamsWithTimeout(timeout time.Duration) *GetBackendsParams

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

func (*GetBackendsParams) SetContext

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

SetContext adds the context to the get backends params

func (*GetBackendsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get backends params

func (*GetBackendsParams) SetTimeout

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

SetTimeout adds the timeout to the get backends params

func (*GetBackendsParams) SetTransactionID

func (o *GetBackendsParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get backends params

func (*GetBackendsParams) WithContext

func (o *GetBackendsParams) WithContext(ctx context.Context) *GetBackendsParams

WithContext adds the context to the get backends params

func (*GetBackendsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get backends params

func (*GetBackendsParams) WithTimeout

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

WithTimeout adds the timeout to the get backends params

func (*GetBackendsParams) WithTransactionID

func (o *GetBackendsParams) WithTransactionID(transactionID *string) *GetBackendsParams

WithTransactionID adds the transactionID to the get backends params

func (*GetBackendsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetBackendsReader

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

GetBackendsReader is a Reader for the GetBackends structure.

func (*GetBackendsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceBackendAccepted

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

	Payload *models.Backend
}

ReplaceBackendAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewReplaceBackendAccepted

func NewReplaceBackendAccepted() *ReplaceBackendAccepted

NewReplaceBackendAccepted creates a ReplaceBackendAccepted with default headers values

func (*ReplaceBackendAccepted) Error

func (o *ReplaceBackendAccepted) Error() string

func (*ReplaceBackendAccepted) GetPayload added in v0.2.0

func (o *ReplaceBackendAccepted) GetPayload() *models.Backend

type ReplaceBackendBadRequest

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

	Payload *models.Error
}

ReplaceBackendBadRequest handles this case with default header values.

Bad request

func NewReplaceBackendBadRequest

func NewReplaceBackendBadRequest() *ReplaceBackendBadRequest

NewReplaceBackendBadRequest creates a ReplaceBackendBadRequest with default headers values

func (*ReplaceBackendBadRequest) Error

func (o *ReplaceBackendBadRequest) Error() string

func (*ReplaceBackendBadRequest) GetPayload added in v0.2.0

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

type ReplaceBackendDefault

type ReplaceBackendDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

ReplaceBackendDefault handles this case with default header values.

General Error

func NewReplaceBackendDefault

func NewReplaceBackendDefault(code int) *ReplaceBackendDefault

NewReplaceBackendDefault creates a ReplaceBackendDefault with default headers values

func (*ReplaceBackendDefault) Code

func (o *ReplaceBackendDefault) Code() int

Code gets the status code for the replace backend default response

func (*ReplaceBackendDefault) Error

func (o *ReplaceBackendDefault) Error() string

func (*ReplaceBackendDefault) GetPayload added in v0.2.0

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

type ReplaceBackendNotFound

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

	Payload *models.Error
}

ReplaceBackendNotFound handles this case with default header values.

The specified resource was not found

func NewReplaceBackendNotFound

func NewReplaceBackendNotFound() *ReplaceBackendNotFound

NewReplaceBackendNotFound creates a ReplaceBackendNotFound with default headers values

func (*ReplaceBackendNotFound) Error

func (o *ReplaceBackendNotFound) Error() string

func (*ReplaceBackendNotFound) GetPayload added in v0.2.0

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

type ReplaceBackendOK

type ReplaceBackendOK struct {
	Payload *models.Backend
}

ReplaceBackendOK handles this case with default header values.

Backend replaced

func NewReplaceBackendOK

func NewReplaceBackendOK() *ReplaceBackendOK

NewReplaceBackendOK creates a ReplaceBackendOK with default headers values

func (*ReplaceBackendOK) Error

func (o *ReplaceBackendOK) Error() string

func (*ReplaceBackendOK) GetPayload added in v0.2.0

func (o *ReplaceBackendOK) GetPayload() *models.Backend

type ReplaceBackendParams

type ReplaceBackendParams struct {

	/*Data*/
	Data *models.Backend
	/*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
	/*Name
	  Backend name

	*/
	Name string
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string
	/*Version
	  Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.

	*/
	Version *int64

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

ReplaceBackendParams contains all the parameters to send to the API endpoint for the replace backend operation typically these are written to a http.Request

func NewReplaceBackendParams

func NewReplaceBackendParams() *ReplaceBackendParams

NewReplaceBackendParams creates a new ReplaceBackendParams object with the default values initialized.

func NewReplaceBackendParamsWithContext

func NewReplaceBackendParamsWithContext(ctx context.Context) *ReplaceBackendParams

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

func NewReplaceBackendParamsWithHTTPClient

func NewReplaceBackendParamsWithHTTPClient(client *http.Client) *ReplaceBackendParams

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

func NewReplaceBackendParamsWithTimeout

func NewReplaceBackendParamsWithTimeout(timeout time.Duration) *ReplaceBackendParams

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

func (*ReplaceBackendParams) SetContext

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

SetContext adds the context to the replace backend params

func (*ReplaceBackendParams) SetData

func (o *ReplaceBackendParams) SetData(data *models.Backend)

SetData adds the data to the replace backend params

func (*ReplaceBackendParams) SetForceReload

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

SetForceReload adds the forceReload to the replace backend params

func (*ReplaceBackendParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace backend params

func (*ReplaceBackendParams) SetName

func (o *ReplaceBackendParams) SetName(name string)

SetName adds the name to the replace backend params

func (*ReplaceBackendParams) SetTimeout

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

SetTimeout adds the timeout to the replace backend params

func (*ReplaceBackendParams) SetTransactionID

func (o *ReplaceBackendParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the replace backend params

func (*ReplaceBackendParams) SetVersion

func (o *ReplaceBackendParams) SetVersion(version *int64)

SetVersion adds the version to the replace backend params

func (*ReplaceBackendParams) WithContext

WithContext adds the context to the replace backend params

func (*ReplaceBackendParams) WithData

WithData adds the data to the replace backend params

func (*ReplaceBackendParams) WithForceReload

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

WithForceReload adds the forceReload to the replace backend params

func (*ReplaceBackendParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the replace backend params

func (*ReplaceBackendParams) WithName

WithName adds the name to the replace backend params

func (*ReplaceBackendParams) WithTimeout

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

WithTimeout adds the timeout to the replace backend params

func (*ReplaceBackendParams) WithTransactionID

func (o *ReplaceBackendParams) WithTransactionID(transactionID *string) *ReplaceBackendParams

WithTransactionID adds the transactionID to the replace backend params

func (*ReplaceBackendParams) WithVersion

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

WithVersion adds the version to the replace backend params

func (*ReplaceBackendParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReplaceBackendReader

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

ReplaceBackendReader is a Reader for the ReplaceBackend structure.

func (*ReplaceBackendReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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