Documentation ¶
Index ¶
- Constants
- type DeleteResource
- type DeleteResourceBadRequest
- type DeleteResourceHandler
- type DeleteResourceHandlerFunc
- type DeleteResourceInternalServerError
- type DeleteResourceOK
- type DeleteResourceParams
- type DeleteResourceURL
- func (o *DeleteResourceURL) Build() (*url.URL, error)
- func (o *DeleteResourceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteResourceURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteResourceURL) SetBasePath(bp string)
- func (o *DeleteResourceURL) String() string
- func (o *DeleteResourceURL) StringFull(scheme, host string) string
- func (o *DeleteResourceURL) WithBasePath(bp string) *DeleteResourceURL
- type DeleteResourceUnauthorized
- type DepositFile
- type DepositFileCreated
- type DepositFileHandler
- type DepositFileHandlerFunc
- type DepositFileInternalServerError
- type DepositFileParams
- type DepositFileURL
- func (o *DepositFileURL) Build() (*url.URL, error)
- func (o *DepositFileURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DepositFileURL) Must(u *url.URL, err error) *url.URL
- func (o *DepositFileURL) SetBasePath(bp string)
- func (o *DepositFileURL) String() string
- func (o *DepositFileURL) StringFull(scheme, host string) string
- func (o *DepositFileURL) WithBasePath(bp string) *DepositFileURL
- type DepositFileUnauthorized
- type DepositFileUnsupportedMediaType
- type DepositResource
- type DepositResourceCreated
- type DepositResourceHandler
- type DepositResourceHandlerFunc
- type DepositResourceInternalServerError
- type DepositResourceParams
- type DepositResourceURL
- func (o *DepositResourceURL) Build() (*url.URL, error)
- func (o *DepositResourceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DepositResourceURL) Must(u *url.URL, err error) *url.URL
- func (o *DepositResourceURL) SetBasePath(bp string)
- func (o *DepositResourceURL) String() string
- func (o *DepositResourceURL) StringFull(scheme, host string) string
- func (o *DepositResourceURL) WithBasePath(bp string) *DepositResourceURL
- type DepositResourceUnauthorized
- type DepositResourceUnprocessableEntity
- func (o *DepositResourceUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
- func (o *DepositResourceUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *DepositResourceUnprocessableEntity
- func (o *DepositResourceUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DepositResourceUnsupportedMediaType
- type GetProcessStatus
- type GetProcessStatusHandler
- type GetProcessStatusHandlerFunc
- type GetProcessStatusInternalServerError
- type GetProcessStatusNotFound
- type GetProcessStatusOK
- type GetProcessStatusParams
- type GetProcessStatusURL
- func (o *GetProcessStatusURL) Build() (*url.URL, error)
- func (o *GetProcessStatusURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetProcessStatusURL) Must(u *url.URL, err error) *url.URL
- func (o *GetProcessStatusURL) SetBasePath(bp string)
- func (o *GetProcessStatusURL) String() string
- func (o *GetProcessStatusURL) StringFull(scheme, host string) string
- func (o *GetProcessStatusURL) WithBasePath(bp string) *GetProcessStatusURL
- type GetProcessStatusUnauthorized
- type HealthCheck
- type HealthCheckHandler
- type HealthCheckHandlerFunc
- type HealthCheckOK
- type HealthCheckParams
- type HealthCheckServiceUnavailable
- func (o *HealthCheckServiceUnavailable) SetPayload(payload *models.HealthCheckResponse)
- func (o *HealthCheckServiceUnavailable) WithPayload(payload *models.HealthCheckResponse) *HealthCheckServiceUnavailable
- func (o *HealthCheckServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type HealthCheckURL
- func (o *HealthCheckURL) Build() (*url.URL, error)
- func (o *HealthCheckURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *HealthCheckURL) Must(u *url.URL, err error) *url.URL
- func (o *HealthCheckURL) SetBasePath(bp string)
- func (o *HealthCheckURL) String() string
- func (o *HealthCheckURL) StringFull(scheme, host string) string
- func (o *HealthCheckURL) WithBasePath(bp string) *HealthCheckURL
- type RetrieveResource
- type RetrieveResourceHandler
- type RetrieveResourceHandlerFunc
- type RetrieveResourceInternalServerError
- type RetrieveResourceNotFound
- type RetrieveResourceOK
- type RetrieveResourceParams
- type RetrieveResourceURL
- func (o *RetrieveResourceURL) Build() (*url.URL, error)
- func (o *RetrieveResourceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RetrieveResourceURL) Must(u *url.URL, err error) *url.URL
- func (o *RetrieveResourceURL) SetBasePath(bp string)
- func (o *RetrieveResourceURL) String() string
- func (o *RetrieveResourceURL) StringFull(scheme, host string) string
- func (o *RetrieveResourceURL) WithBasePath(bp string) *RetrieveResourceURL
- type RetrieveResourceUnauthorized
- type TacoAPI
- func (o *TacoAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *TacoAPI) Authorizer() runtime.Authorizer
- func (o *TacoAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *TacoAPI) Context() *middleware.Context
- func (o *TacoAPI) DefaultConsumes() string
- func (o *TacoAPI) DefaultProduces() string
- func (o *TacoAPI) Formats() strfmt.Registry
- func (o *TacoAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *TacoAPI) Init()
- func (o *TacoAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *TacoAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *TacoAPI) Serve(builder middleware.Builder) http.Handler
- func (o *TacoAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *TacoAPI) SetDefaultConsumes(mediaType string)
- func (o *TacoAPI) SetDefaultProduces(mediaType string)
- func (o *TacoAPI) SetSpec(spec *loads.Document)
- func (o *TacoAPI) Validate() error
- type UpdateResource
- type UpdateResourceBadRequest
- type UpdateResourceHandler
- type UpdateResourceHandlerFunc
- type UpdateResourceInternalServerError
- type UpdateResourceOK
- type UpdateResourceParams
- type UpdateResourceURL
- func (o *UpdateResourceURL) Build() (*url.URL, error)
- func (o *UpdateResourceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateResourceURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateResourceURL) SetBasePath(bp string)
- func (o *UpdateResourceURL) String() string
- func (o *UpdateResourceURL) StringFull(scheme, host string) string
- func (o *UpdateResourceURL) WithBasePath(bp string) *UpdateResourceURL
- type UpdateResourceUnauthorized
- type UpdateResourceUnprocessableEntity
- func (o *UpdateResourceUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
- func (o *UpdateResourceUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *UpdateResourceUnprocessableEntity
- func (o *UpdateResourceUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateResourceUnsupportedMediaType
Constants ¶
const DeleteResourceBadRequestCode int = 400
DeleteResourceBadRequestCode is the HTTP code returned for type DeleteResourceBadRequest
const DeleteResourceInternalServerErrorCode int = 500
DeleteResourceInternalServerErrorCode is the HTTP code returned for type DeleteResourceInternalServerError
const DeleteResourceOKCode int = 200
DeleteResourceOKCode is the HTTP code returned for type DeleteResourceOK
DeleteResourceUnauthorizedCode is the HTTP code returned for type DeleteResourceUnauthorized
const DepositFileCreatedCode int = 201
DepositFileCreatedCode is the HTTP code returned for type DepositFileCreated
const DepositFileInternalServerErrorCode int = 500
DepositFileInternalServerErrorCode is the HTTP code returned for type DepositFileInternalServerError
DepositFileUnauthorizedCode is the HTTP code returned for type DepositFileUnauthorized
const DepositFileUnsupportedMediaTypeCode int = 415
DepositFileUnsupportedMediaTypeCode is the HTTP code returned for type DepositFileUnsupportedMediaType
const DepositResourceCreatedCode int = 201
DepositResourceCreatedCode is the HTTP code returned for type DepositResourceCreated
const DepositResourceInternalServerErrorCode int = 500
DepositResourceInternalServerErrorCode is the HTTP code returned for type DepositResourceInternalServerError
DepositResourceUnauthorizedCode is the HTTP code returned for type DepositResourceUnauthorized
const DepositResourceUnprocessableEntityCode int = 422
DepositResourceUnprocessableEntityCode is the HTTP code returned for type DepositResourceUnprocessableEntity
const DepositResourceUnsupportedMediaTypeCode int = 415
DepositResourceUnsupportedMediaTypeCode is the HTTP code returned for type DepositResourceUnsupportedMediaType
const GetProcessStatusInternalServerErrorCode int = 500
GetProcessStatusInternalServerErrorCode is the HTTP code returned for type GetProcessStatusInternalServerError
const GetProcessStatusNotFoundCode int = 404
GetProcessStatusNotFoundCode is the HTTP code returned for type GetProcessStatusNotFound
const GetProcessStatusOKCode int = 200
GetProcessStatusOKCode is the HTTP code returned for type GetProcessStatusOK
GetProcessStatusUnauthorizedCode is the HTTP code returned for type GetProcessStatusUnauthorized
const HealthCheckOKCode int = 200
HealthCheckOKCode is the HTTP code returned for type HealthCheckOK
HealthCheckServiceUnavailableCode is the HTTP code returned for type HealthCheckServiceUnavailable
const RetrieveResourceInternalServerErrorCode int = 500
RetrieveResourceInternalServerErrorCode is the HTTP code returned for type RetrieveResourceInternalServerError
const RetrieveResourceNotFoundCode int = 404
RetrieveResourceNotFoundCode is the HTTP code returned for type RetrieveResourceNotFound
const RetrieveResourceOKCode int = 200
RetrieveResourceOKCode is the HTTP code returned for type RetrieveResourceOK
RetrieveResourceUnauthorizedCode is the HTTP code returned for type RetrieveResourceUnauthorized
const UpdateResourceBadRequestCode int = 400
UpdateResourceBadRequestCode is the HTTP code returned for type UpdateResourceBadRequest
const UpdateResourceInternalServerErrorCode int = 500
UpdateResourceInternalServerErrorCode is the HTTP code returned for type UpdateResourceInternalServerError
const UpdateResourceOKCode int = 200
UpdateResourceOKCode is the HTTP code returned for type UpdateResourceOK
UpdateResourceUnauthorizedCode is the HTTP code returned for type UpdateResourceUnauthorized
const UpdateResourceUnprocessableEntityCode int = 422
UpdateResourceUnprocessableEntityCode is the HTTP code returned for type UpdateResourceUnprocessableEntity
const UpdateResourceUnsupportedMediaTypeCode int = 415
UpdateResourceUnsupportedMediaTypeCode is the HTTP code returned for type UpdateResourceUnsupportedMediaType
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteResource ¶
type DeleteResource struct { Context *middleware.Context Handler DeleteResourceHandler }
DeleteResource swagger:route DELETE /resource/{ID} deleteResource
Delete a TACO Resource.
Deletes a TACO resource (Collection, Digital Repository Object, File resource (metadata) and File binary, or subclass of those).
func NewDeleteResource ¶
func NewDeleteResource(ctx *middleware.Context, handler DeleteResourceHandler) *DeleteResource
NewDeleteResource creates a new http.Handler for the delete resource operation
func (*DeleteResource) ServeHTTP ¶
func (o *DeleteResource) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteResourceBadRequest ¶
type DeleteResourceBadRequest struct { }
DeleteResourceBadRequest Invalid ID supplied
swagger:response deleteResourceBadRequest
func NewDeleteResourceBadRequest ¶
func NewDeleteResourceBadRequest() *DeleteResourceBadRequest
NewDeleteResourceBadRequest creates DeleteResourceBadRequest with default headers values
func (*DeleteResourceBadRequest) WriteResponse ¶
func (o *DeleteResourceBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteResourceHandler ¶
type DeleteResourceHandler interface {
Handle(DeleteResourceParams) middleware.Responder
}
DeleteResourceHandler interface for that can handle valid delete resource params
type DeleteResourceHandlerFunc ¶
type DeleteResourceHandlerFunc func(DeleteResourceParams) middleware.Responder
DeleteResourceHandlerFunc turns a function with the right signature into a delete resource handler
func (DeleteResourceHandlerFunc) Handle ¶
func (fn DeleteResourceHandlerFunc) Handle(params DeleteResourceParams) middleware.Responder
Handle executing the request and returning a response
type DeleteResourceInternalServerError ¶
type DeleteResourceInternalServerError struct { }
DeleteResourceInternalServerError This resource could not be deleted at this time by TACO.
swagger:response deleteResourceInternalServerError
func NewDeleteResourceInternalServerError ¶
func NewDeleteResourceInternalServerError() *DeleteResourceInternalServerError
NewDeleteResourceInternalServerError creates DeleteResourceInternalServerError with default headers values
func (*DeleteResourceInternalServerError) WriteResponse ¶
func (o *DeleteResourceInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteResourceOK ¶
type DeleteResourceOK struct { /* In: Body */ Payload models.ResourceResponse `json:"body,omitempty"` }
DeleteResourceOK TACO resource metadata delete.
swagger:response deleteResourceOK
func NewDeleteResourceOK ¶
func NewDeleteResourceOK() *DeleteResourceOK
NewDeleteResourceOK creates DeleteResourceOK with default headers values
func (*DeleteResourceOK) SetPayload ¶
func (o *DeleteResourceOK) SetPayload(payload models.ResourceResponse)
SetPayload sets the payload to the delete resource o k response
func (*DeleteResourceOK) WithPayload ¶
func (o *DeleteResourceOK) WithPayload(payload models.ResourceResponse) *DeleteResourceOK
WithPayload adds the payload to the delete resource o k response
func (*DeleteResourceOK) WriteResponse ¶
func (o *DeleteResourceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteResourceParams ¶
type DeleteResourceParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*SDR Identifier for the Resource. Required: true In: path */ ID string }
DeleteResourceParams contains all the bound params for the delete resource operation typically these are obtained from a http.Request
swagger:parameters deleteResource
func NewDeleteResourceParams ¶
func NewDeleteResourceParams() DeleteResourceParams
NewDeleteResourceParams creates a new DeleteResourceParams object with the default values initialized.
func (*DeleteResourceParams) BindRequest ¶
func (o *DeleteResourceParams) 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
type DeleteResourceURL ¶
type DeleteResourceURL struct { ID string // contains filtered or unexported fields }
DeleteResourceURL generates an URL for the delete resource operation
func (*DeleteResourceURL) Build ¶
func (o *DeleteResourceURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteResourceURL) BuildFull ¶
func (o *DeleteResourceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteResourceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteResourceURL) SetBasePath ¶
func (o *DeleteResourceURL) 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 (*DeleteResourceURL) String ¶
func (o *DeleteResourceURL) String() string
String returns the string representation of the path with query string
func (*DeleteResourceURL) StringFull ¶
func (o *DeleteResourceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteResourceURL) WithBasePath ¶
func (o *DeleteResourceURL) WithBasePath(bp string) *DeleteResourceURL
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 DeleteResourceUnauthorized ¶
type DeleteResourceUnauthorized struct { }
DeleteResourceUnauthorized You are not authorized to delete a resource in TACO.
swagger:response deleteResourceUnauthorized
func NewDeleteResourceUnauthorized ¶
func NewDeleteResourceUnauthorized() *DeleteResourceUnauthorized
NewDeleteResourceUnauthorized creates DeleteResourceUnauthorized with default headers values
func (*DeleteResourceUnauthorized) WriteResponse ¶
func (o *DeleteResourceUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DepositFile ¶
type DepositFile struct { Context *middleware.Context Handler DepositFileHandler }
DepositFile swagger:route POST /file depositFile
Deposit New File (binary).
Deposits a new File (binary) into SDR. Will return the SDR identifier for the File resource (aka the metadata object generated and persisted for management of the provided binary).
func NewDepositFile ¶
func NewDepositFile(ctx *middleware.Context, handler DepositFileHandler) *DepositFile
NewDepositFile creates a new http.Handler for the deposit file operation
func (*DepositFile) ServeHTTP ¶
func (o *DepositFile) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DepositFileCreated ¶
type DepositFileCreated struct { /* In: Body */ Payload models.ResourceResponse `json:"body,omitempty"` }
DepositFileCreated TACO binary ingested, File management metadata created, & File processing started.
swagger:response depositFileCreated
func NewDepositFileCreated ¶
func NewDepositFileCreated() *DepositFileCreated
NewDepositFileCreated creates DepositFileCreated with default headers values
func (*DepositFileCreated) SetPayload ¶
func (o *DepositFileCreated) SetPayload(payload models.ResourceResponse)
SetPayload sets the payload to the deposit file created response
func (*DepositFileCreated) WithPayload ¶
func (o *DepositFileCreated) WithPayload(payload models.ResourceResponse) *DepositFileCreated
WithPayload adds the payload to the deposit file created response
func (*DepositFileCreated) WriteResponse ¶
func (o *DepositFileCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DepositFileHandler ¶
type DepositFileHandler interface {
Handle(DepositFileParams) middleware.Responder
}
DepositFileHandler interface for that can handle valid deposit file params
type DepositFileHandlerFunc ¶
type DepositFileHandlerFunc func(DepositFileParams) middleware.Responder
DepositFileHandlerFunc turns a function with the right signature into a deposit file handler
func (DepositFileHandlerFunc) Handle ¶
func (fn DepositFileHandlerFunc) Handle(params DepositFileParams) middleware.Responder
Handle executing the request and returning a response
type DepositFileInternalServerError ¶
type DepositFileInternalServerError struct { }
DepositFileInternalServerError This file could be ingested at this time by TACO.
swagger:response depositFileInternalServerError
func NewDepositFileInternalServerError ¶
func NewDepositFileInternalServerError() *DepositFileInternalServerError
NewDepositFileInternalServerError creates DepositFileInternalServerError with default headers values
func (*DepositFileInternalServerError) WriteResponse ¶
func (o *DepositFileInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DepositFileParams ¶
type DepositFileParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Binary to be added to an Object in TACO. Required: true In: formData */ Upload runtime.File }
DepositFileParams contains all the bound params for the deposit file operation typically these are obtained from a http.Request
swagger:parameters depositFile
func NewDepositFileParams ¶
func NewDepositFileParams() DepositFileParams
NewDepositFileParams creates a new DepositFileParams object with the default values initialized.
func (*DepositFileParams) BindRequest ¶
func (o *DepositFileParams) 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
type DepositFileURL ¶
type DepositFileURL struct {
// contains filtered or unexported fields
}
DepositFileURL generates an URL for the deposit file operation
func (*DepositFileURL) Build ¶
func (o *DepositFileURL) Build() (*url.URL, error)
Build a url path and query string
func (*DepositFileURL) BuildFull ¶
func (o *DepositFileURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DepositFileURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DepositFileURL) SetBasePath ¶
func (o *DepositFileURL) 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 (*DepositFileURL) String ¶
func (o *DepositFileURL) String() string
String returns the string representation of the path with query string
func (*DepositFileURL) StringFull ¶
func (o *DepositFileURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DepositFileURL) WithBasePath ¶
func (o *DepositFileURL) WithBasePath(bp string) *DepositFileURL
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 DepositFileUnauthorized ¶
type DepositFileUnauthorized struct { }
DepositFileUnauthorized You are not authorized to ingest a File into TACO.
swagger:response depositFileUnauthorized
func NewDepositFileUnauthorized ¶
func NewDepositFileUnauthorized() *DepositFileUnauthorized
NewDepositFileUnauthorized creates DepositFileUnauthorized with default headers values
func (*DepositFileUnauthorized) WriteResponse ¶
func (o *DepositFileUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DepositFileUnsupportedMediaType ¶
type DepositFileUnsupportedMediaType struct { }
DepositFileUnsupportedMediaType Unsupported file type provided.
swagger:response depositFileUnsupportedMediaType
func NewDepositFileUnsupportedMediaType ¶
func NewDepositFileUnsupportedMediaType() *DepositFileUnsupportedMediaType
NewDepositFileUnsupportedMediaType creates DepositFileUnsupportedMediaType with default headers values
func (*DepositFileUnsupportedMediaType) WriteResponse ¶
func (o *DepositFileUnsupportedMediaType) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DepositResource ¶
type DepositResource struct { Context *middleware.Context Handler DepositResourceHandler }
DepositResource swagger:route POST /resource depositResource
Deposit New TACO Resource.
Deposits a new resource (Collection, Digital Repository Object, File [metadata only] or subclass of those) into SDR. Will return the SDR identifier for the resource.
func NewDepositResource ¶
func NewDepositResource(ctx *middleware.Context, handler DepositResourceHandler) *DepositResource
NewDepositResource creates a new http.Handler for the deposit resource operation
func (*DepositResource) ServeHTTP ¶
func (o *DepositResource) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DepositResourceCreated ¶
type DepositResourceCreated struct { /* In: Body */ Payload models.ResourceResponse `json:"body,omitempty"` }
DepositResourceCreated TACO resource created & processing started.
swagger:response depositResourceCreated
func NewDepositResourceCreated ¶
func NewDepositResourceCreated() *DepositResourceCreated
NewDepositResourceCreated creates DepositResourceCreated with default headers values
func (*DepositResourceCreated) SetPayload ¶
func (o *DepositResourceCreated) SetPayload(payload models.ResourceResponse)
SetPayload sets the payload to the deposit resource created response
func (*DepositResourceCreated) WithPayload ¶
func (o *DepositResourceCreated) WithPayload(payload models.ResourceResponse) *DepositResourceCreated
WithPayload adds the payload to the deposit resource created response
func (*DepositResourceCreated) WriteResponse ¶
func (o *DepositResourceCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DepositResourceHandler ¶
type DepositResourceHandler interface {
Handle(DepositResourceParams) middleware.Responder
}
DepositResourceHandler interface for that can handle valid deposit resource params
type DepositResourceHandlerFunc ¶
type DepositResourceHandlerFunc func(DepositResourceParams) middleware.Responder
DepositResourceHandlerFunc turns a function with the right signature into a deposit resource handler
func (DepositResourceHandlerFunc) Handle ¶
func (fn DepositResourceHandlerFunc) Handle(params DepositResourceParams) middleware.Responder
Handle executing the request and returning a response
type DepositResourceInternalServerError ¶
type DepositResourceInternalServerError struct { }
DepositResourceInternalServerError This resource could be created at this time by TACO.
swagger:response depositResourceInternalServerError
func NewDepositResourceInternalServerError ¶
func NewDepositResourceInternalServerError() *DepositResourceInternalServerError
NewDepositResourceInternalServerError creates DepositResourceInternalServerError with default headers values
func (*DepositResourceInternalServerError) WriteResponse ¶
func (o *DepositResourceInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DepositResourceParams ¶
type DepositResourceParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*JSON-LD representation of the resource metadata going into SDR. Needs to fit the SDR 3.0 MAP requirements. Required: true In: body */ Payload models.Resource }
DepositResourceParams contains all the bound params for the deposit resource operation typically these are obtained from a http.Request
swagger:parameters depositResource
func NewDepositResourceParams ¶
func NewDepositResourceParams() DepositResourceParams
NewDepositResourceParams creates a new DepositResourceParams object with the default values initialized.
func (*DepositResourceParams) BindRequest ¶
func (o *DepositResourceParams) 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
type DepositResourceURL ¶
type DepositResourceURL struct {
// contains filtered or unexported fields
}
DepositResourceURL generates an URL for the deposit resource operation
func (*DepositResourceURL) Build ¶
func (o *DepositResourceURL) Build() (*url.URL, error)
Build a url path and query string
func (*DepositResourceURL) BuildFull ¶
func (o *DepositResourceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DepositResourceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DepositResourceURL) SetBasePath ¶
func (o *DepositResourceURL) 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 (*DepositResourceURL) String ¶
func (o *DepositResourceURL) String() string
String returns the string representation of the path with query string
func (*DepositResourceURL) StringFull ¶
func (o *DepositResourceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DepositResourceURL) WithBasePath ¶
func (o *DepositResourceURL) WithBasePath(bp string) *DepositResourceURL
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 DepositResourceUnauthorized ¶
type DepositResourceUnauthorized struct { }
DepositResourceUnauthorized You are not authorized to create a resource in TACO.
swagger:response depositResourceUnauthorized
func NewDepositResourceUnauthorized ¶
func NewDepositResourceUnauthorized() *DepositResourceUnauthorized
NewDepositResourceUnauthorized creates DepositResourceUnauthorized with default headers values
func (*DepositResourceUnauthorized) WriteResponse ¶
func (o *DepositResourceUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DepositResourceUnprocessableEntity ¶
type DepositResourceUnprocessableEntity struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
DepositResourceUnprocessableEntity The resource JSON provided had an unspecified or unsupported field, or is otherwise unprocessable by TACO.
swagger:response depositResourceUnprocessableEntity
func NewDepositResourceUnprocessableEntity ¶
func NewDepositResourceUnprocessableEntity() *DepositResourceUnprocessableEntity
NewDepositResourceUnprocessableEntity creates DepositResourceUnprocessableEntity with default headers values
func (*DepositResourceUnprocessableEntity) SetPayload ¶
func (o *DepositResourceUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the deposit resource unprocessable entity response
func (*DepositResourceUnprocessableEntity) WithPayload ¶
func (o *DepositResourceUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *DepositResourceUnprocessableEntity
WithPayload adds the payload to the deposit resource unprocessable entity response
func (*DepositResourceUnprocessableEntity) WriteResponse ¶
func (o *DepositResourceUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DepositResourceUnsupportedMediaType ¶
type DepositResourceUnsupportedMediaType struct { }
DepositResourceUnsupportedMediaType Unsupported resource type provided. TACO resources should be handed over as JSON or JSON-LD.
swagger:response depositResourceUnsupportedMediaType
func NewDepositResourceUnsupportedMediaType ¶
func NewDepositResourceUnsupportedMediaType() *DepositResourceUnsupportedMediaType
NewDepositResourceUnsupportedMediaType creates DepositResourceUnsupportedMediaType with default headers values
func (*DepositResourceUnsupportedMediaType) WriteResponse ¶
func (o *DepositResourceUnsupportedMediaType) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProcessStatus ¶
type GetProcessStatus struct { Context *middleware.Context Handler GetProcessStatusHandler }
GetProcessStatus swagger:route GET /status/{ID} getProcessStatus
Resource Processing Status.
Get the processing status and history for a resource.
func NewGetProcessStatus ¶
func NewGetProcessStatus(ctx *middleware.Context, handler GetProcessStatusHandler) *GetProcessStatus
NewGetProcessStatus creates a new http.Handler for the get process status operation
func (*GetProcessStatus) ServeHTTP ¶
func (o *GetProcessStatus) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetProcessStatusHandler ¶
type GetProcessStatusHandler interface {
Handle(GetProcessStatusParams) middleware.Responder
}
GetProcessStatusHandler interface for that can handle valid get process status params
type GetProcessStatusHandlerFunc ¶
type GetProcessStatusHandlerFunc func(GetProcessStatusParams) middleware.Responder
GetProcessStatusHandlerFunc turns a function with the right signature into a get process status handler
func (GetProcessStatusHandlerFunc) Handle ¶
func (fn GetProcessStatusHandlerFunc) Handle(params GetProcessStatusParams) middleware.Responder
Handle executing the request and returning a response
type GetProcessStatusInternalServerError ¶
type GetProcessStatusInternalServerError struct { }
GetProcessStatusInternalServerError This resource's processing status could be retrieved at this time by TACO.
swagger:response getProcessStatusInternalServerError
func NewGetProcessStatusInternalServerError ¶
func NewGetProcessStatusInternalServerError() *GetProcessStatusInternalServerError
NewGetProcessStatusInternalServerError creates GetProcessStatusInternalServerError with default headers values
func (*GetProcessStatusInternalServerError) WriteResponse ¶
func (o *GetProcessStatusInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProcessStatusNotFound ¶
type GetProcessStatusNotFound struct { }
GetProcessStatusNotFound Resource not found. Please check your provided TACO identifier.
swagger:response getProcessStatusNotFound
func NewGetProcessStatusNotFound ¶
func NewGetProcessStatusNotFound() *GetProcessStatusNotFound
NewGetProcessStatusNotFound creates GetProcessStatusNotFound with default headers values
func (*GetProcessStatusNotFound) WriteResponse ¶
func (o *GetProcessStatusNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProcessStatusOK ¶
type GetProcessStatusOK struct { /* In: Body */ Payload *models.ProcessResponse `json:"body,omitempty"` }
GetProcessStatusOK Processing status for the TACO resource.
swagger:response getProcessStatusOK
func NewGetProcessStatusOK ¶
func NewGetProcessStatusOK() *GetProcessStatusOK
NewGetProcessStatusOK creates GetProcessStatusOK with default headers values
func (*GetProcessStatusOK) SetPayload ¶
func (o *GetProcessStatusOK) SetPayload(payload *models.ProcessResponse)
SetPayload sets the payload to the get process status o k response
func (*GetProcessStatusOK) WithPayload ¶
func (o *GetProcessStatusOK) WithPayload(payload *models.ProcessResponse) *GetProcessStatusOK
WithPayload adds the payload to the get process status o k response
func (*GetProcessStatusOK) WriteResponse ¶
func (o *GetProcessStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProcessStatusParams ¶
type GetProcessStatusParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*SDR Identifier for the Resource. Required: true In: path */ ID string }
GetProcessStatusParams contains all the bound params for the get process status operation typically these are obtained from a http.Request
swagger:parameters getProcessStatus
func NewGetProcessStatusParams ¶
func NewGetProcessStatusParams() GetProcessStatusParams
NewGetProcessStatusParams creates a new GetProcessStatusParams object with the default values initialized.
func (*GetProcessStatusParams) BindRequest ¶
func (o *GetProcessStatusParams) 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
type GetProcessStatusURL ¶
type GetProcessStatusURL struct { ID string // contains filtered or unexported fields }
GetProcessStatusURL generates an URL for the get process status operation
func (*GetProcessStatusURL) Build ¶
func (o *GetProcessStatusURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetProcessStatusURL) BuildFull ¶
func (o *GetProcessStatusURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetProcessStatusURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetProcessStatusURL) SetBasePath ¶
func (o *GetProcessStatusURL) 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 (*GetProcessStatusURL) String ¶
func (o *GetProcessStatusURL) String() string
String returns the string representation of the path with query string
func (*GetProcessStatusURL) StringFull ¶
func (o *GetProcessStatusURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetProcessStatusURL) WithBasePath ¶
func (o *GetProcessStatusURL) WithBasePath(bp string) *GetProcessStatusURL
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 GetProcessStatusUnauthorized ¶
type GetProcessStatusUnauthorized struct { }
GetProcessStatusUnauthorized You are not authorized to view this resource's processing status in TACO.
swagger:response getProcessStatusUnauthorized
func NewGetProcessStatusUnauthorized ¶
func NewGetProcessStatusUnauthorized() *GetProcessStatusUnauthorized
NewGetProcessStatusUnauthorized creates GetProcessStatusUnauthorized with default headers values
func (*GetProcessStatusUnauthorized) WriteResponse ¶
func (o *GetProcessStatusUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type HealthCheck ¶
type HealthCheck struct { Context *middleware.Context Handler HealthCheckHandler }
HealthCheck swagger:route GET /healthcheck healthCheck
Health Check ¶
The healthcheck endpoint provides information about the health of the service.
func NewHealthCheck ¶
func NewHealthCheck(ctx *middleware.Context, handler HealthCheckHandler) *HealthCheck
NewHealthCheck creates a new http.Handler for the health check operation
func (*HealthCheck) ServeHTTP ¶
func (o *HealthCheck) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type HealthCheckHandler ¶
type HealthCheckHandler interface {
Handle(HealthCheckParams) middleware.Responder
}
HealthCheckHandler interface for that can handle valid health check params
type HealthCheckHandlerFunc ¶
type HealthCheckHandlerFunc func(HealthCheckParams) middleware.Responder
HealthCheckHandlerFunc turns a function with the right signature into a health check handler
func (HealthCheckHandlerFunc) Handle ¶
func (fn HealthCheckHandlerFunc) Handle(params HealthCheckParams) middleware.Responder
Handle executing the request and returning a response
type HealthCheckOK ¶
type HealthCheckOK struct { /* In: Body */ Payload *models.HealthCheckResponse `json:"body,omitempty"` }
HealthCheckOK The service is functioning nominally
swagger:response healthCheckOK
func NewHealthCheckOK ¶
func NewHealthCheckOK() *HealthCheckOK
NewHealthCheckOK creates HealthCheckOK with default headers values
func (*HealthCheckOK) SetPayload ¶
func (o *HealthCheckOK) SetPayload(payload *models.HealthCheckResponse)
SetPayload sets the payload to the health check o k response
func (*HealthCheckOK) WithPayload ¶
func (o *HealthCheckOK) WithPayload(payload *models.HealthCheckResponse) *HealthCheckOK
WithPayload adds the payload to the health check o k response
func (*HealthCheckOK) WriteResponse ¶
func (o *HealthCheckOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type HealthCheckParams ¶
HealthCheckParams contains all the bound params for the health check operation typically these are obtained from a http.Request
swagger:parameters healthCheck
func NewHealthCheckParams ¶
func NewHealthCheckParams() HealthCheckParams
NewHealthCheckParams creates a new HealthCheckParams object with the default values initialized.
func (*HealthCheckParams) BindRequest ¶
func (o *HealthCheckParams) 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
type HealthCheckServiceUnavailable ¶
type HealthCheckServiceUnavailable struct { models.HealthCheckResponse `json:"body,omitempty"` }Payload *
HealthCheckServiceUnavailable The service is not working correctly
swagger:response healthCheckServiceUnavailable
func NewHealthCheckServiceUnavailable ¶
func NewHealthCheckServiceUnavailable() *HealthCheckServiceUnavailable
NewHealthCheckServiceUnavailable creates HealthCheckServiceUnavailable with default headers values
func (*HealthCheckServiceUnavailable) SetPayload ¶
func (o *HealthCheckServiceUnavailable) SetPayload(payload *models.HealthCheckResponse)
SetPayload sets the payload to the health check service unavailable response
func (*HealthCheckServiceUnavailable) WithPayload ¶
func (o *HealthCheckServiceUnavailable) WithPayload(payload *models.HealthCheckResponse) *HealthCheckServiceUnavailable
WithPayload adds the payload to the health check service unavailable response
func (*HealthCheckServiceUnavailable) WriteResponse ¶
func (o *HealthCheckServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type HealthCheckURL ¶
type HealthCheckURL struct {
// contains filtered or unexported fields
}
HealthCheckURL generates an URL for the health check operation
func (*HealthCheckURL) Build ¶
func (o *HealthCheckURL) Build() (*url.URL, error)
Build a url path and query string
func (*HealthCheckURL) BuildFull ¶
func (o *HealthCheckURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*HealthCheckURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*HealthCheckURL) SetBasePath ¶
func (o *HealthCheckURL) 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 (*HealthCheckURL) String ¶
func (o *HealthCheckURL) String() string
String returns the string representation of the path with query string
func (*HealthCheckURL) StringFull ¶
func (o *HealthCheckURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*HealthCheckURL) WithBasePath ¶
func (o *HealthCheckURL) WithBasePath(bp string) *HealthCheckURL
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 RetrieveResource ¶
type RetrieveResource struct { Context *middleware.Context Handler RetrieveResourceHandler }
RetrieveResource swagger:route GET /resource/{ID} retrieveResource
Retrieve TACO Resource Metadata.
Retrieves the metadata (as JSON-LD following our SDR3 MAP v.1) for an existing TACO resource (Collection, Digital Repository Object, File metadata object [not binary] or subclass of those). The resource is identified by the TACO identifier.
func NewRetrieveResource ¶
func NewRetrieveResource(ctx *middleware.Context, handler RetrieveResourceHandler) *RetrieveResource
NewRetrieveResource creates a new http.Handler for the retrieve resource operation
func (*RetrieveResource) ServeHTTP ¶
func (o *RetrieveResource) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RetrieveResourceHandler ¶
type RetrieveResourceHandler interface {
Handle(RetrieveResourceParams) middleware.Responder
}
RetrieveResourceHandler interface for that can handle valid retrieve resource params
type RetrieveResourceHandlerFunc ¶
type RetrieveResourceHandlerFunc func(RetrieveResourceParams) middleware.Responder
RetrieveResourceHandlerFunc turns a function with the right signature into a retrieve resource handler
func (RetrieveResourceHandlerFunc) Handle ¶
func (fn RetrieveResourceHandlerFunc) Handle(params RetrieveResourceParams) middleware.Responder
Handle executing the request and returning a response
type RetrieveResourceInternalServerError ¶
type RetrieveResourceInternalServerError struct { }
RetrieveResourceInternalServerError The resource could not be retrieved by TACO at this time.
swagger:response retrieveResourceInternalServerError
func NewRetrieveResourceInternalServerError ¶
func NewRetrieveResourceInternalServerError() *RetrieveResourceInternalServerError
NewRetrieveResourceInternalServerError creates RetrieveResourceInternalServerError with default headers values
func (*RetrieveResourceInternalServerError) WriteResponse ¶
func (o *RetrieveResourceInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RetrieveResourceNotFound ¶
type RetrieveResourceNotFound struct { }
RetrieveResourceNotFound Resource not found. Please check your provided TACO identifier.
swagger:response retrieveResourceNotFound
func NewRetrieveResourceNotFound ¶
func NewRetrieveResourceNotFound() *RetrieveResourceNotFound
NewRetrieveResourceNotFound creates RetrieveResourceNotFound with default headers values
func (*RetrieveResourceNotFound) WriteResponse ¶
func (o *RetrieveResourceNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RetrieveResourceOK ¶
RetrieveResourceOK Resource metadata retrieved.
swagger:response retrieveResourceOK
func NewRetrieveResourceOK ¶
func NewRetrieveResourceOK() *RetrieveResourceOK
NewRetrieveResourceOK creates RetrieveResourceOK with default headers values
func (*RetrieveResourceOK) SetPayload ¶
func (o *RetrieveResourceOK) SetPayload(payload models.Resource)
SetPayload sets the payload to the retrieve resource o k response
func (*RetrieveResourceOK) WithPayload ¶
func (o *RetrieveResourceOK) WithPayload(payload models.Resource) *RetrieveResourceOK
WithPayload adds the payload to the retrieve resource o k response
func (*RetrieveResourceOK) WriteResponse ¶
func (o *RetrieveResourceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RetrieveResourceParams ¶
type RetrieveResourceParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*TACO Resource Identifier. Required: true In: path */ ID string }
RetrieveResourceParams contains all the bound params for the retrieve resource operation typically these are obtained from a http.Request
swagger:parameters retrieveResource
func NewRetrieveResourceParams ¶
func NewRetrieveResourceParams() RetrieveResourceParams
NewRetrieveResourceParams creates a new RetrieveResourceParams object with the default values initialized.
func (*RetrieveResourceParams) BindRequest ¶
func (o *RetrieveResourceParams) 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
type RetrieveResourceURL ¶
type RetrieveResourceURL struct { ID string // contains filtered or unexported fields }
RetrieveResourceURL generates an URL for the retrieve resource operation
func (*RetrieveResourceURL) Build ¶
func (o *RetrieveResourceURL) Build() (*url.URL, error)
Build a url path and query string
func (*RetrieveResourceURL) BuildFull ¶
func (o *RetrieveResourceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RetrieveResourceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RetrieveResourceURL) SetBasePath ¶
func (o *RetrieveResourceURL) 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 (*RetrieveResourceURL) String ¶
func (o *RetrieveResourceURL) String() string
String returns the string representation of the path with query string
func (*RetrieveResourceURL) StringFull ¶
func (o *RetrieveResourceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RetrieveResourceURL) WithBasePath ¶
func (o *RetrieveResourceURL) WithBasePath(bp string) *RetrieveResourceURL
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 RetrieveResourceUnauthorized ¶
type RetrieveResourceUnauthorized struct { }
RetrieveResourceUnauthorized You are not authorized to view this resource in TACO.
swagger:response retrieveResourceUnauthorized
func NewRetrieveResourceUnauthorized ¶
func NewRetrieveResourceUnauthorized() *RetrieveResourceUnauthorized
NewRetrieveResourceUnauthorized creates RetrieveResourceUnauthorized with default headers values
func (*RetrieveResourceUnauthorized) WriteResponse ¶
func (o *RetrieveResourceUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TacoAPI ¶
type TacoAPI struct { Middleware func(middleware.Builder) http.Handler // BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function. // It has a default implemention 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 implemention 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 implemention 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 a "application/json" mime type JSONConsumer runtime.Consumer // MultipartformConsumer registers a consumer for a "multipart/form-data" mime type MultipartformConsumer runtime.Consumer // JSONProducer registers a producer for a "application/json" mime type JSONProducer runtime.Producer // DeleteResourceHandler sets the operation handler for the delete resource operation DeleteResourceHandler DeleteResourceHandler // DepositFileHandler sets the operation handler for the deposit file operation DepositFileHandler DepositFileHandler // DepositResourceHandler sets the operation handler for the deposit resource operation DepositResourceHandler DepositResourceHandler // GetProcessStatusHandler sets the operation handler for the get process status operation GetProcessStatusHandler GetProcessStatusHandler // HealthCheckHandler sets the operation handler for the health check operation HealthCheckHandler HealthCheckHandler // RetrieveResourceHandler sets the operation handler for the retrieve resource operation RetrieveResourceHandler RetrieveResourceHandler // UpdateResourceHandler sets the operation handler for the update resource operation UpdateResourceHandler UpdateResourceHandler // 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) // 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 }
TacoAPI TACO, the Stanford Digital Repository (SDR) Management Layer API
func NewTacoAPI ¶
NewTacoAPI creates a new Taco instance
func (*TacoAPI) AuthenticatorsFor ¶
func (o *TacoAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*TacoAPI) Authorizer ¶
func (o *TacoAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*TacoAPI) ConsumersFor ¶
ConsumersFor gets the consumers for the specified media types
func (*TacoAPI) Context ¶
func (o *TacoAPI) Context() *middleware.Context
Context returns the middleware context for the taco API
func (*TacoAPI) DefaultConsumes ¶
DefaultConsumes returns the default consumes media type
func (*TacoAPI) DefaultProduces ¶
DefaultProduces returns the default produces media type
func (*TacoAPI) HandlerFor ¶
HandlerFor gets a http.Handler for the provided operation method and path
func (*TacoAPI) Init ¶
func (o *TacoAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middelware as you see fit
func (*TacoAPI) ProducersFor ¶
ProducersFor gets the producers for the specified media types
func (*TacoAPI) RegisterFormat ¶
RegisterFormat registers a custom format validator
func (*TacoAPI) Serve ¶
func (o *TacoAPI) 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 (*TacoAPI) ServeErrorFor ¶
ServeErrorFor gets a error handler for a given operation id
func (*TacoAPI) SetDefaultConsumes ¶
SetDefaultConsumes returns the default consumes media type
func (*TacoAPI) SetDefaultProduces ¶
SetDefaultProduces sets the default produces media type
type UpdateResource ¶
type UpdateResource struct { Context *middleware.Context Handler UpdateResourceHandler }
UpdateResource swagger:route PATCH /resource/{ID} updateResource
Update TACO Resource.
Updates the metadata for an existing TACO resource (Collection, Digital Repository Object, File metadata object [not binary] or subclass of those). Only include the required fields and the fields you wish to have changed. Will return the TACO resource identifier.
func NewUpdateResource ¶
func NewUpdateResource(ctx *middleware.Context, handler UpdateResourceHandler) *UpdateResource
NewUpdateResource creates a new http.Handler for the update resource operation
func (*UpdateResource) ServeHTTP ¶
func (o *UpdateResource) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateResourceBadRequest ¶
type UpdateResourceBadRequest struct { }
UpdateResourceBadRequest Invalid ID supplied
swagger:response updateResourceBadRequest
func NewUpdateResourceBadRequest ¶
func NewUpdateResourceBadRequest() *UpdateResourceBadRequest
NewUpdateResourceBadRequest creates UpdateResourceBadRequest with default headers values
func (*UpdateResourceBadRequest) WriteResponse ¶
func (o *UpdateResourceBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateResourceHandler ¶
type UpdateResourceHandler interface {
Handle(UpdateResourceParams) middleware.Responder
}
UpdateResourceHandler interface for that can handle valid update resource params
type UpdateResourceHandlerFunc ¶
type UpdateResourceHandlerFunc func(UpdateResourceParams) middleware.Responder
UpdateResourceHandlerFunc turns a function with the right signature into a update resource handler
func (UpdateResourceHandlerFunc) Handle ¶
func (fn UpdateResourceHandlerFunc) Handle(params UpdateResourceParams) middleware.Responder
Handle executing the request and returning a response
type UpdateResourceInternalServerError ¶
type UpdateResourceInternalServerError struct { }
UpdateResourceInternalServerError This resource could be updated at this time by TACO.
swagger:response updateResourceInternalServerError
func NewUpdateResourceInternalServerError ¶
func NewUpdateResourceInternalServerError() *UpdateResourceInternalServerError
NewUpdateResourceInternalServerError creates UpdateResourceInternalServerError with default headers values
func (*UpdateResourceInternalServerError) WriteResponse ¶
func (o *UpdateResourceInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateResourceOK ¶
type UpdateResourceOK struct { /* In: Body */ Payload models.ResourceResponse `json:"body,omitempty"` }
UpdateResourceOK TACO resource metadata updated & processing started.
swagger:response updateResourceOK
func NewUpdateResourceOK ¶
func NewUpdateResourceOK() *UpdateResourceOK
NewUpdateResourceOK creates UpdateResourceOK with default headers values
func (*UpdateResourceOK) SetPayload ¶
func (o *UpdateResourceOK) SetPayload(payload models.ResourceResponse)
SetPayload sets the payload to the update resource o k response
func (*UpdateResourceOK) WithPayload ¶
func (o *UpdateResourceOK) WithPayload(payload models.ResourceResponse) *UpdateResourceOK
WithPayload adds the payload to the update resource o k response
func (*UpdateResourceOK) WriteResponse ¶
func (o *UpdateResourceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateResourceParams ¶
type UpdateResourceParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*SDR Identifier for the Resource. Required: true In: path */ ID string /*JSON-LD Representation of the resource metadata required fields and only the fields you wish to update (identified via its TACO identifier). Needs to fit the SDR 3.0 MAP requirements. Required: true In: body */ Payload models.Resource }
UpdateResourceParams contains all the bound params for the update resource operation typically these are obtained from a http.Request
swagger:parameters updateResource
func NewUpdateResourceParams ¶
func NewUpdateResourceParams() UpdateResourceParams
NewUpdateResourceParams creates a new UpdateResourceParams object with the default values initialized.
func (*UpdateResourceParams) BindRequest ¶
func (o *UpdateResourceParams) 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
type UpdateResourceURL ¶
type UpdateResourceURL struct { ID string // contains filtered or unexported fields }
UpdateResourceURL generates an URL for the update resource operation
func (*UpdateResourceURL) Build ¶
func (o *UpdateResourceURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateResourceURL) BuildFull ¶
func (o *UpdateResourceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateResourceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateResourceURL) SetBasePath ¶
func (o *UpdateResourceURL) 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 (*UpdateResourceURL) String ¶
func (o *UpdateResourceURL) String() string
String returns the string representation of the path with query string
func (*UpdateResourceURL) StringFull ¶
func (o *UpdateResourceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateResourceURL) WithBasePath ¶
func (o *UpdateResourceURL) WithBasePath(bp string) *UpdateResourceURL
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 UpdateResourceUnauthorized ¶
type UpdateResourceUnauthorized struct { }
UpdateResourceUnauthorized You are not authorized to update a resource in TACO.
swagger:response updateResourceUnauthorized
func NewUpdateResourceUnauthorized ¶
func NewUpdateResourceUnauthorized() *UpdateResourceUnauthorized
NewUpdateResourceUnauthorized creates UpdateResourceUnauthorized with default headers values
func (*UpdateResourceUnauthorized) WriteResponse ¶
func (o *UpdateResourceUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateResourceUnprocessableEntity ¶
type UpdateResourceUnprocessableEntity struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
UpdateResourceUnprocessableEntity The resource JSON provided had an unspecified or unsupported field, or is otherwise unprocessable by TACO.
swagger:response updateResourceUnprocessableEntity
func NewUpdateResourceUnprocessableEntity ¶
func NewUpdateResourceUnprocessableEntity() *UpdateResourceUnprocessableEntity
NewUpdateResourceUnprocessableEntity creates UpdateResourceUnprocessableEntity with default headers values
func (*UpdateResourceUnprocessableEntity) SetPayload ¶
func (o *UpdateResourceUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the update resource unprocessable entity response
func (*UpdateResourceUnprocessableEntity) WithPayload ¶
func (o *UpdateResourceUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *UpdateResourceUnprocessableEntity
WithPayload adds the payload to the update resource unprocessable entity response
func (*UpdateResourceUnprocessableEntity) WriteResponse ¶
func (o *UpdateResourceUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateResourceUnsupportedMediaType ¶
type UpdateResourceUnsupportedMediaType struct { }
UpdateResourceUnsupportedMediaType Unsupported resource type provided. TACO resources should be handed over as JSON or JSON-LD.
swagger:response updateResourceUnsupportedMediaType
func NewUpdateResourceUnsupportedMediaType ¶
func NewUpdateResourceUnsupportedMediaType() *UpdateResourceUnsupportedMediaType
NewUpdateResourceUnsupportedMediaType creates UpdateResourceUnsupportedMediaType with default headers values
func (*UpdateResourceUnsupportedMediaType) WriteResponse ¶
func (o *UpdateResourceUnsupportedMediaType) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- delete_resource.go
- delete_resource_parameters.go
- delete_resource_responses.go
- delete_resource_urlbuilder.go
- deposit_file.go
- deposit_file_parameters.go
- deposit_file_responses.go
- deposit_file_urlbuilder.go
- deposit_resource.go
- deposit_resource_parameters.go
- deposit_resource_responses.go
- deposit_resource_urlbuilder.go
- get_process_status.go
- get_process_status_parameters.go
- get_process_status_responses.go
- get_process_status_urlbuilder.go
- health_check.go
- health_check_parameters.go
- health_check_responses.go
- health_check_urlbuilder.go
- retrieve_resource.go
- retrieve_resource_parameters.go
- retrieve_resource_responses.go
- retrieve_resource_urlbuilder.go
- taco_api.go
- update_resource.go
- update_resource_parameters.go
- update_resource_responses.go
- update_resource_urlbuilder.go