configuration

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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

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

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

func (*GetConfigurationVersionDefault) Error added in v0.3.0

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

WithContext adds the context to the get configuration version params

func (*GetConfigurationVersionParams) WithHTTPClient added in v0.3.0

WithHTTPClient adds the HTTPClient to the get configuration version params

func (*GetConfigurationVersionParams) WithTimeout added in v0.3.0

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

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

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

func (*GetHAProxyConfigurationDefault) Error

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

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

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

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

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 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 (*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 (*PostHAProxyConfigurationBadRequest) GetPayload added in v0.2.0

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

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

func (*PostHAProxyConfigurationDefault) Error

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

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) 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 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

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