configuration

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const GetHAProxyConfigurationOKCode int = 200

GetHAProxyConfigurationOKCode is the HTTP code returned for type GetHAProxyConfigurationOK

View Source
const PostHAProxyConfigurationAcceptedCode int = 202

PostHAProxyConfigurationAcceptedCode is the HTTP code returned for type PostHAProxyConfigurationAccepted

View Source
const PostHAProxyConfigurationBadRequestCode int = 400

PostHAProxyConfigurationBadRequestCode is the HTTP code returned for type PostHAProxyConfigurationBadRequest

View Source
const PostHAProxyConfigurationCreatedCode int = 201

PostHAProxyConfigurationCreatedCode is the HTTP code returned for type PostHAProxyConfigurationCreated

Variables

This section is empty.

Functions

This section is empty.

Types

type GetHAProxyConfiguration

type GetHAProxyConfiguration struct {
	Context *middleware.Context
	Handler GetHAProxyConfigurationHandler
}

GetHAProxyConfiguration swagger:route GET /services/haproxy/configuration/raw Configuration getHAProxyConfiguration

Return HAProxy configuration

Returns HAProxy configuration file in plain text

func NewGetHAProxyConfiguration

func NewGetHAProxyConfiguration(ctx *middleware.Context, handler GetHAProxyConfigurationHandler) *GetHAProxyConfiguration

NewGetHAProxyConfiguration creates a new http.Handler for the get h a proxy configuration operation

func (*GetHAProxyConfiguration) ServeHTTP

type GetHAProxyConfigurationDefault

type GetHAProxyConfigurationDefault struct {

	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetHAProxyConfigurationDefault General Error

swagger:response getHAProxyConfigurationDefault

func NewGetHAProxyConfigurationDefault

func NewGetHAProxyConfigurationDefault(code int) *GetHAProxyConfigurationDefault

NewGetHAProxyConfigurationDefault creates GetHAProxyConfigurationDefault with default headers values

func (*GetHAProxyConfigurationDefault) SetConfigurationVersion added in v1.2.2

func (o *GetHAProxyConfigurationDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get h a proxy configuration default response

func (*GetHAProxyConfigurationDefault) SetPayload

func (o *GetHAProxyConfigurationDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get h a proxy configuration default response

func (*GetHAProxyConfigurationDefault) SetStatusCode

func (o *GetHAProxyConfigurationDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get h a proxy configuration default response

func (*GetHAProxyConfigurationDefault) WithConfigurationVersion added in v1.2.2

func (o *GetHAProxyConfigurationDefault) WithConfigurationVersion(configurationVersion int64) *GetHAProxyConfigurationDefault

WithConfigurationVersion adds the configurationVersion to the get h a proxy configuration default response

func (*GetHAProxyConfigurationDefault) WithPayload

WithPayload adds the payload to the get h a proxy configuration default response

func (*GetHAProxyConfigurationDefault) WithStatusCode

WithStatusCode adds the status to the get h a proxy configuration default response

func (*GetHAProxyConfigurationDefault) WriteResponse

func (o *GetHAProxyConfigurationDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetHAProxyConfigurationHandler

type GetHAProxyConfigurationHandler interface {
	Handle(GetHAProxyConfigurationParams, interface{}) middleware.Responder
}

GetHAProxyConfigurationHandler interface for that can handle valid get h a proxy configuration params

type GetHAProxyConfigurationHandlerFunc

type GetHAProxyConfigurationHandlerFunc func(GetHAProxyConfigurationParams, interface{}) middleware.Responder

GetHAProxyConfigurationHandlerFunc turns a function with the right signature into a get h a proxy configuration handler

func (GetHAProxyConfigurationHandlerFunc) Handle

Handle executing the request and returning a response

type GetHAProxyConfigurationOK

type GetHAProxyConfigurationOK struct {
	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *GetHAProxyConfigurationOKBody `json:"body,omitempty"`
}

GetHAProxyConfigurationOK Operation successful

swagger:response getHAProxyConfigurationOK

func NewGetHAProxyConfigurationOK

func NewGetHAProxyConfigurationOK() *GetHAProxyConfigurationOK

NewGetHAProxyConfigurationOK creates GetHAProxyConfigurationOK with default headers values

func (*GetHAProxyConfigurationOK) SetConfigurationVersion added in v1.2.2

func (o *GetHAProxyConfigurationOK) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get h a proxy configuration o k response

func (*GetHAProxyConfigurationOK) SetPayload

SetPayload sets the payload to the get h a proxy configuration o k response

func (*GetHAProxyConfigurationOK) WithConfigurationVersion added in v1.2.2

func (o *GetHAProxyConfigurationOK) WithConfigurationVersion(configurationVersion int64) *GetHAProxyConfigurationOK

WithConfigurationVersion adds the configurationVersion to the get h a proxy configuration o k response

func (*GetHAProxyConfigurationOK) WithPayload

WithPayload adds the payload to the get h a proxy configuration o k response

func (*GetHAProxyConfigurationOK) WriteResponse

func (o *GetHAProxyConfigurationOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

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 {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	  In: query
	*/
	TransactionID *string
	/*Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	  In: query
	*/
	Version *int64
}

GetHAProxyConfigurationParams contains all the bound params for the get h a proxy configuration operation typically these are obtained from a http.Request

swagger:parameters getHAProxyConfiguration

func NewGetHAProxyConfigurationParams

func NewGetHAProxyConfigurationParams() GetHAProxyConfigurationParams

NewGetHAProxyConfigurationParams creates a new GetHAProxyConfigurationParams object no default values defined in spec.

func (*GetHAProxyConfigurationParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetHAProxyConfigurationParams() beforehand.

type GetHAProxyConfigurationURL

type GetHAProxyConfigurationURL struct {
	TransactionID *string
	Version       *int64
	// contains filtered or unexported fields
}

GetHAProxyConfigurationURL generates an URL for the get h a proxy configuration operation

func (*GetHAProxyConfigurationURL) Build

func (o *GetHAProxyConfigurationURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetHAProxyConfigurationURL) BuildFull

func (o *GetHAProxyConfigurationURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetHAProxyConfigurationURL) Must

func (o *GetHAProxyConfigurationURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetHAProxyConfigurationURL) SetBasePath

func (o *GetHAProxyConfigurationURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetHAProxyConfigurationURL) String

func (o *GetHAProxyConfigurationURL) String() string

String returns the string representation of the path with query string

func (*GetHAProxyConfigurationURL) StringFull

func (o *GetHAProxyConfigurationURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetHAProxyConfigurationURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type PostHAProxyConfiguration

type PostHAProxyConfiguration struct {
	Context *middleware.Context
	Handler PostHAProxyConfigurationHandler
}

PostHAProxyConfiguration swagger:route POST /services/haproxy/configuration/raw Configuration postHAProxyConfiguration

Push new haproxy configuration

Push a new haproxy configuration file in plain text

func NewPostHAProxyConfiguration

func NewPostHAProxyConfiguration(ctx *middleware.Context, handler PostHAProxyConfigurationHandler) *PostHAProxyConfiguration

NewPostHAProxyConfiguration creates a new http.Handler for the post h a proxy configuration operation

func (*PostHAProxyConfiguration) ServeHTTP

type PostHAProxyConfigurationAccepted

type PostHAProxyConfigurationAccepted struct {
	/*ID of the requested reload

	 */
	ReloadID string `json:"Reload-ID"`

	/*
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

PostHAProxyConfigurationAccepted Configuration change accepted and reload requested

swagger:response postHAProxyConfigurationAccepted

func NewPostHAProxyConfigurationAccepted

func NewPostHAProxyConfigurationAccepted() *PostHAProxyConfigurationAccepted

NewPostHAProxyConfigurationAccepted creates PostHAProxyConfigurationAccepted with default headers values

func (*PostHAProxyConfigurationAccepted) SetPayload

func (o *PostHAProxyConfigurationAccepted) SetPayload(payload string)

SetPayload sets the payload to the post h a proxy configuration accepted response

func (*PostHAProxyConfigurationAccepted) SetReloadID

func (o *PostHAProxyConfigurationAccepted) SetReloadID(reloadID string)

SetReloadID sets the reloadId to the post h a proxy configuration accepted response

func (*PostHAProxyConfigurationAccepted) WithPayload

WithPayload adds the payload to the post h a proxy configuration accepted response

func (*PostHAProxyConfigurationAccepted) WithReloadID

WithReloadID adds the reloadId to the post h a proxy configuration accepted response

func (*PostHAProxyConfigurationAccepted) WriteResponse

func (o *PostHAProxyConfigurationAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostHAProxyConfigurationBadRequest

type PostHAProxyConfigurationBadRequest struct {
	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

PostHAProxyConfigurationBadRequest Bad request

swagger:response postHAProxyConfigurationBadRequest

func NewPostHAProxyConfigurationBadRequest

func NewPostHAProxyConfigurationBadRequest() *PostHAProxyConfigurationBadRequest

NewPostHAProxyConfigurationBadRequest creates PostHAProxyConfigurationBadRequest with default headers values

func (*PostHAProxyConfigurationBadRequest) SetConfigurationVersion added in v1.2.2

func (o *PostHAProxyConfigurationBadRequest) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the post h a proxy configuration bad request response

func (*PostHAProxyConfigurationBadRequest) SetPayload

func (o *PostHAProxyConfigurationBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the post h a proxy configuration bad request response

func (*PostHAProxyConfigurationBadRequest) WithConfigurationVersion added in v1.2.2

func (o *PostHAProxyConfigurationBadRequest) WithConfigurationVersion(configurationVersion int64) *PostHAProxyConfigurationBadRequest

WithConfigurationVersion adds the configurationVersion to the post h a proxy configuration bad request response

func (*PostHAProxyConfigurationBadRequest) WithPayload

WithPayload adds the payload to the post h a proxy configuration bad request response

func (*PostHAProxyConfigurationBadRequest) WriteResponse

WriteResponse to the client

type PostHAProxyConfigurationCreated

type PostHAProxyConfigurationCreated struct {

	/*
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

PostHAProxyConfigurationCreated New HAProxy configuration pushed

swagger:response postHAProxyConfigurationCreated

func NewPostHAProxyConfigurationCreated

func NewPostHAProxyConfigurationCreated() *PostHAProxyConfigurationCreated

NewPostHAProxyConfigurationCreated creates PostHAProxyConfigurationCreated with default headers values

func (*PostHAProxyConfigurationCreated) SetPayload

func (o *PostHAProxyConfigurationCreated) SetPayload(payload string)

SetPayload sets the payload to the post h a proxy configuration created response

func (*PostHAProxyConfigurationCreated) WithPayload

WithPayload adds the payload to the post h a proxy configuration created response

func (*PostHAProxyConfigurationCreated) WriteResponse

func (o *PostHAProxyConfigurationCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostHAProxyConfigurationDefault

type PostHAProxyConfigurationDefault struct {

	/*Configuration file version

	 */
	ConfigurationVersion int64 `json:"Configuration-Version"`

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

PostHAProxyConfigurationDefault General Error

swagger:response postHAProxyConfigurationDefault

func NewPostHAProxyConfigurationDefault

func NewPostHAProxyConfigurationDefault(code int) *PostHAProxyConfigurationDefault

NewPostHAProxyConfigurationDefault creates PostHAProxyConfigurationDefault with default headers values

func (*PostHAProxyConfigurationDefault) SetConfigurationVersion added in v1.2.2

func (o *PostHAProxyConfigurationDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the post h a proxy configuration default response

func (*PostHAProxyConfigurationDefault) SetPayload

func (o *PostHAProxyConfigurationDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the post h a proxy configuration default response

func (*PostHAProxyConfigurationDefault) SetStatusCode

func (o *PostHAProxyConfigurationDefault) SetStatusCode(code int)

SetStatusCode sets the status to the post h a proxy configuration default response

func (*PostHAProxyConfigurationDefault) WithConfigurationVersion added in v1.2.2

func (o *PostHAProxyConfigurationDefault) WithConfigurationVersion(configurationVersion int64) *PostHAProxyConfigurationDefault

WithConfigurationVersion adds the configurationVersion to the post h a proxy configuration default response

func (*PostHAProxyConfigurationDefault) WithPayload

WithPayload adds the payload to the post h a proxy configuration default response

func (*PostHAProxyConfigurationDefault) WithStatusCode

WithStatusCode adds the status to the post h a proxy configuration default response

func (*PostHAProxyConfigurationDefault) WriteResponse

func (o *PostHAProxyConfigurationDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostHAProxyConfigurationHandler

type PostHAProxyConfigurationHandler interface {
	Handle(PostHAProxyConfigurationParams, interface{}) middleware.Responder
}

PostHAProxyConfigurationHandler interface for that can handle valid post h a proxy configuration params

type PostHAProxyConfigurationHandlerFunc

type PostHAProxyConfigurationHandlerFunc func(PostHAProxyConfigurationParams, interface{}) middleware.Responder

PostHAProxyConfigurationHandlerFunc turns a function with the right signature into a post h a proxy configuration handler

func (PostHAProxyConfigurationHandlerFunc) Handle

Handle executing the request and returning a response

type PostHAProxyConfigurationParams

type PostHAProxyConfigurationParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Data string
	/*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.
	  In: query
	  Default: false
	*/
	ForceReload *bool
	/*Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	  In: query
	*/
	Version *int64
}

PostHAProxyConfigurationParams contains all the bound params for the post h a proxy configuration operation typically these are obtained from a http.Request

swagger:parameters postHAProxyConfiguration

func NewPostHAProxyConfigurationParams

func NewPostHAProxyConfigurationParams() PostHAProxyConfigurationParams

NewPostHAProxyConfigurationParams creates a new PostHAProxyConfigurationParams object with the default values initialized.

func (*PostHAProxyConfigurationParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewPostHAProxyConfigurationParams() beforehand.

type PostHAProxyConfigurationURL

type PostHAProxyConfigurationURL struct {
	ForceReload *bool
	Version     *int64
	// contains filtered or unexported fields
}

PostHAProxyConfigurationURL generates an URL for the post h a proxy configuration operation

func (*PostHAProxyConfigurationURL) Build

func (o *PostHAProxyConfigurationURL) Build() (*url.URL, error)

Build a url path and query string

func (*PostHAProxyConfigurationURL) BuildFull

func (o *PostHAProxyConfigurationURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PostHAProxyConfigurationURL) Must

func (o *PostHAProxyConfigurationURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PostHAProxyConfigurationURL) SetBasePath

func (o *PostHAProxyConfigurationURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*PostHAProxyConfigurationURL) String

func (o *PostHAProxyConfigurationURL) String() string

String returns the string representation of the path with query string

func (*PostHAProxyConfigurationURL) StringFull

func (o *PostHAProxyConfigurationURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PostHAProxyConfigurationURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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