inspect

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const InspectOKCode int = 200

InspectOKCode is the HTTP code returned for type InspectOK

Variables

This section is empty.

Functions

This section is empty.

Types

type Inspect

type Inspect struct {
	Context *middleware.Context
	Handler InspectHandler
}
Inspect swagger:route GET /admin/inspect Inspect inspect

Inspect Files on Drive

func NewInspect

func NewInspect(ctx *middleware.Context, handler InspectHandler) *Inspect

NewInspect creates a new http.Handler for the inspect operation

func (*Inspect) ServeHTTP

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

type InspectDefault

type InspectDefault struct {

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

InspectDefault Generic error response.

swagger:response inspectDefault

func NewInspectDefault

func NewInspectDefault(code int) *InspectDefault

NewInspectDefault creates InspectDefault with default headers values

func (*InspectDefault) SetPayload

func (o *InspectDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the inspect default response

func (*InspectDefault) SetStatusCode

func (o *InspectDefault) SetStatusCode(code int)

SetStatusCode sets the status to the inspect default response

func (*InspectDefault) WithPayload

func (o *InspectDefault) WithPayload(payload *models.APIError) *InspectDefault

WithPayload adds the payload to the inspect default response

func (*InspectDefault) WithStatusCode

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

WithStatusCode adds the status to the inspect default response

func (*InspectDefault) WriteResponse

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

WriteResponse to the client

type InspectHandler

type InspectHandler interface {
	Handle(InspectParams, *models.Principal) middleware.Responder
}

InspectHandler interface for that can handle valid inspect params

type InspectHandlerFunc

type InspectHandlerFunc func(InspectParams, *models.Principal) middleware.Responder

InspectHandlerFunc turns a function with the right signature into a inspect handler

func (InspectHandlerFunc) Handle

func (fn InspectHandlerFunc) Handle(params InspectParams, principal *models.Principal) middleware.Responder

Handle executing the request and returning a response

type InspectOK

type InspectOK struct {

	/*
	  In: Body
	*/
	Payload io.ReadCloser `json:"body,omitempty"`
}

InspectOK A successful response.

swagger:response inspectOK

func NewInspectOK

func NewInspectOK() *InspectOK

NewInspectOK creates InspectOK with default headers values

func (*InspectOK) SetPayload

func (o *InspectOK) SetPayload(payload io.ReadCloser)

SetPayload sets the payload to the inspect o k response

func (*InspectOK) WithPayload

func (o *InspectOK) WithPayload(payload io.ReadCloser) *InspectOK

WithPayload adds the payload to the inspect o k response

func (*InspectOK) WriteResponse

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

WriteResponse to the client

type InspectParams

type InspectParams struct {

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

	/*
	  In: query
	*/
	Encrypt *bool
	/*
	  Required: true
	  In: query
	*/
	File string
	/*
	  Required: true
	  In: query
	*/
	Volume string
}

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

swagger:parameters Inspect

func NewInspectParams

func NewInspectParams() InspectParams

NewInspectParams creates a new InspectParams object

There are no default values defined in the spec.

func (*InspectParams) BindRequest

func (o *InspectParams) 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 NewInspectParams() beforehand.

type InspectURL

type InspectURL struct {
	Encrypt *bool
	File    string
	Volume  string
	// contains filtered or unexported fields
}

InspectURL generates an URL for the inspect operation

func (*InspectURL) Build

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

Build a url path and query string

func (*InspectURL) BuildFull

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

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

func (*InspectURL) Must

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

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

func (*InspectURL) SetBasePath

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

func (o *InspectURL) String() string

String returns the string representation of the path with query string

func (*InspectURL) StringFull

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

StringFull returns the string representation of a complete url

func (*InspectURL) WithBasePath

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

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