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 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) 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) 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
- 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) 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) 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) 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) 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 ¶ added in v0.3.0
func (a *Client) GetConfigurationVersion(params *GetConfigurationVersionParams, authInfo runtime.ClientAuthInfoWriter) (*GetConfigurationVersionOK, error)
GetConfigurationVersion returns a configuration version
Returns configuration version.
func (*Client) GetHAProxyConfiguration ¶
func (a *Client) GetHAProxyConfiguration(params *GetHAProxyConfigurationParams, authInfo runtime.ClientAuthInfoWriter) (*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) (*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 ClientService ¶ added in v0.2.0
type ClientService interface { GetConfigurationVersion(params *GetConfigurationVersionParams, authInfo runtime.ClientAuthInfoWriter) (*GetConfigurationVersionOK, error) GetHAProxyConfiguration(params *GetHAProxyConfigurationParams, authInfo runtime.ClientAuthInfoWriter) (*GetHAProxyConfigurationOK, error) PostHAProxyConfiguration(params *PostHAProxyConfigurationParams, authInfo runtime.ClientAuthInfoWriter) (*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 ¶ added in v0.3.0
type GetConfigurationVersionDefault struct { /*Configuration file version */ ConfigurationVersion int64 Payload *models.Error // contains filtered or unexported fields }
GetConfigurationVersionDefault handles this case with default header values.
General Error
func NewGetConfigurationVersionDefault ¶ added in v0.3.0
func NewGetConfigurationVersionDefault(code int) *GetConfigurationVersionDefault
NewGetConfigurationVersionDefault creates a GetConfigurationVersionDefault with default headers values
func (*GetConfigurationVersionDefault) Code ¶ added in v0.3.0
func (o *GetConfigurationVersionDefault) Code() int
Code gets the status code for the get configuration version default response
func (*GetConfigurationVersionDefault) Error ¶ added in v0.3.0
func (o *GetConfigurationVersionDefault) Error() string
func (*GetConfigurationVersionDefault) GetPayload ¶ added in v0.3.0
func (o *GetConfigurationVersionDefault) GetPayload() *models.Error
type GetConfigurationVersionNotFound ¶ added in v0.3.0
type GetConfigurationVersionNotFound struct { /*Configuration file version */ ConfigurationVersion int64 Payload *models.Error }
GetConfigurationVersionNotFound handles this case with default header values.
The specified resource was not found
func NewGetConfigurationVersionNotFound ¶ added in v0.3.0
func NewGetConfigurationVersionNotFound() *GetConfigurationVersionNotFound
NewGetConfigurationVersionNotFound creates a GetConfigurationVersionNotFound with default headers values
func (*GetConfigurationVersionNotFound) Error ¶ added in v0.3.0
func (o *GetConfigurationVersionNotFound) Error() string
func (*GetConfigurationVersionNotFound) GetPayload ¶ added in v0.3.0
func (o *GetConfigurationVersionNotFound) GetPayload() *models.Error
type GetConfigurationVersionOK ¶ added in v0.3.0
type GetConfigurationVersionOK struct {
Payload int64
}
GetConfigurationVersionOK handles this case with default header values.
Configuration version
func NewGetConfigurationVersionOK ¶ added in v0.3.0
func NewGetConfigurationVersionOK() *GetConfigurationVersionOK
NewGetConfigurationVersionOK creates a GetConfigurationVersionOK with default headers values
func (*GetConfigurationVersionOK) Error ¶ added in v0.3.0
func (o *GetConfigurationVersionOK) Error() string
func (*GetConfigurationVersionOK) GetPayload ¶ added in v0.3.0
func (o *GetConfigurationVersionOK) GetPayload() int64
type GetConfigurationVersionParams ¶ added in v0.3.0
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 ¶ added in v0.3.0
func NewGetConfigurationVersionParams() *GetConfigurationVersionParams
NewGetConfigurationVersionParams creates a new GetConfigurationVersionParams object with the default values initialized.
func NewGetConfigurationVersionParamsWithContext ¶ added in v0.3.0
func NewGetConfigurationVersionParamsWithContext(ctx context.Context) *GetConfigurationVersionParams
NewGetConfigurationVersionParamsWithContext creates a new GetConfigurationVersionParams object with the default values initialized, and the ability to set a context for a request
func NewGetConfigurationVersionParamsWithHTTPClient ¶ added in v0.3.0
func NewGetConfigurationVersionParamsWithHTTPClient(client *http.Client) *GetConfigurationVersionParams
NewGetConfigurationVersionParamsWithHTTPClient creates a new GetConfigurationVersionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetConfigurationVersionParamsWithTimeout ¶ added in v0.3.0
func NewGetConfigurationVersionParamsWithTimeout(timeout time.Duration) *GetConfigurationVersionParams
NewGetConfigurationVersionParamsWithTimeout creates a new GetConfigurationVersionParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetConfigurationVersionParams) SetContext ¶ added in v0.3.0
func (o *GetConfigurationVersionParams) SetContext(ctx context.Context)
SetContext adds the context to the get configuration version params
func (*GetConfigurationVersionParams) SetHTTPClient ¶ added in v0.3.0
func (o *GetConfigurationVersionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get configuration version params
func (*GetConfigurationVersionParams) SetTimeout ¶ added in v0.3.0
func (o *GetConfigurationVersionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get configuration version params
func (*GetConfigurationVersionParams) SetTransactionID ¶ added in v0.3.0
func (o *GetConfigurationVersionParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the get configuration version params
func (*GetConfigurationVersionParams) WithContext ¶ added in v0.3.0
func (o *GetConfigurationVersionParams) WithContext(ctx context.Context) *GetConfigurationVersionParams
WithContext adds the context to the get configuration version params
func (*GetConfigurationVersionParams) WithHTTPClient ¶ added in v0.3.0
func (o *GetConfigurationVersionParams) WithHTTPClient(client *http.Client) *GetConfigurationVersionParams
WithHTTPClient adds the HTTPClient to the get configuration version params
func (*GetConfigurationVersionParams) WithTimeout ¶ added in v0.3.0
func (o *GetConfigurationVersionParams) WithTimeout(timeout time.Duration) *GetConfigurationVersionParams
WithTimeout adds the timeout to the get configuration version params
func (*GetConfigurationVersionParams) WithTransactionID ¶ added in v0.3.0
func (o *GetConfigurationVersionParams) WithTransactionID(transactionID *string) *GetConfigurationVersionParams
WithTransactionID adds the transactionID to the get configuration version params
func (*GetConfigurationVersionParams) WriteToRequest ¶ added in v0.3.0
func (o *GetConfigurationVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetConfigurationVersionReader ¶ added in v0.3.0
type GetConfigurationVersionReader struct {
// contains filtered or unexported fields
}
GetConfigurationVersionReader is a Reader for the GetConfigurationVersion structure.
func (*GetConfigurationVersionReader) ReadResponse ¶ added in v0.3.0
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 int64 Payload *models.Error // contains filtered or unexported fields }
GetHAProxyConfigurationDefault handles this case 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 ¶ added in v0.2.0
func (o *GetHAProxyConfigurationDefault) GetPayload() *models.Error
type GetHAProxyConfigurationOK ¶
type GetHAProxyConfigurationOK struct { /*Configuration file version */ ConfigurationVersion int64 Payload *GetHAProxyConfigurationOKBody }
GetHAProxyConfigurationOK handles this case 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 ¶ added in v0.2.0
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) 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 values initialized.
func NewGetHAProxyConfigurationParamsWithContext ¶
func NewGetHAProxyConfigurationParamsWithContext(ctx context.Context) *GetHAProxyConfigurationParams
NewGetHAProxyConfigurationParamsWithContext creates a new GetHAProxyConfigurationParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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 ¶ added in v0.2.0
func (o *PostHAProxyConfigurationAccepted) GetPayload() string
type PostHAProxyConfigurationBadRequest ¶
type PostHAProxyConfigurationBadRequest struct { /*Configuration file version */ ConfigurationVersion int64 Payload *models.Error }
PostHAProxyConfigurationBadRequest handles this case 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 ¶ added in v0.2.0
func (o *PostHAProxyConfigurationBadRequest) GetPayload() *models.Error
type PostHAProxyConfigurationCreated ¶
type PostHAProxyConfigurationCreated struct {
Payload string
}
PostHAProxyConfigurationCreated handles this case 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 ¶ added in v0.2.0
func (o *PostHAProxyConfigurationCreated) GetPayload() string
type PostHAProxyConfigurationDefault ¶
type PostHAProxyConfigurationDefault struct { /*Configuration file version */ ConfigurationVersion int64 Payload *models.Error // contains filtered or unexported fields }
PostHAProxyConfigurationDefault handles this case 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 ¶ added in v0.2.0
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 values initialized.
func NewPostHAProxyConfigurationParamsWithContext ¶
func NewPostHAProxyConfigurationParamsWithContext(ctx context.Context) *PostHAProxyConfigurationParams
NewPostHAProxyConfigurationParamsWithContext creates a new PostHAProxyConfigurationParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 ¶ added in v0.3.0
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) 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 ¶ added in v0.3.0
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.