Documentation
¶
Index ¶
- Constants
- type BucketInfo
- type BucketInfoDefault
- func (o *BucketInfoDefault) SetPayload(payload *models.APIError)
- func (o *BucketInfoDefault) SetStatusCode(code int)
- func (o *BucketInfoDefault) WithPayload(payload *models.APIError) *BucketInfoDefault
- func (o *BucketInfoDefault) WithStatusCode(code int) *BucketInfoDefault
- func (o *BucketInfoDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type BucketInfoHandler
- type BucketInfoHandlerFunc
- type BucketInfoOK
- type BucketInfoParams
- type BucketInfoURL
- func (o *BucketInfoURL) Build() (*url.URL, error)
- func (o *BucketInfoURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *BucketInfoURL) Must(u *url.URL, err error) *url.URL
- func (o *BucketInfoURL) SetBasePath(bp string)
- func (o *BucketInfoURL) String() string
- func (o *BucketInfoURL) StringFull(scheme, host string) string
- func (o *BucketInfoURL) WithBasePath(bp string) *BucketInfoURL
- type GetBucketQuota
- type GetBucketQuotaDefault
- func (o *GetBucketQuotaDefault) SetPayload(payload *models.APIError)
- func (o *GetBucketQuotaDefault) SetStatusCode(code int)
- func (o *GetBucketQuotaDefault) WithPayload(payload *models.APIError) *GetBucketQuotaDefault
- func (o *GetBucketQuotaDefault) WithStatusCode(code int) *GetBucketQuotaDefault
- func (o *GetBucketQuotaDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetBucketQuotaHandler
- type GetBucketQuotaHandlerFunc
- type GetBucketQuotaOK
- type GetBucketQuotaParams
- type GetBucketQuotaURL
- func (o *GetBucketQuotaURL) Build() (*url.URL, error)
- func (o *GetBucketQuotaURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetBucketQuotaURL) Must(u *url.URL, err error) *url.URL
- func (o *GetBucketQuotaURL) SetBasePath(bp string)
- func (o *GetBucketQuotaURL) String() string
- func (o *GetBucketQuotaURL) StringFull(scheme, host string) string
- func (o *GetBucketQuotaURL) WithBasePath(bp string) *GetBucketQuotaURL
- type GetBucketRewind
- type GetBucketRewindDefault
- func (o *GetBucketRewindDefault) SetPayload(payload *models.APIError)
- func (o *GetBucketRewindDefault) SetStatusCode(code int)
- func (o *GetBucketRewindDefault) WithPayload(payload *models.APIError) *GetBucketRewindDefault
- func (o *GetBucketRewindDefault) WithStatusCode(code int) *GetBucketRewindDefault
- func (o *GetBucketRewindDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetBucketRewindHandler
- type GetBucketRewindHandlerFunc
- type GetBucketRewindOK
- type GetBucketRewindParams
- type GetBucketRewindURL
- func (o *GetBucketRewindURL) Build() (*url.URL, error)
- func (o *GetBucketRewindURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetBucketRewindURL) Must(u *url.URL, err error) *url.URL
- func (o *GetBucketRewindURL) SetBasePath(bp string)
- func (o *GetBucketRewindURL) String() string
- func (o *GetBucketRewindURL) StringFull(scheme, host string) string
- func (o *GetBucketRewindURL) WithBasePath(bp string) *GetBucketRewindURL
- type GetBucketVersioning
- type GetBucketVersioningDefault
- func (o *GetBucketVersioningDefault) SetPayload(payload *models.APIError)
- func (o *GetBucketVersioningDefault) SetStatusCode(code int)
- func (o *GetBucketVersioningDefault) WithPayload(payload *models.APIError) *GetBucketVersioningDefault
- func (o *GetBucketVersioningDefault) WithStatusCode(code int) *GetBucketVersioningDefault
- func (o *GetBucketVersioningDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetBucketVersioningHandler
- type GetBucketVersioningHandlerFunc
- type GetBucketVersioningOK
- type GetBucketVersioningParams
- type GetBucketVersioningURL
- func (o *GetBucketVersioningURL) Build() (*url.URL, error)
- func (o *GetBucketVersioningURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetBucketVersioningURL) Must(u *url.URL, err error) *url.URL
- func (o *GetBucketVersioningURL) SetBasePath(bp string)
- func (o *GetBucketVersioningURL) String() string
- func (o *GetBucketVersioningURL) StringFull(scheme, host string) string
- func (o *GetBucketVersioningURL) WithBasePath(bp string) *GetBucketVersioningURL
- type GetMaxShareLinkExp
- type GetMaxShareLinkExpDefault
- func (o *GetMaxShareLinkExpDefault) SetPayload(payload *models.APIError)
- func (o *GetMaxShareLinkExpDefault) SetStatusCode(code int)
- func (o *GetMaxShareLinkExpDefault) WithPayload(payload *models.APIError) *GetMaxShareLinkExpDefault
- func (o *GetMaxShareLinkExpDefault) WithStatusCode(code int) *GetMaxShareLinkExpDefault
- func (o *GetMaxShareLinkExpDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetMaxShareLinkExpHandler
- type GetMaxShareLinkExpHandlerFunc
- type GetMaxShareLinkExpOK
- type GetMaxShareLinkExpParams
- type GetMaxShareLinkExpURL
- func (o *GetMaxShareLinkExpURL) Build() (*url.URL, error)
- func (o *GetMaxShareLinkExpURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetMaxShareLinkExpURL) Must(u *url.URL, err error) *url.URL
- func (o *GetMaxShareLinkExpURL) SetBasePath(bp string)
- func (o *GetMaxShareLinkExpURL) String() string
- func (o *GetMaxShareLinkExpURL) StringFull(scheme, host string) string
- func (o *GetMaxShareLinkExpURL) WithBasePath(bp string) *GetMaxShareLinkExpURL
- type ListBuckets
- type ListBucketsDefault
- func (o *ListBucketsDefault) SetPayload(payload *models.APIError)
- func (o *ListBucketsDefault) SetStatusCode(code int)
- func (o *ListBucketsDefault) WithPayload(payload *models.APIError) *ListBucketsDefault
- func (o *ListBucketsDefault) WithStatusCode(code int) *ListBucketsDefault
- func (o *ListBucketsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListBucketsHandler
- type ListBucketsHandlerFunc
- type ListBucketsOK
- type ListBucketsParams
- type ListBucketsURL
- func (o *ListBucketsURL) Build() (*url.URL, error)
- func (o *ListBucketsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListBucketsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListBucketsURL) SetBasePath(bp string)
- func (o *ListBucketsURL) String() string
- func (o *ListBucketsURL) StringFull(scheme, host string) string
- func (o *ListBucketsURL) WithBasePath(bp string) *ListBucketsURL
- type MakeBucket
- type MakeBucketDefault
- func (o *MakeBucketDefault) SetPayload(payload *models.APIError)
- func (o *MakeBucketDefault) SetStatusCode(code int)
- func (o *MakeBucketDefault) WithPayload(payload *models.APIError) *MakeBucketDefault
- func (o *MakeBucketDefault) WithStatusCode(code int) *MakeBucketDefault
- func (o *MakeBucketDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type MakeBucketHandler
- type MakeBucketHandlerFunc
- type MakeBucketOK
- type MakeBucketParams
- type MakeBucketURL
- func (o *MakeBucketURL) Build() (*url.URL, error)
- func (o *MakeBucketURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *MakeBucketURL) Must(u *url.URL, err error) *url.URL
- func (o *MakeBucketURL) SetBasePath(bp string)
- func (o *MakeBucketURL) String() string
- func (o *MakeBucketURL) StringFull(scheme, host string) string
- func (o *MakeBucketURL) WithBasePath(bp string) *MakeBucketURL
- type SetBucketVersioning
- type SetBucketVersioningCreated
- type SetBucketVersioningDefault
- func (o *SetBucketVersioningDefault) SetPayload(payload *models.APIError)
- func (o *SetBucketVersioningDefault) SetStatusCode(code int)
- func (o *SetBucketVersioningDefault) WithPayload(payload *models.APIError) *SetBucketVersioningDefault
- func (o *SetBucketVersioningDefault) WithStatusCode(code int) *SetBucketVersioningDefault
- func (o *SetBucketVersioningDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SetBucketVersioningHandler
- type SetBucketVersioningHandlerFunc
- type SetBucketVersioningParams
- type SetBucketVersioningURL
- func (o *SetBucketVersioningURL) Build() (*url.URL, error)
- func (o *SetBucketVersioningURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SetBucketVersioningURL) Must(u *url.URL, err error) *url.URL
- func (o *SetBucketVersioningURL) SetBasePath(bp string)
- func (o *SetBucketVersioningURL) String() string
- func (o *SetBucketVersioningURL) StringFull(scheme, host string) string
- func (o *SetBucketVersioningURL) WithBasePath(bp string) *SetBucketVersioningURL
Constants ¶
const BucketInfoOKCode int = 200
BucketInfoOKCode is the HTTP code returned for type BucketInfoOK
const GetBucketQuotaOKCode int = 200
GetBucketQuotaOKCode is the HTTP code returned for type GetBucketQuotaOK
const GetBucketRewindOKCode int = 200
GetBucketRewindOKCode is the HTTP code returned for type GetBucketRewindOK
const GetBucketVersioningOKCode int = 200
GetBucketVersioningOKCode is the HTTP code returned for type GetBucketVersioningOK
GetMaxShareLinkExpOKCode is the HTTP code returned for type GetMaxShareLinkExpOK
const ListBucketsOKCode int = 200
ListBucketsOKCode is the HTTP code returned for type ListBucketsOK
const MakeBucketOKCode int = 200
MakeBucketOKCode is the HTTP code returned for type MakeBucketOK
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 ¶
func (fn BucketInfoHandlerFunc) Handle(params BucketInfoParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type BucketInfoOK ¶
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 ¶
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 ¶
func (fn GetBucketQuotaHandlerFunc) Handle(params GetBucketQuotaParams, principal *models.Principal) middleware.Responder
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 ¶
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 ¶
func (o *GetBucketRewindDefault) WithPayload(payload *models.APIError) *GetBucketRewindDefault
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 ¶
func (fn GetBucketRewindHandlerFunc) Handle(params GetBucketRewindParams, principal *models.Principal) middleware.Responder
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 ¶
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 ¶
func (o *GetBucketVersioningDefault) WithPayload(payload *models.APIError) *GetBucketVersioningDefault
WithPayload adds the payload to the get bucket versioning default response
func (*GetBucketVersioningDefault) WithStatusCode ¶
func (o *GetBucketVersioningDefault) WithStatusCode(code int) *GetBucketVersioningDefault
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 ¶
func (fn GetBucketVersioningHandlerFunc) Handle(params GetBucketVersioningParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *GetBucketVersioningOK) WithPayload(payload *models.BucketVersioningResponse) *GetBucketVersioningOK
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 ¶
func (o *GetBucketVersioningParams) 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 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 ¶
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 ¶
func (o *GetBucketVersioningURL) WithBasePath(bp string) *GetBucketVersioningURL
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 {
}
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 {
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 ¶
func (o *GetMaxShareLinkExpDefault) WithPayload(payload *models.APIError) *GetMaxShareLinkExpDefault
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 {
}
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 ¶
func (fn GetMaxShareLinkExpHandlerFunc) Handle(params GetMaxShareLinkExpParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetMaxShareLinkExpOK ¶
type GetMaxShareLinkExpOK struct {
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 ¶
func (o *GetMaxShareLinkExpOK) WithPayload(payload *models.MaxShareLinkExpResponse) *GetMaxShareLinkExpOK
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 ¶
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 ¶
func (o *GetMaxShareLinkExpParams) 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 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 ¶
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 ¶
func (fn ListBucketsHandlerFunc) Handle(params ListBucketsParams, principal *models.Principal) middleware.Responder
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 ¶
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 ¶
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 ¶
func (fn MakeBucketHandlerFunc) Handle(params MakeBucketParams, principal *models.Principal) middleware.Responder
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 ¶
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 ¶
func (o *SetBucketVersioningDefault) WithPayload(payload *models.APIError) *SetBucketVersioningDefault
WithPayload adds the payload to the set bucket versioning default response
func (*SetBucketVersioningDefault) WithStatusCode ¶
func (o *SetBucketVersioningDefault) WithStatusCode(code int) *SetBucketVersioningDefault
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 ¶
func (fn SetBucketVersioningHandlerFunc) Handle(params SetBucketVersioningParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *SetBucketVersioningParams) 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 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 ¶
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 ¶
func (o *SetBucketVersioningURL) WithBasePath(bp string) *SetBucketVersioningURL
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
Source Files
¶
- bucket_info.go
- bucket_info_parameters.go
- bucket_info_responses.go
- bucket_info_urlbuilder.go
- get_bucket_quota.go
- get_bucket_quota_parameters.go
- get_bucket_quota_responses.go
- get_bucket_quota_urlbuilder.go
- get_bucket_rewind.go
- get_bucket_rewind_parameters.go
- get_bucket_rewind_responses.go
- get_bucket_rewind_urlbuilder.go
- get_bucket_versioning.go
- get_bucket_versioning_parameters.go
- get_bucket_versioning_responses.go
- get_bucket_versioning_urlbuilder.go
- get_max_share_link_exp.go
- get_max_share_link_exp_parameters.go
- get_max_share_link_exp_responses.go
- get_max_share_link_exp_urlbuilder.go
- list_buckets.go
- list_buckets_parameters.go
- list_buckets_responses.go
- list_buckets_urlbuilder.go
- make_bucket.go
- make_bucket_parameters.go
- make_bucket_responses.go
- make_bucket_urlbuilder.go
- set_bucket_versioning.go
- set_bucket_versioning_parameters.go
- set_bucket_versioning_responses.go
- set_bucket_versioning_urlbuilder.go