Documentation
¶
Index ¶
- Constants
- type Delete
- type DeleteDefault
- func (o *DeleteDefault) SetPayload(payload *models.Error)
- func (o *DeleteDefault) SetStatusCode(code int)
- func (o *DeleteDefault) WithPayload(payload *models.Error) *DeleteDefault
- func (o *DeleteDefault) WithStatusCode(code int) *DeleteDefault
- func (o *DeleteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteHandler
- type DeleteHandlerFunc
- type DeleteOK
- type DeleteParams
- type DeleteURL
- func (o *DeleteURL) Build() (*url.URL, error)
- func (o *DeleteURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteURL) SetBasePath(bp string)
- func (o *DeleteURL) String() string
- func (o *DeleteURL) StringFull(scheme, host string) string
- func (o *DeleteURL) WithBasePath(bp string) *DeleteURL
- type Deletefiles
- type DeletefilesDefault
- func (o *DeletefilesDefault) SetPayload(payload *models.Error)
- func (o *DeletefilesDefault) SetStatusCode(code int)
- func (o *DeletefilesDefault) WithPayload(payload *models.Error) *DeletefilesDefault
- func (o *DeletefilesDefault) WithStatusCode(code int) *DeletefilesDefault
- func (o *DeletefilesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeletefilesHandler
- type DeletefilesHandlerFunc
- type DeletefilesOK
- type DeletefilesParams
- type DeletefilesURL
- func (o *DeletefilesURL) Build() (*url.URL, error)
- func (o *DeletefilesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeletefilesURL) Must(u *url.URL, err error) *url.URL
- func (o *DeletefilesURL) SetBasePath(bp string)
- func (o *DeletefilesURL) String() string
- func (o *DeletefilesURL) StringFull(scheme, host string) string
- func (o *DeletefilesURL) WithBasePath(bp string) *DeletefilesURL
- type Duplicates
- type DuplicatesDefault
- func (o *DuplicatesDefault) SetPayload(payload *models.Error)
- func (o *DuplicatesDefault) SetStatusCode(code int)
- func (o *DuplicatesDefault) WithPayload(payload *models.Error) *DuplicatesDefault
- func (o *DuplicatesDefault) WithStatusCode(code int) *DuplicatesDefault
- func (o *DuplicatesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DuplicatesHandler
- type DuplicatesHandlerFunc
- type DuplicatesOK
- type DuplicatesParams
- type DuplicatesURL
- func (o *DuplicatesURL) Build() (*url.URL, error)
- func (o *DuplicatesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DuplicatesURL) Must(u *url.URL, err error) *url.URL
- func (o *DuplicatesURL) SetBasePath(bp string)
- func (o *DuplicatesURL) String() string
- func (o *DuplicatesURL) StringFull(scheme, host string) string
- func (o *DuplicatesURL) WithBasePath(bp string) *DuplicatesURL
- type Files
- type FilesDefault
- func (o *FilesDefault) SetPayload(payload *models.Error)
- func (o *FilesDefault) SetStatusCode(code int)
- func (o *FilesDefault) WithPayload(payload *models.Error) *FilesDefault
- func (o *FilesDefault) WithStatusCode(code int) *FilesDefault
- func (o *FilesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type FilesHandler
- type FilesHandlerFunc
- type FilesOK
- type FilesParams
- type FilesURL
- func (o *FilesURL) Build() (*url.URL, error)
- func (o *FilesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *FilesURL) Must(u *url.URL, err error) *url.URL
- func (o *FilesURL) SetBasePath(bp string)
- func (o *FilesURL) String() string
- func (o *FilesURL) StringFull(scheme, host string) string
- func (o *FilesURL) WithBasePath(bp string) *FilesURL
- type Health
- type HealthDefault
- func (o *HealthDefault) SetPayload(payload *models.Error)
- func (o *HealthDefault) SetStatusCode(code int)
- func (o *HealthDefault) WithPayload(payload *models.Error) *HealthDefault
- func (o *HealthDefault) WithStatusCode(code int) *HealthDefault
- func (o *HealthDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type HealthHandler
- type HealthHandlerFunc
- type HealthOK
- type HealthParams
- type HealthURL
- func (o *HealthURL) Build() (*url.URL, error)
- func (o *HealthURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *HealthURL) Must(u *url.URL, err error) *url.URL
- func (o *HealthURL) SetBasePath(bp string)
- func (o *HealthURL) String() string
- func (o *HealthURL) StringFull(scheme, host string) string
- func (o *HealthURL) WithBasePath(bp string) *HealthURL
- type KbdsRefRestapiAPI
- func (o *KbdsRefRestapiAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
- func (o *KbdsRefRestapiAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *KbdsRefRestapiAPI) Authorizer() runtime.Authorizer
- func (o *KbdsRefRestapiAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *KbdsRefRestapiAPI) Context() *middleware.Context
- func (o *KbdsRefRestapiAPI) DefaultConsumes() string
- func (o *KbdsRefRestapiAPI) DefaultProduces() string
- func (o *KbdsRefRestapiAPI) Formats() strfmt.Registry
- func (o *KbdsRefRestapiAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *KbdsRefRestapiAPI) Init()
- func (o *KbdsRefRestapiAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *KbdsRefRestapiAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *KbdsRefRestapiAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *KbdsRefRestapiAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *KbdsRefRestapiAPI) Serve(builder middleware.Builder) http.Handler
- func (o *KbdsRefRestapiAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *KbdsRefRestapiAPI) SetDefaultConsumes(mediaType string)
- func (o *KbdsRefRestapiAPI) SetDefaultProduces(mediaType string)
- func (o *KbdsRefRestapiAPI) SetSpec(spec *loads.Document)
- func (o *KbdsRefRestapiAPI) UseRedoc()
- func (o *KbdsRefRestapiAPI) UseSwaggerUI()
- func (o *KbdsRefRestapiAPI) Validate() error
- type Search
- type SearchBody
- type SearchDefault
- func (o *SearchDefault) SetPayload(payload *models.Error)
- func (o *SearchDefault) SetStatusCode(code int)
- func (o *SearchDefault) WithPayload(payload *models.Error) *SearchDefault
- func (o *SearchDefault) WithStatusCode(code int) *SearchDefault
- func (o *SearchDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SearchHandler
- type SearchHandlerFunc
- type SearchOK
- type SearchParams
- type SearchURL
- func (o *SearchURL) Build() (*url.URL, error)
- func (o *SearchURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SearchURL) Must(u *url.URL, err error) *url.URL
- func (o *SearchURL) SetBasePath(bp string)
- func (o *SearchURL) String() string
- func (o *SearchURL) StringFull(scheme, host string) string
- func (o *SearchURL) WithBasePath(bp string) *SearchURL
Constants ¶
const DeleteOKCode int = 200
DeleteOKCode is the HTTP code returned for type DeleteOK
const DeletefilesOKCode int = 200
DeletefilesOKCode is the HTTP code returned for type DeletefilesOK
const DuplicatesOKCode int = 200
DuplicatesOKCode is the HTTP code returned for type DuplicatesOK
const FilesOKCode int = 200
FilesOKCode is the HTTP code returned for type FilesOK
const HealthOKCode int = 200
HealthOKCode is the HTTP code returned for type HealthOK
const SearchOKCode int = 200
SearchOKCode is the HTTP code returned for type SearchOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Delete ¶
type Delete struct {
Context *middleware.Context
Handler DeleteHandler
}
Delete swagger:route POST /v1/delete/{fileid} delete
Delete delete API
func NewDelete ¶
func NewDelete(ctx *middleware.Context, handler DeleteHandler) *Delete
NewDelete creates a new http.Handler for the delete operation
type DeleteDefault ¶
type DeleteDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
DeleteDefault generic error response
swagger:response deleteDefault
func NewDeleteDefault ¶
func NewDeleteDefault(code int) *DeleteDefault
NewDeleteDefault creates DeleteDefault with default headers values
func (*DeleteDefault) SetPayload ¶
func (o *DeleteDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete default response
func (*DeleteDefault) SetStatusCode ¶
func (o *DeleteDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete default response
func (*DeleteDefault) WithPayload ¶
func (o *DeleteDefault) WithPayload(payload *models.Error) *DeleteDefault
WithPayload adds the payload to the delete default response
func (*DeleteDefault) WithStatusCode ¶
func (o *DeleteDefault) WithStatusCode(code int) *DeleteDefault
WithStatusCode adds the status to the delete default response
func (*DeleteDefault) WriteResponse ¶
func (o *DeleteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteHandler ¶
type DeleteHandler interface {
Handle(DeleteParams) middleware.Responder
}
DeleteHandler interface for that can handle valid delete params
type DeleteHandlerFunc ¶
type DeleteHandlerFunc func(DeleteParams) middleware.Responder
DeleteHandlerFunc turns a function with the right signature into a delete handler
func (DeleteHandlerFunc) Handle ¶
func (fn DeleteHandlerFunc) Handle(params DeleteParams) middleware.Responder
Handle executing the request and returning a response
type DeleteOK ¶
type DeleteOK struct {
/*
In: Body
*/
Payload string `json:"body,omitempty"`
}
DeleteOK Successfully deleted
swagger:response deleteOK
func NewDeleteOK ¶
func NewDeleteOK() *DeleteOK
NewDeleteOK creates DeleteOK with default headers values
func (*DeleteOK) SetPayload ¶
SetPayload sets the payload to the delete o k response
func (*DeleteOK) WithPayload ¶
WithPayload adds the payload to the delete o k response
func (*DeleteOK) WriteResponse ¶
func (o *DeleteOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteParams ¶
type DeleteParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*file to delete.
Required: true
In: path
*/
Fileid int64
}
DeleteParams contains all the bound params for the delete operation typically these are obtained from a http.Request
swagger:parameters delete
func NewDeleteParams ¶
func NewDeleteParams() DeleteParams
NewDeleteParams creates a new DeleteParams object
There are no default values defined in the spec.
func (*DeleteParams) BindRequest ¶
func (o *DeleteParams) 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 NewDeleteParams() beforehand.
type DeleteURL ¶
type DeleteURL struct {
Fileid int64
// contains filtered or unexported fields
}
DeleteURL generates an URL for the delete operation
func (*DeleteURL) SetBasePath ¶
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 (*DeleteURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*DeleteURL) WithBasePath ¶
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 Deletefiles ¶
type Deletefiles struct {
Context *middleware.Context
Handler DeletefilesHandler
}
Deletefiles swagger:route DELETE /v1/files deletefiles
Deletefiles deletefiles API
func NewDeletefiles ¶
func NewDeletefiles(ctx *middleware.Context, handler DeletefilesHandler) *Deletefiles
NewDeletefiles creates a new http.Handler for the deletefiles operation
func (*Deletefiles) ServeHTTP ¶
func (o *Deletefiles) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeletefilesDefault ¶
type DeletefilesDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
DeletefilesDefault generic error response
swagger:response deletefilesDefault
func NewDeletefilesDefault ¶
func NewDeletefilesDefault(code int) *DeletefilesDefault
NewDeletefilesDefault creates DeletefilesDefault with default headers values
func (*DeletefilesDefault) SetPayload ¶
func (o *DeletefilesDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the deletefiles default response
func (*DeletefilesDefault) SetStatusCode ¶
func (o *DeletefilesDefault) SetStatusCode(code int)
SetStatusCode sets the status to the deletefiles default response
func (*DeletefilesDefault) WithPayload ¶
func (o *DeletefilesDefault) WithPayload(payload *models.Error) *DeletefilesDefault
WithPayload adds the payload to the deletefiles default response
func (*DeletefilesDefault) WithStatusCode ¶
func (o *DeletefilesDefault) WithStatusCode(code int) *DeletefilesDefault
WithStatusCode adds the status to the deletefiles default response
func (*DeletefilesDefault) WriteResponse ¶
func (o *DeletefilesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeletefilesHandler ¶
type DeletefilesHandler interface {
Handle(DeletefilesParams) middleware.Responder
}
DeletefilesHandler interface for that can handle valid deletefiles params
type DeletefilesHandlerFunc ¶
type DeletefilesHandlerFunc func(DeletefilesParams) middleware.Responder
DeletefilesHandlerFunc turns a function with the right signature into a deletefiles handler
func (DeletefilesHandlerFunc) Handle ¶
func (fn DeletefilesHandlerFunc) Handle(params DeletefilesParams) middleware.Responder
Handle executing the request and returning a response
type DeletefilesOK ¶
type DeletefilesOK struct {
/*
In: Body
*/
Payload string `json:"body,omitempty"`
}
DeletefilesOK Successfully deleted the list of fileinfo resources
swagger:response deletefilesOK
func NewDeletefilesOK ¶
func NewDeletefilesOK() *DeletefilesOK
NewDeletefilesOK creates DeletefilesOK with default headers values
func (*DeletefilesOK) SetPayload ¶
func (o *DeletefilesOK) SetPayload(payload string)
SetPayload sets the payload to the deletefiles o k response
func (*DeletefilesOK) WithPayload ¶
func (o *DeletefilesOK) WithPayload(payload string) *DeletefilesOK
WithPayload adds the payload to the deletefiles o k response
func (*DeletefilesOK) WriteResponse ¶
func (o *DeletefilesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeletefilesParams ¶
type DeletefilesParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*list of file info to delete
Required: true
In: body
*/
Files models.Files
}
DeletefilesParams contains all the bound params for the deletefiles operation typically these are obtained from a http.Request
swagger:parameters deletefiles
func NewDeletefilesParams ¶
func NewDeletefilesParams() DeletefilesParams
NewDeletefilesParams creates a new DeletefilesParams object
There are no default values defined in the spec.
func (*DeletefilesParams) BindRequest ¶
func (o *DeletefilesParams) 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 NewDeletefilesParams() beforehand.
type DeletefilesURL ¶
type DeletefilesURL struct {
// contains filtered or unexported fields
}
DeletefilesURL generates an URL for the deletefiles operation
func (*DeletefilesURL) Build ¶
func (o *DeletefilesURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeletefilesURL) BuildFull ¶
func (o *DeletefilesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeletefilesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeletefilesURL) SetBasePath ¶
func (o *DeletefilesURL) 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 (*DeletefilesURL) String ¶
func (o *DeletefilesURL) String() string
String returns the string representation of the path with query string
func (*DeletefilesURL) StringFull ¶
func (o *DeletefilesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeletefilesURL) WithBasePath ¶
func (o *DeletefilesURL) WithBasePath(bp string) *DeletefilesURL
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 Duplicates ¶
type Duplicates struct {
Context *middleware.Context
Handler DuplicatesHandler
}
Duplicates swagger:route POST /v1/duplicates duplicates
Duplicates duplicates API
func NewDuplicates ¶
func NewDuplicates(ctx *middleware.Context, handler DuplicatesHandler) *Duplicates
NewDuplicates creates a new http.Handler for the duplicates operation
func (*Duplicates) ServeHTTP ¶
func (o *Duplicates) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DuplicatesDefault ¶
type DuplicatesDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
DuplicatesDefault generic error response
swagger:response duplicatesDefault
func NewDuplicatesDefault ¶
func NewDuplicatesDefault(code int) *DuplicatesDefault
NewDuplicatesDefault creates DuplicatesDefault with default headers values
func (*DuplicatesDefault) SetPayload ¶
func (o *DuplicatesDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the duplicates default response
func (*DuplicatesDefault) SetStatusCode ¶
func (o *DuplicatesDefault) SetStatusCode(code int)
SetStatusCode sets the status to the duplicates default response
func (*DuplicatesDefault) WithPayload ¶
func (o *DuplicatesDefault) WithPayload(payload *models.Error) *DuplicatesDefault
WithPayload adds the payload to the duplicates default response
func (*DuplicatesDefault) WithStatusCode ¶
func (o *DuplicatesDefault) WithStatusCode(code int) *DuplicatesDefault
WithStatusCode adds the status to the duplicates default response
func (*DuplicatesDefault) WriteResponse ¶
func (o *DuplicatesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DuplicatesHandler ¶
type DuplicatesHandler interface {
Handle(DuplicatesParams) middleware.Responder
}
DuplicatesHandler interface for that can handle valid duplicates params
type DuplicatesHandlerFunc ¶
type DuplicatesHandlerFunc func(DuplicatesParams) middleware.Responder
DuplicatesHandlerFunc turns a function with the right signature into a duplicates handler
func (DuplicatesHandlerFunc) Handle ¶
func (fn DuplicatesHandlerFunc) Handle(params DuplicatesParams) middleware.Responder
Handle executing the request and returning a response
type DuplicatesOK ¶
DuplicatesOK Successfully posted the list of fileinfo resources
swagger:response duplicatesOK
func NewDuplicatesOK ¶
func NewDuplicatesOK() *DuplicatesOK
NewDuplicatesOK creates DuplicatesOK with default headers values
func (*DuplicatesOK) SetPayload ¶
func (o *DuplicatesOK) SetPayload(payload models.Files)
SetPayload sets the payload to the duplicates o k response
func (*DuplicatesOK) WithPayload ¶
func (o *DuplicatesOK) WithPayload(payload models.Files) *DuplicatesOK
WithPayload adds the payload to the duplicates o k response
func (*DuplicatesOK) WriteResponse ¶
func (o *DuplicatesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DuplicatesParams ¶
type DuplicatesParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*file info of interest
Required: true
In: body
*/
Finfos models.Files
}
DuplicatesParams contains all the bound params for the duplicates operation typically these are obtained from a http.Request
swagger:parameters duplicates
func NewDuplicatesParams ¶
func NewDuplicatesParams() DuplicatesParams
NewDuplicatesParams creates a new DuplicatesParams object
There are no default values defined in the spec.
func (*DuplicatesParams) BindRequest ¶
func (o *DuplicatesParams) 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 NewDuplicatesParams() beforehand.
type DuplicatesURL ¶
type DuplicatesURL struct {
// contains filtered or unexported fields
}
DuplicatesURL generates an URL for the duplicates operation
func (*DuplicatesURL) Build ¶
func (o *DuplicatesURL) Build() (*url.URL, error)
Build a url path and query string
func (*DuplicatesURL) BuildFull ¶
func (o *DuplicatesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DuplicatesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DuplicatesURL) SetBasePath ¶
func (o *DuplicatesURL) 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 (*DuplicatesURL) String ¶
func (o *DuplicatesURL) String() string
String returns the string representation of the path with query string
func (*DuplicatesURL) StringFull ¶
func (o *DuplicatesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DuplicatesURL) WithBasePath ¶
func (o *DuplicatesURL) WithBasePath(bp string) *DuplicatesURL
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 Files ¶
type Files struct {
Context *middleware.Context
Handler FilesHandler
}
Files swagger:route POST /v1/files files
Files files API
func NewFiles ¶
func NewFiles(ctx *middleware.Context, handler FilesHandler) *Files
NewFiles creates a new http.Handler for the files operation
type FilesDefault ¶
type FilesDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
FilesDefault generic error response
swagger:response filesDefault
func NewFilesDefault ¶
func NewFilesDefault(code int) *FilesDefault
NewFilesDefault creates FilesDefault with default headers values
func (*FilesDefault) SetPayload ¶
func (o *FilesDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the files default response
func (*FilesDefault) SetStatusCode ¶
func (o *FilesDefault) SetStatusCode(code int)
SetStatusCode sets the status to the files default response
func (*FilesDefault) WithPayload ¶
func (o *FilesDefault) WithPayload(payload *models.Error) *FilesDefault
WithPayload adds the payload to the files default response
func (*FilesDefault) WithStatusCode ¶
func (o *FilesDefault) WithStatusCode(code int) *FilesDefault
WithStatusCode adds the status to the files default response
func (*FilesDefault) WriteResponse ¶
func (o *FilesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type FilesHandler ¶
type FilesHandler interface {
Handle(FilesParams) middleware.Responder
}
FilesHandler interface for that can handle valid files params
type FilesHandlerFunc ¶
type FilesHandlerFunc func(FilesParams) middleware.Responder
FilesHandlerFunc turns a function with the right signature into a files handler
func (FilesHandlerFunc) Handle ¶
func (fn FilesHandlerFunc) Handle(params FilesParams) middleware.Responder
Handle executing the request and returning a response
type FilesOK ¶
type FilesOK struct {
/*
In: Body
*/
Payload int64 `json:"body,omitempty"`
}
FilesOK Successfully posted the list of fileinfo resources
swagger:response filesOK
func (*FilesOK) SetPayload ¶
SetPayload sets the payload to the files o k response
func (*FilesOK) WithPayload ¶
WithPayload adds the payload to the files o k response
func (*FilesOK) WriteResponse ¶
func (o *FilesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type FilesParams ¶
type FilesParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*list of file info to post
Required: true
In: body
*/
Files models.Files
}
FilesParams contains all the bound params for the files operation typically these are obtained from a http.Request
swagger:parameters files
func NewFilesParams ¶
func NewFilesParams() FilesParams
NewFilesParams creates a new FilesParams object
There are no default values defined in the spec.
func (*FilesParams) BindRequest ¶
func (o *FilesParams) 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 NewFilesParams() beforehand.
type FilesURL ¶
type FilesURL struct {
// contains filtered or unexported fields
}
FilesURL generates an URL for the files operation
func (*FilesURL) SetBasePath ¶
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 (*FilesURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*FilesURL) WithBasePath ¶
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 Health ¶
type Health struct {
Context *middleware.Context
Handler HealthHandler
}
Health swagger:route GET /v1/healthz health
Health health API
func NewHealth ¶
func NewHealth(ctx *middleware.Context, handler HealthHandler) *Health
NewHealth creates a new http.Handler for the health operation
type HealthDefault ¶
type HealthDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
HealthDefault generic error response
swagger:response healthDefault
func NewHealthDefault ¶
func NewHealthDefault(code int) *HealthDefault
NewHealthDefault creates HealthDefault with default headers values
func (*HealthDefault) SetPayload ¶
func (o *HealthDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the health default response
func (*HealthDefault) SetStatusCode ¶
func (o *HealthDefault) SetStatusCode(code int)
SetStatusCode sets the status to the health default response
func (*HealthDefault) WithPayload ¶
func (o *HealthDefault) WithPayload(payload *models.Error) *HealthDefault
WithPayload adds the payload to the health default response
func (*HealthDefault) WithStatusCode ¶
func (o *HealthDefault) WithStatusCode(code int) *HealthDefault
WithStatusCode adds the status to the health default response
func (*HealthDefault) WriteResponse ¶
func (o *HealthDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type HealthHandler ¶
type HealthHandler interface {
Handle(HealthParams) middleware.Responder
}
HealthHandler interface for that can handle valid health params
type HealthHandlerFunc ¶
type HealthHandlerFunc func(HealthParams) middleware.Responder
HealthHandlerFunc turns a function with the right signature into a health handler
func (HealthHandlerFunc) Handle ¶
func (fn HealthHandlerFunc) Handle(params HealthParams) middleware.Responder
Handle executing the request and returning a response
type HealthOK ¶
type HealthOK struct {
/*
In: Body
*/
Payload string `json:"body,omitempty"`
}
HealthOK Successfully checked health status
swagger:response healthOK
func NewHealthOK ¶
func NewHealthOK() *HealthOK
NewHealthOK creates HealthOK with default headers values
func (*HealthOK) SetPayload ¶
SetPayload sets the payload to the health o k response
func (*HealthOK) WithPayload ¶
WithPayload adds the payload to the health o k response
func (*HealthOK) WriteResponse ¶
func (o *HealthOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type HealthParams ¶
HealthParams contains all the bound params for the health operation typically these are obtained from a http.Request
swagger:parameters health
func NewHealthParams ¶
func NewHealthParams() HealthParams
NewHealthParams creates a new HealthParams object
There are no default values defined in the spec.
func (*HealthParams) BindRequest ¶
func (o *HealthParams) 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 NewHealthParams() beforehand.
type HealthURL ¶
type HealthURL struct {
// contains filtered or unexported fields
}
HealthURL generates an URL for the health operation
func (*HealthURL) SetBasePath ¶
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 (*HealthURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*HealthURL) WithBasePath ¶
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 KbdsRefRestapiAPI ¶
type KbdsRefRestapiAPI struct {
Middleware func(middleware.Builder) http.Handler
// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
// It has a default implementation in the security package, however you can replace it for your particular usage.
BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator
// APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function.
// It has a default implementation in the security package, however you can replace it for your particular usage.
APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator
// BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function.
// It has a default implementation in the security package, however you can replace it for your particular usage.
BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator
// JSONConsumer registers a consumer for the following mime types:
// - application/json
JSONConsumer runtime.Consumer
// JSONProducer registers a producer for the following mime types:
// - application/json
JSONProducer runtime.Producer
// DeleteHandler sets the operation handler for the delete operation
DeleteHandler DeleteHandler
// DeletefilesHandler sets the operation handler for the deletefiles operation
DeletefilesHandler DeletefilesHandler
// DuplicatesHandler sets the operation handler for the duplicates operation
DuplicatesHandler DuplicatesHandler
// FilesHandler sets the operation handler for the files operation
FilesHandler FilesHandler
// HealthHandler sets the operation handler for the health operation
HealthHandler HealthHandler
// SearchHandler sets the operation handler for the search operation
SearchHandler SearchHandler
// ServeError is called when an error is received, there is a default handler
// but you can set your own with this
ServeError func(http.ResponseWriter, *http.Request, error)
// PreServerShutdown is called before the HTTP(S) server is shutdown
// This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic
PreServerShutdown func()
// ServerShutdown is called when the HTTP(S) server is shut down and done
// handling all active connections and does not accept connections any more
ServerShutdown func()
// Custom command line argument groups with their descriptions
CommandLineOptionsGroups []swag.CommandLineOptionsGroup
// User defined logger function.
Logger func(string, ...interface{})
// contains filtered or unexported fields
}
KbdsRefRestapiAPI the kbds ref restapi API
func NewKbdsRefRestapiAPI ¶
func NewKbdsRefRestapiAPI(spec *loads.Document) *KbdsRefRestapiAPI
NewKbdsRefRestapiAPI creates a new KbdsRefRestapi instance
func (*KbdsRefRestapiAPI) AddMiddlewareFor ¶
func (o *KbdsRefRestapiAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
AddMiddlewareFor adds a http middleware to existing handler
func (*KbdsRefRestapiAPI) AuthenticatorsFor ¶
func (o *KbdsRefRestapiAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*KbdsRefRestapiAPI) Authorizer ¶
func (o *KbdsRefRestapiAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*KbdsRefRestapiAPI) ConsumersFor ¶
func (o *KbdsRefRestapiAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.
func (*KbdsRefRestapiAPI) Context ¶
func (o *KbdsRefRestapiAPI) Context() *middleware.Context
Context returns the middleware context for the kbds ref restapi API
func (*KbdsRefRestapiAPI) DefaultConsumes ¶
func (o *KbdsRefRestapiAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*KbdsRefRestapiAPI) DefaultProduces ¶
func (o *KbdsRefRestapiAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*KbdsRefRestapiAPI) Formats ¶
func (o *KbdsRefRestapiAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*KbdsRefRestapiAPI) HandlerFor ¶
func (o *KbdsRefRestapiAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*KbdsRefRestapiAPI) Init ¶
func (o *KbdsRefRestapiAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*KbdsRefRestapiAPI) ProducersFor ¶
func (o *KbdsRefRestapiAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*KbdsRefRestapiAPI) RegisterConsumer ¶
func (o *KbdsRefRestapiAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*KbdsRefRestapiAPI) RegisterFormat ¶
func (o *KbdsRefRestapiAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*KbdsRefRestapiAPI) RegisterProducer ¶
func (o *KbdsRefRestapiAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*KbdsRefRestapiAPI) Serve ¶
func (o *KbdsRefRestapiAPI) Serve(builder middleware.Builder) http.Handler
Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))
func (*KbdsRefRestapiAPI) ServeErrorFor ¶
func (o *KbdsRefRestapiAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*KbdsRefRestapiAPI) SetDefaultConsumes ¶
func (o *KbdsRefRestapiAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*KbdsRefRestapiAPI) SetDefaultProduces ¶
func (o *KbdsRefRestapiAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*KbdsRefRestapiAPI) SetSpec ¶
func (o *KbdsRefRestapiAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*KbdsRefRestapiAPI) UseRedoc ¶
func (o *KbdsRefRestapiAPI) UseRedoc()
UseRedoc for documentation at /docs
func (*KbdsRefRestapiAPI) UseSwaggerUI ¶
func (o *KbdsRefRestapiAPI) UseSwaggerUI()
UseSwaggerUI for documentation at /docs
func (*KbdsRefRestapiAPI) Validate ¶
func (o *KbdsRefRestapiAPI) Validate() error
Validate validates the registrations in the KbdsRefRestapiAPI
type Search ¶
type Search struct {
Context *middleware.Context
Handler SearchHandler
}
Search swagger:route POST /v1/search search
Search search API
func NewSearch ¶
func NewSearch(ctx *middleware.Context, handler SearchHandler) *Search
NewSearch creates a new http.Handler for the search operation
type SearchBody ¶
type SearchBody struct {
// page
Page int64 `json:"page,omitempty"`
// pagesize
Pagesize int64 `json:"pagesize,omitempty"`
// search
Search string `json:"search,omitempty"`
}
SearchBody search body
swagger:model SearchBody
func (*SearchBody) ContextValidate ¶
ContextValidate validates this search body based on context it is used
func (*SearchBody) MarshalBinary ¶
func (o *SearchBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SearchBody) UnmarshalBinary ¶
func (o *SearchBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SearchDefault ¶
type SearchDefault struct {
/*
In: Body
*/
Payload *models.Error `json:"body,omitempty"`
// contains filtered or unexported fields
}
SearchDefault generic error response
swagger:response searchDefault
func NewSearchDefault ¶
func NewSearchDefault(code int) *SearchDefault
NewSearchDefault creates SearchDefault with default headers values
func (*SearchDefault) SetPayload ¶
func (o *SearchDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the search default response
func (*SearchDefault) SetStatusCode ¶
func (o *SearchDefault) SetStatusCode(code int)
SetStatusCode sets the status to the search default response
func (*SearchDefault) WithPayload ¶
func (o *SearchDefault) WithPayload(payload *models.Error) *SearchDefault
WithPayload adds the payload to the search default response
func (*SearchDefault) WithStatusCode ¶
func (o *SearchDefault) WithStatusCode(code int) *SearchDefault
WithStatusCode adds the status to the search default response
func (*SearchDefault) WriteResponse ¶
func (o *SearchDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SearchHandler ¶
type SearchHandler interface {
Handle(SearchParams) middleware.Responder
}
SearchHandler interface for that can handle valid search params
type SearchHandlerFunc ¶
type SearchHandlerFunc func(SearchParams) middleware.Responder
SearchHandlerFunc turns a function with the right signature into a search handler
func (SearchHandlerFunc) Handle ¶
func (fn SearchHandlerFunc) Handle(params SearchParams) middleware.Responder
Handle executing the request and returning a response
type SearchOK ¶
SearchOK Successfully searched the file list based on a search term
swagger:response searchOK
func NewSearchOK ¶
func NewSearchOK() *SearchOK
NewSearchOK creates SearchOK with default headers values
func (*SearchOK) SetPayload ¶
SetPayload sets the payload to the search o k response
func (*SearchOK) WithPayload ¶
WithPayload adds the payload to the search o k response
func (*SearchOK) WriteResponse ¶
func (o *SearchOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SearchParams ¶
type SearchParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*part of file name/path you are searching for
Required: true
In: body
*/
Search SearchBody
}
SearchParams contains all the bound params for the search operation typically these are obtained from a http.Request
swagger:parameters search
func NewSearchParams ¶
func NewSearchParams() SearchParams
NewSearchParams creates a new SearchParams object
There are no default values defined in the spec.
func (*SearchParams) BindRequest ¶
func (o *SearchParams) 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 NewSearchParams() beforehand.
type SearchURL ¶
type SearchURL struct {
// contains filtered or unexported fields
}
SearchURL generates an URL for the search operation
func (*SearchURL) SetBasePath ¶
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 (*SearchURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*SearchURL) WithBasePath ¶
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
Source Files
¶
- delete.go
- delete_parameters.go
- delete_responses.go
- delete_urlbuilder.go
- deletefiles.go
- deletefiles_parameters.go
- deletefiles_responses.go
- deletefiles_urlbuilder.go
- duplicates.go
- duplicates_parameters.go
- duplicates_responses.go
- duplicates_urlbuilder.go
- files.go
- files_parameters.go
- files_responses.go
- files_urlbuilder.go
- health.go
- health_parameters.go
- health_responses.go
- health_urlbuilder.go
- kbds_ref_restapi_api.go
- search.go
- search_parameters.go
- search_responses.go
- search_urlbuilder.go