Documentation ¶
Index ¶
- Constants
- type GetCheckpoints
- type GetCheckpointsDefault
- func (o *GetCheckpointsDefault) SetPayload(payload *models.StandardError)
- func (o *GetCheckpointsDefault) SetStatusCode(code int)
- func (o *GetCheckpointsDefault) WithPayload(payload *models.StandardError) *GetCheckpointsDefault
- func (o *GetCheckpointsDefault) WithStatusCode(code int) *GetCheckpointsDefault
- func (o *GetCheckpointsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetCheckpointsHandler
- type GetCheckpointsHandlerFunc
- type GetCheckpointsOK
- type GetCheckpointsParams
- type GetCheckpointsURL
- func (o *GetCheckpointsURL) Build() (*url.URL, error)
- func (o *GetCheckpointsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetCheckpointsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetCheckpointsURL) SetBasePath(bp string)
- func (o *GetCheckpointsURL) String() string
- func (o *GetCheckpointsURL) StringFull(scheme, host string) string
- func (o *GetCheckpointsURL) WithBasePath(bp string) *GetCheckpointsURL
- type GetImage
- type GetImageDefault
- func (o *GetImageDefault) SetPayload(payload *models.StandardError)
- func (o *GetImageDefault) SetStatusCode(code int)
- func (o *GetImageDefault) WithPayload(payload *models.StandardError) *GetImageDefault
- func (o *GetImageDefault) WithStatusCode(code int) *GetImageDefault
- func (o *GetImageDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetImageHandler
- type GetImageHandlerFunc
- type GetImageNotModified
- type GetImageOK
- func (o *GetImageOK) SetCacheControl(cacheControl string)
- func (o *GetImageOK) SetLastModified(lastModified string)
- func (o *GetImageOK) SetPayload(payload io.ReadCloser)
- func (o *GetImageOK) WithCacheControl(cacheControl string) *GetImageOK
- func (o *GetImageOK) WithLastModified(lastModified string) *GetImageOK
- func (o *GetImageOK) WithPayload(payload io.ReadCloser) *GetImageOK
- func (o *GetImageOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetImageParams
- type GetImageURL
- func (o *GetImageURL) Build() (*url.URL, error)
- func (o *GetImageURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetImageURL) Must(u *url.URL, err error) *url.URL
- func (o *GetImageURL) SetBasePath(bp string)
- func (o *GetImageURL) String() string
- func (o *GetImageURL) StringFull(scheme, host string) string
- func (o *GetImageURL) WithBasePath(bp string) *GetImageURL
- type GetImages
- type GetImagesDefault
- func (o *GetImagesDefault) SetPayload(payload *models.StandardError)
- func (o *GetImagesDefault) SetStatusCode(code int)
- func (o *GetImagesDefault) WithPayload(payload *models.StandardError) *GetImagesDefault
- func (o *GetImagesDefault) WithStatusCode(code int) *GetImagesDefault
- func (o *GetImagesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetImagesHandler
- type GetImagesHandlerFunc
- type GetImagesOK
- type GetImagesParams
- type GetImagesURL
- func (o *GetImagesURL) Build() (*url.URL, error)
- func (o *GetImagesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetImagesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetImagesURL) SetBasePath(bp string)
- func (o *GetImagesURL) String() string
- func (o *GetImagesURL) StringFull(scheme, host string) string
- func (o *GetImagesURL) WithBasePath(bp string) *GetImagesURL
- type SdImageViewerAPI
- func (o *SdImageViewerAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
- func (o *SdImageViewerAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *SdImageViewerAPI) Authorizer() runtime.Authorizer
- func (o *SdImageViewerAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *SdImageViewerAPI) Context() *middleware.Context
- func (o *SdImageViewerAPI) DefaultConsumes() string
- func (o *SdImageViewerAPI) DefaultProduces() string
- func (o *SdImageViewerAPI) Formats() strfmt.Registry
- func (o *SdImageViewerAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *SdImageViewerAPI) Init()
- func (o *SdImageViewerAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *SdImageViewerAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *SdImageViewerAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *SdImageViewerAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *SdImageViewerAPI) Serve(builder middleware.Builder) http.Handler
- func (o *SdImageViewerAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *SdImageViewerAPI) SetDefaultConsumes(mediaType string)
- func (o *SdImageViewerAPI) SetDefaultProduces(mediaType string)
- func (o *SdImageViewerAPI) SetSpec(spec *loads.Document)
- func (o *SdImageViewerAPI) UseRedoc()
- func (o *SdImageViewerAPI) UseSwaggerUI()
- func (o *SdImageViewerAPI) Validate() error
Constants ¶
const GetCheckpointsOKCode int = 200
GetCheckpointsOKCode is the HTTP code returned for type GetCheckpointsOK
const GetImageNotModifiedCode int = 304
GetImageNotModifiedCode is the HTTP code returned for type GetImageNotModified
const GetImageOKCode int = 200
GetImageOKCode is the HTTP code returned for type GetImageOK
const GetImagesOKCode int = 200
GetImagesOKCode is the HTTP code returned for type GetImagesOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetCheckpoints ¶
type GetCheckpoints struct { Context *middleware.Context Handler GetCheckpointsHandler }
GetCheckpoints swagger:route GET /checkpoints getCheckpoints
Get a list of checkpoints.
func NewGetCheckpoints ¶
func NewGetCheckpoints(ctx *middleware.Context, handler GetCheckpointsHandler) *GetCheckpoints
NewGetCheckpoints creates a new http.Handler for the get checkpoints operation
func (*GetCheckpoints) ServeHTTP ¶
func (o *GetCheckpoints) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetCheckpointsDefault ¶
type GetCheckpointsDefault struct { /* In: Body */ Payload *models.StandardError `json:"body,omitempty"` // contains filtered or unexported fields }
GetCheckpointsDefault Error Response
swagger:response getCheckpointsDefault
func NewGetCheckpointsDefault ¶
func NewGetCheckpointsDefault(code int) *GetCheckpointsDefault
NewGetCheckpointsDefault creates GetCheckpointsDefault with default headers values
func (*GetCheckpointsDefault) SetPayload ¶
func (o *GetCheckpointsDefault) SetPayload(payload *models.StandardError)
SetPayload sets the payload to the get checkpoints default response
func (*GetCheckpointsDefault) SetStatusCode ¶
func (o *GetCheckpointsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get checkpoints default response
func (*GetCheckpointsDefault) WithPayload ¶
func (o *GetCheckpointsDefault) WithPayload(payload *models.StandardError) *GetCheckpointsDefault
WithPayload adds the payload to the get checkpoints default response
func (*GetCheckpointsDefault) WithStatusCode ¶
func (o *GetCheckpointsDefault) WithStatusCode(code int) *GetCheckpointsDefault
WithStatusCode adds the status to the get checkpoints default response
func (*GetCheckpointsDefault) WriteResponse ¶
func (o *GetCheckpointsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCheckpointsHandler ¶
type GetCheckpointsHandler interface {
Handle(GetCheckpointsParams) middleware.Responder
}
GetCheckpointsHandler interface for that can handle valid get checkpoints params
type GetCheckpointsHandlerFunc ¶
type GetCheckpointsHandlerFunc func(GetCheckpointsParams) middleware.Responder
GetCheckpointsHandlerFunc turns a function with the right signature into a get checkpoints handler
func (GetCheckpointsHandlerFunc) Handle ¶
func (fn GetCheckpointsHandlerFunc) Handle(params GetCheckpointsParams) middleware.Responder
Handle executing the request and returning a response
type GetCheckpointsOK ¶
type GetCheckpointsOK struct { /* In: Body */ Payload []string `json:"body,omitempty"` }
GetCheckpointsOK A list of checkpoint names.
swagger:response getCheckpointsOK
func NewGetCheckpointsOK ¶
func NewGetCheckpointsOK() *GetCheckpointsOK
NewGetCheckpointsOK creates GetCheckpointsOK with default headers values
func (*GetCheckpointsOK) SetPayload ¶
func (o *GetCheckpointsOK) SetPayload(payload []string)
SetPayload sets the payload to the get checkpoints o k response
func (*GetCheckpointsOK) WithPayload ¶
func (o *GetCheckpointsOK) WithPayload(payload []string) *GetCheckpointsOK
WithPayload adds the payload to the get checkpoints o k response
func (*GetCheckpointsOK) WriteResponse ¶
func (o *GetCheckpointsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCheckpointsParams ¶
GetCheckpointsParams contains all the bound params for the get checkpoints operation typically these are obtained from a http.Request
swagger:parameters getCheckpoints
func NewGetCheckpointsParams ¶
func NewGetCheckpointsParams() GetCheckpointsParams
NewGetCheckpointsParams creates a new GetCheckpointsParams object
There are no default values defined in the spec.
func (*GetCheckpointsParams) BindRequest ¶
func (o *GetCheckpointsParams) 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 NewGetCheckpointsParams() beforehand.
type GetCheckpointsURL ¶
type GetCheckpointsURL struct {
// contains filtered or unexported fields
}
GetCheckpointsURL generates an URL for the get checkpoints operation
func (*GetCheckpointsURL) Build ¶
func (o *GetCheckpointsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetCheckpointsURL) BuildFull ¶
func (o *GetCheckpointsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetCheckpointsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetCheckpointsURL) SetBasePath ¶
func (o *GetCheckpointsURL) 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 (*GetCheckpointsURL) String ¶
func (o *GetCheckpointsURL) String() string
String returns the string representation of the path with query string
func (*GetCheckpointsURL) StringFull ¶
func (o *GetCheckpointsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetCheckpointsURL) WithBasePath ¶
func (o *GetCheckpointsURL) WithBasePath(bp string) *GetCheckpointsURL
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 GetImage ¶
type GetImage struct { Context *middleware.Context Handler GetImageHandler }
GetImage swagger:route GET /image/{id} getImage
Get an image.
func NewGetImage ¶
func NewGetImage(ctx *middleware.Context, handler GetImageHandler) *GetImage
NewGetImage creates a new http.Handler for the get image operation
type GetImageDefault ¶
type GetImageDefault struct { /* In: Body */ Payload *models.StandardError `json:"body,omitempty"` // contains filtered or unexported fields }
GetImageDefault Error Response
swagger:response getImageDefault
func NewGetImageDefault ¶
func NewGetImageDefault(code int) *GetImageDefault
NewGetImageDefault creates GetImageDefault with default headers values
func (*GetImageDefault) SetPayload ¶
func (o *GetImageDefault) SetPayload(payload *models.StandardError)
SetPayload sets the payload to the get image default response
func (*GetImageDefault) SetStatusCode ¶
func (o *GetImageDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get image default response
func (*GetImageDefault) WithPayload ¶
func (o *GetImageDefault) WithPayload(payload *models.StandardError) *GetImageDefault
WithPayload adds the payload to the get image default response
func (*GetImageDefault) WithStatusCode ¶
func (o *GetImageDefault) WithStatusCode(code int) *GetImageDefault
WithStatusCode adds the status to the get image default response
func (*GetImageDefault) WriteResponse ¶
func (o *GetImageDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetImageHandler ¶
type GetImageHandler interface {
Handle(GetImageParams) middleware.Responder
}
GetImageHandler interface for that can handle valid get image params
type GetImageHandlerFunc ¶
type GetImageHandlerFunc func(GetImageParams) middleware.Responder
GetImageHandlerFunc turns a function with the right signature into a get image handler
func (GetImageHandlerFunc) Handle ¶
func (fn GetImageHandlerFunc) Handle(params GetImageParams) middleware.Responder
Handle executing the request and returning a response
type GetImageNotModified ¶
type GetImageNotModified struct { }
GetImageNotModified Requested image is not modified.
swagger:response getImageNotModified
func NewGetImageNotModified ¶
func NewGetImageNotModified() *GetImageNotModified
NewGetImageNotModified creates GetImageNotModified with default headers values
func (*GetImageNotModified) WriteResponse ¶
func (o *GetImageNotModified) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetImageOK ¶
type GetImageOK struct { /* */ CacheControl string `json:"Cache-Control"` /* */ LastModified string `json:"Last-Modified"` /* In: Body */ Payload io.ReadCloser `json:"body,omitempty"` }
GetImageOK Requested image file.
swagger:response getImageOK
func NewGetImageOK ¶
func NewGetImageOK() *GetImageOK
NewGetImageOK creates GetImageOK with default headers values
func (*GetImageOK) SetCacheControl ¶
func (o *GetImageOK) SetCacheControl(cacheControl string)
SetCacheControl sets the cacheControl to the get image o k response
func (*GetImageOK) SetLastModified ¶
func (o *GetImageOK) SetLastModified(lastModified string)
SetLastModified sets the lastModified to the get image o k response
func (*GetImageOK) SetPayload ¶
func (o *GetImageOK) SetPayload(payload io.ReadCloser)
SetPayload sets the payload to the get image o k response
func (*GetImageOK) WithCacheControl ¶
func (o *GetImageOK) WithCacheControl(cacheControl string) *GetImageOK
WithCacheControl adds the cacheControl to the get image o k response
func (*GetImageOK) WithLastModified ¶
func (o *GetImageOK) WithLastModified(lastModified string) *GetImageOK
WithLastModified adds the lastModified to the get image o k response
func (*GetImageOK) WithPayload ¶
func (o *GetImageOK) WithPayload(payload io.ReadCloser) *GetImageOK
WithPayload adds the payload to the get image o k response
func (*GetImageOK) WriteResponse ¶
func (o *GetImageOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetImageParams ¶
type GetImageParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: header */ IfModifiedSince *string /*ID of the image file. Required: true In: path */ ID string }
GetImageParams contains all the bound params for the get image operation typically these are obtained from a http.Request
swagger:parameters getImage
func NewGetImageParams ¶
func NewGetImageParams() GetImageParams
NewGetImageParams creates a new GetImageParams object
There are no default values defined in the spec.
func (*GetImageParams) BindRequest ¶
func (o *GetImageParams) 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 NewGetImageParams() beforehand.
type GetImageURL ¶
type GetImageURL struct { ID string // contains filtered or unexported fields }
GetImageURL generates an URL for the get image operation
func (*GetImageURL) Build ¶
func (o *GetImageURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetImageURL) BuildFull ¶
func (o *GetImageURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetImageURL) SetBasePath ¶
func (o *GetImageURL) 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 (*GetImageURL) String ¶
func (o *GetImageURL) String() string
String returns the string representation of the path with query string
func (*GetImageURL) StringFull ¶
func (o *GetImageURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetImageURL) WithBasePath ¶
func (o *GetImageURL) WithBasePath(bp string) *GetImageURL
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 GetImages ¶
type GetImages struct { Context *middleware.Context Handler GetImagesHandler }
GetImages swagger:route GET /images getImages
List images.
func NewGetImages ¶
func NewGetImages(ctx *middleware.Context, handler GetImagesHandler) *GetImages
NewGetImages creates a new http.Handler for the get images operation
type GetImagesDefault ¶
type GetImagesDefault struct { /* In: Body */ Payload *models.StandardError `json:"body,omitempty"` // contains filtered or unexported fields }
GetImagesDefault Error Response
swagger:response getImagesDefault
func NewGetImagesDefault ¶
func NewGetImagesDefault(code int) *GetImagesDefault
NewGetImagesDefault creates GetImagesDefault with default headers values
func (*GetImagesDefault) SetPayload ¶
func (o *GetImagesDefault) SetPayload(payload *models.StandardError)
SetPayload sets the payload to the get images default response
func (*GetImagesDefault) SetStatusCode ¶
func (o *GetImagesDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get images default response
func (*GetImagesDefault) WithPayload ¶
func (o *GetImagesDefault) WithPayload(payload *models.StandardError) *GetImagesDefault
WithPayload adds the payload to the get images default response
func (*GetImagesDefault) WithStatusCode ¶
func (o *GetImagesDefault) WithStatusCode(code int) *GetImagesDefault
WithStatusCode adds the status to the get images default response
func (*GetImagesDefault) WriteResponse ¶
func (o *GetImagesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetImagesHandler ¶
type GetImagesHandler interface {
Handle(GetImagesParams) middleware.Responder
}
GetImagesHandler interface for that can handle valid get images params
type GetImagesHandlerFunc ¶
type GetImagesHandlerFunc func(GetImagesParams) middleware.Responder
GetImagesHandlerFunc turns a function with the right signature into a get images handler
func (GetImagesHandlerFunc) Handle ¶
func (fn GetImagesHandlerFunc) Handle(params GetImagesParams) middleware.Responder
Handle executing the request and returning a response
type GetImagesOK ¶
GetImagesOK A list of images.
swagger:response getImagesOK
func NewGetImagesOK ¶
func NewGetImagesOK() *GetImagesOK
NewGetImagesOK creates GetImagesOK with default headers values
func (*GetImagesOK) SetPayload ¶
func (o *GetImagesOK) SetPayload(payload *models.ImageList)
SetPayload sets the payload to the get images o k response
func (*GetImagesOK) WithPayload ¶
func (o *GetImagesOK) WithPayload(payload *models.ImageList) *GetImagesOK
WithPayload adds the payload to the get images o k response
func (*GetImagesOK) WriteResponse ¶
func (o *GetImagesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetImagesParams ¶
type GetImagesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Retrieving images created after the given date time. In: query */ After *strfmt.DateTime /*Retrieving images created before the given date time. In: query */ Before *strfmt.DateTime /*Retrieving images that use the given checkpoint. In: query */ Checkpoint *string /*The number of items one page has at most. In: query */ Limit *int64 /* In: query Default: "desc" */ Order *string /*Requesting page number. In: query */ Page *int64 /*Search query. In: query */ Query *string /*Retrieving the given sized images. In: query */ Size *string }
GetImagesParams contains all the bound params for the get images operation typically these are obtained from a http.Request
swagger:parameters getImages
func NewGetImagesParams ¶
func NewGetImagesParams() GetImagesParams
NewGetImagesParams creates a new GetImagesParams object with the default values initialized.
func (*GetImagesParams) BindRequest ¶
func (o *GetImagesParams) 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 NewGetImagesParams() beforehand.
type GetImagesURL ¶
type GetImagesURL struct { After *strfmt.DateTime Before *strfmt.DateTime Checkpoint *string Limit *int64 Order *string Page *int64 Query *string Size *string // contains filtered or unexported fields }
GetImagesURL generates an URL for the get images operation
func (*GetImagesURL) Build ¶
func (o *GetImagesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetImagesURL) BuildFull ¶
func (o *GetImagesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetImagesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetImagesURL) SetBasePath ¶
func (o *GetImagesURL) 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 (*GetImagesURL) String ¶
func (o *GetImagesURL) String() string
String returns the string representation of the path with query string
func (*GetImagesURL) StringFull ¶
func (o *GetImagesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetImagesURL) WithBasePath ¶
func (o *GetImagesURL) WithBasePath(bp string) *GetImagesURL
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 SdImageViewerAPI ¶
type SdImageViewerAPI 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 // BinProducer registers a producer for the following mime types: // - image/png BinProducer runtime.Producer // JSONProducer registers a producer for the following mime types: // - application/json JSONProducer runtime.Producer // GetCheckpointsHandler sets the operation handler for the get checkpoints operation GetCheckpointsHandler GetCheckpointsHandler // GetImageHandler sets the operation handler for the get image operation GetImageHandler GetImageHandler // GetImagesHandler sets the operation handler for the get images operation GetImagesHandler GetImagesHandler // 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 }
SdImageViewerAPI the sd image viewer API
func NewSdImageViewerAPI ¶
func NewSdImageViewerAPI(spec *loads.Document) *SdImageViewerAPI
NewSdImageViewerAPI creates a new SdImageViewer instance
func (*SdImageViewerAPI) AddMiddlewareFor ¶
func (o *SdImageViewerAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
AddMiddlewareFor adds a http middleware to existing handler
func (*SdImageViewerAPI) AuthenticatorsFor ¶
func (o *SdImageViewerAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*SdImageViewerAPI) Authorizer ¶
func (o *SdImageViewerAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*SdImageViewerAPI) ConsumersFor ¶
func (o *SdImageViewerAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.
func (*SdImageViewerAPI) Context ¶
func (o *SdImageViewerAPI) Context() *middleware.Context
Context returns the middleware context for the sd image viewer API
func (*SdImageViewerAPI) DefaultConsumes ¶
func (o *SdImageViewerAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*SdImageViewerAPI) DefaultProduces ¶
func (o *SdImageViewerAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*SdImageViewerAPI) Formats ¶
func (o *SdImageViewerAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*SdImageViewerAPI) HandlerFor ¶
func (o *SdImageViewerAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*SdImageViewerAPI) Init ¶
func (o *SdImageViewerAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*SdImageViewerAPI) ProducersFor ¶
func (o *SdImageViewerAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*SdImageViewerAPI) RegisterConsumer ¶
func (o *SdImageViewerAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*SdImageViewerAPI) RegisterFormat ¶
func (o *SdImageViewerAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*SdImageViewerAPI) RegisterProducer ¶
func (o *SdImageViewerAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*SdImageViewerAPI) Serve ¶
func (o *SdImageViewerAPI) 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 (*SdImageViewerAPI) ServeErrorFor ¶
func (o *SdImageViewerAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*SdImageViewerAPI) SetDefaultConsumes ¶
func (o *SdImageViewerAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*SdImageViewerAPI) SetDefaultProduces ¶
func (o *SdImageViewerAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*SdImageViewerAPI) SetSpec ¶
func (o *SdImageViewerAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*SdImageViewerAPI) UseRedoc ¶
func (o *SdImageViewerAPI) UseRedoc()
UseRedoc for documentation at /docs
func (*SdImageViewerAPI) UseSwaggerUI ¶
func (o *SdImageViewerAPI) UseSwaggerUI()
UseSwaggerUI for documentation at /docs
func (*SdImageViewerAPI) Validate ¶
func (o *SdImageViewerAPI) Validate() error
Validate validates the registrations in the SdImageViewerAPI
Source Files ¶
- get_checkpoints.go
- get_checkpoints_parameters.go
- get_checkpoints_responses.go
- get_checkpoints_urlbuilder.go
- get_image.go
- get_image_parameters.go
- get_image_responses.go
- get_image_urlbuilder.go
- get_images.go
- get_images_parameters.go
- get_images_responses.go
- get_images_urlbuilder.go
- sd_image_viewer_api.go