Documentation ¶
Index ¶
- type Client
- func (a *Client) GetConfigurationVersion(params *GetConfigurationVersionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetConfigurationVersionOK, error)
- func (a *Client) GetHAProxyConfiguration(params *GetHAProxyConfigurationParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetHAProxyConfigurationOK, error)
- func (a *Client) PostHAProxyConfiguration(params *PostHAProxyConfigurationParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostHAProxyConfigurationCreated, *PostHAProxyConfigurationAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetConfigurationVersionDefault
- type GetConfigurationVersionNotFound
- type GetConfigurationVersionOK
- type GetConfigurationVersionParams
- func NewGetConfigurationVersionParams() *GetConfigurationVersionParams
- func NewGetConfigurationVersionParamsWithContext(ctx context.Context) *GetConfigurationVersionParams
- func NewGetConfigurationVersionParamsWithHTTPClient(client *http.Client) *GetConfigurationVersionParams
- func NewGetConfigurationVersionParamsWithTimeout(timeout time.Duration) *GetConfigurationVersionParams
- func (o *GetConfigurationVersionParams) SetContext(ctx context.Context)
- func (o *GetConfigurationVersionParams) SetDefaults()
- func (o *GetConfigurationVersionParams) SetHTTPClient(client *http.Client)
- func (o *GetConfigurationVersionParams) SetTimeout(timeout time.Duration)
- func (o *GetConfigurationVersionParams) SetTransactionID(transactionID *string)
- func (o *GetConfigurationVersionParams) WithContext(ctx context.Context) *GetConfigurationVersionParams
- func (o *GetConfigurationVersionParams) WithDefaults() *GetConfigurationVersionParams
- func (o *GetConfigurationVersionParams) WithHTTPClient(client *http.Client) *GetConfigurationVersionParams
- func (o *GetConfigurationVersionParams) WithTimeout(timeout time.Duration) *GetConfigurationVersionParams
- func (o *GetConfigurationVersionParams) WithTransactionID(transactionID *string) *GetConfigurationVersionParams
- func (o *GetConfigurationVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetConfigurationVersionReader
- type GetHAProxyConfigurationDefault
- type GetHAProxyConfigurationOK
- type GetHAProxyConfigurationOKBody
- func (o *GetHAProxyConfigurationOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetHAProxyConfigurationOKBody) MarshalBinary() ([]byte, error)
- func (o *GetHAProxyConfigurationOKBody) UnmarshalBinary(b []byte) error
- func (o *GetHAProxyConfigurationOKBody) Validate(formats strfmt.Registry) error
- type GetHAProxyConfigurationParams
- func NewGetHAProxyConfigurationParams() *GetHAProxyConfigurationParams
- func NewGetHAProxyConfigurationParamsWithContext(ctx context.Context) *GetHAProxyConfigurationParams
- func NewGetHAProxyConfigurationParamsWithHTTPClient(client *http.Client) *GetHAProxyConfigurationParams
- func NewGetHAProxyConfigurationParamsWithTimeout(timeout time.Duration) *GetHAProxyConfigurationParams
- func (o *GetHAProxyConfigurationParams) SetContext(ctx context.Context)
- func (o *GetHAProxyConfigurationParams) SetDefaults()
- func (o *GetHAProxyConfigurationParams) SetHTTPClient(client *http.Client)
- func (o *GetHAProxyConfigurationParams) SetTimeout(timeout time.Duration)
- func (o *GetHAProxyConfigurationParams) SetTransactionID(transactionID *string)
- func (o *GetHAProxyConfigurationParams) SetVersion(version *int64)
- func (o *GetHAProxyConfigurationParams) WithContext(ctx context.Context) *GetHAProxyConfigurationParams
- func (o *GetHAProxyConfigurationParams) WithDefaults() *GetHAProxyConfigurationParams
- func (o *GetHAProxyConfigurationParams) WithHTTPClient(client *http.Client) *GetHAProxyConfigurationParams
- func (o *GetHAProxyConfigurationParams) WithTimeout(timeout time.Duration) *GetHAProxyConfigurationParams
- func (o *GetHAProxyConfigurationParams) WithTransactionID(transactionID *string) *GetHAProxyConfigurationParams
- func (o *GetHAProxyConfigurationParams) WithVersion(version *int64) *GetHAProxyConfigurationParams
- func (o *GetHAProxyConfigurationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetHAProxyConfigurationReader
- type PostHAProxyConfigurationAccepted
- type PostHAProxyConfigurationBadRequest
- type PostHAProxyConfigurationCreated
- type PostHAProxyConfigurationDefault
- type PostHAProxyConfigurationParams
- func NewPostHAProxyConfigurationParams() *PostHAProxyConfigurationParams
- func NewPostHAProxyConfigurationParamsWithContext(ctx context.Context) *PostHAProxyConfigurationParams
- func NewPostHAProxyConfigurationParamsWithHTTPClient(client *http.Client) *PostHAProxyConfigurationParams
- func NewPostHAProxyConfigurationParamsWithTimeout(timeout time.Duration) *PostHAProxyConfigurationParams
- func (o *PostHAProxyConfigurationParams) SetContext(ctx context.Context)
- func (o *PostHAProxyConfigurationParams) SetData(data string)
- func (o *PostHAProxyConfigurationParams) SetDefaults()
- func (o *PostHAProxyConfigurationParams) SetForceReload(forceReload *bool)
- func (o *PostHAProxyConfigurationParams) SetHTTPClient(client *http.Client)
- func (o *PostHAProxyConfigurationParams) SetOnlyValidate(onlyValidate *bool)
- func (o *PostHAProxyConfigurationParams) SetSkipReload(skipReload *bool)
- func (o *PostHAProxyConfigurationParams) SetSkipVersion(skipVersion *bool)
- func (o *PostHAProxyConfigurationParams) SetTimeout(timeout time.Duration)
- func (o *PostHAProxyConfigurationParams) SetVersion(version *int64)
- func (o *PostHAProxyConfigurationParams) SetXRuntimeActions(xRuntimeActions *string)
- func (o *PostHAProxyConfigurationParams) WithContext(ctx context.Context) *PostHAProxyConfigurationParams
- func (o *PostHAProxyConfigurationParams) WithData(data string) *PostHAProxyConfigurationParams
- func (o *PostHAProxyConfigurationParams) WithDefaults() *PostHAProxyConfigurationParams
- func (o *PostHAProxyConfigurationParams) WithForceReload(forceReload *bool) *PostHAProxyConfigurationParams
- func (o *PostHAProxyConfigurationParams) WithHTTPClient(client *http.Client) *PostHAProxyConfigurationParams
- func (o *PostHAProxyConfigurationParams) WithOnlyValidate(onlyValidate *bool) *PostHAProxyConfigurationParams
- func (o *PostHAProxyConfigurationParams) WithSkipReload(skipReload *bool) *PostHAProxyConfigurationParams
- func (o *PostHAProxyConfigurationParams) WithSkipVersion(skipVersion *bool) *PostHAProxyConfigurationParams
- func (o *PostHAProxyConfigurationParams) WithTimeout(timeout time.Duration) *PostHAProxyConfigurationParams
- func (o *PostHAProxyConfigurationParams) WithVersion(version *int64) *PostHAProxyConfigurationParams
- func (o *PostHAProxyConfigurationParams) WithXRuntimeActions(xRuntimeActions *string) *PostHAProxyConfigurationParams
- func (o *PostHAProxyConfigurationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostHAProxyConfigurationReader
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 ¶
func (a *Client) PostHAProxyConfiguration(params *PostHAProxyConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostHAProxyConfigurationCreated, *PostHAProxyConfigurationAccepted, error)
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 ¶
func (o *GetConfigurationVersionDefault) Code() int
Code gets the status code for the get configuration version default response
func (*GetConfigurationVersionDefault) Error ¶
func (o *GetConfigurationVersionDefault) Error() string
func (*GetConfigurationVersionDefault) GetPayload ¶
func (o *GetConfigurationVersionDefault) GetPayload() *models.Error
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) Error ¶
func (o *GetConfigurationVersionNotFound) Error() string
func (*GetConfigurationVersionNotFound) GetPayload ¶
func (o *GetConfigurationVersionNotFound) GetPayload() *models.Error
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) Error ¶
func (o *GetConfigurationVersionOK) Error() string
func (*GetConfigurationVersionOK) GetPayload ¶
func (o *GetConfigurationVersionOK) GetPayload() int64
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 ¶
func (o *GetConfigurationVersionParams) WithContext(ctx context.Context) *GetConfigurationVersionParams
WithContext adds the context to the get configuration version params
func (*GetConfigurationVersionParams) WithDefaults ¶
func (o *GetConfigurationVersionParams) WithDefaults() *GetConfigurationVersionParams
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 ¶
func (o *GetConfigurationVersionParams) WithHTTPClient(client *http.Client) *GetConfigurationVersionParams
WithHTTPClient adds the HTTPClient to the get configuration version params
func (*GetConfigurationVersionParams) WithTimeout ¶
func (o *GetConfigurationVersionParams) WithTimeout(timeout time.Duration) *GetConfigurationVersionParams
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 ¶
func (o *GetConfigurationVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetHAProxyConfigurationDefault) Code() int
Code gets the status code for the get h a proxy configuration default response
func (*GetHAProxyConfigurationDefault) Error ¶
func (o *GetHAProxyConfigurationDefault) Error() string
func (*GetHAProxyConfigurationDefault) GetPayload ¶
func (o *GetHAProxyConfigurationDefault) GetPayload() *models.Error
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) Error ¶
func (o *GetHAProxyConfigurationOK) Error() string
func (*GetHAProxyConfigurationOK) GetPayload ¶
func (o *GetHAProxyConfigurationOK) GetPayload() *GetHAProxyConfigurationOKBody
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
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 ¶
func (o *GetHAProxyConfigurationParams) WithContext(ctx context.Context) *GetHAProxyConfigurationParams
WithContext adds the context to the get h a proxy configuration params
func (*GetHAProxyConfigurationParams) WithDefaults ¶
func (o *GetHAProxyConfigurationParams) WithDefaults() *GetHAProxyConfigurationParams
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 ¶
func (o *GetHAProxyConfigurationParams) WithHTTPClient(client *http.Client) *GetHAProxyConfigurationParams
WithHTTPClient adds the HTTPClient to the get h a proxy configuration params
func (*GetHAProxyConfigurationParams) WithTimeout ¶
func (o *GetHAProxyConfigurationParams) WithTimeout(timeout time.Duration) *GetHAProxyConfigurationParams
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 ¶
func (o *GetHAProxyConfigurationParams) WithVersion(version *int64) *GetHAProxyConfigurationParams
WithVersion adds the version to the get h a proxy configuration params
func (*GetHAProxyConfigurationParams) WriteToRequest ¶
func (o *GetHAProxyConfigurationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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) Error ¶
func (o *PostHAProxyConfigurationAccepted) Error() string
func (*PostHAProxyConfigurationAccepted) GetPayload ¶
func (o *PostHAProxyConfigurationAccepted) GetPayload() string
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) Error ¶
func (o *PostHAProxyConfigurationBadRequest) Error() string
func (*PostHAProxyConfigurationBadRequest) GetPayload ¶
func (o *PostHAProxyConfigurationBadRequest) GetPayload() *models.Error
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) Error ¶
func (o *PostHAProxyConfigurationCreated) Error() string
func (*PostHAProxyConfigurationCreated) GetPayload ¶
func (o *PostHAProxyConfigurationCreated) GetPayload() string
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 ¶
func (o *PostHAProxyConfigurationDefault) Code() int
Code gets the status code for the post h a proxy configuration default response
func (*PostHAProxyConfigurationDefault) Error ¶
func (o *PostHAProxyConfigurationDefault) Error() string
func (*PostHAProxyConfigurationDefault) GetPayload ¶
func (o *PostHAProxyConfigurationDefault) GetPayload() *models.Error
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 ¶
func (o *PostHAProxyConfigurationParams) WithContext(ctx context.Context) *PostHAProxyConfigurationParams
WithContext adds the context to the post h a proxy configuration params
func (*PostHAProxyConfigurationParams) WithData ¶
func (o *PostHAProxyConfigurationParams) WithData(data string) *PostHAProxyConfigurationParams
WithData adds the data to the post h a proxy configuration params
func (*PostHAProxyConfigurationParams) WithDefaults ¶
func (o *PostHAProxyConfigurationParams) WithDefaults() *PostHAProxyConfigurationParams
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 ¶
func (o *PostHAProxyConfigurationParams) WithHTTPClient(client *http.Client) *PostHAProxyConfigurationParams
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 ¶
func (o *PostHAProxyConfigurationParams) WithTimeout(timeout time.Duration) *PostHAProxyConfigurationParams
WithTimeout adds the timeout to the post h a proxy configuration params
func (*PostHAProxyConfigurationParams) WithVersion ¶
func (o *PostHAProxyConfigurationParams) WithVersion(version *int64) *PostHAProxyConfigurationParams
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 ¶
func (o *PostHAProxyConfigurationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.