bucket

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const BucketInfoOKCode int = 200

BucketInfoOKCode is the HTTP code returned for type BucketInfoOK

View Source
const GetBucketQuotaOKCode int = 200

GetBucketQuotaOKCode is the HTTP code returned for type GetBucketQuotaOK

View Source
const GetBucketRewindOKCode int = 200

GetBucketRewindOKCode is the HTTP code returned for type GetBucketRewindOK

View Source
const GetBucketVersioningOKCode int = 200

GetBucketVersioningOKCode is the HTTP code returned for type GetBucketVersioningOK

View Source
const GetMaxShareLinkExpOKCode int = 200

GetMaxShareLinkExpOKCode is the HTTP code returned for type GetMaxShareLinkExpOK

View Source
const ListBucketsOKCode int = 200

ListBucketsOKCode is the HTTP code returned for type ListBucketsOK

View Source
const MakeBucketOKCode int = 200

MakeBucketOKCode is the HTTP code returned for type MakeBucketOK

View Source
const SetBucketVersioningCreatedCode int = 201

SetBucketVersioningCreatedCode is the HTTP code returned for type SetBucketVersioningCreated

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketInfo

type BucketInfo struct {
	Context *middleware.Context
	Handler BucketInfoHandler
}
BucketInfo swagger:route GET /buckets/{name} Bucket bucketInfo

Bucket Info

func NewBucketInfo

func NewBucketInfo(ctx *middleware.Context, handler BucketInfoHandler) *BucketInfo

NewBucketInfo creates a new http.Handler for the bucket info operation

func (*BucketInfo) ServeHTTP

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

type BucketInfoDefault

type BucketInfoDefault struct {

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

BucketInfoDefault Generic error response.

swagger:response bucketInfoDefault

func NewBucketInfoDefault

func NewBucketInfoDefault(code int) *BucketInfoDefault

NewBucketInfoDefault creates BucketInfoDefault with default headers values

func (*BucketInfoDefault) SetPayload

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

SetPayload sets the payload to the bucket info default response

func (*BucketInfoDefault) SetStatusCode

func (o *BucketInfoDefault) SetStatusCode(code int)

SetStatusCode sets the status to the bucket info default response

func (*BucketInfoDefault) WithPayload

func (o *BucketInfoDefault) WithPayload(payload *models.APIError) *BucketInfoDefault

WithPayload adds the payload to the bucket info default response

func (*BucketInfoDefault) WithStatusCode

func (o *BucketInfoDefault) WithStatusCode(code int) *BucketInfoDefault

WithStatusCode adds the status to the bucket info default response

func (*BucketInfoDefault) WriteResponse

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

WriteResponse to the client

type BucketInfoHandler

type BucketInfoHandler interface {
	Handle(BucketInfoParams, *models.Principal) middleware.Responder
}

BucketInfoHandler interface for that can handle valid bucket info params

type BucketInfoHandlerFunc

type BucketInfoHandlerFunc func(BucketInfoParams, *models.Principal) middleware.Responder

BucketInfoHandlerFunc turns a function with the right signature into a bucket info handler

func (BucketInfoHandlerFunc) Handle

Handle executing the request and returning a response

type BucketInfoOK

type BucketInfoOK struct {

	/*
	  In: Body
	*/
	Payload *models.Bucket `json:"body,omitempty"`
}

BucketInfoOK A successful response.

swagger:response bucketInfoOK

func NewBucketInfoOK

func NewBucketInfoOK() *BucketInfoOK

NewBucketInfoOK creates BucketInfoOK with default headers values

func (*BucketInfoOK) SetPayload

func (o *BucketInfoOK) SetPayload(payload *models.Bucket)

SetPayload sets the payload to the bucket info o k response

func (*BucketInfoOK) WithPayload

func (o *BucketInfoOK) WithPayload(payload *models.Bucket) *BucketInfoOK

WithPayload adds the payload to the bucket info o k response

func (*BucketInfoOK) WriteResponse

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

WriteResponse to the client

type BucketInfoParams

type BucketInfoParams struct {

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

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

BucketInfoParams contains all the bound params for the bucket info operation typically these are obtained from a http.Request

swagger:parameters BucketInfo

func NewBucketInfoParams

func NewBucketInfoParams() BucketInfoParams

NewBucketInfoParams creates a new BucketInfoParams object

There are no default values defined in the spec.

func (*BucketInfoParams) BindRequest

func (o *BucketInfoParams) 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 NewBucketInfoParams() beforehand.

type BucketInfoURL

type BucketInfoURL struct {
	Name string
	// contains filtered or unexported fields
}

BucketInfoURL generates an URL for the bucket info operation

func (*BucketInfoURL) Build

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

Build a url path and query string

func (*BucketInfoURL) BuildFull

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

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

func (*BucketInfoURL) Must

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

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

func (*BucketInfoURL) SetBasePath

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

func (o *BucketInfoURL) String() string

String returns the string representation of the path with query string

func (*BucketInfoURL) StringFull

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

StringFull returns the string representation of a complete url

func (*BucketInfoURL) WithBasePath

func (o *BucketInfoURL) WithBasePath(bp string) *BucketInfoURL

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 GetBucketQuota

type GetBucketQuota struct {
	Context *middleware.Context
	Handler GetBucketQuotaHandler
}
GetBucketQuota swagger:route GET /buckets/{name}/quota Bucket getBucketQuota

Get Bucket Quota

func NewGetBucketQuota

func NewGetBucketQuota(ctx *middleware.Context, handler GetBucketQuotaHandler) *GetBucketQuota

NewGetBucketQuota creates a new http.Handler for the get bucket quota operation

func (*GetBucketQuota) ServeHTTP

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

type GetBucketQuotaDefault

type GetBucketQuotaDefault struct {

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

GetBucketQuotaDefault Generic error response.

swagger:response getBucketQuotaDefault

func NewGetBucketQuotaDefault

func NewGetBucketQuotaDefault(code int) *GetBucketQuotaDefault

NewGetBucketQuotaDefault creates GetBucketQuotaDefault with default headers values

func (*GetBucketQuotaDefault) SetPayload

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

SetPayload sets the payload to the get bucket quota default response

func (*GetBucketQuotaDefault) SetStatusCode

func (o *GetBucketQuotaDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get bucket quota default response

func (*GetBucketQuotaDefault) WithPayload

func (o *GetBucketQuotaDefault) WithPayload(payload *models.APIError) *GetBucketQuotaDefault

WithPayload adds the payload to the get bucket quota default response

func (*GetBucketQuotaDefault) WithStatusCode

func (o *GetBucketQuotaDefault) WithStatusCode(code int) *GetBucketQuotaDefault

WithStatusCode adds the status to the get bucket quota default response

func (*GetBucketQuotaDefault) WriteResponse

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

WriteResponse to the client

type GetBucketQuotaHandler

type GetBucketQuotaHandler interface {
	Handle(GetBucketQuotaParams, *models.Principal) middleware.Responder
}

GetBucketQuotaHandler interface for that can handle valid get bucket quota params

type GetBucketQuotaHandlerFunc

type GetBucketQuotaHandlerFunc func(GetBucketQuotaParams, *models.Principal) middleware.Responder

GetBucketQuotaHandlerFunc turns a function with the right signature into a get bucket quota handler

func (GetBucketQuotaHandlerFunc) Handle

Handle executing the request and returning a response

type GetBucketQuotaOK

type GetBucketQuotaOK struct {

	/*
	  In: Body
	*/
	Payload *models.BucketQuota `json:"body,omitempty"`
}

GetBucketQuotaOK A successful response.

swagger:response getBucketQuotaOK

func NewGetBucketQuotaOK

func NewGetBucketQuotaOK() *GetBucketQuotaOK

NewGetBucketQuotaOK creates GetBucketQuotaOK with default headers values

func (*GetBucketQuotaOK) SetPayload

func (o *GetBucketQuotaOK) SetPayload(payload *models.BucketQuota)

SetPayload sets the payload to the get bucket quota o k response

func (*GetBucketQuotaOK) WithPayload

func (o *GetBucketQuotaOK) WithPayload(payload *models.BucketQuota) *GetBucketQuotaOK

WithPayload adds the payload to the get bucket quota o k response

func (*GetBucketQuotaOK) WriteResponse

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

WriteResponse to the client

type GetBucketQuotaParams

type GetBucketQuotaParams struct {

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

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

GetBucketQuotaParams contains all the bound params for the get bucket quota operation typically these are obtained from a http.Request

swagger:parameters GetBucketQuota

func NewGetBucketQuotaParams

func NewGetBucketQuotaParams() GetBucketQuotaParams

NewGetBucketQuotaParams creates a new GetBucketQuotaParams object

There are no default values defined in the spec.

func (*GetBucketQuotaParams) BindRequest

func (o *GetBucketQuotaParams) 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 NewGetBucketQuotaParams() beforehand.

type GetBucketQuotaURL

type GetBucketQuotaURL struct {
	Name string
	// contains filtered or unexported fields
}

GetBucketQuotaURL generates an URL for the get bucket quota operation

func (*GetBucketQuotaURL) Build

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

Build a url path and query string

func (*GetBucketQuotaURL) BuildFull

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

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

func (*GetBucketQuotaURL) Must

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

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

func (*GetBucketQuotaURL) SetBasePath

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

func (o *GetBucketQuotaURL) String() string

String returns the string representation of the path with query string

func (*GetBucketQuotaURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetBucketQuotaURL) WithBasePath

func (o *GetBucketQuotaURL) WithBasePath(bp string) *GetBucketQuotaURL

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 GetBucketRewind

type GetBucketRewind struct {
	Context *middleware.Context
	Handler GetBucketRewindHandler
}
GetBucketRewind swagger:route GET /buckets/{bucket_name}/rewind/{date} Bucket getBucketRewind

Get objects in a bucket for a rewind date

func NewGetBucketRewind

func NewGetBucketRewind(ctx *middleware.Context, handler GetBucketRewindHandler) *GetBucketRewind

NewGetBucketRewind creates a new http.Handler for the get bucket rewind operation

func (*GetBucketRewind) ServeHTTP

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

type GetBucketRewindDefault

type GetBucketRewindDefault struct {

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

GetBucketRewindDefault Generic error response.

swagger:response getBucketRewindDefault

func NewGetBucketRewindDefault

func NewGetBucketRewindDefault(code int) *GetBucketRewindDefault

NewGetBucketRewindDefault creates GetBucketRewindDefault with default headers values

func (*GetBucketRewindDefault) SetPayload

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

SetPayload sets the payload to the get bucket rewind default response

func (*GetBucketRewindDefault) SetStatusCode

func (o *GetBucketRewindDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get bucket rewind default response

func (*GetBucketRewindDefault) WithPayload

WithPayload adds the payload to the get bucket rewind default response

func (*GetBucketRewindDefault) WithStatusCode

func (o *GetBucketRewindDefault) WithStatusCode(code int) *GetBucketRewindDefault

WithStatusCode adds the status to the get bucket rewind default response

func (*GetBucketRewindDefault) WriteResponse

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

WriteResponse to the client

type GetBucketRewindHandler

type GetBucketRewindHandler interface {
	Handle(GetBucketRewindParams, *models.Principal) middleware.Responder
}

GetBucketRewindHandler interface for that can handle valid get bucket rewind params

type GetBucketRewindHandlerFunc

type GetBucketRewindHandlerFunc func(GetBucketRewindParams, *models.Principal) middleware.Responder

GetBucketRewindHandlerFunc turns a function with the right signature into a get bucket rewind handler

func (GetBucketRewindHandlerFunc) Handle

Handle executing the request and returning a response

type GetBucketRewindOK

type GetBucketRewindOK struct {

	/*
	  In: Body
	*/
	Payload *models.RewindResponse `json:"body,omitempty"`
}

GetBucketRewindOK A successful response.

swagger:response getBucketRewindOK

func NewGetBucketRewindOK

func NewGetBucketRewindOK() *GetBucketRewindOK

NewGetBucketRewindOK creates GetBucketRewindOK with default headers values

func (*GetBucketRewindOK) SetPayload

func (o *GetBucketRewindOK) SetPayload(payload *models.RewindResponse)

SetPayload sets the payload to the get bucket rewind o k response

func (*GetBucketRewindOK) WithPayload

func (o *GetBucketRewindOK) WithPayload(payload *models.RewindResponse) *GetBucketRewindOK

WithPayload adds the payload to the get bucket rewind o k response

func (*GetBucketRewindOK) WriteResponse

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

WriteResponse to the client

type GetBucketRewindParams

type GetBucketRewindParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	BucketName string
	/*
	  Required: true
	  In: path
	*/
	Date string
	/*
	  In: query
	*/
	Prefix *string
}

GetBucketRewindParams contains all the bound params for the get bucket rewind operation typically these are obtained from a http.Request

swagger:parameters GetBucketRewind

func NewGetBucketRewindParams

func NewGetBucketRewindParams() GetBucketRewindParams

NewGetBucketRewindParams creates a new GetBucketRewindParams object

There are no default values defined in the spec.

func (*GetBucketRewindParams) BindRequest

func (o *GetBucketRewindParams) 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 NewGetBucketRewindParams() beforehand.

type GetBucketRewindURL

type GetBucketRewindURL struct {
	BucketName string
	Date       string

	Prefix *string
	// contains filtered or unexported fields
}

GetBucketRewindURL generates an URL for the get bucket rewind operation

func (*GetBucketRewindURL) Build

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

Build a url path and query string

func (*GetBucketRewindURL) BuildFull

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

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

func (*GetBucketRewindURL) Must

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

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

func (*GetBucketRewindURL) SetBasePath

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

func (o *GetBucketRewindURL) String() string

String returns the string representation of the path with query string

func (*GetBucketRewindURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetBucketRewindURL) WithBasePath

func (o *GetBucketRewindURL) WithBasePath(bp string) *GetBucketRewindURL

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 GetBucketVersioning

type GetBucketVersioning struct {
	Context *middleware.Context
	Handler GetBucketVersioningHandler
}
GetBucketVersioning swagger:route GET /buckets/{bucket_name}/versioning Bucket getBucketVersioning

Bucket Versioning

func NewGetBucketVersioning

func NewGetBucketVersioning(ctx *middleware.Context, handler GetBucketVersioningHandler) *GetBucketVersioning

NewGetBucketVersioning creates a new http.Handler for the get bucket versioning operation

func (*GetBucketVersioning) ServeHTTP

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

type GetBucketVersioningDefault

type GetBucketVersioningDefault struct {

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

GetBucketVersioningDefault Generic error response.

swagger:response getBucketVersioningDefault

func NewGetBucketVersioningDefault

func NewGetBucketVersioningDefault(code int) *GetBucketVersioningDefault

NewGetBucketVersioningDefault creates GetBucketVersioningDefault with default headers values

func (*GetBucketVersioningDefault) SetPayload

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

SetPayload sets the payload to the get bucket versioning default response

func (*GetBucketVersioningDefault) SetStatusCode

func (o *GetBucketVersioningDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get bucket versioning default response

func (*GetBucketVersioningDefault) WithPayload

WithPayload adds the payload to the get bucket versioning default response

func (*GetBucketVersioningDefault) WithStatusCode

WithStatusCode adds the status to the get bucket versioning default response

func (*GetBucketVersioningDefault) WriteResponse

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

WriteResponse to the client

type GetBucketVersioningHandler

type GetBucketVersioningHandler interface {
	Handle(GetBucketVersioningParams, *models.Principal) middleware.Responder
}

GetBucketVersioningHandler interface for that can handle valid get bucket versioning params

type GetBucketVersioningHandlerFunc

type GetBucketVersioningHandlerFunc func(GetBucketVersioningParams, *models.Principal) middleware.Responder

GetBucketVersioningHandlerFunc turns a function with the right signature into a get bucket versioning handler

func (GetBucketVersioningHandlerFunc) Handle

Handle executing the request and returning a response

type GetBucketVersioningOK

type GetBucketVersioningOK struct {

	/*
	  In: Body
	*/
	Payload *models.BucketVersioningResponse `json:"body,omitempty"`
}

GetBucketVersioningOK A successful response.

swagger:response getBucketVersioningOK

func NewGetBucketVersioningOK

func NewGetBucketVersioningOK() *GetBucketVersioningOK

NewGetBucketVersioningOK creates GetBucketVersioningOK with default headers values

func (*GetBucketVersioningOK) SetPayload

func (o *GetBucketVersioningOK) SetPayload(payload *models.BucketVersioningResponse)

SetPayload sets the payload to the get bucket versioning o k response

func (*GetBucketVersioningOK) WithPayload

WithPayload adds the payload to the get bucket versioning o k response

func (*GetBucketVersioningOK) WriteResponse

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

WriteResponse to the client

type GetBucketVersioningParams

type GetBucketVersioningParams struct {

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

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

GetBucketVersioningParams contains all the bound params for the get bucket versioning operation typically these are obtained from a http.Request

swagger:parameters GetBucketVersioning

func NewGetBucketVersioningParams

func NewGetBucketVersioningParams() GetBucketVersioningParams

NewGetBucketVersioningParams creates a new GetBucketVersioningParams object

There are no default values defined in the spec.

func (*GetBucketVersioningParams) 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 NewGetBucketVersioningParams() beforehand.

type GetBucketVersioningURL

type GetBucketVersioningURL struct {
	BucketName string
	// contains filtered or unexported fields
}

GetBucketVersioningURL generates an URL for the get bucket versioning operation

func (*GetBucketVersioningURL) Build

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

Build a url path and query string

func (*GetBucketVersioningURL) BuildFull

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

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

func (*GetBucketVersioningURL) Must

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

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

func (*GetBucketVersioningURL) SetBasePath

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

func (o *GetBucketVersioningURL) String() string

String returns the string representation of the path with query string

func (*GetBucketVersioningURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetBucketVersioningURL) WithBasePath

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

type GetMaxShareLinkExp

type GetMaxShareLinkExp struct {
	Context *middleware.Context
	Handler GetMaxShareLinkExpHandler
}
GetMaxShareLinkExp swagger:route GET /buckets/max-share-exp Bucket getMaxShareLinkExp

Get max expiration time for share link in seconds

func NewGetMaxShareLinkExp

func NewGetMaxShareLinkExp(ctx *middleware.Context, handler GetMaxShareLinkExpHandler) *GetMaxShareLinkExp

NewGetMaxShareLinkExp creates a new http.Handler for the get max share link exp operation

func (*GetMaxShareLinkExp) ServeHTTP

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

type GetMaxShareLinkExpDefault

type GetMaxShareLinkExpDefault struct {

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

GetMaxShareLinkExpDefault Generic error response.

swagger:response getMaxShareLinkExpDefault

func NewGetMaxShareLinkExpDefault

func NewGetMaxShareLinkExpDefault(code int) *GetMaxShareLinkExpDefault

NewGetMaxShareLinkExpDefault creates GetMaxShareLinkExpDefault with default headers values

func (*GetMaxShareLinkExpDefault) SetPayload

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

SetPayload sets the payload to the get max share link exp default response

func (*GetMaxShareLinkExpDefault) SetStatusCode

func (o *GetMaxShareLinkExpDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get max share link exp default response

func (*GetMaxShareLinkExpDefault) WithPayload

WithPayload adds the payload to the get max share link exp default response

func (*GetMaxShareLinkExpDefault) WithStatusCode

func (o *GetMaxShareLinkExpDefault) WithStatusCode(code int) *GetMaxShareLinkExpDefault

WithStatusCode adds the status to the get max share link exp default response

func (*GetMaxShareLinkExpDefault) WriteResponse

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

WriteResponse to the client

type GetMaxShareLinkExpHandler

type GetMaxShareLinkExpHandler interface {
	Handle(GetMaxShareLinkExpParams, *models.Principal) middleware.Responder
}

GetMaxShareLinkExpHandler interface for that can handle valid get max share link exp params

type GetMaxShareLinkExpHandlerFunc

type GetMaxShareLinkExpHandlerFunc func(GetMaxShareLinkExpParams, *models.Principal) middleware.Responder

GetMaxShareLinkExpHandlerFunc turns a function with the right signature into a get max share link exp handler

func (GetMaxShareLinkExpHandlerFunc) Handle

Handle executing the request and returning a response

type GetMaxShareLinkExpOK

type GetMaxShareLinkExpOK struct {

	/*
	  In: Body
	*/
	Payload *models.MaxShareLinkExpResponse `json:"body,omitempty"`
}

GetMaxShareLinkExpOK A successful response.

swagger:response getMaxShareLinkExpOK

func NewGetMaxShareLinkExpOK

func NewGetMaxShareLinkExpOK() *GetMaxShareLinkExpOK

NewGetMaxShareLinkExpOK creates GetMaxShareLinkExpOK with default headers values

func (*GetMaxShareLinkExpOK) SetPayload

func (o *GetMaxShareLinkExpOK) SetPayload(payload *models.MaxShareLinkExpResponse)

SetPayload sets the payload to the get max share link exp o k response

func (*GetMaxShareLinkExpOK) WithPayload

WithPayload adds the payload to the get max share link exp o k response

func (*GetMaxShareLinkExpOK) WriteResponse

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

WriteResponse to the client

type GetMaxShareLinkExpParams

type GetMaxShareLinkExpParams struct {

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

GetMaxShareLinkExpParams contains all the bound params for the get max share link exp operation typically these are obtained from a http.Request

swagger:parameters GetMaxShareLinkExp

func NewGetMaxShareLinkExpParams

func NewGetMaxShareLinkExpParams() GetMaxShareLinkExpParams

NewGetMaxShareLinkExpParams creates a new GetMaxShareLinkExpParams object

There are no default values defined in the spec.

func (*GetMaxShareLinkExpParams) 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 NewGetMaxShareLinkExpParams() beforehand.

type GetMaxShareLinkExpURL

type GetMaxShareLinkExpURL struct {
	// contains filtered or unexported fields
}

GetMaxShareLinkExpURL generates an URL for the get max share link exp operation

func (*GetMaxShareLinkExpURL) Build

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

Build a url path and query string

func (*GetMaxShareLinkExpURL) BuildFull

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

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

func (*GetMaxShareLinkExpURL) Must

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

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

func (*GetMaxShareLinkExpURL) SetBasePath

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

func (o *GetMaxShareLinkExpURL) String() string

String returns the string representation of the path with query string

func (*GetMaxShareLinkExpURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetMaxShareLinkExpURL) WithBasePath

func (o *GetMaxShareLinkExpURL) WithBasePath(bp string) *GetMaxShareLinkExpURL

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 ListBuckets

type ListBuckets struct {
	Context *middleware.Context
	Handler ListBucketsHandler
}
ListBuckets swagger:route GET /buckets Bucket listBuckets

List Buckets

func NewListBuckets

func NewListBuckets(ctx *middleware.Context, handler ListBucketsHandler) *ListBuckets

NewListBuckets creates a new http.Handler for the list buckets operation

func (*ListBuckets) ServeHTTP

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

type ListBucketsDefault

type ListBucketsDefault struct {

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

ListBucketsDefault Generic error response.

swagger:response listBucketsDefault

func NewListBucketsDefault

func NewListBucketsDefault(code int) *ListBucketsDefault

NewListBucketsDefault creates ListBucketsDefault with default headers values

func (*ListBucketsDefault) SetPayload

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

SetPayload sets the payload to the list buckets default response

func (*ListBucketsDefault) SetStatusCode

func (o *ListBucketsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list buckets default response

func (*ListBucketsDefault) WithPayload

func (o *ListBucketsDefault) WithPayload(payload *models.APIError) *ListBucketsDefault

WithPayload adds the payload to the list buckets default response

func (*ListBucketsDefault) WithStatusCode

func (o *ListBucketsDefault) WithStatusCode(code int) *ListBucketsDefault

WithStatusCode adds the status to the list buckets default response

func (*ListBucketsDefault) WriteResponse

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

WriteResponse to the client

type ListBucketsHandler

type ListBucketsHandler interface {
	Handle(ListBucketsParams, *models.Principal) middleware.Responder
}

ListBucketsHandler interface for that can handle valid list buckets params

type ListBucketsHandlerFunc

type ListBucketsHandlerFunc func(ListBucketsParams, *models.Principal) middleware.Responder

ListBucketsHandlerFunc turns a function with the right signature into a list buckets handler

func (ListBucketsHandlerFunc) Handle

Handle executing the request and returning a response

type ListBucketsOK

type ListBucketsOK struct {

	/*
	  In: Body
	*/
	Payload *models.ListBucketsResponse `json:"body,omitempty"`
}

ListBucketsOK A successful response.

swagger:response listBucketsOK

func NewListBucketsOK

func NewListBucketsOK() *ListBucketsOK

NewListBucketsOK creates ListBucketsOK with default headers values

func (*ListBucketsOK) SetPayload

func (o *ListBucketsOK) SetPayload(payload *models.ListBucketsResponse)

SetPayload sets the payload to the list buckets o k response

func (*ListBucketsOK) WithPayload

func (o *ListBucketsOK) WithPayload(payload *models.ListBucketsResponse) *ListBucketsOK

WithPayload adds the payload to the list buckets o k response

func (*ListBucketsOK) WriteResponse

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

WriteResponse to the client

type ListBucketsParams

type ListBucketsParams struct {

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

ListBucketsParams contains all the bound params for the list buckets operation typically these are obtained from a http.Request

swagger:parameters ListBuckets

func NewListBucketsParams

func NewListBucketsParams() ListBucketsParams

NewListBucketsParams creates a new ListBucketsParams object

There are no default values defined in the spec.

func (*ListBucketsParams) BindRequest

func (o *ListBucketsParams) 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 NewListBucketsParams() beforehand.

type ListBucketsURL

type ListBucketsURL struct {
	// contains filtered or unexported fields
}

ListBucketsURL generates an URL for the list buckets operation

func (*ListBucketsURL) Build

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

Build a url path and query string

func (*ListBucketsURL) BuildFull

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

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

func (*ListBucketsURL) Must

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

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

func (*ListBucketsURL) SetBasePath

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

func (o *ListBucketsURL) String() string

String returns the string representation of the path with query string

func (*ListBucketsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListBucketsURL) WithBasePath

func (o *ListBucketsURL) WithBasePath(bp string) *ListBucketsURL

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 MakeBucket

type MakeBucket struct {
	Context *middleware.Context
	Handler MakeBucketHandler
}
MakeBucket swagger:route POST /buckets Bucket makeBucket

Make bucket

func NewMakeBucket

func NewMakeBucket(ctx *middleware.Context, handler MakeBucketHandler) *MakeBucket

NewMakeBucket creates a new http.Handler for the make bucket operation

func (*MakeBucket) ServeHTTP

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

type MakeBucketDefault

type MakeBucketDefault struct {

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

MakeBucketDefault Generic error response.

swagger:response makeBucketDefault

func NewMakeBucketDefault

func NewMakeBucketDefault(code int) *MakeBucketDefault

NewMakeBucketDefault creates MakeBucketDefault with default headers values

func (*MakeBucketDefault) SetPayload

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

SetPayload sets the payload to the make bucket default response

func (*MakeBucketDefault) SetStatusCode

func (o *MakeBucketDefault) SetStatusCode(code int)

SetStatusCode sets the status to the make bucket default response

func (*MakeBucketDefault) WithPayload

func (o *MakeBucketDefault) WithPayload(payload *models.APIError) *MakeBucketDefault

WithPayload adds the payload to the make bucket default response

func (*MakeBucketDefault) WithStatusCode

func (o *MakeBucketDefault) WithStatusCode(code int) *MakeBucketDefault

WithStatusCode adds the status to the make bucket default response

func (*MakeBucketDefault) WriteResponse

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

WriteResponse to the client

type MakeBucketHandler

type MakeBucketHandler interface {
	Handle(MakeBucketParams, *models.Principal) middleware.Responder
}

MakeBucketHandler interface for that can handle valid make bucket params

type MakeBucketHandlerFunc

type MakeBucketHandlerFunc func(MakeBucketParams, *models.Principal) middleware.Responder

MakeBucketHandlerFunc turns a function with the right signature into a make bucket handler

func (MakeBucketHandlerFunc) Handle

Handle executing the request and returning a response

type MakeBucketOK

type MakeBucketOK struct {

	/*
	  In: Body
	*/
	Payload *models.MakeBucketsResponse `json:"body,omitempty"`
}

MakeBucketOK A successful response.

swagger:response makeBucketOK

func NewMakeBucketOK

func NewMakeBucketOK() *MakeBucketOK

NewMakeBucketOK creates MakeBucketOK with default headers values

func (*MakeBucketOK) SetPayload

func (o *MakeBucketOK) SetPayload(payload *models.MakeBucketsResponse)

SetPayload sets the payload to the make bucket o k response

func (*MakeBucketOK) WithPayload

func (o *MakeBucketOK) WithPayload(payload *models.MakeBucketsResponse) *MakeBucketOK

WithPayload adds the payload to the make bucket o k response

func (*MakeBucketOK) WriteResponse

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

WriteResponse to the client

type MakeBucketParams

type MakeBucketParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body *models.MakeBucketRequest
}

MakeBucketParams contains all the bound params for the make bucket operation typically these are obtained from a http.Request

swagger:parameters MakeBucket

func NewMakeBucketParams

func NewMakeBucketParams() MakeBucketParams

NewMakeBucketParams creates a new MakeBucketParams object

There are no default values defined in the spec.

func (*MakeBucketParams) BindRequest

func (o *MakeBucketParams) 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 NewMakeBucketParams() beforehand.

type MakeBucketURL

type MakeBucketURL struct {
	// contains filtered or unexported fields
}

MakeBucketURL generates an URL for the make bucket operation

func (*MakeBucketURL) Build

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

Build a url path and query string

func (*MakeBucketURL) BuildFull

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

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

func (*MakeBucketURL) Must

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

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

func (*MakeBucketURL) SetBasePath

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

func (o *MakeBucketURL) String() string

String returns the string representation of the path with query string

func (*MakeBucketURL) StringFull

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

StringFull returns the string representation of a complete url

func (*MakeBucketURL) WithBasePath

func (o *MakeBucketURL) WithBasePath(bp string) *MakeBucketURL

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 SetBucketVersioning

type SetBucketVersioning struct {
	Context *middleware.Context
	Handler SetBucketVersioningHandler
}
SetBucketVersioning swagger:route PUT /buckets/{bucket_name}/versioning Bucket setBucketVersioning

Set Bucket Versioning

func NewSetBucketVersioning

func NewSetBucketVersioning(ctx *middleware.Context, handler SetBucketVersioningHandler) *SetBucketVersioning

NewSetBucketVersioning creates a new http.Handler for the set bucket versioning operation

func (*SetBucketVersioning) ServeHTTP

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

type SetBucketVersioningCreated

type SetBucketVersioningCreated struct {
}

SetBucketVersioningCreated A successful response.

swagger:response setBucketVersioningCreated

func NewSetBucketVersioningCreated

func NewSetBucketVersioningCreated() *SetBucketVersioningCreated

NewSetBucketVersioningCreated creates SetBucketVersioningCreated with default headers values

func (*SetBucketVersioningCreated) WriteResponse

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

WriteResponse to the client

type SetBucketVersioningDefault

type SetBucketVersioningDefault struct {

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

SetBucketVersioningDefault Generic error response.

swagger:response setBucketVersioningDefault

func NewSetBucketVersioningDefault

func NewSetBucketVersioningDefault(code int) *SetBucketVersioningDefault

NewSetBucketVersioningDefault creates SetBucketVersioningDefault with default headers values

func (*SetBucketVersioningDefault) SetPayload

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

SetPayload sets the payload to the set bucket versioning default response

func (*SetBucketVersioningDefault) SetStatusCode

func (o *SetBucketVersioningDefault) SetStatusCode(code int)

SetStatusCode sets the status to the set bucket versioning default response

func (*SetBucketVersioningDefault) WithPayload

WithPayload adds the payload to the set bucket versioning default response

func (*SetBucketVersioningDefault) WithStatusCode

WithStatusCode adds the status to the set bucket versioning default response

func (*SetBucketVersioningDefault) WriteResponse

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

WriteResponse to the client

type SetBucketVersioningHandler

type SetBucketVersioningHandler interface {
	Handle(SetBucketVersioningParams, *models.Principal) middleware.Responder
}

SetBucketVersioningHandler interface for that can handle valid set bucket versioning params

type SetBucketVersioningHandlerFunc

type SetBucketVersioningHandlerFunc func(SetBucketVersioningParams, *models.Principal) middleware.Responder

SetBucketVersioningHandlerFunc turns a function with the right signature into a set bucket versioning handler

func (SetBucketVersioningHandlerFunc) Handle

Handle executing the request and returning a response

type SetBucketVersioningParams

type SetBucketVersioningParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body *models.SetBucketVersioning
	/*
	  Required: true
	  In: path
	*/
	BucketName string
}

SetBucketVersioningParams contains all the bound params for the set bucket versioning operation typically these are obtained from a http.Request

swagger:parameters SetBucketVersioning

func NewSetBucketVersioningParams

func NewSetBucketVersioningParams() SetBucketVersioningParams

NewSetBucketVersioningParams creates a new SetBucketVersioningParams object

There are no default values defined in the spec.

func (*SetBucketVersioningParams) 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 NewSetBucketVersioningParams() beforehand.

type SetBucketVersioningURL

type SetBucketVersioningURL struct {
	BucketName string
	// contains filtered or unexported fields
}

SetBucketVersioningURL generates an URL for the set bucket versioning operation

func (*SetBucketVersioningURL) Build

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

Build a url path and query string

func (*SetBucketVersioningURL) BuildFull

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

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

func (*SetBucketVersioningURL) Must

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

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

func (*SetBucketVersioningURL) SetBasePath

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

func (o *SetBucketVersioningURL) String() string

String returns the string representation of the path with query string

func (*SetBucketVersioningURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SetBucketVersioningURL) 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