public

package
v0.0.0-...-32463fa Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DownloadSharedObjectOKCode int = 200

DownloadSharedObjectOKCode is the HTTP code returned for type DownloadSharedObjectOK

Variables

This section is empty.

Functions

This section is empty.

Types

type DownloadSharedObject

type DownloadSharedObject struct {
	Context *middleware.Context
	Handler DownloadSharedObjectHandler
}
DownloadSharedObject swagger:route GET /download-shared-object/{url} Public downloadSharedObject

Downloads an object from a presigned url

func NewDownloadSharedObject

func NewDownloadSharedObject(ctx *middleware.Context, handler DownloadSharedObjectHandler) *DownloadSharedObject

NewDownloadSharedObject creates a new http.Handler for the download shared object operation

func (*DownloadSharedObject) ServeHTTP

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

type DownloadSharedObjectDefault

type DownloadSharedObjectDefault struct {

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

DownloadSharedObjectDefault Generic error response.

swagger:response downloadSharedObjectDefault

func NewDownloadSharedObjectDefault

func NewDownloadSharedObjectDefault(code int) *DownloadSharedObjectDefault

NewDownloadSharedObjectDefault creates DownloadSharedObjectDefault with default headers values

func (*DownloadSharedObjectDefault) SetPayload

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

SetPayload sets the payload to the download shared object default response

func (*DownloadSharedObjectDefault) SetStatusCode

func (o *DownloadSharedObjectDefault) SetStatusCode(code int)

SetStatusCode sets the status to the download shared object default response

func (*DownloadSharedObjectDefault) WithPayload

WithPayload adds the payload to the download shared object default response

func (*DownloadSharedObjectDefault) WithStatusCode

WithStatusCode adds the status to the download shared object default response

func (*DownloadSharedObjectDefault) WriteResponse

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

WriteResponse to the client

type DownloadSharedObjectHandler

type DownloadSharedObjectHandler interface {
	Handle(DownloadSharedObjectParams) middleware.Responder
}

DownloadSharedObjectHandler interface for that can handle valid download shared object params

type DownloadSharedObjectHandlerFunc

type DownloadSharedObjectHandlerFunc func(DownloadSharedObjectParams) middleware.Responder

DownloadSharedObjectHandlerFunc turns a function with the right signature into a download shared object handler

func (DownloadSharedObjectHandlerFunc) Handle

Handle executing the request and returning a response

type DownloadSharedObjectOK

type DownloadSharedObjectOK struct {

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

DownloadSharedObjectOK A successful response.

swagger:response downloadSharedObjectOK

func NewDownloadSharedObjectOK

func NewDownloadSharedObjectOK() *DownloadSharedObjectOK

NewDownloadSharedObjectOK creates DownloadSharedObjectOK with default headers values

func (*DownloadSharedObjectOK) SetPayload

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

SetPayload sets the payload to the download shared object o k response

func (*DownloadSharedObjectOK) WithPayload

WithPayload adds the payload to the download shared object o k response

func (*DownloadSharedObjectOK) WriteResponse

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

WriteResponse to the client

type DownloadSharedObjectParams

type DownloadSharedObjectParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	URL string
}

DownloadSharedObjectParams contains all the bound params for the download shared object operation typically these are obtained from a http.Request

swagger:parameters DownloadSharedObject

func NewDownloadSharedObjectParams

func NewDownloadSharedObjectParams() DownloadSharedObjectParams

NewDownloadSharedObjectParams creates a new DownloadSharedObjectParams object

There are no default values defined in the spec.

func (*DownloadSharedObjectParams) BindRequest

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 NewDownloadSharedObjectParams() beforehand.

type DownloadSharedObjectURL

type DownloadSharedObjectURL struct {
	URL string
	// contains filtered or unexported fields
}

DownloadSharedObjectURL generates an URL for the download shared object operation

func (*DownloadSharedObjectURL) Build

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

Build a url path and query string

func (*DownloadSharedObjectURL) BuildFull

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

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

func (*DownloadSharedObjectURL) Must

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

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

func (*DownloadSharedObjectURL) SetBasePath

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

func (o *DownloadSharedObjectURL) String() string

String returns the string representation of the path with query string

func (*DownloadSharedObjectURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DownloadSharedObjectURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL