logs

package
v0.0.0-...-7077701 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GetDeviceLogNotFoundCode int = 404

GetDeviceLogNotFoundCode is the HTTP code returned for type GetDeviceLogNotFound

View Source
const GetDeviceLogOKCode int = 200

GetDeviceLogOKCode is the HTTP code returned for type GetDeviceLogOK

View Source
const GetProjectLogNotFoundCode int = 404

GetProjectLogNotFoundCode is the HTTP code returned for type GetProjectLogNotFound

View Source
const GetProjectLogOKCode int = 200

GetProjectLogOKCode is the HTTP code returned for type GetProjectLogOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetDeviceLog

type GetDeviceLog struct {
	Context *middleware.Context
	Handler GetDeviceLogHandler
}

GetDeviceLog swagger:route GET /logs/devices/{deviceId} Logs getDeviceLog

get specified device's log

func NewGetDeviceLog

func NewGetDeviceLog(ctx *middleware.Context, handler GetDeviceLogHandler) *GetDeviceLog

NewGetDeviceLog creates a new http.Handler for the get device log operation

func (*GetDeviceLog) ServeHTTP

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

type GetDeviceLogHandler

type GetDeviceLogHandler interface {
	Handle(GetDeviceLogParams, *models.Principal) middleware.Responder
}

GetDeviceLogHandler interface for that can handle valid get device log params

type GetDeviceLogHandlerFunc

type GetDeviceLogHandlerFunc func(GetDeviceLogParams, *models.Principal) middleware.Responder

GetDeviceLogHandlerFunc turns a function with the right signature into a get device log handler

func (GetDeviceLogHandlerFunc) Handle

Handle executing the request and returning a response

type GetDeviceLogNotFound

type GetDeviceLogNotFound struct {
}

GetDeviceLogNotFound device not found.

swagger:response getDeviceLogNotFound

func NewGetDeviceLogNotFound

func NewGetDeviceLogNotFound() *GetDeviceLogNotFound

NewGetDeviceLogNotFound creates GetDeviceLogNotFound with default headers values

func (*GetDeviceLogNotFound) WriteResponse

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

WriteResponse to the client

type GetDeviceLogOK

type GetDeviceLogOK struct {

	/*
	  In: Body
	*/
	Payload []*models.DeviceLog `json:"body,omitempty"`
}

GetDeviceLogOK successful operation

swagger:response getDeviceLogOK

func NewGetDeviceLogOK

func NewGetDeviceLogOK() *GetDeviceLogOK

NewGetDeviceLogOK creates GetDeviceLogOK with default headers values

func (*GetDeviceLogOK) SetPayload

func (o *GetDeviceLogOK) SetPayload(payload []*models.DeviceLog)

SetPayload sets the payload to the get device log o k response

func (*GetDeviceLogOK) WithPayload

func (o *GetDeviceLogOK) WithPayload(payload []*models.DeviceLog) *GetDeviceLogOK

WithPayload adds the payload to the get device log o k response

func (*GetDeviceLogOK) WriteResponse

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

WriteResponse to the client

type GetDeviceLogParams

type GetDeviceLogParams struct {

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

	/*deviceId
	  Required: true
	  In: path
	*/
	DeviceID string
}

GetDeviceLogParams contains all the bound params for the get device log operation typically these are obtained from a http.Request

swagger:parameters getDeviceLog

func NewGetDeviceLogParams

func NewGetDeviceLogParams() GetDeviceLogParams

NewGetDeviceLogParams creates a new GetDeviceLogParams object no default values defined in spec.

func (*GetDeviceLogParams) BindRequest

func (o *GetDeviceLogParams) 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 NewGetDeviceLogParams() beforehand.

type GetDeviceLogURL

type GetDeviceLogURL struct {
	DeviceID string
	// contains filtered or unexported fields
}

GetDeviceLogURL generates an URL for the get device log operation

func (*GetDeviceLogURL) Build

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

Build a url path and query string

func (*GetDeviceLogURL) BuildFull

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

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

func (*GetDeviceLogURL) Must

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

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

func (*GetDeviceLogURL) SetBasePath

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

func (o *GetDeviceLogURL) String() string

String returns the string representation of the path with query string

func (*GetDeviceLogURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetDeviceLogURL) WithBasePath

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

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 GetProjectLog

type GetProjectLog struct {
	Context *middleware.Context
	Handler GetProjectLogHandler
}

GetProjectLog swagger:route GET /logs/projects/{projectId} Logs getProjectLog

get specified project's log

func NewGetProjectLog

func NewGetProjectLog(ctx *middleware.Context, handler GetProjectLogHandler) *GetProjectLog

NewGetProjectLog creates a new http.Handler for the get project log operation

func (*GetProjectLog) ServeHTTP

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

type GetProjectLogHandler

type GetProjectLogHandler interface {
	Handle(GetProjectLogParams, *models.Principal) middleware.Responder
}

GetProjectLogHandler interface for that can handle valid get project log params

type GetProjectLogHandlerFunc

type GetProjectLogHandlerFunc func(GetProjectLogParams, *models.Principal) middleware.Responder

GetProjectLogHandlerFunc turns a function with the right signature into a get project log handler

func (GetProjectLogHandlerFunc) Handle

Handle executing the request and returning a response

type GetProjectLogNotFound

type GetProjectLogNotFound struct {
}

GetProjectLogNotFound device not found

swagger:response getProjectLogNotFound

func NewGetProjectLogNotFound

func NewGetProjectLogNotFound() *GetProjectLogNotFound

NewGetProjectLogNotFound creates GetProjectLogNotFound with default headers values

func (*GetProjectLogNotFound) WriteResponse

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

WriteResponse to the client

type GetProjectLogOK

type GetProjectLogOK struct {

	/*
	  In: Body
	*/
	Payload []*models.DeviceLog `json:"body,omitempty"`
}

GetProjectLogOK successful operation

swagger:response getProjectLogOK

func NewGetProjectLogOK

func NewGetProjectLogOK() *GetProjectLogOK

NewGetProjectLogOK creates GetProjectLogOK with default headers values

func (*GetProjectLogOK) SetPayload

func (o *GetProjectLogOK) SetPayload(payload []*models.DeviceLog)

SetPayload sets the payload to the get project log o k response

func (*GetProjectLogOK) WithPayload

func (o *GetProjectLogOK) WithPayload(payload []*models.DeviceLog) *GetProjectLogOK

WithPayload adds the payload to the get project log o k response

func (*GetProjectLogOK) WriteResponse

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

WriteResponse to the client

type GetProjectLogParams

type GetProjectLogParams struct {

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

	/*project id
	  Required: true
	  In: path
	*/
	ProjectID string
}

GetProjectLogParams contains all the bound params for the get project log operation typically these are obtained from a http.Request

swagger:parameters getProjectLog

func NewGetProjectLogParams

func NewGetProjectLogParams() GetProjectLogParams

NewGetProjectLogParams creates a new GetProjectLogParams object no default values defined in spec.

func (*GetProjectLogParams) BindRequest

func (o *GetProjectLogParams) 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 NewGetProjectLogParams() beforehand.

type GetProjectLogURL

type GetProjectLogURL struct {
	ProjectID string
	// contains filtered or unexported fields
}

GetProjectLogURL generates an URL for the get project log operation

func (*GetProjectLogURL) Build

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

Build a url path and query string

func (*GetProjectLogURL) BuildFull

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

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

func (*GetProjectLogURL) Must

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

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

func (*GetProjectLogURL) SetBasePath

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

func (o *GetProjectLogURL) String() string

String returns the string representation of the path with query string

func (*GetProjectLogURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetProjectLogURL) WithBasePath

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

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