reloads

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 GetReloadNotFoundCode int = 404

GetReloadNotFoundCode is the HTTP code returned for type GetReloadNotFound

View Source
const GetReloadOKCode int = 200

GetReloadOKCode is the HTTP code returned for type GetReloadOK

View Source
const GetReloadsOKCode int = 200

GetReloadsOKCode is the HTTP code returned for type GetReloadsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetReload

type GetReload struct {
	Context *middleware.Context
	Handler GetReloadHandler
}

GetReload swagger:route GET /services/haproxy/reloads/{id} Reloads getReload

Return one HAProxy reload status

Returns one HAProxy reload status.

func NewGetReload

func NewGetReload(ctx *middleware.Context, handler GetReloadHandler) *GetReload

NewGetReload creates a new http.Handler for the get reload operation

func (*GetReload) ServeHTTP

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

type GetReloadDefault

type GetReloadDefault struct {

	/*Configuration file version

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

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

GetReloadDefault General Error

swagger:response getReloadDefault

func NewGetReloadDefault

func NewGetReloadDefault(code int) *GetReloadDefault

NewGetReloadDefault creates GetReloadDefault with default headers values

func (*GetReloadDefault) SetConfigurationVersion added in v1.2.2

func (o *GetReloadDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get reload default response

func (*GetReloadDefault) SetPayload

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

SetPayload sets the payload to the get reload default response

func (*GetReloadDefault) SetStatusCode

func (o *GetReloadDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get reload default response

func (*GetReloadDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get reload default response

func (*GetReloadDefault) WithPayload

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

WithPayload adds the payload to the get reload default response

func (*GetReloadDefault) WithStatusCode

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

WithStatusCode adds the status to the get reload default response

func (*GetReloadDefault) WriteResponse

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

WriteResponse to the client

type GetReloadHandler

type GetReloadHandler interface {
	Handle(GetReloadParams, interface{}) middleware.Responder
}

GetReloadHandler interface for that can handle valid get reload params

type GetReloadHandlerFunc

type GetReloadHandlerFunc func(GetReloadParams, interface{}) middleware.Responder

GetReloadHandlerFunc turns a function with the right signature into a get reload handler

func (GetReloadHandlerFunc) Handle

func (fn GetReloadHandlerFunc) Handle(params GetReloadParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetReloadNotFound

type GetReloadNotFound struct {
	/*Configuration file version

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

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

GetReloadNotFound The specified resource was not found

swagger:response getReloadNotFound

func NewGetReloadNotFound

func NewGetReloadNotFound() *GetReloadNotFound

NewGetReloadNotFound creates GetReloadNotFound with default headers values

func (*GetReloadNotFound) SetConfigurationVersion added in v1.2.2

func (o *GetReloadNotFound) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get reload not found response

func (*GetReloadNotFound) SetPayload

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

SetPayload sets the payload to the get reload not found response

func (*GetReloadNotFound) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get reload not found response

func (*GetReloadNotFound) WithPayload

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

WithPayload adds the payload to the get reload not found response

func (*GetReloadNotFound) WriteResponse

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

WriteResponse to the client

type GetReloadOK

type GetReloadOK struct {

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

GetReloadOK Successful operation

swagger:response getReloadOK

func NewGetReloadOK

func NewGetReloadOK() *GetReloadOK

NewGetReloadOK creates GetReloadOK with default headers values

func (*GetReloadOK) SetPayload

func (o *GetReloadOK) SetPayload(payload *models.Reload)

SetPayload sets the payload to the get reload o k response

func (*GetReloadOK) WithPayload

func (o *GetReloadOK) WithPayload(payload *models.Reload) *GetReloadOK

WithPayload adds the payload to the get reload o k response

func (*GetReloadOK) WriteResponse

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

WriteResponse to the client

type GetReloadParams

type GetReloadParams struct {

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

	/*Reload id
	  Required: true
	  Pattern: ^\d{4}-\d{2}-\d{2}-\d+$
	  In: path
	*/
	ID string
}

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

swagger:parameters getReload

func NewGetReloadParams

func NewGetReloadParams() GetReloadParams

NewGetReloadParams creates a new GetReloadParams object no default values defined in spec.

func (*GetReloadParams) BindRequest

func (o *GetReloadParams) 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 NewGetReloadParams() beforehand.

type GetReloadURL

type GetReloadURL struct {
	ID string
	// contains filtered or unexported fields
}

GetReloadURL generates an URL for the get reload operation

func (*GetReloadURL) Build

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

Build a url path and query string

func (*GetReloadURL) BuildFull

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

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

func (*GetReloadURL) Must

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

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

func (*GetReloadURL) SetBasePath

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

func (o *GetReloadURL) String() string

String returns the string representation of the path with query string

func (*GetReloadURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetReloadURL) WithBasePath

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

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 GetReloads

type GetReloads struct {
	Context *middleware.Context
	Handler GetReloadsHandler
}

GetReloads swagger:route GET /services/haproxy/reloads Reloads getReloads

Return list of HAProxy Reloads.

Returns a list of HAProxy reloads.

func NewGetReloads

func NewGetReloads(ctx *middleware.Context, handler GetReloadsHandler) *GetReloads

NewGetReloads creates a new http.Handler for the get reloads operation

func (*GetReloads) ServeHTTP

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

type GetReloadsDefault

type GetReloadsDefault struct {

	/*Configuration file version

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

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

GetReloadsDefault General Error

swagger:response getReloadsDefault

func NewGetReloadsDefault

func NewGetReloadsDefault(code int) *GetReloadsDefault

NewGetReloadsDefault creates GetReloadsDefault with default headers values

func (*GetReloadsDefault) SetConfigurationVersion added in v1.2.2

func (o *GetReloadsDefault) SetConfigurationVersion(configurationVersion int64)

SetConfigurationVersion sets the configurationVersion to the get reloads default response

func (*GetReloadsDefault) SetPayload

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

SetPayload sets the payload to the get reloads default response

func (*GetReloadsDefault) SetStatusCode

func (o *GetReloadsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get reloads default response

func (*GetReloadsDefault) WithConfigurationVersion added in v1.2.2

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

WithConfigurationVersion adds the configurationVersion to the get reloads default response

func (*GetReloadsDefault) WithPayload

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

WithPayload adds the payload to the get reloads default response

func (*GetReloadsDefault) WithStatusCode

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

WithStatusCode adds the status to the get reloads default response

func (*GetReloadsDefault) WriteResponse

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

WriteResponse to the client

type GetReloadsHandler

type GetReloadsHandler interface {
	Handle(GetReloadsParams, interface{}) middleware.Responder
}

GetReloadsHandler interface for that can handle valid get reloads params

type GetReloadsHandlerFunc

type GetReloadsHandlerFunc func(GetReloadsParams, interface{}) middleware.Responder

GetReloadsHandlerFunc turns a function with the right signature into a get reloads handler

func (GetReloadsHandlerFunc) Handle

func (fn GetReloadsHandlerFunc) Handle(params GetReloadsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetReloadsOK

type GetReloadsOK struct {

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

GetReloadsOK Success

swagger:response getReloadsOK

func NewGetReloadsOK

func NewGetReloadsOK() *GetReloadsOK

NewGetReloadsOK creates GetReloadsOK with default headers values

func (*GetReloadsOK) SetPayload

func (o *GetReloadsOK) SetPayload(payload models.Reloads)

SetPayload sets the payload to the get reloads o k response

func (*GetReloadsOK) WithPayload

func (o *GetReloadsOK) WithPayload(payload models.Reloads) *GetReloadsOK

WithPayload adds the payload to the get reloads o k response

func (*GetReloadsOK) WriteResponse

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

WriteResponse to the client

type GetReloadsParams

type GetReloadsParams struct {

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

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

swagger:parameters getReloads

func NewGetReloadsParams

func NewGetReloadsParams() GetReloadsParams

NewGetReloadsParams creates a new GetReloadsParams object no default values defined in spec.

func (*GetReloadsParams) BindRequest

func (o *GetReloadsParams) 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 NewGetReloadsParams() beforehand.

type GetReloadsURL

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

GetReloadsURL generates an URL for the get reloads operation

func (*GetReloadsURL) Build

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

Build a url path and query string

func (*GetReloadsURL) BuildFull

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

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

func (*GetReloadsURL) Must

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

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

func (*GetReloadsURL) SetBasePath

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

func (o *GetReloadsURL) String() string

String returns the string representation of the path with query string

func (*GetReloadsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetReloadsURL) WithBasePath

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

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