logs

package
v0.0.0-...-1e5aeb1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const LogFileHandlerUnauthorizedCode int = 401

LogFileHandlerUnauthorizedCode is the HTTP code returned for type LogFileHandlerUnauthorized

View Source
const LogFileListHandlerUnauthorizedCode int = 401

LogFileListHandlerUnauthorizedCode is the HTTP code returned for type LogFileListHandlerUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type LogFileHandler

type LogFileHandler struct {
	Context *middleware.Context
	Handler LogFileHandlerHandler
}

LogFileHandler swagger:route GET /logs/{logpath} logs logFileHandler

LogFileHandler log file handler API

func NewLogFileHandler

func NewLogFileHandler(ctx *middleware.Context, handler LogFileHandlerHandler) *LogFileHandler

NewLogFileHandler creates a new http.Handler for the log file handler operation

func (*LogFileHandler) ServeHTTP

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

type LogFileHandlerHandler

type LogFileHandlerHandler interface {
	Handle(LogFileHandlerParams) middleware.Responder
}

LogFileHandlerHandler interface for that can handle valid log file handler params

type LogFileHandlerHandlerFunc

type LogFileHandlerHandlerFunc func(LogFileHandlerParams) middleware.Responder

LogFileHandlerHandlerFunc turns a function with the right signature into a log file handler handler

func (LogFileHandlerHandlerFunc) Handle

Handle executing the request and returning a response

type LogFileHandlerParams

type LogFileHandlerParams struct {

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

	/*path to the log
	  Required: true
	  Unique: true
	  In: path
	*/
	Logpath string
}

LogFileHandlerParams contains all the bound params for the log file handler operation typically these are obtained from a http.Request

swagger:parameters logFileHandler

func NewLogFileHandlerParams

func NewLogFileHandlerParams() LogFileHandlerParams

NewLogFileHandlerParams creates a new LogFileHandlerParams object no default values defined in spec.

func (*LogFileHandlerParams) BindRequest

func (o *LogFileHandlerParams) 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 NewLogFileHandlerParams() beforehand.

type LogFileHandlerUnauthorized

type LogFileHandlerUnauthorized struct {
}

LogFileHandlerUnauthorized Unauthorized

swagger:response logFileHandlerUnauthorized

func NewLogFileHandlerUnauthorized

func NewLogFileHandlerUnauthorized() *LogFileHandlerUnauthorized

NewLogFileHandlerUnauthorized creates LogFileHandlerUnauthorized with default headers values

func (*LogFileHandlerUnauthorized) WriteResponse

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

WriteResponse to the client

type LogFileListHandler

type LogFileListHandler struct {
	Context *middleware.Context
	Handler LogFileListHandlerHandler
}

LogFileListHandler swagger:route GET /logs/ logs logFileListHandler

LogFileListHandler log file list handler API

func NewLogFileListHandler

func NewLogFileListHandler(ctx *middleware.Context, handler LogFileListHandlerHandler) *LogFileListHandler

NewLogFileListHandler creates a new http.Handler for the log file list handler operation

func (*LogFileListHandler) ServeHTTP

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

type LogFileListHandlerHandler

type LogFileListHandlerHandler interface {
	Handle(LogFileListHandlerParams) middleware.Responder
}

LogFileListHandlerHandler interface for that can handle valid log file list handler params

type LogFileListHandlerHandlerFunc

type LogFileListHandlerHandlerFunc func(LogFileListHandlerParams) middleware.Responder

LogFileListHandlerHandlerFunc turns a function with the right signature into a log file list handler handler

func (LogFileListHandlerHandlerFunc) Handle

Handle executing the request and returning a response

type LogFileListHandlerParams

type LogFileListHandlerParams struct {

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

LogFileListHandlerParams contains all the bound params for the log file list handler operation typically these are obtained from a http.Request

swagger:parameters logFileListHandler

func NewLogFileListHandlerParams

func NewLogFileListHandlerParams() LogFileListHandlerParams

NewLogFileListHandlerParams creates a new LogFileListHandlerParams object no default values defined in spec.

func (*LogFileListHandlerParams) BindRequest

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

type LogFileListHandlerUnauthorized

type LogFileListHandlerUnauthorized struct {
}

LogFileListHandlerUnauthorized Unauthorized

swagger:response logFileListHandlerUnauthorized

func NewLogFileListHandlerUnauthorized

func NewLogFileListHandlerUnauthorized() *LogFileListHandlerUnauthorized

NewLogFileListHandlerUnauthorized creates LogFileListHandlerUnauthorized with default headers values

func (*LogFileListHandlerUnauthorized) WriteResponse

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

WriteResponse to the client

Jump to

Keyboard shortcuts

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