Documentation
¶
Overview ¶
Package server provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
Package server provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
Index ¶
- Constants
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r *mux.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r *mux.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options GorillaServerOptions) http.Handler
- type AttachmentFileName
- type AttachmentLinks
- type AttachmentsList
- type AttachmentsListEntry
- type AuthorsResponse
- type DeleteTMNameAttachmentParams
- type DeleteThingModelAttachmentByNameParams
- type DeleteThingModelByIdParams
- type ErrorResponse
- type FetchName
- type ForceImport
- type GetAuthorsParams
- type GetCompletionsParams
- type GetCompletionsParamsKind
- type GetInventoryByFetchNameParams
- type GetInventoryByIDParams
- type GetInventoryByNameParams
- type GetInventoryParams
- type GetManufacturersParams
- type GetMpnsParams
- type GetTMNameAttachmentParams
- type GetThingModelAttachmentByNameParams
- type GetThingModelByFetchNameParams
- type GetThingModelByIdParams
- type GorillaServerOptions
- type ImportThingModelJSONBody
- type ImportThingModelJSONRequestBody
- type ImportThingModelParams
- type ImportThingModelResponse
- type ImportThingModelResult
- type InfoResponse
- type InfoVersion
- type InvalidParamFormatError
- type InventoryEntry
- type InventoryEntryLinks
- type InventoryEntryResponse
- type InventoryEntryVersion
- type InventoryEntryVersionLinks
- type InventoryEntryVersionResponse
- type InventoryEntryVersionsResponse
- type InventoryResponse
- type ManufacturersResponse
- type Meta
- type MetaPage
- type MiddlewareFunc
- type ModelVersion
- type MpnsResponse
- type PutTMIDAttachmentParams
- type PutTMNameAttachmentParams
- type RepoConstraint
- type RepoDescription
- type RepoDisambiguator
- type ReposResponse
- type RequiredHeaderError
- type RequiredParamError
- type SchemaAuthor
- type SchemaManufacturer
- type SearchMatch
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) DeleteTMNameAttachment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteThingModelAttachmentByName(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteThingModelById(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAuthors(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCompletions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetHealth(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetHealthLive(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetHealthReady(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetHealthStartup(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetInfo(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetInventory(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetInventoryByFetchName(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetInventoryByID(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetInventoryByName(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetManufacturers(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetMpns(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRepos(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetTMNameAttachment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetThingModelAttachmentByName(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetThingModelByFetchName(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetThingModelById(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ImportThingModel(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutTMIDAttachment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutTMNameAttachment(w http.ResponseWriter, r *http.Request)
- type SourceRepository
- type TMID
- type TMName
- type TooManyValuesForParamError
- type UnauthorizedError
- type UnescapedCookieParamError
- type UnmarshalingParamError
Constants ¶
const (
BearerAuthScopes = "BearerAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, r *mux.Router) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options GorillaServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
Types ¶
type AttachmentFileName ¶ added in v0.1.3
type AttachmentFileName = string
AttachmentFileName defines model for AttachmentFileName.
type AttachmentLinks ¶ added in v0.1.3
type AttachmentLinks struct {
Content string `json:"content"`
}
AttachmentLinks defines model for AttachmentLinks.
type AttachmentsList ¶ added in v0.1.3
type AttachmentsList = []AttachmentsListEntry
AttachmentsList defines model for AttachmentsList.
type AttachmentsListEntry ¶ added in v0.1.3
type AttachmentsListEntry struct {
Links *AttachmentLinks `json:"links,omitempty"`
MediaType string `json:"mediaType"`
Name string `json:"name"`
}
AttachmentsListEntry defines model for AttachmentsListEntry.
type AuthorsResponse ¶
type AuthorsResponse struct {
Data []string `json:"data"`
}
AuthorsResponse defines model for AuthorsResponse.
type DeleteTMNameAttachmentParams ¶ added in v0.1.3
type DeleteTMNameAttachmentParams struct {
// Repo Source/target repository name. The parameter is required when repository is ambiguous. See '/repos'
Repo *RepoDisambiguator `form:"repo,omitempty" json:"repo,omitempty"`
}
DeleteTMNameAttachmentParams defines parameters for DeleteTMNameAttachment.
type DeleteThingModelAttachmentByNameParams ¶ added in v0.1.3
type DeleteThingModelAttachmentByNameParams struct {
// Repo Source/target repository name. The parameter is required when repository is ambiguous. See '/repos'
Repo *RepoDisambiguator `form:"repo,omitempty" json:"repo,omitempty"`
}
DeleteThingModelAttachmentByNameParams defines parameters for DeleteThingModelAttachmentByName.
type DeleteThingModelByIdParams ¶
type DeleteThingModelByIdParams struct {
// Repo Source/target repository name. The parameter is required when repository is ambiguous. See '/repos'
Repo *RepoDisambiguator `form:"repo,omitempty" json:"repo,omitempty"`
// Force flag to force the deletion. must be set to "true"
Force string `form:"force" json:"force"`
}
DeleteThingModelByIdParams defines parameters for DeleteThingModelById.
type ErrorResponse ¶
type ErrorResponse struct {
Code *string `json:"code,omitempty"`
Detail *string `json:"detail,omitempty"`
Instance *string `json:"instance,omitempty"`
Status int `json:"status"`
Title string `json:"title"`
Type *string `json:"type,omitempty"`
}
ErrorResponse defines model for ErrorResponse.
type GetAuthorsParams ¶
type GetAuthorsParams struct {
// FilterManufacturer Filters the authors according to whether they have inventory entries
// which belong to at least one of the given manufacturers with an exact match.
// The filter works additive to other filters.
FilterManufacturer *string `form:"filter.manufacturer,omitempty" json:"filter.manufacturer,omitempty"`
// FilterMpn Filters the authors according to whether they have inventory entries
// which belong to at least one of the given mpn (manufacturer part number) with an exact match.
// The filter works additive to other filters.
FilterMpn *string `form:"filter.mpn,omitempty" json:"filter.mpn,omitempty"`
// FilterProtocol Filters the authors according to whether they have inventory entries
// which support at least one of the given URL protocol schemes with an exact match.
// The filter works additive to other filters.
FilterProtocol *string `form:"filter.protocol,omitempty" json:"filter.protocol,omitempty"`
}
GetAuthorsParams defines parameters for GetAuthors.
type GetCompletionsParams ¶
type GetCompletionsParams struct {
// Kind Kind of data to complete
Kind *GetCompletionsParamsKind `form:"kind,omitempty" json:"kind,omitempty"`
// Args Current args
Args *[]string `form:"args,omitempty" json:"args,omitempty"`
// ToComplete Data to complete
ToComplete *string `form:"toComplete,omitempty" json:"toComplete,omitempty"`
}
GetCompletionsParams defines parameters for GetCompletions.
type GetCompletionsParamsKind ¶
type GetCompletionsParamsKind string
GetCompletionsParamsKind defines parameters for GetCompletions.
const ( FetchNames GetCompletionsParamsKind = "fetchNames" Names GetCompletionsParamsKind = "names" )
Defines values for GetCompletionsParamsKind.
type GetInventoryByFetchNameParams ¶
type GetInventoryByFetchNameParams struct {
// Repo Source repository name. Optionally constrains the results to only those from given named repository. See '/repos'
Repo *RepoConstraint `form:"repo,omitempty" json:"repo,omitempty"`
}
GetInventoryByFetchNameParams defines parameters for GetInventoryByFetchName.
type GetInventoryByIDParams ¶
type GetInventoryByIDParams struct {
// Repo Source repository name. Optionally constrains the results to only those from given named repository. See '/repos'
Repo *RepoConstraint `form:"repo,omitempty" json:"repo,omitempty"`
}
GetInventoryByIDParams defines parameters for GetInventoryByID.
type GetInventoryByNameParams ¶
type GetInventoryByNameParams struct {
// Repo Source repository name. Optionally constrains the results to only those from given named repository. See '/repos'
Repo *RepoConstraint `form:"repo,omitempty" json:"repo,omitempty"`
}
GetInventoryByNameParams defines parameters for GetInventoryByName.
type GetInventoryParams ¶
type GetInventoryParams struct {
// Repo Source repository name. Optionally constrains the results to only those from given named repository. See '/repos'
Repo *RepoConstraint `form:"repo,omitempty" json:"repo,omitempty"`
// FilterAuthor Filters the inventory by one or more authors having exact match.
// The filter works additive to other filters.
FilterAuthor *string `form:"filter.author,omitempty" json:"filter.author,omitempty"`
// FilterManufacturer Filters the inventory by one or more manufacturers having exact match.
// The filter works additive to other filters.
FilterManufacturer *string `form:"filter.manufacturer,omitempty" json:"filter.manufacturer,omitempty"`
// FilterMpn Filters the inventory by one ore more mpn (manufacturer part number) having exact match.
// The filter works additive to other filters.
FilterMpn *string `form:"filter.mpn,omitempty" json:"filter.mpn,omitempty"`
// FilterProtocol Filters the inventory by one ore more URL protocol schemes having exact match.
// The filter works additive to other filters.
FilterProtocol *string `form:"filter.protocol,omitempty" json:"filter.protocol,omitempty"`
// FilterName Filters the inventory by inventory entry name having a prefix match of full path parts.
// The filter works additive to other filters.
FilterName *string `form:"filter.name,omitempty" json:"filter.name,omitempty"`
// Search Searches the inventory for TMs that match the search query. Accepts queries in bleve search engine syntax.
// Is mutually exclusive with filters.
Search *string `form:"search,omitempty" json:"search,omitempty"`
}
GetInventoryParams defines parameters for GetInventory.
type GetManufacturersParams ¶
type GetManufacturersParams struct {
// FilterAuthor Filters the manufacturers according to whether they belong to at least one of the given authors with an exact match.
// The filter works additive to other filters.
FilterAuthor *string `form:"filter.author,omitempty" json:"filter.author,omitempty"`
// FilterMpn Filters the manufacturers according to whether they have inventory entries
// which belong to at least one of the given mpn (manufacturer part number) with an exact match.
// The filter works additive to other filters.
FilterMpn *string `form:"filter.mpn,omitempty" json:"filter.mpn,omitempty"`
// FilterProtocol Filters the manufacturers according to whether they have inventory entries
// which support at least one of the given URL protocol schemes with an exact match.
// The filter works additive to other filters.
FilterProtocol *string `form:"filter.protocol,omitempty" json:"filter.protocol,omitempty"`
}
GetManufacturersParams defines parameters for GetManufacturers.
type GetMpnsParams ¶
type GetMpnsParams struct {
// FilterAuthor Filters the mpns according to whether they belong to at least one of the given authors with an exact match.
// The filter works additive to other filters.
FilterAuthor *string `form:"filter.author,omitempty" json:"filter.author,omitempty"`
// FilterManufacturer Filters the mpns according to whether they belong to at least one of the given manufacturers with an exact match.
// The filter works additive to other filters.
FilterManufacturer *string `form:"filter.manufacturer,omitempty" json:"filter.manufacturer,omitempty"`
// FilterProtocol Filters the mpns according to whether they have inventory entries
// which support at least one of the given URL protocol schemes with an exact match.
// The filter works additive to other filters.
FilterProtocol *string `form:"filter.protocol,omitempty" json:"filter.protocol,omitempty"`
}
GetMpnsParams defines parameters for GetMpns.
type GetTMNameAttachmentParams ¶ added in v0.1.3
type GetTMNameAttachmentParams struct {
// Repo Source/target repository name. The parameter is required when repository is ambiguous. See '/repos'
Repo *RepoDisambiguator `form:"repo,omitempty" json:"repo,omitempty"`
// Concat Fetch a concatenation of the attachment to a TM name and homonymous attachments to all of its versions
Concat *bool `form:"concat,omitempty" json:"concat,omitempty"`
}
GetTMNameAttachmentParams defines parameters for GetTMNameAttachment.
type GetThingModelAttachmentByNameParams ¶ added in v0.1.3
type GetThingModelAttachmentByNameParams struct {
// Repo Source/target repository name. The parameter is required when repository is ambiguous. See '/repos'
Repo *RepoDisambiguator `form:"repo,omitempty" json:"repo,omitempty"`
}
GetThingModelAttachmentByNameParams defines parameters for GetThingModelAttachmentByName.
type GetThingModelByFetchNameParams ¶
type GetThingModelByFetchNameParams struct {
// Repo Source repository name. Optionally constrains the results to only those from given named repository. See '/repos'
Repo *RepoConstraint `form:"repo,omitempty" json:"repo,omitempty"`
// RestoreId restore the TM's original external id, if it had one
RestoreId *bool `form:"restoreId,omitempty" json:"restoreId,omitempty"`
}
GetThingModelByFetchNameParams defines parameters for GetThingModelByFetchName.
type GetThingModelByIdParams ¶
type GetThingModelByIdParams struct {
// Repo Source repository name. Optionally constrains the results to only those from given named repository. See '/repos'
Repo *RepoConstraint `form:"repo,omitempty" json:"repo,omitempty"`
// RestoreId restore the TM's original external id, if it had one
RestoreId *bool `form:"restoreId,omitempty" json:"restoreId,omitempty"`
}
GetThingModelByIdParams defines parameters for GetThingModelById.
type GorillaServerOptions ¶
type GorillaServerOptions struct {
BaseURL string
BaseRouter *mux.Router
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type ImportThingModelJSONBody ¶
type ImportThingModelJSONBody = map[string]interface{}
ImportThingModelJSONBody defines parameters for ImportThingModel.
type ImportThingModelJSONRequestBody ¶
type ImportThingModelJSONRequestBody = ImportThingModelJSONBody
ImportThingModelJSONRequestBody defines body for ImportThingModel for application/json ContentType.
type ImportThingModelParams ¶
type ImportThingModelParams struct {
// Repo Source/target repository name. The parameter is required when repository is ambiguous. See '/repos'
Repo *RepoDisambiguator `form:"repo,omitempty" json:"repo,omitempty"`
// Force flag to force the import, ignoring any conflicts with existing data
Force *ForceImport `form:"force,omitempty" json:"force,omitempty"`
// OptPath optional path parts to append to the target path (and id) of imported TM, after the mandatory path structure
OptPath *string `form:"optPath,omitempty" json:"optPath,omitempty"`
}
ImportThingModelParams defines parameters for ImportThingModel.
type ImportThingModelResponse ¶
type ImportThingModelResponse struct {
Data ImportThingModelResult `json:"data"`
}
ImportThingModelResponse defines model for ImportThingModelResponse.
type ImportThingModelResult ¶
type ImportThingModelResult struct {
Code *string `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
TmID string `json:"tmID"`
}
ImportThingModelResult defines model for ImportThingModelResult.
type InfoResponse ¶ added in v0.1.3
type InfoResponse struct {
Details *[]string `json:"details,omitempty"`
Name string `json:"name"`
Version InfoVersion `json:"version"`
}
InfoResponse defines model for InfoResponse.
type InfoVersion ¶ added in v0.1.3
type InfoVersion struct {
Implementation string `json:"implementation"`
Specification *string `json:"specification,omitempty"`
}
InfoVersion defines model for InfoVersion.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type InventoryEntry ¶
type InventoryEntry struct {
Attachments *AttachmentsList `json:"attachments,omitempty"`
Links *InventoryEntryLinks `json:"links,omitempty"`
// Repo The name of the source repository where the inventory entry or version resides.
// May be left empty when there is only a single repository served by the backend and thus there is not need for
// disambiguation. See also '/repos'
Repo *SourceRepository `json:"repo,omitempty"`
SchemaAuthor SchemaAuthor `json:"schema:author"`
SchemaManufacturer SchemaManufacturer `json:"schema:manufacturer"`
SchemaMpn string `json:"schema:mpn"`
TmName string `json:"tmName"`
Versions []InventoryEntryVersion `json:"versions"`
}
InventoryEntry defines model for InventoryEntry.
type InventoryEntryLinks ¶
type InventoryEntryLinks struct {
Self string `json:"self"`
}
InventoryEntryLinks defines model for InventoryEntryLinks.
type InventoryEntryResponse ¶
type InventoryEntryResponse struct {
Data []InventoryEntry `json:"data"`
}
InventoryEntryResponse defines model for InventoryEntryResponse.
type InventoryEntryVersion ¶
type InventoryEntryVersion struct {
Attachments *AttachmentsList `json:"attachments,omitempty"`
Description string `json:"description"`
Digest string `json:"digest"`
ExternalID string `json:"externalID"`
Links *InventoryEntryVersionLinks `json:"links,omitempty"`
Protocols *[]string `json:"protocols,omitempty"`
// Repo The name of the source repository where the inventory entry or version resides.
// May be left empty when there is only a single repository served by the backend and thus there is not need for
// disambiguation. See also '/repos'
Repo *SourceRepository `json:"repo,omitempty"`
SearchMatch *SearchMatch `json:"searchMatch,omitempty"`
Timestamp string `json:"timestamp"`
TmID string `json:"tmID"`
Version ModelVersion `json:"version"`
}
InventoryEntryVersion defines model for InventoryEntryVersion.
type InventoryEntryVersionLinks ¶
type InventoryEntryVersionLinks struct {
Content string `json:"content"`
Self string `json:"self"`
}
InventoryEntryVersionLinks defines model for InventoryEntryVersionLinks.
type InventoryEntryVersionResponse ¶
type InventoryEntryVersionResponse struct {
Data InventoryEntryVersion `json:"data"`
}
InventoryEntryVersionResponse defines model for InventoryEntryVersionResponse.
type InventoryEntryVersionsResponse ¶
type InventoryEntryVersionsResponse struct {
Data []InventoryEntryVersion `json:"data"`
}
InventoryEntryVersionsResponse defines model for InventoryEntryVersionsResponse.
type InventoryResponse ¶
type InventoryResponse struct {
Data []InventoryEntry `json:"data"`
Meta *Meta `json:"meta,omitempty"`
}
InventoryResponse defines model for InventoryResponse.
type ManufacturersResponse ¶
type ManufacturersResponse struct {
Data []string `json:"data"`
}
ManufacturersResponse defines model for ManufacturersResponse.
type Meta ¶
type Meta struct {
// LastUpdated RFC3339 timestamp
LastUpdated string `json:"lastUpdated"`
Page *MetaPage `json:"page,omitempty"`
}
Meta defines model for Meta.
type MetaPage ¶
type MetaPage struct {
Elements int `json:"elements"`
}
MetaPage defines model for MetaPage.
type ModelVersion ¶
type ModelVersion struct {
Model string `json:"model"`
}
ModelVersion defines model for ModelVersion.
type MpnsResponse ¶
type MpnsResponse struct {
Data []string `json:"data"`
}
MpnsResponse defines model for MpnsResponse.
type PutTMIDAttachmentParams ¶ added in v0.1.3
type PutTMIDAttachmentParams struct {
// Repo Source/target repository name. The parameter is required when repository is ambiguous. See '/repos'
Repo *RepoDisambiguator `form:"repo,omitempty" json:"repo,omitempty"`
// Force flag to force the import, ignoring any conflicts with existing data
Force *ForceImport `form:"force,omitempty" json:"force,omitempty"`
}
PutTMIDAttachmentParams defines parameters for PutTMIDAttachment.
type PutTMNameAttachmentParams ¶ added in v0.1.3
type PutTMNameAttachmentParams struct {
// Repo Source/target repository name. The parameter is required when repository is ambiguous. See '/repos'
Repo *RepoDisambiguator `form:"repo,omitempty" json:"repo,omitempty"`
// Force flag to force the import, ignoring any conflicts with existing data
Force *ForceImport `form:"force,omitempty" json:"force,omitempty"`
}
PutTMNameAttachmentParams defines parameters for PutTMNameAttachment.
type RepoDescription ¶
type RepoDescription struct {
Description *string `json:"description,omitempty"`
Name string `json:"name"`
}
RepoDescription defines model for RepoDescription.
type RepoDisambiguator ¶
type RepoDisambiguator = string
RepoDisambiguator defines model for RepoDisambiguator.
type ReposResponse ¶
type ReposResponse struct {
Data []RepoDescription `json:"data"`
}
ReposResponse defines model for ReposResponse.
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type SchemaAuthor ¶
type SchemaAuthor struct {
SchemaName string `json:"schema:name"`
}
SchemaAuthor defines model for SchemaAuthor.
type SchemaManufacturer ¶
type SchemaManufacturer struct {
SchemaName string `json:"schema:name"`
}
SchemaManufacturer defines model for SchemaManufacturer.
type SearchMatch ¶ added in v0.1.3
type SearchMatch struct {
// Locations locations where the search terms matched
Locations *[]string `json:"locations,omitempty"`
// Score search score
Score *float32 `json:"score,omitempty"`
}
SearchMatch defines model for SearchMatch.
type ServerInterface ¶
type ServerInterface interface {
// Get completions for shell completion script
// (GET /.completions)
GetCompletions(w http.ResponseWriter, r *http.Request, params GetCompletionsParams)
// Get the contained authors of the inventory
// (GET /authors)
GetAuthors(w http.ResponseWriter, r *http.Request, params GetAuthorsParams)
// Get the overall health of the service
// (GET /healthz)
GetHealth(w http.ResponseWriter, r *http.Request)
// Returns the liveliness of the service
// (GET /healthz/live)
GetHealthLive(w http.ResponseWriter, r *http.Request)
// Returns the readiness of the service
// (GET /healthz/ready)
GetHealthReady(w http.ResponseWriter, r *http.Request)
// Returns whether the service is initialized
// (GET /healthz/startup)
GetHealthStartup(w http.ResponseWriter, r *http.Request)
// Returns some static information about the Thing Model Catalog API
// (GET /info)
GetInfo(w http.ResponseWriter, r *http.Request)
// Get the inventory of the catalog
// (GET /inventory)
GetInventory(w http.ResponseWriter, r *http.Request, params GetInventoryParams)
// Get the metadata of the most recent TM version matching the name
// (GET /inventory/.latest/{fetchName})
GetInventoryByFetchName(w http.ResponseWriter, r *http.Request, fetchName FetchName, params GetInventoryByFetchNameParams)
// Get inventory entries by TM name
// (GET /inventory/.tmName/{tmName})
GetInventoryByName(w http.ResponseWriter, r *http.Request, tmName string, params GetInventoryByNameParams)
// Get the metadata of a single TM by ID
// (GET /inventory/{tmID})
GetInventoryByID(w http.ResponseWriter, r *http.Request, tmID TMID, params GetInventoryByIDParams)
// Get the contained manufacturers of the inventory
// (GET /manufacturers)
GetManufacturers(w http.ResponseWriter, r *http.Request, params GetManufacturersParams)
// Get the contained mpns (manufacturer part numbers) of the inventory
// (GET /mpns)
GetMpns(w http.ResponseWriter, r *http.Request, params GetMpnsParams)
// Get the list of repositories
// (GET /repos)
GetRepos(w http.ResponseWriter, r *http.Request)
// Import a Thing Model
// (POST /thing-models)
ImportThingModel(w http.ResponseWriter, r *http.Request, params ImportThingModelParams)
// Get the content of a Thing Model by fetch name
// (GET /thing-models/.latest/{fetchName})
GetThingModelByFetchName(w http.ResponseWriter, r *http.Request, fetchName FetchName, params GetThingModelByFetchNameParams)
// Delete an attachment to a TM name
// (DELETE /thing-models/.tmName/{tmName}/.attachments/{attachmentFileName})
DeleteTMNameAttachment(w http.ResponseWriter, r *http.Request, tmName TMName, attachmentFileName AttachmentFileName, params DeleteTMNameAttachmentParams)
// Get the actual content of an attachment to a TM name
// (GET /thing-models/.tmName/{tmName}/.attachments/{attachmentFileName})
GetTMNameAttachment(w http.ResponseWriter, r *http.Request, tmName TMName, attachmentFileName AttachmentFileName, params GetTMNameAttachmentParams)
// Upload an attachment to a TM name
// (PUT /thing-models/.tmName/{tmName}/.attachments/{attachmentFileName})
PutTMNameAttachment(w http.ResponseWriter, r *http.Request, tmName TMName, attachmentFileName AttachmentFileName, params PutTMNameAttachmentParams)
// Delete a Thing Model by ID
// (DELETE /thing-models/{tmID})
DeleteThingModelById(w http.ResponseWriter, r *http.Request, tmID TMID, params DeleteThingModelByIdParams)
// Get the content of a Thing Model by its ID
// (GET /thing-models/{tmID})
GetThingModelById(w http.ResponseWriter, r *http.Request, tmID TMID, params GetThingModelByIdParams)
// Delete an attachment to a Thing Model
// (DELETE /thing-models/{tmID}/.attachments/{attachmentFileName})
DeleteThingModelAttachmentByName(w http.ResponseWriter, r *http.Request, tmID TMID, attachmentFileName AttachmentFileName, params DeleteThingModelAttachmentByNameParams)
// Get the actual content of an attachment to a Thing Model
// (GET /thing-models/{tmID}/.attachments/{attachmentFileName})
GetThingModelAttachmentByName(w http.ResponseWriter, r *http.Request, tmID TMID, attachmentFileName AttachmentFileName, params GetThingModelAttachmentByNameParams)
// Upload an attachment to a Thing Model
// (PUT /thing-models/{tmID}/.attachments/{attachmentFileName})
PutTMIDAttachment(w http.ResponseWriter, r *http.Request, tmID TMID, attachmentFileName AttachmentFileName, params PutTMIDAttachmentParams)
}
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) DeleteTMNameAttachment ¶ added in v0.1.3
func (siw *ServerInterfaceWrapper) DeleteTMNameAttachment(w http.ResponseWriter, r *http.Request)
DeleteTMNameAttachment operation middleware
func (*ServerInterfaceWrapper) DeleteThingModelAttachmentByName ¶ added in v0.1.3
func (siw *ServerInterfaceWrapper) DeleteThingModelAttachmentByName(w http.ResponseWriter, r *http.Request)
DeleteThingModelAttachmentByName operation middleware
func (*ServerInterfaceWrapper) DeleteThingModelById ¶
func (siw *ServerInterfaceWrapper) DeleteThingModelById(w http.ResponseWriter, r *http.Request)
DeleteThingModelById operation middleware
func (*ServerInterfaceWrapper) GetAuthors ¶
func (siw *ServerInterfaceWrapper) GetAuthors(w http.ResponseWriter, r *http.Request)
GetAuthors operation middleware
func (*ServerInterfaceWrapper) GetCompletions ¶
func (siw *ServerInterfaceWrapper) GetCompletions(w http.ResponseWriter, r *http.Request)
GetCompletions operation middleware
func (*ServerInterfaceWrapper) GetHealth ¶
func (siw *ServerInterfaceWrapper) GetHealth(w http.ResponseWriter, r *http.Request)
GetHealth operation middleware
func (*ServerInterfaceWrapper) GetHealthLive ¶
func (siw *ServerInterfaceWrapper) GetHealthLive(w http.ResponseWriter, r *http.Request)
GetHealthLive operation middleware
func (*ServerInterfaceWrapper) GetHealthReady ¶
func (siw *ServerInterfaceWrapper) GetHealthReady(w http.ResponseWriter, r *http.Request)
GetHealthReady operation middleware
func (*ServerInterfaceWrapper) GetHealthStartup ¶
func (siw *ServerInterfaceWrapper) GetHealthStartup(w http.ResponseWriter, r *http.Request)
GetHealthStartup operation middleware
func (*ServerInterfaceWrapper) GetInfo ¶ added in v0.1.3
func (siw *ServerInterfaceWrapper) GetInfo(w http.ResponseWriter, r *http.Request)
GetInfo operation middleware
func (*ServerInterfaceWrapper) GetInventory ¶
func (siw *ServerInterfaceWrapper) GetInventory(w http.ResponseWriter, r *http.Request)
GetInventory operation middleware
func (*ServerInterfaceWrapper) GetInventoryByFetchName ¶
func (siw *ServerInterfaceWrapper) GetInventoryByFetchName(w http.ResponseWriter, r *http.Request)
GetInventoryByFetchName operation middleware
func (*ServerInterfaceWrapper) GetInventoryByID ¶
func (siw *ServerInterfaceWrapper) GetInventoryByID(w http.ResponseWriter, r *http.Request)
GetInventoryByID operation middleware
func (*ServerInterfaceWrapper) GetInventoryByName ¶
func (siw *ServerInterfaceWrapper) GetInventoryByName(w http.ResponseWriter, r *http.Request)
GetInventoryByName operation middleware
func (*ServerInterfaceWrapper) GetManufacturers ¶
func (siw *ServerInterfaceWrapper) GetManufacturers(w http.ResponseWriter, r *http.Request)
GetManufacturers operation middleware
func (*ServerInterfaceWrapper) GetMpns ¶
func (siw *ServerInterfaceWrapper) GetMpns(w http.ResponseWriter, r *http.Request)
GetMpns operation middleware
func (*ServerInterfaceWrapper) GetRepos ¶
func (siw *ServerInterfaceWrapper) GetRepos(w http.ResponseWriter, r *http.Request)
GetRepos operation middleware
func (*ServerInterfaceWrapper) GetTMNameAttachment ¶ added in v0.1.3
func (siw *ServerInterfaceWrapper) GetTMNameAttachment(w http.ResponseWriter, r *http.Request)
GetTMNameAttachment operation middleware
func (*ServerInterfaceWrapper) GetThingModelAttachmentByName ¶ added in v0.1.3
func (siw *ServerInterfaceWrapper) GetThingModelAttachmentByName(w http.ResponseWriter, r *http.Request)
GetThingModelAttachmentByName operation middleware
func (*ServerInterfaceWrapper) GetThingModelByFetchName ¶
func (siw *ServerInterfaceWrapper) GetThingModelByFetchName(w http.ResponseWriter, r *http.Request)
GetThingModelByFetchName operation middleware
func (*ServerInterfaceWrapper) GetThingModelById ¶
func (siw *ServerInterfaceWrapper) GetThingModelById(w http.ResponseWriter, r *http.Request)
GetThingModelById operation middleware
func (*ServerInterfaceWrapper) ImportThingModel ¶
func (siw *ServerInterfaceWrapper) ImportThingModel(w http.ResponseWriter, r *http.Request)
ImportThingModel operation middleware
func (*ServerInterfaceWrapper) PutTMIDAttachment ¶ added in v0.1.3
func (siw *ServerInterfaceWrapper) PutTMIDAttachment(w http.ResponseWriter, r *http.Request)
PutTMIDAttachment operation middleware
func (*ServerInterfaceWrapper) PutTMNameAttachment ¶ added in v0.1.3
func (siw *ServerInterfaceWrapper) PutTMNameAttachment(w http.ResponseWriter, r *http.Request)
PutTMNameAttachment operation middleware
type SourceRepository ¶
type SourceRepository = string
SourceRepository The name of the source repository where the inventory entry or version resides. May be left empty when there is only a single repository served by the backend and thus there is not need for disambiguation. See also '/repos'
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnauthorizedError ¶
type UnauthorizedError = ErrorResponse
UnauthorizedError defines model for UnauthorizedError.
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error