defaults

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const GetDefaultsOKCode int = 200

GetDefaultsOKCode is the HTTP code returned for type GetDefaultsOK

View Source
const ReplaceDefaultsAcceptedCode int = 202

ReplaceDefaultsAcceptedCode is the HTTP code returned for type ReplaceDefaultsAccepted

View Source
const ReplaceDefaultsBadRequestCode int = 400

ReplaceDefaultsBadRequestCode is the HTTP code returned for type ReplaceDefaultsBadRequest

View Source
const ReplaceDefaultsOKCode int = 200

ReplaceDefaultsOKCode is the HTTP code returned for type ReplaceDefaultsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetDefaults

type GetDefaults struct {
	Context *middleware.Context
	Handler GetDefaultsHandler
}

GetDefaults swagger:route GET /services/haproxy/configuration/defaults Defaults getDefaults

Return defaults part of configuration

Returns defaults part of configuration.

func NewGetDefaults

func NewGetDefaults(ctx *middleware.Context, handler GetDefaultsHandler) *GetDefaults

NewGetDefaults creates a new http.Handler for the get defaults operation

func (*GetDefaults) ServeHTTP

func (o *GetDefaults) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetDefaultsDefault

type GetDefaultsDefault struct {

	/*Configuration file version

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

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

GetDefaultsDefault General Error

swagger:response getDefaultsDefault

func NewGetDefaultsDefault

func NewGetDefaultsDefault(code int) *GetDefaultsDefault

NewGetDefaultsDefault creates GetDefaultsDefault with default headers values

func (*GetDefaultsDefault) SetConfigurationVersion added in v1.2.2

func (o *GetDefaultsDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get defaults default response

func (*GetDefaultsDefault) SetPayload

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

SetPayload sets the payload to the get defaults default response

func (*GetDefaultsDefault) SetStatusCode

func (o *GetDefaultsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get defaults default response

func (*GetDefaultsDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get defaults default response

func (*GetDefaultsDefault) WithPayload

func (o *GetDefaultsDefault) WithPayload(payload *models.Error) *GetDefaultsDefault

WithPayload adds the payload to the get defaults default response

func (*GetDefaultsDefault) WithStatusCode

func (o *GetDefaultsDefault) WithStatusCode(code int) *GetDefaultsDefault

WithStatusCode adds the status to the get defaults default response

func (*GetDefaultsDefault) WriteResponse

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

WriteResponse to the client

type GetDefaultsHandler

type GetDefaultsHandler interface {
	Handle(GetDefaultsParams, interface{}) middleware.Responder
}

GetDefaultsHandler interface for that can handle valid get defaults params

type GetDefaultsHandlerFunc

type GetDefaultsHandlerFunc func(GetDefaultsParams, interface{}) middleware.Responder

GetDefaultsHandlerFunc turns a function with the right signature into a get defaults handler

func (GetDefaultsHandlerFunc) Handle

func (fn GetDefaultsHandlerFunc) Handle(params GetDefaultsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetDefaultsOK

type GetDefaultsOK struct {
	/*Configuration file version

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

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

GetDefaultsOK Successful operation

swagger:response getDefaultsOK

func NewGetDefaultsOK

func NewGetDefaultsOK() *GetDefaultsOK

NewGetDefaultsOK creates GetDefaultsOK with default headers values

func (*GetDefaultsOK) SetConfigurationVersion added in v1.2.2

func (o *GetDefaultsOK) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get defaults o k response

func (*GetDefaultsOK) SetPayload

func (o *GetDefaultsOK) SetPayload(payload *GetDefaultsOKBody)

SetPayload sets the payload to the get defaults o k response

func (*GetDefaultsOK) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get defaults o k response

func (*GetDefaultsOK) WithPayload

func (o *GetDefaultsOK) WithPayload(payload *GetDefaultsOKBody) *GetDefaultsOK

WithPayload adds the payload to the get defaults o k response

func (*GetDefaultsOK) WriteResponse

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

WriteResponse to the client

type GetDefaultsOKBody

type GetDefaultsOKBody struct {

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

	// data
	Data *models.Defaults `json:"data,omitempty"`
}

GetDefaultsOKBody get defaults o k body swagger:model GetDefaultsOKBody

func (*GetDefaultsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDefaultsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDefaultsOKBody) Validate

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

Validate validates this get defaults o k body

type GetDefaultsParams

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

GetDefaultsParams contains all the bound params for the get defaults operation typically these are obtained from a http.Request

swagger:parameters getDefaults

func NewGetDefaultsParams

func NewGetDefaultsParams() GetDefaultsParams

NewGetDefaultsParams creates a new GetDefaultsParams object no default values defined in spec.

func (*GetDefaultsParams) BindRequest

func (o *GetDefaultsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

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 NewGetDefaultsParams() beforehand.

type GetDefaultsURL

type GetDefaultsURL struct {
	TransactionID *string
	// contains filtered or unexported fields
}

GetDefaultsURL generates an URL for the get defaults operation

func (*GetDefaultsURL) Build

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

Build a url path and query string

func (*GetDefaultsURL) BuildFull

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

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

func (*GetDefaultsURL) Must

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

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

func (*GetDefaultsURL) SetBasePath

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

func (o *GetDefaultsURL) String() string

String returns the string representation of the path with query string

func (*GetDefaultsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetDefaultsURL) WithBasePath

func (o *GetDefaultsURL) WithBasePath(bp string) *GetDefaultsURL

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 ReplaceDefaults

type ReplaceDefaults struct {
	Context *middleware.Context
	Handler ReplaceDefaultsHandler
}

ReplaceDefaults swagger:route PUT /services/haproxy/configuration/defaults Defaults replaceDefaults

Replace defaults

Replace defaults part of config

func NewReplaceDefaults

func NewReplaceDefaults(ctx *middleware.Context, handler ReplaceDefaultsHandler) *ReplaceDefaults

NewReplaceDefaults creates a new http.Handler for the replace defaults operation

func (*ReplaceDefaults) ServeHTTP

func (o *ReplaceDefaults) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ReplaceDefaultsAccepted

type ReplaceDefaultsAccepted struct {
	/*ID of the requested reload

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

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

ReplaceDefaultsAccepted Configuration change accepted and reload requested

swagger:response replaceDefaultsAccepted

func NewReplaceDefaultsAccepted

func NewReplaceDefaultsAccepted() *ReplaceDefaultsAccepted

NewReplaceDefaultsAccepted creates ReplaceDefaultsAccepted with default headers values

func (*ReplaceDefaultsAccepted) SetPayload

func (o *ReplaceDefaultsAccepted) SetPayload(payload *models.Defaults)

SetPayload sets the payload to the replace defaults accepted response

func (*ReplaceDefaultsAccepted) SetReloadID

func (o *ReplaceDefaultsAccepted) SetReloadID(reloadID string)

SetReloadID sets the reloadId to the replace defaults accepted response

func (*ReplaceDefaultsAccepted) WithPayload

WithPayload adds the payload to the replace defaults accepted response

func (*ReplaceDefaultsAccepted) WithReloadID

func (o *ReplaceDefaultsAccepted) WithReloadID(reloadID string) *ReplaceDefaultsAccepted

WithReloadID adds the reloadId to the replace defaults accepted response

func (*ReplaceDefaultsAccepted) WriteResponse

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

WriteResponse to the client

type ReplaceDefaultsBadRequest

type ReplaceDefaultsBadRequest struct {
	/*Configuration file version

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

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

ReplaceDefaultsBadRequest Bad request

swagger:response replaceDefaultsBadRequest

func NewReplaceDefaultsBadRequest

func NewReplaceDefaultsBadRequest() *ReplaceDefaultsBadRequest

NewReplaceDefaultsBadRequest creates ReplaceDefaultsBadRequest with default headers values

func (*ReplaceDefaultsBadRequest) SetConfigurationVersion added in v1.2.2

func (o *ReplaceDefaultsBadRequest) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the replace defaults bad request response

func (*ReplaceDefaultsBadRequest) SetPayload

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

SetPayload sets the payload to the replace defaults bad request response

func (*ReplaceDefaultsBadRequest) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the replace defaults bad request response

func (*ReplaceDefaultsBadRequest) WithPayload

WithPayload adds the payload to the replace defaults bad request response

func (*ReplaceDefaultsBadRequest) WriteResponse

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

WriteResponse to the client

type ReplaceDefaultsDefault

type ReplaceDefaultsDefault struct {

	/*Configuration file version

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

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

ReplaceDefaultsDefault General Error

swagger:response replaceDefaultsDefault

func NewReplaceDefaultsDefault

func NewReplaceDefaultsDefault(code int) *ReplaceDefaultsDefault

NewReplaceDefaultsDefault creates ReplaceDefaultsDefault with default headers values

func (*ReplaceDefaultsDefault) SetConfigurationVersion added in v1.2.2

func (o *ReplaceDefaultsDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the replace defaults default response

func (*ReplaceDefaultsDefault) SetPayload

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

SetPayload sets the payload to the replace defaults default response

func (*ReplaceDefaultsDefault) SetStatusCode

func (o *ReplaceDefaultsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the replace defaults default response

func (*ReplaceDefaultsDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the replace defaults default response

func (*ReplaceDefaultsDefault) WithPayload

func (o *ReplaceDefaultsDefault) WithPayload(payload *models.Error) *ReplaceDefaultsDefault

WithPayload adds the payload to the replace defaults default response

func (*ReplaceDefaultsDefault) WithStatusCode

func (o *ReplaceDefaultsDefault) WithStatusCode(code int) *ReplaceDefaultsDefault

WithStatusCode adds the status to the replace defaults default response

func (*ReplaceDefaultsDefault) WriteResponse

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

WriteResponse to the client

type ReplaceDefaultsHandler

type ReplaceDefaultsHandler interface {
	Handle(ReplaceDefaultsParams, interface{}) middleware.Responder
}

ReplaceDefaultsHandler interface for that can handle valid replace defaults params

type ReplaceDefaultsHandlerFunc

type ReplaceDefaultsHandlerFunc func(ReplaceDefaultsParams, interface{}) middleware.Responder

ReplaceDefaultsHandlerFunc turns a function with the right signature into a replace defaults handler

func (ReplaceDefaultsHandlerFunc) Handle

func (fn ReplaceDefaultsHandlerFunc) Handle(params ReplaceDefaultsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ReplaceDefaultsOK

type ReplaceDefaultsOK struct {

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

ReplaceDefaultsOK Defaults replaced

swagger:response replaceDefaultsOK

func NewReplaceDefaultsOK

func NewReplaceDefaultsOK() *ReplaceDefaultsOK

NewReplaceDefaultsOK creates ReplaceDefaultsOK with default headers values

func (*ReplaceDefaultsOK) SetPayload

func (o *ReplaceDefaultsOK) SetPayload(payload *models.Defaults)

SetPayload sets the payload to the replace defaults o k response

func (*ReplaceDefaultsOK) WithPayload

func (o *ReplaceDefaultsOK) WithPayload(payload *models.Defaults) *ReplaceDefaultsOK

WithPayload adds the payload to the replace defaults o k response

func (*ReplaceDefaultsOK) WriteResponse

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

WriteResponse to the client

type ReplaceDefaultsParams

type ReplaceDefaultsParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Data *models.Defaults
	/*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
	/*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
}

ReplaceDefaultsParams contains all the bound params for the replace defaults operation typically these are obtained from a http.Request

swagger:parameters replaceDefaults

func NewReplaceDefaultsParams

func NewReplaceDefaultsParams() ReplaceDefaultsParams

NewReplaceDefaultsParams creates a new ReplaceDefaultsParams object with the default values initialized.

func (*ReplaceDefaultsParams) BindRequest

func (o *ReplaceDefaultsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

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 NewReplaceDefaultsParams() beforehand.

type ReplaceDefaultsURL

type ReplaceDefaultsURL struct {
	ForceReload   *bool
	TransactionID *string
	Version       *int64
	// contains filtered or unexported fields
}

ReplaceDefaultsURL generates an URL for the replace defaults operation

func (*ReplaceDefaultsURL) Build

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

Build a url path and query string

func (*ReplaceDefaultsURL) BuildFull

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

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

func (*ReplaceDefaultsURL) Must

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

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

func (*ReplaceDefaultsURL) SetBasePath

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

func (o *ReplaceDefaultsURL) String() string

String returns the string representation of the path with query string

func (*ReplaceDefaultsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ReplaceDefaultsURL) WithBasePath

func (o *ReplaceDefaultsURL) WithBasePath(bp string) *ReplaceDefaultsURL

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