server

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetServerInfo

type GetServerInfo struct {
	Context *middleware.Context
	Handler GetServerInfoHandler
}

GetServerInfo swagger:route GET / server getServerInfo

Returns information about the server version

func NewGetServerInfo

func NewGetServerInfo(ctx *middleware.Context, handler GetServerInfoHandler) *GetServerInfo

NewGetServerInfo creates a new http.Handler for the get server info operation

func (*GetServerInfo) ServeHTTP

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

type GetServerInfoDefault

type GetServerInfoDefault struct {

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

GetServerInfoDefault Unexpected error

swagger:response getServerInfoDefault

func NewGetServerInfoDefault

func NewGetServerInfoDefault(code int) *GetServerInfoDefault

NewGetServerInfoDefault creates GetServerInfoDefault with default headers values

func (*GetServerInfoDefault) SetPayload

func (o *GetServerInfoDefault) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get server info default response

func (*GetServerInfoDefault) SetStatusCode

func (o *GetServerInfoDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get server info default response

func (*GetServerInfoDefault) WithPayload

WithPayload adds the payload to the get server info default response

func (*GetServerInfoDefault) WithStatusCode

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

WithStatusCode adds the status to the get server info default response

func (*GetServerInfoDefault) WriteResponse

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

WriteResponse to the client

type GetServerInfoHandler

type GetServerInfoHandler interface {
	Handle(GetServerInfoParams) middleware.Responder
}

GetServerInfoHandler interface for that can handle valid get server info params

type GetServerInfoHandlerFunc

type GetServerInfoHandlerFunc func(GetServerInfoParams) middleware.Responder

GetServerInfoHandlerFunc turns a function with the right signature into a get server info handler

func (GetServerInfoHandlerFunc) Handle

Handle executing the request and returning a response

type GetServerInfoOK

type GetServerInfoOK struct {

	// In: body
	Payload GetServerInfoOKBodyBody `json:"body,omitempty"`
}

GetServerInfoOK Server info response

swagger:response getServerInfoOK

func NewGetServerInfoOK

func NewGetServerInfoOK() *GetServerInfoOK

NewGetServerInfoOK creates GetServerInfoOK with default headers values

func (*GetServerInfoOK) SetPayload

func (o *GetServerInfoOK) SetPayload(payload GetServerInfoOKBodyBody)

SetPayload sets the payload to the get server info o k response

func (*GetServerInfoOK) WithPayload

func (o *GetServerInfoOK) WithPayload(payload GetServerInfoOKBodyBody) *GetServerInfoOK

WithPayload adds the payload to the get server info o k response

func (*GetServerInfoOK) WriteResponse

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

WriteResponse to the client

type GetServerInfoOKBodyApplication

type GetServerInfoOKBodyApplication struct {

	/* Default Cluster Image

	Required: true
	*/
	DefaultClusterImage *string `json:"default-cluster-image"`

	/* Application name

	Required: true
	*/
	Name *string `json:"name"`

	/* Application version

	Required: true
	*/
	Version *string `json:"version"`

	/* Oshinko Web Service Name

	Required: true
	*/
	WebServiceName *string `json:"web-service-name"`

	/* Oshinko Web URL

	Required: true
	*/
	WebURL *string `json:"web-url"`
}

GetServerInfoOKBodyApplication get server info o k body application

swagger:model GetServerInfoOKBodyApplication

func (*GetServerInfoOKBodyApplication) Validate

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

Validate validates this get server info o k body application

type GetServerInfoOKBodyBody

type GetServerInfoOKBodyBody struct {

	/* application

	Required: true
	*/
	Application *GetServerInfoOKBodyApplication `json:"application"`
}

GetServerInfoOKBodyBody get server info o k body body

swagger:model GetServerInfoOKBodyBody

func (*GetServerInfoOKBodyBody) Validate

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

Validate validates this get server info o k body body

type GetServerInfoParams

type GetServerInfoParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

GetServerInfoParams contains all the bound params for the get server info operation typically these are obtained from a http.Request

swagger:parameters getServerInfo

func NewGetServerInfoParams

func NewGetServerInfoParams() GetServerInfoParams

NewGetServerInfoParams creates a new GetServerInfoParams object with the default values initialized.

func (*GetServerInfoParams) BindRequest

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

Jump to

Keyboard shortcuts

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