configuration

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 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 configuration API

func (*Client) GetConfigurationVersion

func (a *Client) GetConfigurationVersion(params *GetConfigurationVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConfigurationVersionOK, error)

GetConfigurationVersion returns a configuration version

Returns configuration version.

func (*Client) GetHAProxyConfiguration

func (a *Client) GetHAProxyConfiguration(params *GetHAProxyConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetHAProxyConfigurationOK, error)

GetHAProxyConfiguration returns h a proxy configuration

Returns HAProxy configuration file in plain text

func (*Client) PostHAProxyConfiguration

PostHAProxyConfiguration pushes new haproxy configuration

Push a new haproxy configuration file in plain text

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetConfigurationVersion(params *GetConfigurationVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConfigurationVersionOK, error)

	GetHAProxyConfiguration(params *GetHAProxyConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetHAProxyConfigurationOK, error)

	PostHAProxyConfiguration(params *PostHAProxyConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostHAProxyConfigurationCreated, *PostHAProxyConfigurationAccepted, 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 configuration API client.

type GetConfigurationVersionDefault

type GetConfigurationVersionDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

GetConfigurationVersionDefault describes a response with status code -1, with default header values.

General Error

func NewGetConfigurationVersionDefault

func NewGetConfigurationVersionDefault(code int) *GetConfigurationVersionDefault

NewGetConfigurationVersionDefault creates a GetConfigurationVersionDefault with default headers values

func (*GetConfigurationVersionDefault) Code

Code gets the status code for the get configuration version default response

func (*GetConfigurationVersionDefault) Error

func (*GetConfigurationVersionDefault) GetPayload

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

func (*GetConfigurationVersionDefault) IsClientError added in v1.1.0

func (o *GetConfigurationVersionDefault) IsClientError() bool

IsClientError returns true when this get configuration version default response has a 4xx status code

func (*GetConfigurationVersionDefault) IsCode added in v1.1.0

func (o *GetConfigurationVersionDefault) IsCode(code int) bool

IsCode returns true when this get configuration version default response a status code equal to that given

func (*GetConfigurationVersionDefault) IsRedirect added in v1.1.0

func (o *GetConfigurationVersionDefault) IsRedirect() bool

IsRedirect returns true when this get configuration version default response has a 3xx status code

func (*GetConfigurationVersionDefault) IsServerError added in v1.1.0

func (o *GetConfigurationVersionDefault) IsServerError() bool

IsServerError returns true when this get configuration version default response has a 5xx status code

func (*GetConfigurationVersionDefault) IsSuccess added in v1.1.0

func (o *GetConfigurationVersionDefault) IsSuccess() bool

IsSuccess returns true when this get configuration version default response has a 2xx status code

func (*GetConfigurationVersionDefault) String added in v1.1.0

type GetConfigurationVersionNotFound

type GetConfigurationVersionNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

GetConfigurationVersionNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewGetConfigurationVersionNotFound

func NewGetConfigurationVersionNotFound() *GetConfigurationVersionNotFound

NewGetConfigurationVersionNotFound creates a GetConfigurationVersionNotFound with default headers values

func (*GetConfigurationVersionNotFound) Code added in v1.1.5

Code gets the status code for the get configuration version not found response

func (*GetConfigurationVersionNotFound) Error

func (*GetConfigurationVersionNotFound) GetPayload

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

func (*GetConfigurationVersionNotFound) IsClientError added in v1.1.0

func (o *GetConfigurationVersionNotFound) IsClientError() bool

IsClientError returns true when this get configuration version not found response has a 4xx status code

func (*GetConfigurationVersionNotFound) IsCode added in v1.1.0

func (o *GetConfigurationVersionNotFound) IsCode(code int) bool

IsCode returns true when this get configuration version not found response a status code equal to that given

func (*GetConfigurationVersionNotFound) IsRedirect added in v1.1.0

func (o *GetConfigurationVersionNotFound) IsRedirect() bool

IsRedirect returns true when this get configuration version not found response has a 3xx status code

func (*GetConfigurationVersionNotFound) IsServerError added in v1.1.0

func (o *GetConfigurationVersionNotFound) IsServerError() bool

IsServerError returns true when this get configuration version not found response has a 5xx status code

func (*GetConfigurationVersionNotFound) IsSuccess added in v1.1.0

func (o *GetConfigurationVersionNotFound) IsSuccess() bool

IsSuccess returns true when this get configuration version not found response has a 2xx status code

func (*GetConfigurationVersionNotFound) String added in v1.1.0

type GetConfigurationVersionOK

type GetConfigurationVersionOK struct {
	Payload int64
}

GetConfigurationVersionOK describes a response with status code 200, with default header values.

Configuration version

func NewGetConfigurationVersionOK

func NewGetConfigurationVersionOK() *GetConfigurationVersionOK

NewGetConfigurationVersionOK creates a GetConfigurationVersionOK with default headers values

func (*GetConfigurationVersionOK) Code added in v1.1.5

func (o *GetConfigurationVersionOK) Code() int

Code gets the status code for the get configuration version o k response

func (*GetConfigurationVersionOK) Error

func (o *GetConfigurationVersionOK) Error() string

func (*GetConfigurationVersionOK) GetPayload

func (o *GetConfigurationVersionOK) GetPayload() int64

func (*GetConfigurationVersionOK) IsClientError added in v1.1.0

func (o *GetConfigurationVersionOK) IsClientError() bool

IsClientError returns true when this get configuration version o k response has a 4xx status code

func (*GetConfigurationVersionOK) IsCode added in v1.1.0

func (o *GetConfigurationVersionOK) IsCode(code int) bool

IsCode returns true when this get configuration version o k response a status code equal to that given

func (*GetConfigurationVersionOK) IsRedirect added in v1.1.0

func (o *GetConfigurationVersionOK) IsRedirect() bool

IsRedirect returns true when this get configuration version o k response has a 3xx status code

func (*GetConfigurationVersionOK) IsServerError added in v1.1.0

func (o *GetConfigurationVersionOK) IsServerError() bool

IsServerError returns true when this get configuration version o k response has a 5xx status code

func (*GetConfigurationVersionOK) IsSuccess added in v1.1.0

func (o *GetConfigurationVersionOK) IsSuccess() bool

IsSuccess returns true when this get configuration version o k response has a 2xx status code

func (*GetConfigurationVersionOK) String added in v1.1.0

func (o *GetConfigurationVersionOK) String() string

type GetConfigurationVersionParams

type GetConfigurationVersionParams 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
}

GetConfigurationVersionParams contains all the parameters to send to the API endpoint

for the get configuration version operation.

Typically these are written to a http.Request.

func NewGetConfigurationVersionParams

func NewGetConfigurationVersionParams() *GetConfigurationVersionParams

NewGetConfigurationVersionParams creates a new GetConfigurationVersionParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetConfigurationVersionParamsWithContext

func NewGetConfigurationVersionParamsWithContext(ctx context.Context) *GetConfigurationVersionParams

NewGetConfigurationVersionParamsWithContext creates a new GetConfigurationVersionParams object with the ability to set a context for a request.

func NewGetConfigurationVersionParamsWithHTTPClient

func NewGetConfigurationVersionParamsWithHTTPClient(client *http.Client) *GetConfigurationVersionParams

NewGetConfigurationVersionParamsWithHTTPClient creates a new GetConfigurationVersionParams object with the ability to set a custom HTTPClient for a request.

func NewGetConfigurationVersionParamsWithTimeout

func NewGetConfigurationVersionParamsWithTimeout(timeout time.Duration) *GetConfigurationVersionParams

NewGetConfigurationVersionParamsWithTimeout creates a new GetConfigurationVersionParams object with the ability to set a timeout on a request.

func (*GetConfigurationVersionParams) SetContext

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

SetContext adds the context to the get configuration version params

func (*GetConfigurationVersionParams) SetDefaults

func (o *GetConfigurationVersionParams) SetDefaults()

SetDefaults hydrates default values in the get configuration version params (not the query body).

All values with no default are reset to their zero value.

func (*GetConfigurationVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get configuration version params

func (*GetConfigurationVersionParams) SetTimeout

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

SetTimeout adds the timeout to the get configuration version params

func (*GetConfigurationVersionParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get configuration version params

func (*GetConfigurationVersionParams) WithContext

WithContext adds the context to the get configuration version params

func (*GetConfigurationVersionParams) WithDefaults

WithDefaults hydrates default values in the get configuration version params (not the query body).

All values with no default are reset to their zero value.

func (*GetConfigurationVersionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get configuration version params

func (*GetConfigurationVersionParams) WithTimeout

WithTimeout adds the timeout to the get configuration version params

func (*GetConfigurationVersionParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get configuration version params

func (*GetConfigurationVersionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetConfigurationVersionReader

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

GetConfigurationVersionReader is a Reader for the GetConfigurationVersion structure.

func (*GetConfigurationVersionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetHAProxyConfigurationDefault

type GetHAProxyConfigurationDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

GetHAProxyConfigurationDefault describes a response with status code -1, with default header values.

General Error

func NewGetHAProxyConfigurationDefault

func NewGetHAProxyConfigurationDefault(code int) *GetHAProxyConfigurationDefault

NewGetHAProxyConfigurationDefault creates a GetHAProxyConfigurationDefault with default headers values

func (*GetHAProxyConfigurationDefault) Code

Code gets the status code for the get h a proxy configuration default response

func (*GetHAProxyConfigurationDefault) Error

func (*GetHAProxyConfigurationDefault) GetPayload

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

func (*GetHAProxyConfigurationDefault) IsClientError added in v1.1.0

func (o *GetHAProxyConfigurationDefault) IsClientError() bool

IsClientError returns true when this get h a proxy configuration default response has a 4xx status code

func (*GetHAProxyConfigurationDefault) IsCode added in v1.1.0

func (o *GetHAProxyConfigurationDefault) IsCode(code int) bool

IsCode returns true when this get h a proxy configuration default response a status code equal to that given

func (*GetHAProxyConfigurationDefault) IsRedirect added in v1.1.0

func (o *GetHAProxyConfigurationDefault) IsRedirect() bool

IsRedirect returns true when this get h a proxy configuration default response has a 3xx status code

func (*GetHAProxyConfigurationDefault) IsServerError added in v1.1.0

func (o *GetHAProxyConfigurationDefault) IsServerError() bool

IsServerError returns true when this get h a proxy configuration default response has a 5xx status code

func (*GetHAProxyConfigurationDefault) IsSuccess added in v1.1.0

func (o *GetHAProxyConfigurationDefault) IsSuccess() bool

IsSuccess returns true when this get h a proxy configuration default response has a 2xx status code

func (*GetHAProxyConfigurationDefault) String added in v1.1.0

type GetHAProxyConfigurationOK

type GetHAProxyConfigurationOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetHAProxyConfigurationOKBody
}

GetHAProxyConfigurationOK describes a response with status code 200, with default header values.

Operation successful

func NewGetHAProxyConfigurationOK

func NewGetHAProxyConfigurationOK() *GetHAProxyConfigurationOK

NewGetHAProxyConfigurationOK creates a GetHAProxyConfigurationOK with default headers values

func (*GetHAProxyConfigurationOK) Code added in v1.1.5

func (o *GetHAProxyConfigurationOK) Code() int

Code gets the status code for the get h a proxy configuration o k response

func (*GetHAProxyConfigurationOK) Error

func (o *GetHAProxyConfigurationOK) Error() string

func (*GetHAProxyConfigurationOK) GetPayload

func (*GetHAProxyConfigurationOK) IsClientError added in v1.1.0

func (o *GetHAProxyConfigurationOK) IsClientError() bool

IsClientError returns true when this get h a proxy configuration o k response has a 4xx status code

func (*GetHAProxyConfigurationOK) IsCode added in v1.1.0

func (o *GetHAProxyConfigurationOK) IsCode(code int) bool

IsCode returns true when this get h a proxy configuration o k response a status code equal to that given

func (*GetHAProxyConfigurationOK) IsRedirect added in v1.1.0

func (o *GetHAProxyConfigurationOK) IsRedirect() bool

IsRedirect returns true when this get h a proxy configuration o k response has a 3xx status code

func (*GetHAProxyConfigurationOK) IsServerError added in v1.1.0

func (o *GetHAProxyConfigurationOK) IsServerError() bool

IsServerError returns true when this get h a proxy configuration o k response has a 5xx status code

func (*GetHAProxyConfigurationOK) IsSuccess added in v1.1.0

func (o *GetHAProxyConfigurationOK) IsSuccess() bool

IsSuccess returns true when this get h a proxy configuration o k response has a 2xx status code

func (*GetHAProxyConfigurationOK) String added in v1.1.0

func (o *GetHAProxyConfigurationOK) String() string

type GetHAProxyConfigurationOKBody

type GetHAProxyConfigurationOKBody struct {

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

	// data
	// Required: true
	Data *string `json:"data"`
}

GetHAProxyConfigurationOKBody get h a proxy configuration o k body swagger:model GetHAProxyConfigurationOKBody

func (*GetHAProxyConfigurationOKBody) ContextValidate

func (o *GetHAProxyConfigurationOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get h a proxy configuration o k body based on context it is used

func (*GetHAProxyConfigurationOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetHAProxyConfigurationOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetHAProxyConfigurationOKBody) Validate

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

Validate validates this get h a proxy configuration o k body

type GetHAProxyConfigurationParams

type GetHAProxyConfigurationParams struct {

	/* 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
}

GetHAProxyConfigurationParams contains all the parameters to send to the API endpoint

for the get h a proxy configuration operation.

Typically these are written to a http.Request.

func NewGetHAProxyConfigurationParams

func NewGetHAProxyConfigurationParams() *GetHAProxyConfigurationParams

NewGetHAProxyConfigurationParams creates a new GetHAProxyConfigurationParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetHAProxyConfigurationParamsWithContext

func NewGetHAProxyConfigurationParamsWithContext(ctx context.Context) *GetHAProxyConfigurationParams

NewGetHAProxyConfigurationParamsWithContext creates a new GetHAProxyConfigurationParams object with the ability to set a context for a request.

func NewGetHAProxyConfigurationParamsWithHTTPClient

func NewGetHAProxyConfigurationParamsWithHTTPClient(client *http.Client) *GetHAProxyConfigurationParams

NewGetHAProxyConfigurationParamsWithHTTPClient creates a new GetHAProxyConfigurationParams object with the ability to set a custom HTTPClient for a request.

func NewGetHAProxyConfigurationParamsWithTimeout

func NewGetHAProxyConfigurationParamsWithTimeout(timeout time.Duration) *GetHAProxyConfigurationParams

NewGetHAProxyConfigurationParamsWithTimeout creates a new GetHAProxyConfigurationParams object with the ability to set a timeout on a request.

func (*GetHAProxyConfigurationParams) SetContext

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

SetContext adds the context to the get h a proxy configuration params

func (*GetHAProxyConfigurationParams) SetDefaults

func (o *GetHAProxyConfigurationParams) SetDefaults()

SetDefaults hydrates default values in the get h a proxy configuration params (not the query body).

All values with no default are reset to their zero value.

func (*GetHAProxyConfigurationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get h a proxy configuration params

func (*GetHAProxyConfigurationParams) SetTimeout

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

SetTimeout adds the timeout to the get h a proxy configuration params

func (*GetHAProxyConfigurationParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get h a proxy configuration params

func (*GetHAProxyConfigurationParams) SetVersion

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

SetVersion adds the version to the get h a proxy configuration params

func (*GetHAProxyConfigurationParams) WithContext

WithContext adds the context to the get h a proxy configuration params

func (*GetHAProxyConfigurationParams) WithDefaults

WithDefaults hydrates default values in the get h a proxy configuration params (not the query body).

All values with no default are reset to their zero value.

func (*GetHAProxyConfigurationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get h a proxy configuration params

func (*GetHAProxyConfigurationParams) WithTimeout

WithTimeout adds the timeout to the get h a proxy configuration params

func (*GetHAProxyConfigurationParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get h a proxy configuration params

func (*GetHAProxyConfigurationParams) WithVersion

WithVersion adds the version to the get h a proxy configuration params

func (*GetHAProxyConfigurationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetHAProxyConfigurationReader

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

GetHAProxyConfigurationReader is a Reader for the GetHAProxyConfiguration structure.

func (*GetHAProxyConfigurationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostHAProxyConfigurationAccepted

type PostHAProxyConfigurationAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload string
}

PostHAProxyConfigurationAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewPostHAProxyConfigurationAccepted

func NewPostHAProxyConfigurationAccepted() *PostHAProxyConfigurationAccepted

NewPostHAProxyConfigurationAccepted creates a PostHAProxyConfigurationAccepted with default headers values

func (*PostHAProxyConfigurationAccepted) Code added in v1.1.5

Code gets the status code for the post h a proxy configuration accepted response

func (*PostHAProxyConfigurationAccepted) Error

func (*PostHAProxyConfigurationAccepted) GetPayload

func (o *PostHAProxyConfigurationAccepted) GetPayload() string

func (*PostHAProxyConfigurationAccepted) IsClientError added in v1.1.0

func (o *PostHAProxyConfigurationAccepted) IsClientError() bool

IsClientError returns true when this post h a proxy configuration accepted response has a 4xx status code

func (*PostHAProxyConfigurationAccepted) IsCode added in v1.1.0

func (o *PostHAProxyConfigurationAccepted) IsCode(code int) bool

IsCode returns true when this post h a proxy configuration accepted response a status code equal to that given

func (*PostHAProxyConfigurationAccepted) IsRedirect added in v1.1.0

func (o *PostHAProxyConfigurationAccepted) IsRedirect() bool

IsRedirect returns true when this post h a proxy configuration accepted response has a 3xx status code

func (*PostHAProxyConfigurationAccepted) IsServerError added in v1.1.0

func (o *PostHAProxyConfigurationAccepted) IsServerError() bool

IsServerError returns true when this post h a proxy configuration accepted response has a 5xx status code

func (*PostHAProxyConfigurationAccepted) IsSuccess added in v1.1.0

func (o *PostHAProxyConfigurationAccepted) IsSuccess() bool

IsSuccess returns true when this post h a proxy configuration accepted response has a 2xx status code

func (*PostHAProxyConfigurationAccepted) String added in v1.1.0

type PostHAProxyConfigurationBadRequest

type PostHAProxyConfigurationBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

PostHAProxyConfigurationBadRequest describes a response with status code 400, with default header values.

Bad request

func NewPostHAProxyConfigurationBadRequest

func NewPostHAProxyConfigurationBadRequest() *PostHAProxyConfigurationBadRequest

NewPostHAProxyConfigurationBadRequest creates a PostHAProxyConfigurationBadRequest with default headers values

func (*PostHAProxyConfigurationBadRequest) Code added in v1.1.5

Code gets the status code for the post h a proxy configuration bad request response

func (*PostHAProxyConfigurationBadRequest) Error

func (*PostHAProxyConfigurationBadRequest) GetPayload

func (*PostHAProxyConfigurationBadRequest) IsClientError added in v1.1.0

func (o *PostHAProxyConfigurationBadRequest) IsClientError() bool

IsClientError returns true when this post h a proxy configuration bad request response has a 4xx status code

func (*PostHAProxyConfigurationBadRequest) IsCode added in v1.1.0

IsCode returns true when this post h a proxy configuration bad request response a status code equal to that given

func (*PostHAProxyConfigurationBadRequest) IsRedirect added in v1.1.0

func (o *PostHAProxyConfigurationBadRequest) IsRedirect() bool

IsRedirect returns true when this post h a proxy configuration bad request response has a 3xx status code

func (*PostHAProxyConfigurationBadRequest) IsServerError added in v1.1.0

func (o *PostHAProxyConfigurationBadRequest) IsServerError() bool

IsServerError returns true when this post h a proxy configuration bad request response has a 5xx status code

func (*PostHAProxyConfigurationBadRequest) IsSuccess added in v1.1.0

IsSuccess returns true when this post h a proxy configuration bad request response has a 2xx status code

func (*PostHAProxyConfigurationBadRequest) String added in v1.1.0

type PostHAProxyConfigurationCreated

type PostHAProxyConfigurationCreated struct {
	Payload string
}

PostHAProxyConfigurationCreated describes a response with status code 201, with default header values.

New HAProxy configuration pushed

func NewPostHAProxyConfigurationCreated

func NewPostHAProxyConfigurationCreated() *PostHAProxyConfigurationCreated

NewPostHAProxyConfigurationCreated creates a PostHAProxyConfigurationCreated with default headers values

func (*PostHAProxyConfigurationCreated) Code added in v1.1.5

Code gets the status code for the post h a proxy configuration created response

func (*PostHAProxyConfigurationCreated) Error

func (*PostHAProxyConfigurationCreated) GetPayload

func (o *PostHAProxyConfigurationCreated) GetPayload() string

func (*PostHAProxyConfigurationCreated) IsClientError added in v1.1.0

func (o *PostHAProxyConfigurationCreated) IsClientError() bool

IsClientError returns true when this post h a proxy configuration created response has a 4xx status code

func (*PostHAProxyConfigurationCreated) IsCode added in v1.1.0

func (o *PostHAProxyConfigurationCreated) IsCode(code int) bool

IsCode returns true when this post h a proxy configuration created response a status code equal to that given

func (*PostHAProxyConfigurationCreated) IsRedirect added in v1.1.0

func (o *PostHAProxyConfigurationCreated) IsRedirect() bool

IsRedirect returns true when this post h a proxy configuration created response has a 3xx status code

func (*PostHAProxyConfigurationCreated) IsServerError added in v1.1.0

func (o *PostHAProxyConfigurationCreated) IsServerError() bool

IsServerError returns true when this post h a proxy configuration created response has a 5xx status code

func (*PostHAProxyConfigurationCreated) IsSuccess added in v1.1.0

func (o *PostHAProxyConfigurationCreated) IsSuccess() bool

IsSuccess returns true when this post h a proxy configuration created response has a 2xx status code

func (*PostHAProxyConfigurationCreated) String added in v1.1.0

type PostHAProxyConfigurationDefault

type PostHAProxyConfigurationDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

PostHAProxyConfigurationDefault describes a response with status code -1, with default header values.

General Error

func NewPostHAProxyConfigurationDefault

func NewPostHAProxyConfigurationDefault(code int) *PostHAProxyConfigurationDefault

NewPostHAProxyConfigurationDefault creates a PostHAProxyConfigurationDefault with default headers values

func (*PostHAProxyConfigurationDefault) Code

Code gets the status code for the post h a proxy configuration default response

func (*PostHAProxyConfigurationDefault) Error

func (*PostHAProxyConfigurationDefault) GetPayload

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

func (*PostHAProxyConfigurationDefault) IsClientError added in v1.1.0

func (o *PostHAProxyConfigurationDefault) IsClientError() bool

IsClientError returns true when this post h a proxy configuration default response has a 4xx status code

func (*PostHAProxyConfigurationDefault) IsCode added in v1.1.0

func (o *PostHAProxyConfigurationDefault) IsCode(code int) bool

IsCode returns true when this post h a proxy configuration default response a status code equal to that given

func (*PostHAProxyConfigurationDefault) IsRedirect added in v1.1.0

func (o *PostHAProxyConfigurationDefault) IsRedirect() bool

IsRedirect returns true when this post h a proxy configuration default response has a 3xx status code

func (*PostHAProxyConfigurationDefault) IsServerError added in v1.1.0

func (o *PostHAProxyConfigurationDefault) IsServerError() bool

IsServerError returns true when this post h a proxy configuration default response has a 5xx status code

func (*PostHAProxyConfigurationDefault) IsSuccess added in v1.1.0

func (o *PostHAProxyConfigurationDefault) IsSuccess() bool

IsSuccess returns true when this post h a proxy configuration default response has a 2xx status code

func (*PostHAProxyConfigurationDefault) String added in v1.1.0

type PostHAProxyConfigurationParams

type PostHAProxyConfigurationParams struct {

	/* XRuntimeActions.

	   List of Runtime API commands with parameters separated by ';'
	*/
	XRuntimeActions *string

	// Data.
	Data string

	/* 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

	/* OnlyValidate.

	   If set, only validates configuration, without applying it
	*/
	OnlyValidate *bool

	/* SkipReload.

	   If set, no reload will be initiated and runtime actions from X-Runtime-Actions will be applied
	*/
	SkipReload *bool

	/* SkipVersion.

	   If set, no version check will be done and the pushed config will be enforced
	*/
	SkipVersion *bool

	/* 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
}

PostHAProxyConfigurationParams contains all the parameters to send to the API endpoint

for the post h a proxy configuration operation.

Typically these are written to a http.Request.

func NewPostHAProxyConfigurationParams

func NewPostHAProxyConfigurationParams() *PostHAProxyConfigurationParams

NewPostHAProxyConfigurationParams creates a new PostHAProxyConfigurationParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPostHAProxyConfigurationParamsWithContext

func NewPostHAProxyConfigurationParamsWithContext(ctx context.Context) *PostHAProxyConfigurationParams

NewPostHAProxyConfigurationParamsWithContext creates a new PostHAProxyConfigurationParams object with the ability to set a context for a request.

func NewPostHAProxyConfigurationParamsWithHTTPClient

func NewPostHAProxyConfigurationParamsWithHTTPClient(client *http.Client) *PostHAProxyConfigurationParams

NewPostHAProxyConfigurationParamsWithHTTPClient creates a new PostHAProxyConfigurationParams object with the ability to set a custom HTTPClient for a request.

func NewPostHAProxyConfigurationParamsWithTimeout

func NewPostHAProxyConfigurationParamsWithTimeout(timeout time.Duration) *PostHAProxyConfigurationParams

NewPostHAProxyConfigurationParamsWithTimeout creates a new PostHAProxyConfigurationParams object with the ability to set a timeout on a request.

func (*PostHAProxyConfigurationParams) SetContext

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

SetContext adds the context to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) SetData

func (o *PostHAProxyConfigurationParams) SetData(data string)

SetData adds the data to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) SetDefaults

func (o *PostHAProxyConfigurationParams) SetDefaults()

SetDefaults hydrates default values in the post h a proxy configuration params (not the query body).

All values with no default are reset to their zero value.

func (*PostHAProxyConfigurationParams) SetForceReload

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

SetForceReload adds the forceReload to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) SetOnlyValidate

func (o *PostHAProxyConfigurationParams) SetOnlyValidate(onlyValidate *bool)

SetOnlyValidate adds the onlyValidate to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) SetSkipReload

func (o *PostHAProxyConfigurationParams) SetSkipReload(skipReload *bool)

SetSkipReload adds the skipReload to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) SetSkipVersion

func (o *PostHAProxyConfigurationParams) SetSkipVersion(skipVersion *bool)

SetSkipVersion adds the skipVersion to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) SetTimeout

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

SetTimeout adds the timeout to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) SetVersion

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

SetVersion adds the version to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) SetXRuntimeActions

func (o *PostHAProxyConfigurationParams) SetXRuntimeActions(xRuntimeActions *string)

SetXRuntimeActions adds the xRuntimeActions to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) WithContext

WithContext adds the context to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) WithData

WithData adds the data to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) WithDefaults

WithDefaults hydrates default values in the post h a proxy configuration params (not the query body).

All values with no default are reset to their zero value.

func (*PostHAProxyConfigurationParams) WithForceReload

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

WithForceReload adds the forceReload to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) WithOnlyValidate

func (o *PostHAProxyConfigurationParams) WithOnlyValidate(onlyValidate *bool) *PostHAProxyConfigurationParams

WithOnlyValidate adds the onlyValidate to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) WithSkipReload

func (o *PostHAProxyConfigurationParams) WithSkipReload(skipReload *bool) *PostHAProxyConfigurationParams

WithSkipReload adds the skipReload to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) WithSkipVersion

func (o *PostHAProxyConfigurationParams) WithSkipVersion(skipVersion *bool) *PostHAProxyConfigurationParams

WithSkipVersion adds the skipVersion to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) WithTimeout

WithTimeout adds the timeout to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) WithVersion

WithVersion adds the version to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) WithXRuntimeActions

func (o *PostHAProxyConfigurationParams) WithXRuntimeActions(xRuntimeActions *string) *PostHAProxyConfigurationParams

WithXRuntimeActions adds the xRuntimeActions to the post h a proxy configuration params

func (*PostHAProxyConfigurationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostHAProxyConfigurationReader

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

PostHAProxyConfigurationReader is a Reader for the PostHAProxyConfiguration structure.

func (*PostHAProxyConfigurationReader) ReadResponse

func (o *PostHAProxyConfigurationReader) 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