frontend

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

Documentation

Index

Constants

View Source
const CreateFrontendAcceptedCode int = 202

CreateFrontendAcceptedCode is the HTTP code returned for type CreateFrontendAccepted

View Source
const CreateFrontendBadRequestCode int = 400

CreateFrontendBadRequestCode is the HTTP code returned for type CreateFrontendBadRequest

View Source
const CreateFrontendConflictCode int = 409

CreateFrontendConflictCode is the HTTP code returned for type CreateFrontendConflict

View Source
const CreateFrontendCreatedCode int = 201

CreateFrontendCreatedCode is the HTTP code returned for type CreateFrontendCreated

View Source
const DeleteFrontendAcceptedCode int = 202

DeleteFrontendAcceptedCode is the HTTP code returned for type DeleteFrontendAccepted

View Source
const DeleteFrontendNoContentCode int = 204

DeleteFrontendNoContentCode is the HTTP code returned for type DeleteFrontendNoContent

View Source
const DeleteFrontendNotFoundCode int = 404

DeleteFrontendNotFoundCode is the HTTP code returned for type DeleteFrontendNotFound

View Source
const GetFrontendNotFoundCode int = 404

GetFrontendNotFoundCode is the HTTP code returned for type GetFrontendNotFound

View Source
const GetFrontendOKCode int = 200

GetFrontendOKCode is the HTTP code returned for type GetFrontendOK

View Source
const GetFrontendsOKCode int = 200

GetFrontendsOKCode is the HTTP code returned for type GetFrontendsOK

View Source
const ReplaceFrontendAcceptedCode int = 202

ReplaceFrontendAcceptedCode is the HTTP code returned for type ReplaceFrontendAccepted

View Source
const ReplaceFrontendBadRequestCode int = 400

ReplaceFrontendBadRequestCode is the HTTP code returned for type ReplaceFrontendBadRequest

View Source
const ReplaceFrontendNotFoundCode int = 404

ReplaceFrontendNotFoundCode is the HTTP code returned for type ReplaceFrontendNotFound

View Source
const ReplaceFrontendOKCode int = 200

ReplaceFrontendOKCode is the HTTP code returned for type ReplaceFrontendOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateFrontend

type CreateFrontend struct {
	Context *middleware.Context
	Handler CreateFrontendHandler
}

CreateFrontend swagger:route POST /services/haproxy/configuration/frontends Frontend createFrontend

Add a frontend

Adds a new frontend to the configuration file.

func NewCreateFrontend

func NewCreateFrontend(ctx *middleware.Context, handler CreateFrontendHandler) *CreateFrontend

NewCreateFrontend creates a new http.Handler for the create frontend operation

func (*CreateFrontend) ServeHTTP

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

type CreateFrontendAccepted

type CreateFrontendAccepted struct {
	/*ID of the requested reload

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

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

CreateFrontendAccepted Configuration change accepted and reload requested

swagger:response createFrontendAccepted

func NewCreateFrontendAccepted

func NewCreateFrontendAccepted() *CreateFrontendAccepted

NewCreateFrontendAccepted creates CreateFrontendAccepted with default headers values

func (*CreateFrontendAccepted) SetPayload

func (o *CreateFrontendAccepted) SetPayload(payload *models.Frontend)

SetPayload sets the payload to the create frontend accepted response

func (*CreateFrontendAccepted) SetReloadID

func (o *CreateFrontendAccepted) SetReloadID(reloadID string)

SetReloadID sets the reloadId to the create frontend accepted response

func (*CreateFrontendAccepted) WithPayload

WithPayload adds the payload to the create frontend accepted response

func (*CreateFrontendAccepted) WithReloadID

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

WithReloadID adds the reloadId to the create frontend accepted response

func (*CreateFrontendAccepted) WriteResponse

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

WriteResponse to the client

type CreateFrontendBadRequest

type CreateFrontendBadRequest struct {
	/*Configuration file version

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

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

CreateFrontendBadRequest Bad request

swagger:response createFrontendBadRequest

func NewCreateFrontendBadRequest

func NewCreateFrontendBadRequest() *CreateFrontendBadRequest

NewCreateFrontendBadRequest creates CreateFrontendBadRequest with default headers values

func (*CreateFrontendBadRequest) SetConfigurationVersion added in v1.2.2

func (o *CreateFrontendBadRequest) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the create frontend bad request response

func (*CreateFrontendBadRequest) SetPayload

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

SetPayload sets the payload to the create frontend bad request response

func (*CreateFrontendBadRequest) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the create frontend bad request response

func (*CreateFrontendBadRequest) WithPayload

WithPayload adds the payload to the create frontend bad request response

func (*CreateFrontendBadRequest) WriteResponse

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

WriteResponse to the client

type CreateFrontendConflict

type CreateFrontendConflict struct {
	/*Configuration file version

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

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

CreateFrontendConflict The specified resource already exists

swagger:response createFrontendConflict

func NewCreateFrontendConflict

func NewCreateFrontendConflict() *CreateFrontendConflict

NewCreateFrontendConflict creates CreateFrontendConflict with default headers values

func (*CreateFrontendConflict) SetConfigurationVersion added in v1.2.2

func (o *CreateFrontendConflict) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the create frontend conflict response

func (*CreateFrontendConflict) SetPayload

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

SetPayload sets the payload to the create frontend conflict response

func (*CreateFrontendConflict) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the create frontend conflict response

func (*CreateFrontendConflict) WithPayload

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

WithPayload adds the payload to the create frontend conflict response

func (*CreateFrontendConflict) WriteResponse

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

WriteResponse to the client

type CreateFrontendCreated

type CreateFrontendCreated struct {

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

CreateFrontendCreated Frontend created

swagger:response createFrontendCreated

func NewCreateFrontendCreated

func NewCreateFrontendCreated() *CreateFrontendCreated

NewCreateFrontendCreated creates CreateFrontendCreated with default headers values

func (*CreateFrontendCreated) SetPayload

func (o *CreateFrontendCreated) SetPayload(payload *models.Frontend)

SetPayload sets the payload to the create frontend created response

func (*CreateFrontendCreated) WithPayload

func (o *CreateFrontendCreated) WithPayload(payload *models.Frontend) *CreateFrontendCreated

WithPayload adds the payload to the create frontend created response

func (*CreateFrontendCreated) WriteResponse

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

WriteResponse to the client

type CreateFrontendDefault

type CreateFrontendDefault struct {

	/*Configuration file version

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

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

CreateFrontendDefault General Error

swagger:response createFrontendDefault

func NewCreateFrontendDefault

func NewCreateFrontendDefault(code int) *CreateFrontendDefault

NewCreateFrontendDefault creates CreateFrontendDefault with default headers values

func (*CreateFrontendDefault) SetConfigurationVersion added in v1.2.2

func (o *CreateFrontendDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the create frontend default response

func (*CreateFrontendDefault) SetPayload

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

SetPayload sets the payload to the create frontend default response

func (*CreateFrontendDefault) SetStatusCode

func (o *CreateFrontendDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create frontend default response

func (*CreateFrontendDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the create frontend default response

func (*CreateFrontendDefault) WithPayload

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

WithPayload adds the payload to the create frontend default response

func (*CreateFrontendDefault) WithStatusCode

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

WithStatusCode adds the status to the create frontend default response

func (*CreateFrontendDefault) WriteResponse

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

WriteResponse to the client

type CreateFrontendHandler

type CreateFrontendHandler interface {
	Handle(CreateFrontendParams, interface{}) middleware.Responder
}

CreateFrontendHandler interface for that can handle valid create frontend params

type CreateFrontendHandlerFunc

type CreateFrontendHandlerFunc func(CreateFrontendParams, interface{}) middleware.Responder

CreateFrontendHandlerFunc turns a function with the right signature into a create frontend handler

func (CreateFrontendHandlerFunc) Handle

func (fn CreateFrontendHandlerFunc) Handle(params CreateFrontendParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreateFrontendParams

type CreateFrontendParams struct {

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

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

CreateFrontendParams contains all the bound params for the create frontend operation typically these are obtained from a http.Request

swagger:parameters createFrontend

func NewCreateFrontendParams

func NewCreateFrontendParams() CreateFrontendParams

NewCreateFrontendParams creates a new CreateFrontendParams object with the default values initialized.

func (*CreateFrontendParams) BindRequest

func (o *CreateFrontendParams) 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 NewCreateFrontendParams() beforehand.

type CreateFrontendURL

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

CreateFrontendURL generates an URL for the create frontend operation

func (*CreateFrontendURL) Build

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

Build a url path and query string

func (*CreateFrontendURL) BuildFull

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

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

func (*CreateFrontendURL) Must

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

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

func (*CreateFrontendURL) SetBasePath

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

func (o *CreateFrontendURL) String() string

String returns the string representation of the path with query string

func (*CreateFrontendURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateFrontendURL) WithBasePath

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

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 DeleteFrontend

type DeleteFrontend struct {
	Context *middleware.Context
	Handler DeleteFrontendHandler
}

DeleteFrontend swagger:route DELETE /services/haproxy/configuration/frontends/{name} Frontend deleteFrontend

Delete a frontend

Deletes a frontend from the configuration by it's name.

func NewDeleteFrontend

func NewDeleteFrontend(ctx *middleware.Context, handler DeleteFrontendHandler) *DeleteFrontend

NewDeleteFrontend creates a new http.Handler for the delete frontend operation

func (*DeleteFrontend) ServeHTTP

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

type DeleteFrontendAccepted

type DeleteFrontendAccepted struct {
	/*ID of the requested reload

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

DeleteFrontendAccepted Configuration change accepted and reload requested

swagger:response deleteFrontendAccepted

func NewDeleteFrontendAccepted

func NewDeleteFrontendAccepted() *DeleteFrontendAccepted

NewDeleteFrontendAccepted creates DeleteFrontendAccepted with default headers values

func (*DeleteFrontendAccepted) SetReloadID

func (o *DeleteFrontendAccepted) SetReloadID(reloadID string)

SetReloadID sets the reloadId to the delete frontend accepted response

func (*DeleteFrontendAccepted) WithReloadID

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

WithReloadID adds the reloadId to the delete frontend accepted response

func (*DeleteFrontendAccepted) WriteResponse

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

WriteResponse to the client

type DeleteFrontendDefault

type DeleteFrontendDefault struct {

	/*Configuration file version

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

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

DeleteFrontendDefault General Error

swagger:response deleteFrontendDefault

func NewDeleteFrontendDefault

func NewDeleteFrontendDefault(code int) *DeleteFrontendDefault

NewDeleteFrontendDefault creates DeleteFrontendDefault with default headers values

func (*DeleteFrontendDefault) SetConfigurationVersion added in v1.2.2

func (o *DeleteFrontendDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the delete frontend default response

func (*DeleteFrontendDefault) SetPayload

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

SetPayload sets the payload to the delete frontend default response

func (*DeleteFrontendDefault) SetStatusCode

func (o *DeleteFrontendDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete frontend default response

func (*DeleteFrontendDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the delete frontend default response

func (*DeleteFrontendDefault) WithPayload

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

WithPayload adds the payload to the delete frontend default response

func (*DeleteFrontendDefault) WithStatusCode

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

WithStatusCode adds the status to the delete frontend default response

func (*DeleteFrontendDefault) WriteResponse

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

WriteResponse to the client

type DeleteFrontendHandler

type DeleteFrontendHandler interface {
	Handle(DeleteFrontendParams, interface{}) middleware.Responder
}

DeleteFrontendHandler interface for that can handle valid delete frontend params

type DeleteFrontendHandlerFunc

type DeleteFrontendHandlerFunc func(DeleteFrontendParams, interface{}) middleware.Responder

DeleteFrontendHandlerFunc turns a function with the right signature into a delete frontend handler

func (DeleteFrontendHandlerFunc) Handle

func (fn DeleteFrontendHandlerFunc) Handle(params DeleteFrontendParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteFrontendNoContent

type DeleteFrontendNoContent struct {
}

DeleteFrontendNoContent Frontend deleted

swagger:response deleteFrontendNoContent

func NewDeleteFrontendNoContent

func NewDeleteFrontendNoContent() *DeleteFrontendNoContent

NewDeleteFrontendNoContent creates DeleteFrontendNoContent with default headers values

func (*DeleteFrontendNoContent) WriteResponse

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

WriteResponse to the client

type DeleteFrontendNotFound

type DeleteFrontendNotFound struct {
	/*Configuration file version

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

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

DeleteFrontendNotFound The specified resource was not found

swagger:response deleteFrontendNotFound

func NewDeleteFrontendNotFound

func NewDeleteFrontendNotFound() *DeleteFrontendNotFound

NewDeleteFrontendNotFound creates DeleteFrontendNotFound with default headers values

func (*DeleteFrontendNotFound) SetConfigurationVersion added in v1.2.2

func (o *DeleteFrontendNotFound) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the delete frontend not found response

func (*DeleteFrontendNotFound) SetPayload

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

SetPayload sets the payload to the delete frontend not found response

func (*DeleteFrontendNotFound) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the delete frontend not found response

func (*DeleteFrontendNotFound) WithPayload

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

WithPayload adds the payload to the delete frontend not found response

func (*DeleteFrontendNotFound) WriteResponse

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

WriteResponse to the client

type DeleteFrontendParams

type DeleteFrontendParams struct {

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

	/*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
	/*Frontend name
	  Required: true
	  In: path
	*/
	Name string
	/*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
}

DeleteFrontendParams contains all the bound params for the delete frontend operation typically these are obtained from a http.Request

swagger:parameters deleteFrontend

func NewDeleteFrontendParams

func NewDeleteFrontendParams() DeleteFrontendParams

NewDeleteFrontendParams creates a new DeleteFrontendParams object with the default values initialized.

func (*DeleteFrontendParams) BindRequest

func (o *DeleteFrontendParams) 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 NewDeleteFrontendParams() beforehand.

type DeleteFrontendURL

type DeleteFrontendURL struct {
	Name string

	ForceReload   *bool
	TransactionID *string
	Version       *int64
	// contains filtered or unexported fields
}

DeleteFrontendURL generates an URL for the delete frontend operation

func (*DeleteFrontendURL) Build

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

Build a url path and query string

func (*DeleteFrontendURL) BuildFull

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

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

func (*DeleteFrontendURL) Must

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

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

func (*DeleteFrontendURL) SetBasePath

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

func (o *DeleteFrontendURL) String() string

String returns the string representation of the path with query string

func (*DeleteFrontendURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteFrontendURL) WithBasePath

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

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 GetFrontend

type GetFrontend struct {
	Context *middleware.Context
	Handler GetFrontendHandler
}

GetFrontend swagger:route GET /services/haproxy/configuration/frontends/{name} Frontend getFrontend

Return a frontend

Returns one frontend configuration by it's name.

func NewGetFrontend

func NewGetFrontend(ctx *middleware.Context, handler GetFrontendHandler) *GetFrontend

NewGetFrontend creates a new http.Handler for the get frontend operation

func (*GetFrontend) ServeHTTP

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

type GetFrontendDefault

type GetFrontendDefault struct {

	/*Configuration file version

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

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

GetFrontendDefault General Error

swagger:response getFrontendDefault

func NewGetFrontendDefault

func NewGetFrontendDefault(code int) *GetFrontendDefault

NewGetFrontendDefault creates GetFrontendDefault with default headers values

func (*GetFrontendDefault) SetConfigurationVersion added in v1.2.2

func (o *GetFrontendDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get frontend default response

func (*GetFrontendDefault) SetPayload

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

SetPayload sets the payload to the get frontend default response

func (*GetFrontendDefault) SetStatusCode

func (o *GetFrontendDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get frontend default response

func (*GetFrontendDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get frontend default response

func (*GetFrontendDefault) WithPayload

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

WithPayload adds the payload to the get frontend default response

func (*GetFrontendDefault) WithStatusCode

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

WithStatusCode adds the status to the get frontend default response

func (*GetFrontendDefault) WriteResponse

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

WriteResponse to the client

type GetFrontendHandler

type GetFrontendHandler interface {
	Handle(GetFrontendParams, interface{}) middleware.Responder
}

GetFrontendHandler interface for that can handle valid get frontend params

type GetFrontendHandlerFunc

type GetFrontendHandlerFunc func(GetFrontendParams, interface{}) middleware.Responder

GetFrontendHandlerFunc turns a function with the right signature into a get frontend handler

func (GetFrontendHandlerFunc) Handle

func (fn GetFrontendHandlerFunc) Handle(params GetFrontendParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetFrontendNotFound

type GetFrontendNotFound struct {
	/*Configuration file version

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

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

GetFrontendNotFound The specified resource was not found

swagger:response getFrontendNotFound

func NewGetFrontendNotFound

func NewGetFrontendNotFound() *GetFrontendNotFound

NewGetFrontendNotFound creates GetFrontendNotFound with default headers values

func (*GetFrontendNotFound) SetConfigurationVersion added in v1.2.2

func (o *GetFrontendNotFound) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get frontend not found response

func (*GetFrontendNotFound) SetPayload

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

SetPayload sets the payload to the get frontend not found response

func (*GetFrontendNotFound) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get frontend not found response

func (*GetFrontendNotFound) WithPayload

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

WithPayload adds the payload to the get frontend not found response

func (*GetFrontendNotFound) WriteResponse

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

WriteResponse to the client

type GetFrontendOK

type GetFrontendOK struct {
	/*Configuration file version

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

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

GetFrontendOK Successful operation

swagger:response getFrontendOK

func NewGetFrontendOK

func NewGetFrontendOK() *GetFrontendOK

NewGetFrontendOK creates GetFrontendOK with default headers values

func (*GetFrontendOK) SetConfigurationVersion added in v1.2.2

func (o *GetFrontendOK) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get frontend o k response

func (*GetFrontendOK) SetPayload

func (o *GetFrontendOK) SetPayload(payload *GetFrontendOKBody)

SetPayload sets the payload to the get frontend o k response

func (*GetFrontendOK) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get frontend o k response

func (*GetFrontendOK) WithPayload

func (o *GetFrontendOK) WithPayload(payload *GetFrontendOKBody) *GetFrontendOK

WithPayload adds the payload to the get frontend o k response

func (*GetFrontendOK) WriteResponse

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

WriteResponse to the client

type GetFrontendOKBody

type GetFrontendOKBody struct {

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

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

GetFrontendOKBody get frontend o k body swagger:model GetFrontendOKBody

func (*GetFrontendOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetFrontendOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetFrontendOKBody) Validate

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

Validate validates this get frontend o k body

type GetFrontendParams

type GetFrontendParams struct {

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

	/*Frontend name
	  Required: true
	  In: path
	*/
	Name string
	/*ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	  In: query
	*/
	TransactionID *string
}

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

swagger:parameters getFrontend

func NewGetFrontendParams

func NewGetFrontendParams() GetFrontendParams

NewGetFrontendParams creates a new GetFrontendParams object no default values defined in spec.

func (*GetFrontendParams) BindRequest

func (o *GetFrontendParams) 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 NewGetFrontendParams() beforehand.

type GetFrontendURL

type GetFrontendURL struct {
	Name string

	TransactionID *string
	// contains filtered or unexported fields
}

GetFrontendURL generates an URL for the get frontend operation

func (*GetFrontendURL) Build

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

Build a url path and query string

func (*GetFrontendURL) BuildFull

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

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

func (*GetFrontendURL) Must

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

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

func (*GetFrontendURL) SetBasePath

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

func (o *GetFrontendURL) String() string

String returns the string representation of the path with query string

func (*GetFrontendURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetFrontendURL) WithBasePath

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

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 GetFrontends

type GetFrontends struct {
	Context *middleware.Context
	Handler GetFrontendsHandler
}

GetFrontends swagger:route GET /services/haproxy/configuration/frontends Frontend getFrontends

Return an array of frontends

Returns an array of all configured frontends.

func NewGetFrontends

func NewGetFrontends(ctx *middleware.Context, handler GetFrontendsHandler) *GetFrontends

NewGetFrontends creates a new http.Handler for the get frontends operation

func (*GetFrontends) ServeHTTP

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

type GetFrontendsDefault

type GetFrontendsDefault struct {

	/*Configuration file version

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

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

GetFrontendsDefault General Error

swagger:response getFrontendsDefault

func NewGetFrontendsDefault

func NewGetFrontendsDefault(code int) *GetFrontendsDefault

NewGetFrontendsDefault creates GetFrontendsDefault with default headers values

func (*GetFrontendsDefault) SetConfigurationVersion added in v1.2.2

func (o *GetFrontendsDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get frontends default response

func (*GetFrontendsDefault) SetPayload

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

SetPayload sets the payload to the get frontends default response

func (*GetFrontendsDefault) SetStatusCode

func (o *GetFrontendsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get frontends default response

func (*GetFrontendsDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get frontends default response

func (*GetFrontendsDefault) WithPayload

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

WithPayload adds the payload to the get frontends default response

func (*GetFrontendsDefault) WithStatusCode

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

WithStatusCode adds the status to the get frontends default response

func (*GetFrontendsDefault) WriteResponse

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

WriteResponse to the client

type GetFrontendsHandler

type GetFrontendsHandler interface {
	Handle(GetFrontendsParams, interface{}) middleware.Responder
}

GetFrontendsHandler interface for that can handle valid get frontends params

type GetFrontendsHandlerFunc

type GetFrontendsHandlerFunc func(GetFrontendsParams, interface{}) middleware.Responder

GetFrontendsHandlerFunc turns a function with the right signature into a get frontends handler

func (GetFrontendsHandlerFunc) Handle

func (fn GetFrontendsHandlerFunc) Handle(params GetFrontendsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetFrontendsOK

type GetFrontendsOK struct {
	/*Configuration file version

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

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

GetFrontendsOK Successful operation

swagger:response getFrontendsOK

func NewGetFrontendsOK

func NewGetFrontendsOK() *GetFrontendsOK

NewGetFrontendsOK creates GetFrontendsOK with default headers values

func (*GetFrontendsOK) SetConfigurationVersion added in v1.2.2

func (o *GetFrontendsOK) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get frontends o k response

func (*GetFrontendsOK) SetPayload

func (o *GetFrontendsOK) SetPayload(payload *GetFrontendsOKBody)

SetPayload sets the payload to the get frontends o k response

func (*GetFrontendsOK) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get frontends o k response

func (*GetFrontendsOK) WithPayload

func (o *GetFrontendsOK) WithPayload(payload *GetFrontendsOKBody) *GetFrontendsOK

WithPayload adds the payload to the get frontends o k response

func (*GetFrontendsOK) WriteResponse

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

WriteResponse to the client

type GetFrontendsOKBody

type GetFrontendsOKBody struct {

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

	// data
	// Required: true
	Data models.Frontends `json:"data"`
}

GetFrontendsOKBody get frontends o k body swagger:model GetFrontendsOKBody

func (*GetFrontendsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetFrontendsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetFrontendsOKBody) Validate

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

Validate validates this get frontends o k body

type GetFrontendsParams

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

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

swagger:parameters getFrontends

func NewGetFrontendsParams

func NewGetFrontendsParams() GetFrontendsParams

NewGetFrontendsParams creates a new GetFrontendsParams object no default values defined in spec.

func (*GetFrontendsParams) BindRequest

func (o *GetFrontendsParams) 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 NewGetFrontendsParams() beforehand.

type GetFrontendsURL

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

GetFrontendsURL generates an URL for the get frontends operation

func (*GetFrontendsURL) Build

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

Build a url path and query string

func (*GetFrontendsURL) BuildFull

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

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

func (*GetFrontendsURL) Must

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

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

func (*GetFrontendsURL) SetBasePath

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

func (o *GetFrontendsURL) String() string

String returns the string representation of the path with query string

func (*GetFrontendsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetFrontendsURL) WithBasePath

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

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 ReplaceFrontend

type ReplaceFrontend struct {
	Context *middleware.Context
	Handler ReplaceFrontendHandler
}

ReplaceFrontend swagger:route PUT /services/haproxy/configuration/frontends/{name} Frontend replaceFrontend

Replace a frontend

Replaces a frontend configuration by it's name.

func NewReplaceFrontend

func NewReplaceFrontend(ctx *middleware.Context, handler ReplaceFrontendHandler) *ReplaceFrontend

NewReplaceFrontend creates a new http.Handler for the replace frontend operation

func (*ReplaceFrontend) ServeHTTP

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

type ReplaceFrontendAccepted

type ReplaceFrontendAccepted struct {
	/*ID of the requested reload

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

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

ReplaceFrontendAccepted Configuration change accepted and reload requested

swagger:response replaceFrontendAccepted

func NewReplaceFrontendAccepted

func NewReplaceFrontendAccepted() *ReplaceFrontendAccepted

NewReplaceFrontendAccepted creates ReplaceFrontendAccepted with default headers values

func (*ReplaceFrontendAccepted) SetPayload

func (o *ReplaceFrontendAccepted) SetPayload(payload *models.Frontend)

SetPayload sets the payload to the replace frontend accepted response

func (*ReplaceFrontendAccepted) SetReloadID

func (o *ReplaceFrontendAccepted) SetReloadID(reloadID string)

SetReloadID sets the reloadId to the replace frontend accepted response

func (*ReplaceFrontendAccepted) WithPayload

WithPayload adds the payload to the replace frontend accepted response

func (*ReplaceFrontendAccepted) WithReloadID

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

WithReloadID adds the reloadId to the replace frontend accepted response

func (*ReplaceFrontendAccepted) WriteResponse

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

WriteResponse to the client

type ReplaceFrontendBadRequest

type ReplaceFrontendBadRequest struct {
	/*Configuration file version

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

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

ReplaceFrontendBadRequest Bad request

swagger:response replaceFrontendBadRequest

func NewReplaceFrontendBadRequest

func NewReplaceFrontendBadRequest() *ReplaceFrontendBadRequest

NewReplaceFrontendBadRequest creates ReplaceFrontendBadRequest with default headers values

func (*ReplaceFrontendBadRequest) SetConfigurationVersion added in v1.2.2

func (o *ReplaceFrontendBadRequest) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the replace frontend bad request response

func (*ReplaceFrontendBadRequest) SetPayload

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

SetPayload sets the payload to the replace frontend bad request response

func (*ReplaceFrontendBadRequest) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the replace frontend bad request response

func (*ReplaceFrontendBadRequest) WithPayload

WithPayload adds the payload to the replace frontend bad request response

func (*ReplaceFrontendBadRequest) WriteResponse

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

WriteResponse to the client

type ReplaceFrontendDefault

type ReplaceFrontendDefault struct {

	/*Configuration file version

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

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

ReplaceFrontendDefault General Error

swagger:response replaceFrontendDefault

func NewReplaceFrontendDefault

func NewReplaceFrontendDefault(code int) *ReplaceFrontendDefault

NewReplaceFrontendDefault creates ReplaceFrontendDefault with default headers values

func (*ReplaceFrontendDefault) SetConfigurationVersion added in v1.2.2

func (o *ReplaceFrontendDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the replace frontend default response

func (*ReplaceFrontendDefault) SetPayload

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

SetPayload sets the payload to the replace frontend default response

func (*ReplaceFrontendDefault) SetStatusCode

func (o *ReplaceFrontendDefault) SetStatusCode(code int)

SetStatusCode sets the status to the replace frontend default response

func (*ReplaceFrontendDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the replace frontend default response

func (*ReplaceFrontendDefault) WithPayload

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

WithPayload adds the payload to the replace frontend default response

func (*ReplaceFrontendDefault) WithStatusCode

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

WithStatusCode adds the status to the replace frontend default response

func (*ReplaceFrontendDefault) WriteResponse

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

WriteResponse to the client

type ReplaceFrontendHandler

type ReplaceFrontendHandler interface {
	Handle(ReplaceFrontendParams, interface{}) middleware.Responder
}

ReplaceFrontendHandler interface for that can handle valid replace frontend params

type ReplaceFrontendHandlerFunc

type ReplaceFrontendHandlerFunc func(ReplaceFrontendParams, interface{}) middleware.Responder

ReplaceFrontendHandlerFunc turns a function with the right signature into a replace frontend handler

func (ReplaceFrontendHandlerFunc) Handle

func (fn ReplaceFrontendHandlerFunc) Handle(params ReplaceFrontendParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ReplaceFrontendNotFound

type ReplaceFrontendNotFound struct {
	/*Configuration file version

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

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

ReplaceFrontendNotFound The specified resource was not found

swagger:response replaceFrontendNotFound

func NewReplaceFrontendNotFound

func NewReplaceFrontendNotFound() *ReplaceFrontendNotFound

NewReplaceFrontendNotFound creates ReplaceFrontendNotFound with default headers values

func (*ReplaceFrontendNotFound) SetConfigurationVersion added in v1.2.2

func (o *ReplaceFrontendNotFound) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the replace frontend not found response

func (*ReplaceFrontendNotFound) SetPayload

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

SetPayload sets the payload to the replace frontend not found response

func (*ReplaceFrontendNotFound) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the replace frontend not found response

func (*ReplaceFrontendNotFound) WithPayload

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

WithPayload adds the payload to the replace frontend not found response

func (*ReplaceFrontendNotFound) WriteResponse

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

WriteResponse to the client

type ReplaceFrontendOK

type ReplaceFrontendOK struct {

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

ReplaceFrontendOK Frontend replaced

swagger:response replaceFrontendOK

func NewReplaceFrontendOK

func NewReplaceFrontendOK() *ReplaceFrontendOK

NewReplaceFrontendOK creates ReplaceFrontendOK with default headers values

func (*ReplaceFrontendOK) SetPayload

func (o *ReplaceFrontendOK) SetPayload(payload *models.Frontend)

SetPayload sets the payload to the replace frontend o k response

func (*ReplaceFrontendOK) WithPayload

func (o *ReplaceFrontendOK) WithPayload(payload *models.Frontend) *ReplaceFrontendOK

WithPayload adds the payload to the replace frontend o k response

func (*ReplaceFrontendOK) WriteResponse

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

WriteResponse to the client

type ReplaceFrontendParams

type ReplaceFrontendParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Data *models.Frontend
	/*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
	/*Frontend name
	  Required: true
	  In: path
	*/
	Name string
	/*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
}

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

swagger:parameters replaceFrontend

func NewReplaceFrontendParams

func NewReplaceFrontendParams() ReplaceFrontendParams

NewReplaceFrontendParams creates a new ReplaceFrontendParams object with the default values initialized.

func (*ReplaceFrontendParams) BindRequest

func (o *ReplaceFrontendParams) 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 NewReplaceFrontendParams() beforehand.

type ReplaceFrontendURL

type ReplaceFrontendURL struct {
	Name string

	ForceReload   *bool
	TransactionID *string
	Version       *int64
	// contains filtered or unexported fields
}

ReplaceFrontendURL generates an URL for the replace frontend operation

func (*ReplaceFrontendURL) Build

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

Build a url path and query string

func (*ReplaceFrontendURL) BuildFull

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

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

func (*ReplaceFrontendURL) Must

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

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

func (*ReplaceFrontendURL) SetBasePath

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

func (o *ReplaceFrontendURL) String() string

String returns the string representation of the path with query string

func (*ReplaceFrontendURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ReplaceFrontendURL) WithBasePath

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

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