system

package
v0.0.0-...-13dad8c Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ShutdownOKCode int = 200

ShutdownOKCode is the HTTP code returned for type ShutdownOK

Variables

This section is empty.

Functions

This section is empty.

Types

type Shutdown

type Shutdown struct {
	Context *middleware.Context
	Handler ShutdownHandler
}

Shutdown swagger:route PUT /system/shutdown System shutdown

Shutdown the Operating System

func NewShutdown

func NewShutdown(ctx *middleware.Context, handler ShutdownHandler) *Shutdown

NewShutdown creates a new http.Handler for the shutdown operation

func (*Shutdown) ServeHTTP

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

type ShutdownDefault

type ShutdownDefault struct {

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

ShutdownDefault Unexpected error

swagger:response shutdownDefault

func NewShutdownDefault

func NewShutdownDefault(code int) *ShutdownDefault

NewShutdownDefault creates ShutdownDefault with default headers values

func (*ShutdownDefault) SetPayload

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

SetPayload sets the payload to the shutdown default response

func (*ShutdownDefault) SetStatusCode

func (o *ShutdownDefault) SetStatusCode(code int)

SetStatusCode sets the status to the shutdown default response

func (*ShutdownDefault) WithPayload

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

WithPayload adds the payload to the shutdown default response

func (*ShutdownDefault) WithStatusCode

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

WithStatusCode adds the status to the shutdown default response

func (*ShutdownDefault) WriteResponse

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

WriteResponse to the client

type ShutdownHandler

type ShutdownHandler interface {
	Handle(ShutdownParams) middleware.Responder
}

ShutdownHandler interface for that can handle valid shutdown params

type ShutdownHandlerFunc

type ShutdownHandlerFunc func(ShutdownParams) middleware.Responder

ShutdownHandlerFunc turns a function with the right signature into a shutdown handler

func (ShutdownHandlerFunc) Handle

Handle executing the request and returning a response

type ShutdownOK

type ShutdownOK struct {

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

ShutdownOK Shutdown executed successfully

swagger:response shutdownOK

func NewShutdownOK

func NewShutdownOK() *ShutdownOK

NewShutdownOK creates ShutdownOK with default headers values

func (*ShutdownOK) SetPayload

func (o *ShutdownOK) SetPayload(payload *models.Shutdown)

SetPayload sets the payload to the shutdown o k response

func (*ShutdownOK) WithPayload

func (o *ShutdownOK) WithPayload(payload *models.Shutdown) *ShutdownOK

WithPayload adds the payload to the shutdown o k response

func (*ShutdownOK) WriteResponse

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

WriteResponse to the client

type ShutdownParams

type ShutdownParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

ShutdownParams contains all the bound params for the shutdown operation typically these are obtained from a http.Request

swagger:parameters shutdown

func NewShutdownParams

func NewShutdownParams() ShutdownParams

NewShutdownParams creates a new ShutdownParams object with the default values initialized.

func (*ShutdownParams) BindRequest

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

type ShutdownURL

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

ShutdownURL generates an URL for the shutdown operation

func (*ShutdownURL) Build

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

Build a url path and query string

func (*ShutdownURL) BuildFull

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

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

func (*ShutdownURL) Must

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

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

func (*ShutdownURL) SetBasePath

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

func (o *ShutdownURL) String() string

String returns the string representation of the path with query string

func (*ShutdownURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ShutdownURL) WithBasePath

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

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