operations

package
v0.0.0-...-13bd798 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const AuthBadRequestCode int = 400

AuthBadRequestCode is the HTTP code returned for type AuthBadRequest

View Source
const AuthOKCode int = 200

AuthOKCode is the HTTP code returned for type AuthOK

View Source
const DeleteContainerBadRequestCode int = 400

DeleteContainerBadRequestCode is the HTTP code returned for type DeleteContainerBadRequest

View Source
const DeleteContainerOKCode int = 200

DeleteContainerOKCode is the HTTP code returned for type DeleteContainerOK

View Source
const DeleteObjectBadRequestCode int = 400

DeleteObjectBadRequestCode is the HTTP code returned for type DeleteObjectBadRequest

View Source
const DeleteObjectOKCode int = 200

DeleteObjectOKCode is the HTTP code returned for type DeleteObjectOK

View Source
const FormBinaryBearerBadRequestCode int = 400

FormBinaryBearerBadRequestCode is the HTTP code returned for type FormBinaryBearerBadRequest

View Source
const FormBinaryBearerOKCode int = 200

FormBinaryBearerOKCode is the HTTP code returned for type FormBinaryBearerOK

View Source
const GetBalanceBadRequestCode int = 400

GetBalanceBadRequestCode is the HTTP code returned for type GetBalanceBadRequest

View Source
const GetBalanceOKCode int = 200

GetBalanceOKCode is the HTTP code returned for type GetBalanceOK

View Source
const GetContainerBadRequestCode int = 400

GetContainerBadRequestCode is the HTTP code returned for type GetContainerBadRequest

View Source
const GetContainerEACLBadRequestCode int = 400

GetContainerEACLBadRequestCode is the HTTP code returned for type GetContainerEACLBadRequest

View Source
const GetContainerEACLOKCode int = 200

GetContainerEACLOKCode is the HTTP code returned for type GetContainerEACLOK

View Source
const GetContainerOKCode int = 200

GetContainerOKCode is the HTTP code returned for type GetContainerOK

View Source
const GetObjectInfoBadRequestCode int = 400

GetObjectInfoBadRequestCode is the HTTP code returned for type GetObjectInfoBadRequest

View Source
const GetObjectInfoOKCode int = 200

GetObjectInfoOKCode is the HTTP code returned for type GetObjectInfoOK

View Source
const ListContainersBadRequestCode int = 400

ListContainersBadRequestCode is the HTTP code returned for type ListContainersBadRequest

View Source
const ListContainersOKCode int = 200

ListContainersOKCode is the HTTP code returned for type ListContainersOK

View Source
const OptionsAuthBearerOKCode int = 200

OptionsAuthBearerOKCode is the HTTP code returned for type OptionsAuthBearerOK

View Source
const OptionsAuthOKCode int = 200

OptionsAuthOKCode is the HTTP code returned for type OptionsAuthOK

View Source
const OptionsContainersEACLOKCode int = 200

OptionsContainersEACLOKCode is the HTTP code returned for type OptionsContainersEACLOK

View Source
const OptionsContainersGetDeleteOKCode int = 200

OptionsContainersGetDeleteOKCode is the HTTP code returned for type OptionsContainersGetDeleteOK

View Source
const OptionsContainersPutListOKCode int = 200

OptionsContainersPutListOKCode is the HTTP code returned for type OptionsContainersPutListOK

View Source
const OptionsObjectsGetDeleteOKCode int = 200

OptionsObjectsGetDeleteOKCode is the HTTP code returned for type OptionsObjectsGetDeleteOK

View Source
const OptionsObjectsPutOKCode int = 200

OptionsObjectsPutOKCode is the HTTP code returned for type OptionsObjectsPutOK

View Source
const OptionsObjectsSearchOKCode int = 200

OptionsObjectsSearchOKCode is the HTTP code returned for type OptionsObjectsSearchOK

View Source
const PutContainerBadRequestCode int = 400

PutContainerBadRequestCode is the HTTP code returned for type PutContainerBadRequest

View Source
const PutContainerEACLBadRequestCode int = 400

PutContainerEACLBadRequestCode is the HTTP code returned for type PutContainerEACLBadRequest

View Source
const PutContainerEACLOKCode int = 200

PutContainerEACLOKCode is the HTTP code returned for type PutContainerEACLOK

View Source
const PutContainerOKCode int = 200

PutContainerOKCode is the HTTP code returned for type PutContainerOK

View Source
const PutObjectBadRequestCode int = 400

PutObjectBadRequestCode is the HTTP code returned for type PutObjectBadRequest

View Source
const PutObjectOKCode int = 200

PutObjectOKCode is the HTTP code returned for type PutObjectOK

View Source
const SearchObjectsBadRequestCode int = 400

SearchObjectsBadRequestCode is the HTTP code returned for type SearchObjectsBadRequest

View Source
const SearchObjectsOKCode int = 200

SearchObjectsOKCode is the HTTP code returned for type SearchObjectsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Context *middleware.Context
	Handler AuthHandler
}
Auth swagger:route POST /auth auth

Form bearer token to further requests

func NewAuth

func NewAuth(ctx *middleware.Context, handler AuthHandler) *Auth

NewAuth creates a new http.Handler for the auth operation

func (*Auth) ServeHTTP

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

type AuthBadRequest

type AuthBadRequest struct {

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

AuthBadRequest Bad request

swagger:response authBadRequest

func NewAuthBadRequest

func NewAuthBadRequest() *AuthBadRequest

NewAuthBadRequest creates AuthBadRequest with default headers values

func (*AuthBadRequest) SetPayload

func (o *AuthBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the auth bad request response

func (*AuthBadRequest) WithPayload

func (o *AuthBadRequest) WithPayload(payload *models.ErrorResponse) *AuthBadRequest

WithPayload adds the payload to the auth bad request response

func (*AuthBadRequest) WriteResponse

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

WriteResponse to the client

type AuthHandler

type AuthHandler interface {
	Handle(AuthParams) middleware.Responder
}

AuthHandler interface for that can handle valid auth params

type AuthHandlerFunc

type AuthHandlerFunc func(AuthParams) middleware.Responder

AuthHandlerFunc turns a function with the right signature into a auth handler

func (AuthHandlerFunc) Handle

func (fn AuthHandlerFunc) Handle(params AuthParams) middleware.Responder

Handle executing the request and returning a response

type AuthOK

type AuthOK struct {
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`

	/*
	  In: Body
	*/
	Payload []*models.TokenResponse `json:"body,omitempty"`
}

AuthOK Base64 encoded stable binary marshaled bearer token bodies.

swagger:response authOK

func NewAuthOK

func NewAuthOK() *AuthOK

NewAuthOK creates AuthOK with default headers values

func (*AuthOK) SetAccessControlAllowOrigin

func (o *AuthOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the auth o k response

func (*AuthOK) SetPayload

func (o *AuthOK) SetPayload(payload []*models.TokenResponse)

SetPayload sets the payload to the auth o k response

func (*AuthOK) WithAccessControlAllowOrigin

func (o *AuthOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *AuthOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the auth o k response

func (*AuthOK) WithPayload

func (o *AuthOK) WithPayload(payload []*models.TokenResponse) *AuthOK

WithPayload adds the payload to the auth o k response

func (*AuthOK) WriteResponse

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

WriteResponse to the client

type AuthParams

type AuthParams struct {

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

	/*Form token for all users or only for this gate.
	  In: header
	  Default: false
	*/
	XBearerForAllUsers *bool
	/*Token lifetime in epoch.
	  In: header
	  Default: 100
	*/
	XBearerLifetime *int64
	/*Owner Id (wallet address) that will sign the token.
	  Required: true
	  In: header
	*/
	XBearerOwnerID string
	/*Bearer tokens to form.
	  Required: true
	  In: body
	*/
	Tokens []*models.Bearer
}

AuthParams contains all the bound params for the auth operation typically these are obtained from a http.Request

swagger:parameters auth

func NewAuthParams

func NewAuthParams() AuthParams

NewAuthParams creates a new AuthParams object with the default values initialized.

func (*AuthParams) BindRequest

func (o *AuthParams) 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 NewAuthParams() beforehand.

type DeleteContainer

type DeleteContainer struct {
	Context *middleware.Context
	Handler DeleteContainerHandler
}
DeleteContainer swagger:route DELETE /containers/{containerId} deleteContainer

Delete container by id

func NewDeleteContainer

func NewDeleteContainer(ctx *middleware.Context, handler DeleteContainerHandler) *DeleteContainer

NewDeleteContainer creates a new http.Handler for the delete container operation

func (*DeleteContainer) ServeHTTP

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

type DeleteContainerBadRequest

type DeleteContainerBadRequest struct {

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

DeleteContainerBadRequest Bad request.

swagger:response deleteContainerBadRequest

func NewDeleteContainerBadRequest

func NewDeleteContainerBadRequest() *DeleteContainerBadRequest

NewDeleteContainerBadRequest creates DeleteContainerBadRequest with default headers values

func (*DeleteContainerBadRequest) SetPayload

func (o *DeleteContainerBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the delete container bad request response

func (*DeleteContainerBadRequest) WithPayload

WithPayload adds the payload to the delete container bad request response

func (*DeleteContainerBadRequest) WriteResponse

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

WriteResponse to the client

type DeleteContainerHandler

type DeleteContainerHandler interface {
	Handle(DeleteContainerParams, *models.Principal) middleware.Responder
}

DeleteContainerHandler interface for that can handle valid delete container params

type DeleteContainerHandlerFunc

type DeleteContainerHandlerFunc func(DeleteContainerParams, *models.Principal) middleware.Responder

DeleteContainerHandlerFunc turns a function with the right signature into a delete container handler

func (DeleteContainerHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteContainerOK

type DeleteContainerOK struct {
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`

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

DeleteContainerOK Successful deletion.

swagger:response deleteContainerOK

func NewDeleteContainerOK

func NewDeleteContainerOK() *DeleteContainerOK

NewDeleteContainerOK creates DeleteContainerOK with default headers values

func (*DeleteContainerOK) SetAccessControlAllowOrigin

func (o *DeleteContainerOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the delete container o k response

func (*DeleteContainerOK) SetPayload

func (o *DeleteContainerOK) SetPayload(payload *models.SuccessResponse)

SetPayload sets the payload to the delete container o k response

func (*DeleteContainerOK) WithAccessControlAllowOrigin

func (o *DeleteContainerOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *DeleteContainerOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the delete container o k response

func (*DeleteContainerOK) WithPayload

func (o *DeleteContainerOK) WithPayload(payload *models.SuccessResponse) *DeleteContainerOK

WithPayload adds the payload to the delete container o k response

func (*DeleteContainerOK) WriteResponse

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

WriteResponse to the client

type DeleteContainerParams

type DeleteContainerParams struct {

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

	/*Base64 encoded signature for bearer token.
	  In: header
	*/
	XBearerSignature *string
	/*Hex encoded the public part of the key that signed the bearer token.
	  In: header
	*/
	XBearerSignatureKey *string
	/*Base58 encoded container id.
	  Required: true
	  In: path
	*/
	ContainerID string
	/*Use wallet connect signature scheme or native FrostFS signature.
	  In: query
	  Default: false
	*/
	WalletConnect *bool
}

DeleteContainerParams contains all the bound params for the delete container operation typically these are obtained from a http.Request

swagger:parameters deleteContainer

func NewDeleteContainerParams

func NewDeleteContainerParams() DeleteContainerParams

NewDeleteContainerParams creates a new DeleteContainerParams object with the default values initialized.

func (*DeleteContainerParams) BindRequest

func (o *DeleteContainerParams) 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 NewDeleteContainerParams() beforehand.

type DeleteObject

type DeleteObject struct {
	Context *middleware.Context
	Handler DeleteObjectHandler
}
DeleteObject swagger:route DELETE /objects/{containerId}/{objectId} deleteObject

Remove object from FrostFS

func NewDeleteObject

func NewDeleteObject(ctx *middleware.Context, handler DeleteObjectHandler) *DeleteObject

NewDeleteObject creates a new http.Handler for the delete object operation

func (*DeleteObject) ServeHTTP

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

type DeleteObjectBadRequest

type DeleteObjectBadRequest struct {

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

DeleteObjectBadRequest Bad request.

swagger:response deleteObjectBadRequest

func NewDeleteObjectBadRequest

func NewDeleteObjectBadRequest() *DeleteObjectBadRequest

NewDeleteObjectBadRequest creates DeleteObjectBadRequest with default headers values

func (*DeleteObjectBadRequest) SetPayload

func (o *DeleteObjectBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the delete object bad request response

func (*DeleteObjectBadRequest) WithPayload

WithPayload adds the payload to the delete object bad request response

func (*DeleteObjectBadRequest) WriteResponse

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

WriteResponse to the client

type DeleteObjectHandler

type DeleteObjectHandler interface {
	Handle(DeleteObjectParams, *models.Principal) middleware.Responder
}

DeleteObjectHandler interface for that can handle valid delete object params

type DeleteObjectHandlerFunc

type DeleteObjectHandlerFunc func(DeleteObjectParams, *models.Principal) middleware.Responder

DeleteObjectHandlerFunc turns a function with the right signature into a delete object handler

func (DeleteObjectHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteObjectOK

type DeleteObjectOK struct {
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`

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

DeleteObjectOK Successful deletion.

swagger:response deleteObjectOK

func NewDeleteObjectOK

func NewDeleteObjectOK() *DeleteObjectOK

NewDeleteObjectOK creates DeleteObjectOK with default headers values

func (*DeleteObjectOK) SetAccessControlAllowOrigin

func (o *DeleteObjectOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the delete object o k response

func (*DeleteObjectOK) SetPayload

func (o *DeleteObjectOK) SetPayload(payload *models.SuccessResponse)

SetPayload sets the payload to the delete object o k response

func (*DeleteObjectOK) WithAccessControlAllowOrigin

func (o *DeleteObjectOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *DeleteObjectOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the delete object o k response

func (*DeleteObjectOK) WithPayload

func (o *DeleteObjectOK) WithPayload(payload *models.SuccessResponse) *DeleteObjectOK

WithPayload adds the payload to the delete object o k response

func (*DeleteObjectOK) WriteResponse

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

WriteResponse to the client

type DeleteObjectParams

type DeleteObjectParams struct {

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

	/*Base64 encoded signature for bearer token.
	  In: header
	*/
	XBearerSignature *string
	/*Hex encoded the public part of the key that signed the bearer token.
	  In: header
	*/
	XBearerSignatureKey *string
	/*Base58 encoded container id.
	  Required: true
	  In: path
	*/
	ContainerID string
	/*Provided bearer token is final or gate should assemble it using signature.
	  In: query
	  Default: false
	*/
	FullBearer *bool
	/*Base58 encoded object id.
	  Required: true
	  In: path
	*/
	ObjectID string
	/*Use wallet connect signature scheme or native FrostFS signature.
	  In: query
	  Default: false
	*/
	WalletConnect *bool
}

DeleteObjectParams contains all the bound params for the delete object operation typically these are obtained from a http.Request

swagger:parameters deleteObject

func NewDeleteObjectParams

func NewDeleteObjectParams() DeleteObjectParams

NewDeleteObjectParams creates a new DeleteObjectParams object with the default values initialized.

func (*DeleteObjectParams) BindRequest

func (o *DeleteObjectParams) 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 NewDeleteObjectParams() beforehand.

type FormBinaryBearer

type FormBinaryBearer struct {
	Context *middleware.Context
	Handler FormBinaryBearerHandler
}
FormBinaryBearer swagger:route GET /auth/bearer formBinaryBearer

Form binary bearer token

func NewFormBinaryBearer

func NewFormBinaryBearer(ctx *middleware.Context, handler FormBinaryBearerHandler) *FormBinaryBearer

NewFormBinaryBearer creates a new http.Handler for the form binary bearer operation

func (*FormBinaryBearer) ServeHTTP

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

type FormBinaryBearerBadRequest

type FormBinaryBearerBadRequest struct {

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

FormBinaryBearerBadRequest Bad request

swagger:response formBinaryBearerBadRequest

func NewFormBinaryBearerBadRequest

func NewFormBinaryBearerBadRequest() *FormBinaryBearerBadRequest

NewFormBinaryBearerBadRequest creates FormBinaryBearerBadRequest with default headers values

func (*FormBinaryBearerBadRequest) SetPayload

func (o *FormBinaryBearerBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the form binary bearer bad request response

func (*FormBinaryBearerBadRequest) WithPayload

WithPayload adds the payload to the form binary bearer bad request response

func (*FormBinaryBearerBadRequest) WriteResponse

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

WriteResponse to the client

type FormBinaryBearerHandler

type FormBinaryBearerHandler interface {
	Handle(FormBinaryBearerParams, *models.Principal) middleware.Responder
}

FormBinaryBearerHandler interface for that can handle valid form binary bearer params

type FormBinaryBearerHandlerFunc

type FormBinaryBearerHandlerFunc func(FormBinaryBearerParams, *models.Principal) middleware.Responder

FormBinaryBearerHandlerFunc turns a function with the right signature into a form binary bearer handler

func (FormBinaryBearerHandlerFunc) Handle

Handle executing the request and returning a response

type FormBinaryBearerOK

type FormBinaryBearerOK struct {
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`

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

FormBinaryBearerOK Base64 encoded stable binary marshaled bearer token.

swagger:response formBinaryBearerOK

func NewFormBinaryBearerOK

func NewFormBinaryBearerOK() *FormBinaryBearerOK

NewFormBinaryBearerOK creates FormBinaryBearerOK with default headers values

func (*FormBinaryBearerOK) SetAccessControlAllowOrigin

func (o *FormBinaryBearerOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the form binary bearer o k response

func (*FormBinaryBearerOK) SetPayload

func (o *FormBinaryBearerOK) SetPayload(payload *models.BinaryBearer)

SetPayload sets the payload to the form binary bearer o k response

func (*FormBinaryBearerOK) WithAccessControlAllowOrigin

func (o *FormBinaryBearerOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *FormBinaryBearerOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the form binary bearer o k response

func (*FormBinaryBearerOK) WithPayload

func (o *FormBinaryBearerOK) WithPayload(payload *models.BinaryBearer) *FormBinaryBearerOK

WithPayload adds the payload to the form binary bearer o k response

func (*FormBinaryBearerOK) WriteResponse

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

WriteResponse to the client

type FormBinaryBearerParams

type FormBinaryBearerParams struct {

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

	/*Base64 encoded signature for bearer token.
	  In: header
	*/
	XBearerSignature *string
	/*Hex encoded the public part of the key that signed the bearer token.
	  In: header
	*/
	XBearerSignatureKey *string
	/*Use wallet connect signature scheme or native FrostFS signature.
	  In: query
	  Default: false
	*/
	WalletConnect *bool
}

FormBinaryBearerParams contains all the bound params for the form binary bearer operation typically these are obtained from a http.Request

swagger:parameters formBinaryBearer

func NewFormBinaryBearerParams

func NewFormBinaryBearerParams() FormBinaryBearerParams

NewFormBinaryBearerParams creates a new FormBinaryBearerParams object with the default values initialized.

func (*FormBinaryBearerParams) BindRequest

func (o *FormBinaryBearerParams) 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 NewFormBinaryBearerParams() beforehand.

type FrostfsRestGwAPI

type FrostfsRestGwAPI struct {
	Middleware func(middleware.Builder) http.Handler

	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator

	// APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator

	// BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator

	// JSONConsumer registers a consumer for the following mime types:
	//   - application/json
	JSONConsumer runtime.Consumer

	// JSONProducer registers a producer for the following mime types:
	//   - application/json
	JSONProducer runtime.Producer

	// BearerAuthAuth registers a function that takes a token and returns a principal
	// it performs authentication based on an api key Authorization provided in the header
	BearerAuthAuth func(string) (*models.Principal, error)

	// APIAuthorizer provides access control (ACL/RBAC/ABAC) by providing access to the request and authenticated principal
	APIAuthorizer runtime.Authorizer

	// AuthHandler sets the operation handler for the auth operation
	AuthHandler AuthHandler
	// DeleteContainerHandler sets the operation handler for the delete container operation
	DeleteContainerHandler DeleteContainerHandler
	// DeleteObjectHandler sets the operation handler for the delete object operation
	DeleteObjectHandler DeleteObjectHandler
	// FormBinaryBearerHandler sets the operation handler for the form binary bearer operation
	FormBinaryBearerHandler FormBinaryBearerHandler
	// GetBalanceHandler sets the operation handler for the get balance operation
	GetBalanceHandler GetBalanceHandler
	// GetContainerHandler sets the operation handler for the get container operation
	GetContainerHandler GetContainerHandler
	// GetContainerEACLHandler sets the operation handler for the get container e ACL operation
	GetContainerEACLHandler GetContainerEACLHandler
	// GetObjectInfoHandler sets the operation handler for the get object info operation
	GetObjectInfoHandler GetObjectInfoHandler
	// ListContainersHandler sets the operation handler for the list containers operation
	ListContainersHandler ListContainersHandler
	// OptionsAuthHandler sets the operation handler for the options auth operation
	OptionsAuthHandler OptionsAuthHandler
	// OptionsAuthBearerHandler sets the operation handler for the options auth bearer operation
	OptionsAuthBearerHandler OptionsAuthBearerHandler
	// OptionsContainersEACLHandler sets the operation handler for the options containers e ACL operation
	OptionsContainersEACLHandler OptionsContainersEACLHandler
	// OptionsContainersGetDeleteHandler sets the operation handler for the options containers get delete operation
	OptionsContainersGetDeleteHandler OptionsContainersGetDeleteHandler
	// OptionsContainersPutListHandler sets the operation handler for the options containers put list operation
	OptionsContainersPutListHandler OptionsContainersPutListHandler
	// OptionsObjectsGetDeleteHandler sets the operation handler for the options objects get delete operation
	OptionsObjectsGetDeleteHandler OptionsObjectsGetDeleteHandler
	// OptionsObjectsPutHandler sets the operation handler for the options objects put operation
	OptionsObjectsPutHandler OptionsObjectsPutHandler
	// OptionsObjectsSearchHandler sets the operation handler for the options objects search operation
	OptionsObjectsSearchHandler OptionsObjectsSearchHandler
	// PutContainerHandler sets the operation handler for the put container operation
	PutContainerHandler PutContainerHandler
	// PutContainerEACLHandler sets the operation handler for the put container e ACL operation
	PutContainerEACLHandler PutContainerEACLHandler
	// PutObjectHandler sets the operation handler for the put object operation
	PutObjectHandler PutObjectHandler
	// SearchObjectsHandler sets the operation handler for the search objects operation
	SearchObjectsHandler SearchObjectsHandler

	// ServeError is called when an error is received, there is a default handler
	// but you can set your own with this
	ServeError func(http.ResponseWriter, *http.Request, error)

	// PreServerShutdown is called before the HTTP(S) server is shutdown
	// This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic
	PreServerShutdown func()

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

FrostfsRestGwAPI REST API for native integration with FrostFS.

func NewFrostfsRestGwAPI

func NewFrostfsRestGwAPI(spec *loads.Document) *FrostfsRestGwAPI

NewFrostfsRestGwAPI creates a new FrostfsRestGw instance

func (*FrostfsRestGwAPI) AddMiddlewareFor

func (o *FrostfsRestGwAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)

AddMiddlewareFor adds a http middleware to existing handler

func (*FrostfsRestGwAPI) AuthenticatorsFor

func (o *FrostfsRestGwAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*FrostfsRestGwAPI) Authorizer

func (o *FrostfsRestGwAPI) Authorizer() runtime.Authorizer

Authorizer returns the registered authorizer

func (*FrostfsRestGwAPI) ConsumersFor

func (o *FrostfsRestGwAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.

func (*FrostfsRestGwAPI) Context

func (o *FrostfsRestGwAPI) Context() *middleware.Context

Context returns the middleware context for the frostfs rest gw API

func (*FrostfsRestGwAPI) DefaultConsumes

func (o *FrostfsRestGwAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*FrostfsRestGwAPI) DefaultProduces

func (o *FrostfsRestGwAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*FrostfsRestGwAPI) Formats

func (o *FrostfsRestGwAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*FrostfsRestGwAPI) HandlerFor

func (o *FrostfsRestGwAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*FrostfsRestGwAPI) Init

func (o *FrostfsRestGwAPI) Init()

Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit

func (*FrostfsRestGwAPI) ProducersFor

func (o *FrostfsRestGwAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.

func (*FrostfsRestGwAPI) RegisterConsumer

func (o *FrostfsRestGwAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)

RegisterConsumer allows you to add (or override) a consumer for a media type.

func (*FrostfsRestGwAPI) RegisterFormat

func (o *FrostfsRestGwAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*FrostfsRestGwAPI) RegisterProducer

func (o *FrostfsRestGwAPI) RegisterProducer(mediaType string, producer runtime.Producer)

RegisterProducer allows you to add (or override) a producer for a media type.

func (*FrostfsRestGwAPI) Serve

func (o *FrostfsRestGwAPI) Serve(builder middleware.Builder) http.Handler

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*FrostfsRestGwAPI) ServeErrorFor

func (o *FrostfsRestGwAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*FrostfsRestGwAPI) SetDefaultConsumes

func (o *FrostfsRestGwAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*FrostfsRestGwAPI) SetDefaultProduces

func (o *FrostfsRestGwAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*FrostfsRestGwAPI) SetSpec

func (o *FrostfsRestGwAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*FrostfsRestGwAPI) UseRedoc

func (o *FrostfsRestGwAPI) UseRedoc()

UseRedoc for documentation at /docs

func (*FrostfsRestGwAPI) UseSwaggerUI

func (o *FrostfsRestGwAPI) UseSwaggerUI()

UseSwaggerUI for documentation at /docs

func (*FrostfsRestGwAPI) Validate

func (o *FrostfsRestGwAPI) Validate() error

Validate validates the registrations in the FrostfsRestGwAPI

type GetBalance

type GetBalance struct {
	Context *middleware.Context
	Handler GetBalanceHandler
}
GetBalance swagger:route GET /accounting/balance/{address} getBalance

Get balance in FrostFS

Getting balance of provided wallet address in FrostFS.

func NewGetBalance

func NewGetBalance(ctx *middleware.Context, handler GetBalanceHandler) *GetBalance

NewGetBalance creates a new http.Handler for the get balance operation

func (*GetBalance) ServeHTTP

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

type GetBalanceBadRequest

type GetBalanceBadRequest struct {

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

GetBalanceBadRequest Bad request

swagger:response getBalanceBadRequest

func NewGetBalanceBadRequest

func NewGetBalanceBadRequest() *GetBalanceBadRequest

NewGetBalanceBadRequest creates GetBalanceBadRequest with default headers values

func (*GetBalanceBadRequest) SetPayload

func (o *GetBalanceBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get balance bad request response

func (*GetBalanceBadRequest) WithPayload

WithPayload adds the payload to the get balance bad request response

func (*GetBalanceBadRequest) WriteResponse

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

WriteResponse to the client

type GetBalanceHandler

type GetBalanceHandler interface {
	Handle(GetBalanceParams) middleware.Responder
}

GetBalanceHandler interface for that can handle valid get balance params

type GetBalanceHandlerFunc

type GetBalanceHandlerFunc func(GetBalanceParams) middleware.Responder

GetBalanceHandlerFunc turns a function with the right signature into a get balance handler

func (GetBalanceHandlerFunc) Handle

Handle executing the request and returning a response

type GetBalanceOK

type GetBalanceOK struct {
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`

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

GetBalanceOK Balance of address in FrostFS

swagger:response getBalanceOK

func NewGetBalanceOK

func NewGetBalanceOK() *GetBalanceOK

NewGetBalanceOK creates GetBalanceOK with default headers values

func (*GetBalanceOK) SetAccessControlAllowOrigin

func (o *GetBalanceOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the get balance o k response

func (*GetBalanceOK) SetPayload

func (o *GetBalanceOK) SetPayload(payload *models.Balance)

SetPayload sets the payload to the get balance o k response

func (*GetBalanceOK) WithAccessControlAllowOrigin

func (o *GetBalanceOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *GetBalanceOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the get balance o k response

func (*GetBalanceOK) WithPayload

func (o *GetBalanceOK) WithPayload(payload *models.Balance) *GetBalanceOK

WithPayload adds the payload to the get balance o k response

func (*GetBalanceOK) WriteResponse

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

WriteResponse to the client

type GetBalanceParams

type GetBalanceParams struct {

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

	/*Base58 encoded wallet address.
	  Required: true
	  In: path
	*/
	Address string
}

GetBalanceParams contains all the bound params for the get balance operation typically these are obtained from a http.Request

swagger:parameters getBalance

func NewGetBalanceParams

func NewGetBalanceParams() GetBalanceParams

NewGetBalanceParams creates a new GetBalanceParams object

There are no default values defined in the spec.

func (*GetBalanceParams) BindRequest

func (o *GetBalanceParams) 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 NewGetBalanceParams() beforehand.

type GetContainer

type GetContainer struct {
	Context *middleware.Context
	Handler GetContainerHandler
}
GetContainer swagger:route GET /containers/{containerId} getContainer

Get container by id

func NewGetContainer

func NewGetContainer(ctx *middleware.Context, handler GetContainerHandler) *GetContainer

NewGetContainer creates a new http.Handler for the get container operation

func (*GetContainer) ServeHTTP

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

type GetContainerBadRequest

type GetContainerBadRequest struct {

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

GetContainerBadRequest Bad request.

swagger:response getContainerBadRequest

func NewGetContainerBadRequest

func NewGetContainerBadRequest() *GetContainerBadRequest

NewGetContainerBadRequest creates GetContainerBadRequest with default headers values

func (*GetContainerBadRequest) SetPayload

func (o *GetContainerBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get container bad request response

func (*GetContainerBadRequest) WithPayload

WithPayload adds the payload to the get container bad request response

func (*GetContainerBadRequest) WriteResponse

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

WriteResponse to the client

type GetContainerEACL

type GetContainerEACL struct {
	Context *middleware.Context
	Handler GetContainerEACLHandler
}
GetContainerEACL swagger:route GET /containers/{containerId}/eacl getContainerEAcl

Get container EACL by id

func NewGetContainerEACL

func NewGetContainerEACL(ctx *middleware.Context, handler GetContainerEACLHandler) *GetContainerEACL

NewGetContainerEACL creates a new http.Handler for the get container e ACL operation

func (*GetContainerEACL) ServeHTTP

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

type GetContainerEACLBadRequest

type GetContainerEACLBadRequest struct {

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

GetContainerEACLBadRequest Bad request.

swagger:response getContainerEAclBadRequest

func NewGetContainerEACLBadRequest

func NewGetContainerEACLBadRequest() *GetContainerEACLBadRequest

NewGetContainerEACLBadRequest creates GetContainerEACLBadRequest with default headers values

func (*GetContainerEACLBadRequest) SetPayload

func (o *GetContainerEACLBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get container e Acl bad request response

func (*GetContainerEACLBadRequest) WithPayload

WithPayload adds the payload to the get container e Acl bad request response

func (*GetContainerEACLBadRequest) WriteResponse

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

WriteResponse to the client

type GetContainerEACLHandler

type GetContainerEACLHandler interface {
	Handle(GetContainerEACLParams) middleware.Responder
}

GetContainerEACLHandler interface for that can handle valid get container e ACL params

type GetContainerEACLHandlerFunc

type GetContainerEACLHandlerFunc func(GetContainerEACLParams) middleware.Responder

GetContainerEACLHandlerFunc turns a function with the right signature into a get container e ACL handler

func (GetContainerEACLHandlerFunc) Handle

Handle executing the request and returning a response

type GetContainerEACLOK

type GetContainerEACLOK struct {
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`

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

GetContainerEACLOK Container EACL information.

swagger:response getContainerEAclOK

func NewGetContainerEACLOK

func NewGetContainerEACLOK() *GetContainerEACLOK

NewGetContainerEACLOK creates GetContainerEACLOK with default headers values

func (*GetContainerEACLOK) SetAccessControlAllowOrigin

func (o *GetContainerEACLOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the get container e Acl o k response

func (*GetContainerEACLOK) SetPayload

func (o *GetContainerEACLOK) SetPayload(payload *models.Eacl)

SetPayload sets the payload to the get container e Acl o k response

func (*GetContainerEACLOK) WithAccessControlAllowOrigin

func (o *GetContainerEACLOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *GetContainerEACLOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the get container e Acl o k response

func (*GetContainerEACLOK) WithPayload

func (o *GetContainerEACLOK) WithPayload(payload *models.Eacl) *GetContainerEACLOK

WithPayload adds the payload to the get container e Acl o k response

func (*GetContainerEACLOK) WriteResponse

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

WriteResponse to the client

type GetContainerEACLParams

type GetContainerEACLParams struct {

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

	/*Base58 encoded container id.
	  Required: true
	  In: path
	*/
	ContainerID string
}

GetContainerEACLParams contains all the bound params for the get container e ACL operation typically these are obtained from a http.Request

swagger:parameters getContainerEACL

func NewGetContainerEACLParams

func NewGetContainerEACLParams() GetContainerEACLParams

NewGetContainerEACLParams creates a new GetContainerEACLParams object

There are no default values defined in the spec.

func (*GetContainerEACLParams) BindRequest

func (o *GetContainerEACLParams) 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 NewGetContainerEACLParams() beforehand.

type GetContainerHandler

type GetContainerHandler interface {
	Handle(GetContainerParams) middleware.Responder
}

GetContainerHandler interface for that can handle valid get container params

type GetContainerHandlerFunc

type GetContainerHandlerFunc func(GetContainerParams) middleware.Responder

GetContainerHandlerFunc turns a function with the right signature into a get container handler

func (GetContainerHandlerFunc) Handle

Handle executing the request and returning a response

type GetContainerOK

type GetContainerOK struct {
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`

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

GetContainerOK Container info.

swagger:response getContainerOK

func NewGetContainerOK

func NewGetContainerOK() *GetContainerOK

NewGetContainerOK creates GetContainerOK with default headers values

func (*GetContainerOK) SetAccessControlAllowOrigin

func (o *GetContainerOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the get container o k response

func (*GetContainerOK) SetPayload

func (o *GetContainerOK) SetPayload(payload *models.ContainerInfo)

SetPayload sets the payload to the get container o k response

func (*GetContainerOK) WithAccessControlAllowOrigin

func (o *GetContainerOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *GetContainerOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the get container o k response

func (*GetContainerOK) WithPayload

func (o *GetContainerOK) WithPayload(payload *models.ContainerInfo) *GetContainerOK

WithPayload adds the payload to the get container o k response

func (*GetContainerOK) WriteResponse

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

WriteResponse to the client

type GetContainerParams

type GetContainerParams struct {

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

	/*Base58 encoded container id.
	  Required: true
	  In: path
	*/
	ContainerID string
}

GetContainerParams contains all the bound params for the get container operation typically these are obtained from a http.Request

swagger:parameters getContainer

func NewGetContainerParams

func NewGetContainerParams() GetContainerParams

NewGetContainerParams creates a new GetContainerParams object

There are no default values defined in the spec.

func (*GetContainerParams) BindRequest

func (o *GetContainerParams) 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 NewGetContainerParams() beforehand.

type GetObjectInfo

type GetObjectInfo struct {
	Context *middleware.Context
	Handler GetObjectInfoHandler
}
GetObjectInfo swagger:route GET /objects/{containerId}/{objectId} getObjectInfo

Get object info by address

func NewGetObjectInfo

func NewGetObjectInfo(ctx *middleware.Context, handler GetObjectInfoHandler) *GetObjectInfo

NewGetObjectInfo creates a new http.Handler for the get object info operation

func (*GetObjectInfo) ServeHTTP

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

type GetObjectInfoBadRequest

type GetObjectInfoBadRequest struct {

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

GetObjectInfoBadRequest Bad request

swagger:response getObjectInfoBadRequest

func NewGetObjectInfoBadRequest

func NewGetObjectInfoBadRequest() *GetObjectInfoBadRequest

NewGetObjectInfoBadRequest creates GetObjectInfoBadRequest with default headers values

func (*GetObjectInfoBadRequest) SetPayload

func (o *GetObjectInfoBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get object info bad request response

func (*GetObjectInfoBadRequest) WithPayload

WithPayload adds the payload to the get object info bad request response

func (*GetObjectInfoBadRequest) WriteResponse

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

WriteResponse to the client

type GetObjectInfoHandler

type GetObjectInfoHandler interface {
	Handle(GetObjectInfoParams, *models.Principal) middleware.Responder
}

GetObjectInfoHandler interface for that can handle valid get object info params

type GetObjectInfoHandlerFunc

type GetObjectInfoHandlerFunc func(GetObjectInfoParams, *models.Principal) middleware.Responder

GetObjectInfoHandlerFunc turns a function with the right signature into a get object info handler

func (GetObjectInfoHandlerFunc) Handle

Handle executing the request and returning a response

type GetObjectInfoOK

type GetObjectInfoOK struct {
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`

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

GetObjectInfoOK Object info

swagger:response getObjectInfoOK

func NewGetObjectInfoOK

func NewGetObjectInfoOK() *GetObjectInfoOK

NewGetObjectInfoOK creates GetObjectInfoOK with default headers values

func (*GetObjectInfoOK) SetAccessControlAllowOrigin

func (o *GetObjectInfoOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the get object info o k response

func (*GetObjectInfoOK) SetPayload

func (o *GetObjectInfoOK) SetPayload(payload *models.ObjectInfo)

SetPayload sets the payload to the get object info o k response

func (*GetObjectInfoOK) WithAccessControlAllowOrigin

func (o *GetObjectInfoOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *GetObjectInfoOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the get object info o k response

func (*GetObjectInfoOK) WithPayload

func (o *GetObjectInfoOK) WithPayload(payload *models.ObjectInfo) *GetObjectInfoOK

WithPayload adds the payload to the get object info o k response

func (*GetObjectInfoOK) WriteResponse

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

WriteResponse to the client

type GetObjectInfoParams

type GetObjectInfoParams struct {

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

	/*Base64 encoded signature for bearer token.
	  In: header
	*/
	XBearerSignature *string
	/*Hex encoded the public part of the key that signed the bearer token.
	  In: header
	*/
	XBearerSignatureKey *string
	/*Base58 encoded container id.
	  Required: true
	  In: path
	*/
	ContainerID string
	/*Provided bearer token is final or gate should assemble it using signature.
	  In: query
	  Default: false
	*/
	FullBearer *bool
	/*Max payload size (in bytes) that can be included in the response.
	If the actual size is greater than this params the payload won't be included in the response.

	  Maximum: 5.24288e+08
	  Minimum: 0
	  In: query
	  Default: 4.194304e+06
	*/
	MaxPayloadSize *int64
	/*Base58 encoded object id.
	  Required: true
	  In: path
	*/
	ObjectID string
	/*Length of data range.
	  Minimum: 1
	  In: query
	*/
	RangeLength *int64
	/*Range offset to start reading data.
	  Minimum: 0
	  In: query
	*/
	RangeOffset *int64
	/*Use wallet connect signature scheme or native FrostFS signature.
	  In: query
	  Default: false
	*/
	WalletConnect *bool
}

GetObjectInfoParams contains all the bound params for the get object info operation typically these are obtained from a http.Request

swagger:parameters getObjectInfo

func NewGetObjectInfoParams

func NewGetObjectInfoParams() GetObjectInfoParams

NewGetObjectInfoParams creates a new GetObjectInfoParams object with the default values initialized.

func (*GetObjectInfoParams) BindRequest

func (o *GetObjectInfoParams) 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 NewGetObjectInfoParams() beforehand.

type ListContainers

type ListContainers struct {
	Context *middleware.Context
	Handler ListContainersHandler
}
ListContainers swagger:route GET /containers listContainers

Get list of containers

func NewListContainers

func NewListContainers(ctx *middleware.Context, handler ListContainersHandler) *ListContainers

NewListContainers creates a new http.Handler for the list containers operation

func (*ListContainers) ServeHTTP

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

type ListContainersBadRequest

type ListContainersBadRequest struct {

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

ListContainersBadRequest Bad request.

swagger:response listContainersBadRequest

func NewListContainersBadRequest

func NewListContainersBadRequest() *ListContainersBadRequest

NewListContainersBadRequest creates ListContainersBadRequest with default headers values

func (*ListContainersBadRequest) SetPayload

func (o *ListContainersBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the list containers bad request response

func (*ListContainersBadRequest) WithPayload

WithPayload adds the payload to the list containers bad request response

func (*ListContainersBadRequest) WriteResponse

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

WriteResponse to the client

type ListContainersHandler

type ListContainersHandler interface {
	Handle(ListContainersParams) middleware.Responder
}

ListContainersHandler interface for that can handle valid list containers params

type ListContainersHandlerFunc

type ListContainersHandlerFunc func(ListContainersParams) middleware.Responder

ListContainersHandlerFunc turns a function with the right signature into a list containers handler

func (ListContainersHandlerFunc) Handle

Handle executing the request and returning a response

type ListContainersOK

type ListContainersOK struct {
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`

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

ListContainersOK Containers info.

swagger:response listContainersOK

func NewListContainersOK

func NewListContainersOK() *ListContainersOK

NewListContainersOK creates ListContainersOK with default headers values

func (*ListContainersOK) SetAccessControlAllowOrigin

func (o *ListContainersOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the list containers o k response

func (*ListContainersOK) SetPayload

func (o *ListContainersOK) SetPayload(payload *models.ContainerList)

SetPayload sets the payload to the list containers o k response

func (*ListContainersOK) WithAccessControlAllowOrigin

func (o *ListContainersOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *ListContainersOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the list containers o k response

func (*ListContainersOK) WithPayload

func (o *ListContainersOK) WithPayload(payload *models.ContainerList) *ListContainersOK

WithPayload adds the payload to the list containers o k response

func (*ListContainersOK) WriteResponse

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

WriteResponse to the client

type ListContainersParams

type ListContainersParams struct {

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

	/*The numbers of containers to return.
	  Maximum: 10000
	  Minimum: 1
	  In: query
	  Default: 100
	*/
	Limit *int64
	/*The number of containers to skip before starting to collect the result set.
	  Minimum: 0
	  In: query
	  Default: 0
	*/
	Offset *int64
	/*Base58 encoded owner id.
	  Required: true
	  In: query
	*/
	OwnerID string
}

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

swagger:parameters listContainers

func NewListContainersParams

func NewListContainersParams() ListContainersParams

NewListContainersParams creates a new ListContainersParams object with the default values initialized.

func (*ListContainersParams) BindRequest

func (o *ListContainersParams) 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 NewListContainersParams() beforehand.

type OptionsAuth

type OptionsAuth struct {
	Context *middleware.Context
	Handler OptionsAuthHandler
}
OptionsAuth swagger:route OPTIONS /auth optionsAuth

OptionsAuth options auth API

func NewOptionsAuth

func NewOptionsAuth(ctx *middleware.Context, handler OptionsAuthHandler) *OptionsAuth

NewOptionsAuth creates a new http.Handler for the options auth operation

func (*OptionsAuth) ServeHTTP

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

type OptionsAuthBearer

type OptionsAuthBearer struct {
	Context *middleware.Context
	Handler OptionsAuthBearerHandler
}
OptionsAuthBearer swagger:route OPTIONS /auth/bearer optionsAuthBearer

OptionsAuthBearer options auth bearer API

func NewOptionsAuthBearer

func NewOptionsAuthBearer(ctx *middleware.Context, handler OptionsAuthBearerHandler) *OptionsAuthBearer

NewOptionsAuthBearer creates a new http.Handler for the options auth bearer operation

func (*OptionsAuthBearer) ServeHTTP

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

type OptionsAuthBearerHandler

type OptionsAuthBearerHandler interface {
	Handle(OptionsAuthBearerParams) middleware.Responder
}

OptionsAuthBearerHandler interface for that can handle valid options auth bearer params

type OptionsAuthBearerHandlerFunc

type OptionsAuthBearerHandlerFunc func(OptionsAuthBearerParams) middleware.Responder

OptionsAuthBearerHandlerFunc turns a function with the right signature into a options auth bearer handler

func (OptionsAuthBearerHandlerFunc) Handle

Handle executing the request and returning a response

type OptionsAuthBearerOK

type OptionsAuthBearerOK struct {
	/*

	 */
	AccessControlAllowHeaders string `json:"Access-Control-Allow-Headers"`
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`
}

OptionsAuthBearerOK CORS

swagger:response optionsAuthBearerOK

func NewOptionsAuthBearerOK

func NewOptionsAuthBearerOK() *OptionsAuthBearerOK

NewOptionsAuthBearerOK creates OptionsAuthBearerOK with default headers values

func (*OptionsAuthBearerOK) SetAccessControlAllowHeaders

func (o *OptionsAuthBearerOK) SetAccessControlAllowHeaders(accessControlAllowHeaders string)

SetAccessControlAllowHeaders sets the accessControlAllowHeaders to the options auth bearer o k response

func (*OptionsAuthBearerOK) SetAccessControlAllowOrigin

func (o *OptionsAuthBearerOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the options auth bearer o k response

func (*OptionsAuthBearerOK) WithAccessControlAllowHeaders

func (o *OptionsAuthBearerOK) WithAccessControlAllowHeaders(accessControlAllowHeaders string) *OptionsAuthBearerOK

WithAccessControlAllowHeaders adds the accessControlAllowHeaders to the options auth bearer o k response

func (*OptionsAuthBearerOK) WithAccessControlAllowOrigin

func (o *OptionsAuthBearerOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *OptionsAuthBearerOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the options auth bearer o k response

func (*OptionsAuthBearerOK) WriteResponse

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

WriteResponse to the client

type OptionsAuthBearerParams

type OptionsAuthBearerParams struct {

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

OptionsAuthBearerParams contains all the bound params for the options auth bearer operation typically these are obtained from a http.Request

swagger:parameters optionsAuthBearer

func NewOptionsAuthBearerParams

func NewOptionsAuthBearerParams() OptionsAuthBearerParams

NewOptionsAuthBearerParams creates a new OptionsAuthBearerParams object

There are no default values defined in the spec.

func (*OptionsAuthBearerParams) BindRequest

func (o *OptionsAuthBearerParams) 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 NewOptionsAuthBearerParams() beforehand.

type OptionsAuthHandler

type OptionsAuthHandler interface {
	Handle(OptionsAuthParams) middleware.Responder
}

OptionsAuthHandler interface for that can handle valid options auth params

type OptionsAuthHandlerFunc

type OptionsAuthHandlerFunc func(OptionsAuthParams) middleware.Responder

OptionsAuthHandlerFunc turns a function with the right signature into a options auth handler

func (OptionsAuthHandlerFunc) Handle

Handle executing the request and returning a response

type OptionsAuthOK

type OptionsAuthOK struct {
	/*

	 */
	AccessControlAllowHeaders string `json:"Access-Control-Allow-Headers"`
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`
}

OptionsAuthOK CORS

swagger:response optionsAuthOK

func NewOptionsAuthOK

func NewOptionsAuthOK() *OptionsAuthOK

NewOptionsAuthOK creates OptionsAuthOK with default headers values

func (*OptionsAuthOK) SetAccessControlAllowHeaders

func (o *OptionsAuthOK) SetAccessControlAllowHeaders(accessControlAllowHeaders string)

SetAccessControlAllowHeaders sets the accessControlAllowHeaders to the options auth o k response

func (*OptionsAuthOK) SetAccessControlAllowOrigin

func (o *OptionsAuthOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the options auth o k response

func (*OptionsAuthOK) WithAccessControlAllowHeaders

func (o *OptionsAuthOK) WithAccessControlAllowHeaders(accessControlAllowHeaders string) *OptionsAuthOK

WithAccessControlAllowHeaders adds the accessControlAllowHeaders to the options auth o k response

func (*OptionsAuthOK) WithAccessControlAllowOrigin

func (o *OptionsAuthOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *OptionsAuthOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the options auth o k response

func (*OptionsAuthOK) WriteResponse

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

WriteResponse to the client

type OptionsAuthParams

type OptionsAuthParams struct {

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

OptionsAuthParams contains all the bound params for the options auth operation typically these are obtained from a http.Request

swagger:parameters optionsAuth

func NewOptionsAuthParams

func NewOptionsAuthParams() OptionsAuthParams

NewOptionsAuthParams creates a new OptionsAuthParams object

There are no default values defined in the spec.

func (*OptionsAuthParams) BindRequest

func (o *OptionsAuthParams) 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 NewOptionsAuthParams() beforehand.

type OptionsContainersEACL

type OptionsContainersEACL struct {
	Context *middleware.Context
	Handler OptionsContainersEACLHandler
}
OptionsContainersEACL swagger:route OPTIONS /containers/{containerId}/eacl optionsContainersEAcl

OptionsContainersEACL options containers e ACL API

func NewOptionsContainersEACL

func NewOptionsContainersEACL(ctx *middleware.Context, handler OptionsContainersEACLHandler) *OptionsContainersEACL

NewOptionsContainersEACL creates a new http.Handler for the options containers e ACL operation

func (*OptionsContainersEACL) ServeHTTP

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

type OptionsContainersEACLHandler

type OptionsContainersEACLHandler interface {
	Handle(OptionsContainersEACLParams) middleware.Responder
}

OptionsContainersEACLHandler interface for that can handle valid options containers e ACL params

type OptionsContainersEACLHandlerFunc

type OptionsContainersEACLHandlerFunc func(OptionsContainersEACLParams) middleware.Responder

OptionsContainersEACLHandlerFunc turns a function with the right signature into a options containers e ACL handler

func (OptionsContainersEACLHandlerFunc) Handle

Handle executing the request and returning a response

type OptionsContainersEACLOK

type OptionsContainersEACLOK struct {
	/*

	 */
	AccessControlAllowHeaders string `json:"Access-Control-Allow-Headers"`
	/*

	 */
	AccessControlAllowMethods string `json:"Access-Control-Allow-Methods"`
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`
}

OptionsContainersEACLOK CORS

swagger:response optionsContainersEAclOK

func NewOptionsContainersEACLOK

func NewOptionsContainersEACLOK() *OptionsContainersEACLOK

NewOptionsContainersEACLOK creates OptionsContainersEACLOK with default headers values

func (*OptionsContainersEACLOK) SetAccessControlAllowHeaders

func (o *OptionsContainersEACLOK) SetAccessControlAllowHeaders(accessControlAllowHeaders string)

SetAccessControlAllowHeaders sets the accessControlAllowHeaders to the options containers e Acl o k response

func (*OptionsContainersEACLOK) SetAccessControlAllowMethods

func (o *OptionsContainersEACLOK) SetAccessControlAllowMethods(accessControlAllowMethods string)

SetAccessControlAllowMethods sets the accessControlAllowMethods to the options containers e Acl o k response

func (*OptionsContainersEACLOK) SetAccessControlAllowOrigin

func (o *OptionsContainersEACLOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the options containers e Acl o k response

func (*OptionsContainersEACLOK) WithAccessControlAllowHeaders

func (o *OptionsContainersEACLOK) WithAccessControlAllowHeaders(accessControlAllowHeaders string) *OptionsContainersEACLOK

WithAccessControlAllowHeaders adds the accessControlAllowHeaders to the options containers e Acl o k response

func (*OptionsContainersEACLOK) WithAccessControlAllowMethods

func (o *OptionsContainersEACLOK) WithAccessControlAllowMethods(accessControlAllowMethods string) *OptionsContainersEACLOK

WithAccessControlAllowMethods adds the accessControlAllowMethods to the options containers e Acl o k response

func (*OptionsContainersEACLOK) WithAccessControlAllowOrigin

func (o *OptionsContainersEACLOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *OptionsContainersEACLOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the options containers e Acl o k response

func (*OptionsContainersEACLOK) WriteResponse

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

WriteResponse to the client

type OptionsContainersEACLParams

type OptionsContainersEACLParams struct {

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

	/*Base58 encoded container id.
	  Required: true
	  In: path
	*/
	ContainerID string
}

OptionsContainersEACLParams contains all the bound params for the options containers e ACL operation typically these are obtained from a http.Request

swagger:parameters optionsContainersEACL

func NewOptionsContainersEACLParams

func NewOptionsContainersEACLParams() OptionsContainersEACLParams

NewOptionsContainersEACLParams creates a new OptionsContainersEACLParams object

There are no default values defined in the spec.

func (*OptionsContainersEACLParams) 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 NewOptionsContainersEACLParams() beforehand.

type OptionsContainersGetDelete

type OptionsContainersGetDelete struct {
	Context *middleware.Context
	Handler OptionsContainersGetDeleteHandler
}
OptionsContainersGetDelete swagger:route OPTIONS /containers/{containerId} optionsContainersGetDelete

OptionsContainersGetDelete options containers get delete API

func NewOptionsContainersGetDelete

func NewOptionsContainersGetDelete(ctx *middleware.Context, handler OptionsContainersGetDeleteHandler) *OptionsContainersGetDelete

NewOptionsContainersGetDelete creates a new http.Handler for the options containers get delete operation

func (*OptionsContainersGetDelete) ServeHTTP

type OptionsContainersGetDeleteHandler

type OptionsContainersGetDeleteHandler interface {
	Handle(OptionsContainersGetDeleteParams) middleware.Responder
}

OptionsContainersGetDeleteHandler interface for that can handle valid options containers get delete params

type OptionsContainersGetDeleteHandlerFunc

type OptionsContainersGetDeleteHandlerFunc func(OptionsContainersGetDeleteParams) middleware.Responder

OptionsContainersGetDeleteHandlerFunc turns a function with the right signature into a options containers get delete handler

func (OptionsContainersGetDeleteHandlerFunc) Handle

Handle executing the request and returning a response

type OptionsContainersGetDeleteOK

type OptionsContainersGetDeleteOK struct {
	/*

	 */
	AccessControlAllowHeaders string `json:"Access-Control-Allow-Headers"`
	/*

	 */
	AccessControlAllowMethods string `json:"Access-Control-Allow-Methods"`
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`
}

OptionsContainersGetDeleteOK CORS

swagger:response optionsContainersGetDeleteOK

func NewOptionsContainersGetDeleteOK

func NewOptionsContainersGetDeleteOK() *OptionsContainersGetDeleteOK

NewOptionsContainersGetDeleteOK creates OptionsContainersGetDeleteOK with default headers values

func (*OptionsContainersGetDeleteOK) SetAccessControlAllowHeaders

func (o *OptionsContainersGetDeleteOK) SetAccessControlAllowHeaders(accessControlAllowHeaders string)

SetAccessControlAllowHeaders sets the accessControlAllowHeaders to the options containers get delete o k response

func (*OptionsContainersGetDeleteOK) SetAccessControlAllowMethods

func (o *OptionsContainersGetDeleteOK) SetAccessControlAllowMethods(accessControlAllowMethods string)

SetAccessControlAllowMethods sets the accessControlAllowMethods to the options containers get delete o k response

func (*OptionsContainersGetDeleteOK) SetAccessControlAllowOrigin

func (o *OptionsContainersGetDeleteOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the options containers get delete o k response

func (*OptionsContainersGetDeleteOK) WithAccessControlAllowHeaders

func (o *OptionsContainersGetDeleteOK) WithAccessControlAllowHeaders(accessControlAllowHeaders string) *OptionsContainersGetDeleteOK

WithAccessControlAllowHeaders adds the accessControlAllowHeaders to the options containers get delete o k response

func (*OptionsContainersGetDeleteOK) WithAccessControlAllowMethods

func (o *OptionsContainersGetDeleteOK) WithAccessControlAllowMethods(accessControlAllowMethods string) *OptionsContainersGetDeleteOK

WithAccessControlAllowMethods adds the accessControlAllowMethods to the options containers get delete o k response

func (*OptionsContainersGetDeleteOK) WithAccessControlAllowOrigin

func (o *OptionsContainersGetDeleteOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *OptionsContainersGetDeleteOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the options containers get delete o k response

func (*OptionsContainersGetDeleteOK) WriteResponse

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

WriteResponse to the client

type OptionsContainersGetDeleteParams

type OptionsContainersGetDeleteParams struct {

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

	/*Base58 encoded container id.
	  Required: true
	  In: path
	*/
	ContainerID string
}

OptionsContainersGetDeleteParams contains all the bound params for the options containers get delete operation typically these are obtained from a http.Request

swagger:parameters optionsContainersGetDelete

func NewOptionsContainersGetDeleteParams

func NewOptionsContainersGetDeleteParams() OptionsContainersGetDeleteParams

NewOptionsContainersGetDeleteParams creates a new OptionsContainersGetDeleteParams object

There are no default values defined in the spec.

func (*OptionsContainersGetDeleteParams) 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 NewOptionsContainersGetDeleteParams() beforehand.

type OptionsContainersPutList

type OptionsContainersPutList struct {
	Context *middleware.Context
	Handler OptionsContainersPutListHandler
}
OptionsContainersPutList swagger:route OPTIONS /containers optionsContainersPutList

OptionsContainersPutList options containers put list API

func NewOptionsContainersPutList

func NewOptionsContainersPutList(ctx *middleware.Context, handler OptionsContainersPutListHandler) *OptionsContainersPutList

NewOptionsContainersPutList creates a new http.Handler for the options containers put list operation

func (*OptionsContainersPutList) ServeHTTP

type OptionsContainersPutListHandler

type OptionsContainersPutListHandler interface {
	Handle(OptionsContainersPutListParams) middleware.Responder
}

OptionsContainersPutListHandler interface for that can handle valid options containers put list params

type OptionsContainersPutListHandlerFunc

type OptionsContainersPutListHandlerFunc func(OptionsContainersPutListParams) middleware.Responder

OptionsContainersPutListHandlerFunc turns a function with the right signature into a options containers put list handler

func (OptionsContainersPutListHandlerFunc) Handle

Handle executing the request and returning a response

type OptionsContainersPutListOK

type OptionsContainersPutListOK struct {
	/*

	 */
	AccessControlAllowHeaders string `json:"Access-Control-Allow-Headers"`
	/*

	 */
	AccessControlAllowMethods string `json:"Access-Control-Allow-Methods"`
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`
}

OptionsContainersPutListOK CORS

swagger:response optionsContainersPutListOK

func NewOptionsContainersPutListOK

func NewOptionsContainersPutListOK() *OptionsContainersPutListOK

NewOptionsContainersPutListOK creates OptionsContainersPutListOK with default headers values

func (*OptionsContainersPutListOK) SetAccessControlAllowHeaders

func (o *OptionsContainersPutListOK) SetAccessControlAllowHeaders(accessControlAllowHeaders string)

SetAccessControlAllowHeaders sets the accessControlAllowHeaders to the options containers put list o k response

func (*OptionsContainersPutListOK) SetAccessControlAllowMethods

func (o *OptionsContainersPutListOK) SetAccessControlAllowMethods(accessControlAllowMethods string)

SetAccessControlAllowMethods sets the accessControlAllowMethods to the options containers put list o k response

func (*OptionsContainersPutListOK) SetAccessControlAllowOrigin

func (o *OptionsContainersPutListOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the options containers put list o k response

func (*OptionsContainersPutListOK) WithAccessControlAllowHeaders

func (o *OptionsContainersPutListOK) WithAccessControlAllowHeaders(accessControlAllowHeaders string) *OptionsContainersPutListOK

WithAccessControlAllowHeaders adds the accessControlAllowHeaders to the options containers put list o k response

func (*OptionsContainersPutListOK) WithAccessControlAllowMethods

func (o *OptionsContainersPutListOK) WithAccessControlAllowMethods(accessControlAllowMethods string) *OptionsContainersPutListOK

WithAccessControlAllowMethods adds the accessControlAllowMethods to the options containers put list o k response

func (*OptionsContainersPutListOK) WithAccessControlAllowOrigin

func (o *OptionsContainersPutListOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *OptionsContainersPutListOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the options containers put list o k response

func (*OptionsContainersPutListOK) WriteResponse

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

WriteResponse to the client

type OptionsContainersPutListParams

type OptionsContainersPutListParams struct {

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

OptionsContainersPutListParams contains all the bound params for the options containers put list operation typically these are obtained from a http.Request

swagger:parameters optionsContainersPutList

func NewOptionsContainersPutListParams

func NewOptionsContainersPutListParams() OptionsContainersPutListParams

NewOptionsContainersPutListParams creates a new OptionsContainersPutListParams object

There are no default values defined in the spec.

func (*OptionsContainersPutListParams) 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 NewOptionsContainersPutListParams() beforehand.

type OptionsObjectsGetDelete

type OptionsObjectsGetDelete struct {
	Context *middleware.Context
	Handler OptionsObjectsGetDeleteHandler
}
OptionsObjectsGetDelete swagger:route OPTIONS /objects/{containerId}/{objectId} optionsObjectsGetDelete

OptionsObjectsGetDelete options objects get delete API

func NewOptionsObjectsGetDelete

func NewOptionsObjectsGetDelete(ctx *middleware.Context, handler OptionsObjectsGetDeleteHandler) *OptionsObjectsGetDelete

NewOptionsObjectsGetDelete creates a new http.Handler for the options objects get delete operation

func (*OptionsObjectsGetDelete) ServeHTTP

type OptionsObjectsGetDeleteHandler

type OptionsObjectsGetDeleteHandler interface {
	Handle(OptionsObjectsGetDeleteParams) middleware.Responder
}

OptionsObjectsGetDeleteHandler interface for that can handle valid options objects get delete params

type OptionsObjectsGetDeleteHandlerFunc

type OptionsObjectsGetDeleteHandlerFunc func(OptionsObjectsGetDeleteParams) middleware.Responder

OptionsObjectsGetDeleteHandlerFunc turns a function with the right signature into a options objects get delete handler

func (OptionsObjectsGetDeleteHandlerFunc) Handle

Handle executing the request and returning a response

type OptionsObjectsGetDeleteOK

type OptionsObjectsGetDeleteOK struct {
	/*

	 */
	AccessControlAllowHeaders string `json:"Access-Control-Allow-Headers"`
	/*

	 */
	AccessControlAllowMethods string `json:"Access-Control-Allow-Methods"`
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`
}

OptionsObjectsGetDeleteOK CORS

swagger:response optionsObjectsGetDeleteOK

func NewOptionsObjectsGetDeleteOK

func NewOptionsObjectsGetDeleteOK() *OptionsObjectsGetDeleteOK

NewOptionsObjectsGetDeleteOK creates OptionsObjectsGetDeleteOK with default headers values

func (*OptionsObjectsGetDeleteOK) SetAccessControlAllowHeaders

func (o *OptionsObjectsGetDeleteOK) SetAccessControlAllowHeaders(accessControlAllowHeaders string)

SetAccessControlAllowHeaders sets the accessControlAllowHeaders to the options objects get delete o k response

func (*OptionsObjectsGetDeleteOK) SetAccessControlAllowMethods

func (o *OptionsObjectsGetDeleteOK) SetAccessControlAllowMethods(accessControlAllowMethods string)

SetAccessControlAllowMethods sets the accessControlAllowMethods to the options objects get delete o k response

func (*OptionsObjectsGetDeleteOK) SetAccessControlAllowOrigin

func (o *OptionsObjectsGetDeleteOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the options objects get delete o k response

func (*OptionsObjectsGetDeleteOK) WithAccessControlAllowHeaders

func (o *OptionsObjectsGetDeleteOK) WithAccessControlAllowHeaders(accessControlAllowHeaders string) *OptionsObjectsGetDeleteOK

WithAccessControlAllowHeaders adds the accessControlAllowHeaders to the options objects get delete o k response

func (*OptionsObjectsGetDeleteOK) WithAccessControlAllowMethods

func (o *OptionsObjectsGetDeleteOK) WithAccessControlAllowMethods(accessControlAllowMethods string) *OptionsObjectsGetDeleteOK

WithAccessControlAllowMethods adds the accessControlAllowMethods to the options objects get delete o k response

func (*OptionsObjectsGetDeleteOK) WithAccessControlAllowOrigin

func (o *OptionsObjectsGetDeleteOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *OptionsObjectsGetDeleteOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the options objects get delete o k response

func (*OptionsObjectsGetDeleteOK) WriteResponse

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

WriteResponse to the client

type OptionsObjectsGetDeleteParams

type OptionsObjectsGetDeleteParams struct {

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

	/*Base58 encoded container id.
	  Required: true
	  In: path
	*/
	ContainerID string
	/*Base58 encoded object id.
	  Required: true
	  In: path
	*/
	ObjectID string
}

OptionsObjectsGetDeleteParams contains all the bound params for the options objects get delete operation typically these are obtained from a http.Request

swagger:parameters optionsObjectsGetDelete

func NewOptionsObjectsGetDeleteParams

func NewOptionsObjectsGetDeleteParams() OptionsObjectsGetDeleteParams

NewOptionsObjectsGetDeleteParams creates a new OptionsObjectsGetDeleteParams object

There are no default values defined in the spec.

func (*OptionsObjectsGetDeleteParams) 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 NewOptionsObjectsGetDeleteParams() beforehand.

type OptionsObjectsPut

type OptionsObjectsPut struct {
	Context *middleware.Context
	Handler OptionsObjectsPutHandler
}
OptionsObjectsPut swagger:route OPTIONS /objects optionsObjectsPut

OptionsObjectsPut options objects put API

func NewOptionsObjectsPut

func NewOptionsObjectsPut(ctx *middleware.Context, handler OptionsObjectsPutHandler) *OptionsObjectsPut

NewOptionsObjectsPut creates a new http.Handler for the options objects put operation

func (*OptionsObjectsPut) ServeHTTP

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

type OptionsObjectsPutHandler

type OptionsObjectsPutHandler interface {
	Handle(OptionsObjectsPutParams) middleware.Responder
}

OptionsObjectsPutHandler interface for that can handle valid options objects put params

type OptionsObjectsPutHandlerFunc

type OptionsObjectsPutHandlerFunc func(OptionsObjectsPutParams) middleware.Responder

OptionsObjectsPutHandlerFunc turns a function with the right signature into a options objects put handler

func (OptionsObjectsPutHandlerFunc) Handle

Handle executing the request and returning a response

type OptionsObjectsPutOK

type OptionsObjectsPutOK struct {
	/*

	 */
	AccessControlAllowHeaders string `json:"Access-Control-Allow-Headers"`
	/*

	 */
	AccessControlAllowMethods string `json:"Access-Control-Allow-Methods"`
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`
}

OptionsObjectsPutOK CORS

swagger:response optionsObjectsPutOK

func NewOptionsObjectsPutOK

func NewOptionsObjectsPutOK() *OptionsObjectsPutOK

NewOptionsObjectsPutOK creates OptionsObjectsPutOK with default headers values

func (*OptionsObjectsPutOK) SetAccessControlAllowHeaders

func (o *OptionsObjectsPutOK) SetAccessControlAllowHeaders(accessControlAllowHeaders string)

SetAccessControlAllowHeaders sets the accessControlAllowHeaders to the options objects put o k response

func (*OptionsObjectsPutOK) SetAccessControlAllowMethods

func (o *OptionsObjectsPutOK) SetAccessControlAllowMethods(accessControlAllowMethods string)

SetAccessControlAllowMethods sets the accessControlAllowMethods to the options objects put o k response

func (*OptionsObjectsPutOK) SetAccessControlAllowOrigin

func (o *OptionsObjectsPutOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the options objects put o k response

func (*OptionsObjectsPutOK) WithAccessControlAllowHeaders

func (o *OptionsObjectsPutOK) WithAccessControlAllowHeaders(accessControlAllowHeaders string) *OptionsObjectsPutOK

WithAccessControlAllowHeaders adds the accessControlAllowHeaders to the options objects put o k response

func (*OptionsObjectsPutOK) WithAccessControlAllowMethods

func (o *OptionsObjectsPutOK) WithAccessControlAllowMethods(accessControlAllowMethods string) *OptionsObjectsPutOK

WithAccessControlAllowMethods adds the accessControlAllowMethods to the options objects put o k response

func (*OptionsObjectsPutOK) WithAccessControlAllowOrigin

func (o *OptionsObjectsPutOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *OptionsObjectsPutOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the options objects put o k response

func (*OptionsObjectsPutOK) WriteResponse

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

WriteResponse to the client

type OptionsObjectsPutParams

type OptionsObjectsPutParams struct {

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

OptionsObjectsPutParams contains all the bound params for the options objects put operation typically these are obtained from a http.Request

swagger:parameters optionsObjectsPut

func NewOptionsObjectsPutParams

func NewOptionsObjectsPutParams() OptionsObjectsPutParams

NewOptionsObjectsPutParams creates a new OptionsObjectsPutParams object

There are no default values defined in the spec.

func (*OptionsObjectsPutParams) BindRequest

func (o *OptionsObjectsPutParams) 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 NewOptionsObjectsPutParams() beforehand.

type OptionsObjectsSearch

type OptionsObjectsSearch struct {
	Context *middleware.Context
	Handler OptionsObjectsSearchHandler
}
OptionsObjectsSearch swagger:route OPTIONS /objects/{containerId}/search optionsObjectsSearch

OptionsObjectsSearch options objects search API

func NewOptionsObjectsSearch

func NewOptionsObjectsSearch(ctx *middleware.Context, handler OptionsObjectsSearchHandler) *OptionsObjectsSearch

NewOptionsObjectsSearch creates a new http.Handler for the options objects search operation

func (*OptionsObjectsSearch) ServeHTTP

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

type OptionsObjectsSearchHandler

type OptionsObjectsSearchHandler interface {
	Handle(OptionsObjectsSearchParams) middleware.Responder
}

OptionsObjectsSearchHandler interface for that can handle valid options objects search params

type OptionsObjectsSearchHandlerFunc

type OptionsObjectsSearchHandlerFunc func(OptionsObjectsSearchParams) middleware.Responder

OptionsObjectsSearchHandlerFunc turns a function with the right signature into a options objects search handler

func (OptionsObjectsSearchHandlerFunc) Handle

Handle executing the request and returning a response

type OptionsObjectsSearchOK

type OptionsObjectsSearchOK struct {
	/*

	 */
	AccessControlAllowHeaders string `json:"Access-Control-Allow-Headers"`
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`
}

OptionsObjectsSearchOK Base64 encoded stable binary marshaled bearer token.

swagger:response optionsObjectsSearchOK

func NewOptionsObjectsSearchOK

func NewOptionsObjectsSearchOK() *OptionsObjectsSearchOK

NewOptionsObjectsSearchOK creates OptionsObjectsSearchOK with default headers values

func (*OptionsObjectsSearchOK) SetAccessControlAllowHeaders

func (o *OptionsObjectsSearchOK) SetAccessControlAllowHeaders(accessControlAllowHeaders string)

SetAccessControlAllowHeaders sets the accessControlAllowHeaders to the options objects search o k response

func (*OptionsObjectsSearchOK) SetAccessControlAllowOrigin

func (o *OptionsObjectsSearchOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the options objects search o k response

func (*OptionsObjectsSearchOK) WithAccessControlAllowHeaders

func (o *OptionsObjectsSearchOK) WithAccessControlAllowHeaders(accessControlAllowHeaders string) *OptionsObjectsSearchOK

WithAccessControlAllowHeaders adds the accessControlAllowHeaders to the options objects search o k response

func (*OptionsObjectsSearchOK) WithAccessControlAllowOrigin

func (o *OptionsObjectsSearchOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *OptionsObjectsSearchOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the options objects search o k response

func (*OptionsObjectsSearchOK) WriteResponse

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

WriteResponse to the client

type OptionsObjectsSearchParams

type OptionsObjectsSearchParams struct {

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

	/*Base58 encoded container id.
	  Required: true
	  In: path
	*/
	ContainerID string
}

OptionsObjectsSearchParams contains all the bound params for the options objects search operation typically these are obtained from a http.Request

swagger:parameters optionsObjectsSearch

func NewOptionsObjectsSearchParams

func NewOptionsObjectsSearchParams() OptionsObjectsSearchParams

NewOptionsObjectsSearchParams creates a new OptionsObjectsSearchParams object

There are no default values defined in the spec.

func (*OptionsObjectsSearchParams) 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 NewOptionsObjectsSearchParams() beforehand.

type PutContainer

type PutContainer struct {
	Context *middleware.Context
	Handler PutContainerHandler
}
PutContainer swagger:route PUT /containers putContainer

Create new container in FrostFS

func NewPutContainer

func NewPutContainer(ctx *middleware.Context, handler PutContainerHandler) *PutContainer

NewPutContainer creates a new http.Handler for the put container operation

func (*PutContainer) ServeHTTP

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

type PutContainerBadRequest

type PutContainerBadRequest struct {

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

PutContainerBadRequest Bad request.

swagger:response putContainerBadRequest

func NewPutContainerBadRequest

func NewPutContainerBadRequest() *PutContainerBadRequest

NewPutContainerBadRequest creates PutContainerBadRequest with default headers values

func (*PutContainerBadRequest) SetPayload

func (o *PutContainerBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the put container bad request response

func (*PutContainerBadRequest) WithPayload

WithPayload adds the payload to the put container bad request response

func (*PutContainerBadRequest) WriteResponse

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

WriteResponse to the client

type PutContainerEACL

type PutContainerEACL struct {
	Context *middleware.Context
	Handler PutContainerEACLHandler
}
PutContainerEACL swagger:route PUT /containers/{containerId}/eacl putContainerEAcl

Set container EACL by id

func NewPutContainerEACL

func NewPutContainerEACL(ctx *middleware.Context, handler PutContainerEACLHandler) *PutContainerEACL

NewPutContainerEACL creates a new http.Handler for the put container e ACL operation

func (*PutContainerEACL) ServeHTTP

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

type PutContainerEACLBadRequest

type PutContainerEACLBadRequest struct {

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

PutContainerEACLBadRequest Bad request.

swagger:response putContainerEAclBadRequest

func NewPutContainerEACLBadRequest

func NewPutContainerEACLBadRequest() *PutContainerEACLBadRequest

NewPutContainerEACLBadRequest creates PutContainerEACLBadRequest with default headers values

func (*PutContainerEACLBadRequest) SetPayload

func (o *PutContainerEACLBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the put container e Acl bad request response

func (*PutContainerEACLBadRequest) WithPayload

WithPayload adds the payload to the put container e Acl bad request response

func (*PutContainerEACLBadRequest) WriteResponse

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

WriteResponse to the client

type PutContainerEACLHandler

type PutContainerEACLHandler interface {
	Handle(PutContainerEACLParams, *models.Principal) middleware.Responder
}

PutContainerEACLHandler interface for that can handle valid put container e ACL params

type PutContainerEACLHandlerFunc

type PutContainerEACLHandlerFunc func(PutContainerEACLParams, *models.Principal) middleware.Responder

PutContainerEACLHandlerFunc turns a function with the right signature into a put container e ACL handler

func (PutContainerEACLHandlerFunc) Handle

Handle executing the request and returning a response

type PutContainerEACLOK

type PutContainerEACLOK struct {
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`

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

PutContainerEACLOK Successful EACL updating.

swagger:response putContainerEAclOK

func NewPutContainerEACLOK

func NewPutContainerEACLOK() *PutContainerEACLOK

NewPutContainerEACLOK creates PutContainerEACLOK with default headers values

func (*PutContainerEACLOK) SetAccessControlAllowOrigin

func (o *PutContainerEACLOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the put container e Acl o k response

func (*PutContainerEACLOK) SetPayload

func (o *PutContainerEACLOK) SetPayload(payload *models.SuccessResponse)

SetPayload sets the payload to the put container e Acl o k response

func (*PutContainerEACLOK) WithAccessControlAllowOrigin

func (o *PutContainerEACLOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *PutContainerEACLOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the put container e Acl o k response

func (*PutContainerEACLOK) WithPayload

func (o *PutContainerEACLOK) WithPayload(payload *models.SuccessResponse) *PutContainerEACLOK

WithPayload adds the payload to the put container e Acl o k response

func (*PutContainerEACLOK) WriteResponse

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

WriteResponse to the client

type PutContainerEACLParams

type PutContainerEACLParams struct {

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

	/*Base64 encoded signature for bearer token.
	  In: header
	*/
	XBearerSignature *string
	/*Hex encoded the public part of the key that signed the bearer token.
	  In: header
	*/
	XBearerSignatureKey *string
	/*Base58 encoded container id.
	  Required: true
	  In: path
	*/
	ContainerID string
	/*EACL for container.
	  Required: true
	  In: body
	*/
	Eacl *models.Eacl
	/*Use wallet connect signature scheme or native FrostFS signature.
	  In: query
	  Default: false
	*/
	WalletConnect *bool
}

PutContainerEACLParams contains all the bound params for the put container e ACL operation typically these are obtained from a http.Request

swagger:parameters putContainerEACL

func NewPutContainerEACLParams

func NewPutContainerEACLParams() PutContainerEACLParams

NewPutContainerEACLParams creates a new PutContainerEACLParams object with the default values initialized.

func (*PutContainerEACLParams) BindRequest

func (o *PutContainerEACLParams) 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 NewPutContainerEACLParams() beforehand.

type PutContainerHandler

type PutContainerHandler interface {
	Handle(PutContainerParams, *models.Principal) middleware.Responder
}

PutContainerHandler interface for that can handle valid put container params

type PutContainerHandlerFunc

type PutContainerHandlerFunc func(PutContainerParams, *models.Principal) middleware.Responder

PutContainerHandlerFunc turns a function with the right signature into a put container handler

func (PutContainerHandlerFunc) Handle

Handle executing the request and returning a response

type PutContainerOK

type PutContainerOK struct {
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`

	/*
	  In: Body
	*/
	Payload *PutContainerOKBody `json:"body,omitempty"`
}

PutContainerOK Identifier of the created container.

swagger:response putContainerOK

func NewPutContainerOK

func NewPutContainerOK() *PutContainerOK

NewPutContainerOK creates PutContainerOK with default headers values

func (*PutContainerOK) SetAccessControlAllowOrigin

func (o *PutContainerOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the put container o k response

func (*PutContainerOK) SetPayload

func (o *PutContainerOK) SetPayload(payload *PutContainerOKBody)

SetPayload sets the payload to the put container o k response

func (*PutContainerOK) WithAccessControlAllowOrigin

func (o *PutContainerOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *PutContainerOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the put container o k response

func (*PutContainerOK) WithPayload

func (o *PutContainerOK) WithPayload(payload *PutContainerOKBody) *PutContainerOK

WithPayload adds the payload to the put container o k response

func (*PutContainerOK) WriteResponse

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

WriteResponse to the client

type PutContainerOKBody

type PutContainerOKBody struct {

	// container Id
	// Required: true
	ContainerID *string `json:"containerId"`
}

PutContainerOKBody put container o k body Example: {"containerId":"5HZTn5qkRnmgSz9gSrw22CEdPPk6nQhkwf2Mgzyvkikv"}

swagger:model PutContainerOKBody

func (*PutContainerOKBody) ContextValidate

func (o *PutContainerOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this put container o k body based on context it is used

func (*PutContainerOKBody) MarshalBinary

func (o *PutContainerOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PutContainerOKBody) UnmarshalBinary

func (o *PutContainerOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PutContainerOKBody) Validate

func (o *PutContainerOKBody) Validate(formats strfmt.Registry) error

Validate validates this put container o k body

type PutContainerParams

type PutContainerParams struct {

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

	/*Base64 encoded signature for bearer token.
	  In: header
	*/
	XBearerSignature *string
	/*Hex encoded the public part of the key that signed the bearer token.
	  In: header
	*/
	XBearerSignatureKey *string
	/*Container info
	  Required: true
	  In: body
	*/
	Container *models.ContainerPutInfo
	/*Provide this parameter to register container name in NNS service.
	  In: query
	  Default: false
	*/
	NameScopeGlobal *bool
	/*Use wallet connect signature scheme or native FrostFS signature.
	  In: query
	  Default: false
	*/
	WalletConnect *bool
}

PutContainerParams contains all the bound params for the put container operation typically these are obtained from a http.Request

swagger:parameters putContainer

func NewPutContainerParams

func NewPutContainerParams() PutContainerParams

NewPutContainerParams creates a new PutContainerParams object with the default values initialized.

func (*PutContainerParams) BindRequest

func (o *PutContainerParams) 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 NewPutContainerParams() beforehand.

type PutObject

type PutObject struct {
	Context *middleware.Context
	Handler PutObjectHandler
}
PutObject swagger:route PUT /objects putObject

Upload object to FrostFS

func NewPutObject

func NewPutObject(ctx *middleware.Context, handler PutObjectHandler) *PutObject

NewPutObject creates a new http.Handler for the put object operation

func (*PutObject) ServeHTTP

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

type PutObjectBadRequest

type PutObjectBadRequest struct {

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

PutObjectBadRequest Bad request

swagger:response putObjectBadRequest

func NewPutObjectBadRequest

func NewPutObjectBadRequest() *PutObjectBadRequest

NewPutObjectBadRequest creates PutObjectBadRequest with default headers values

func (*PutObjectBadRequest) SetPayload

func (o *PutObjectBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the put object bad request response

func (*PutObjectBadRequest) WithPayload

func (o *PutObjectBadRequest) WithPayload(payload *models.ErrorResponse) *PutObjectBadRequest

WithPayload adds the payload to the put object bad request response

func (*PutObjectBadRequest) WriteResponse

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

WriteResponse to the client

type PutObjectHandler

type PutObjectHandler interface {
	Handle(PutObjectParams, *models.Principal) middleware.Responder
}

PutObjectHandler interface for that can handle valid put object params

type PutObjectHandlerFunc

type PutObjectHandlerFunc func(PutObjectParams, *models.Principal) middleware.Responder

PutObjectHandlerFunc turns a function with the right signature into a put object handler

func (PutObjectHandlerFunc) Handle

Handle executing the request and returning a response

type PutObjectOK

type PutObjectOK struct {
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`

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

PutObjectOK Address of uploaded objects

swagger:response putObjectOK

func NewPutObjectOK

func NewPutObjectOK() *PutObjectOK

NewPutObjectOK creates PutObjectOK with default headers values

func (*PutObjectOK) SetAccessControlAllowOrigin

func (o *PutObjectOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the put object o k response

func (*PutObjectOK) SetPayload

func (o *PutObjectOK) SetPayload(payload *models.Address)

SetPayload sets the payload to the put object o k response

func (*PutObjectOK) WithAccessControlAllowOrigin

func (o *PutObjectOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *PutObjectOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the put object o k response

func (*PutObjectOK) WithPayload

func (o *PutObjectOK) WithPayload(payload *models.Address) *PutObjectOK

WithPayload adds the payload to the put object o k response

func (*PutObjectOK) WriteResponse

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

WriteResponse to the client

type PutObjectParams

type PutObjectParams struct {

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

	/*Base64 encoded signature for bearer token.
	  In: header
	*/
	XBearerSignature *string
	/*Hex encoded the public part of the key that signed the bearer token.
	  In: header
	*/
	XBearerSignatureKey *string
	/*Provided bearer token is final or gate should assemble it using signature.
	  In: query
	  Default: false
	*/
	FullBearer *bool
	/*Object info to upload
	  Required: true
	  In: body
	*/
	Object *models.ObjectUpload
	/*Use wallet connect signature scheme or native FrostFS signature.
	  In: query
	  Default: false
	*/
	WalletConnect *bool
}

PutObjectParams contains all the bound params for the put object operation typically these are obtained from a http.Request

swagger:parameters putObject

func NewPutObjectParams

func NewPutObjectParams() PutObjectParams

NewPutObjectParams creates a new PutObjectParams object with the default values initialized.

func (*PutObjectParams) BindRequest

func (o *PutObjectParams) 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 NewPutObjectParams() beforehand.

type SearchObjects

type SearchObjects struct {
	Context *middleware.Context
	Handler SearchObjectsHandler
}
SearchObjects swagger:route POST /objects/{containerId}/search searchObjects

Search objects by filters

func NewSearchObjects

func NewSearchObjects(ctx *middleware.Context, handler SearchObjectsHandler) *SearchObjects

NewSearchObjects creates a new http.Handler for the search objects operation

func (*SearchObjects) ServeHTTP

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

type SearchObjectsBadRequest

type SearchObjectsBadRequest struct {

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

SearchObjectsBadRequest Bad request

swagger:response searchObjectsBadRequest

func NewSearchObjectsBadRequest

func NewSearchObjectsBadRequest() *SearchObjectsBadRequest

NewSearchObjectsBadRequest creates SearchObjectsBadRequest with default headers values

func (*SearchObjectsBadRequest) SetPayload

func (o *SearchObjectsBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the search objects bad request response

func (*SearchObjectsBadRequest) WithPayload

WithPayload adds the payload to the search objects bad request response

func (*SearchObjectsBadRequest) WriteResponse

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

WriteResponse to the client

type SearchObjectsHandler

type SearchObjectsHandler interface {
	Handle(SearchObjectsParams, *models.Principal) middleware.Responder
}

SearchObjectsHandler interface for that can handle valid search objects params

type SearchObjectsHandlerFunc

type SearchObjectsHandlerFunc func(SearchObjectsParams, *models.Principal) middleware.Responder

SearchObjectsHandlerFunc turns a function with the right signature into a search objects handler

func (SearchObjectsHandlerFunc) Handle

Handle executing the request and returning a response

type SearchObjectsOK

type SearchObjectsOK struct {
	/*

	 */
	AccessControlAllowOrigin string `json:"Access-Control-Allow-Origin"`

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

SearchObjectsOK List of objects

swagger:response searchObjectsOK

func NewSearchObjectsOK

func NewSearchObjectsOK() *SearchObjectsOK

NewSearchObjectsOK creates SearchObjectsOK with default headers values

func (*SearchObjectsOK) SetAccessControlAllowOrigin

func (o *SearchObjectsOK) SetAccessControlAllowOrigin(accessControlAllowOrigin string)

SetAccessControlAllowOrigin sets the accessControlAllowOrigin to the search objects o k response

func (*SearchObjectsOK) SetPayload

func (o *SearchObjectsOK) SetPayload(payload *models.ObjectList)

SetPayload sets the payload to the search objects o k response

func (*SearchObjectsOK) WithAccessControlAllowOrigin

func (o *SearchObjectsOK) WithAccessControlAllowOrigin(accessControlAllowOrigin string) *SearchObjectsOK

WithAccessControlAllowOrigin adds the accessControlAllowOrigin to the search objects o k response

func (*SearchObjectsOK) WithPayload

func (o *SearchObjectsOK) WithPayload(payload *models.ObjectList) *SearchObjectsOK

WithPayload adds the payload to the search objects o k response

func (*SearchObjectsOK) WriteResponse

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

WriteResponse to the client

type SearchObjectsParams

type SearchObjectsParams struct {

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

	/*Base64 encoded signature for bearer token.
	  In: header
	*/
	XBearerSignature *string
	/*Hex encoded the public part of the key that signed the bearer token.
	  In: header
	*/
	XBearerSignatureKey *string
	/*Base58 encoded container id.
	  Required: true
	  In: path
	*/
	ContainerID string
	/*Provided bearer token is final or gate should assemble it using signature.
	  In: query
	  Default: false
	*/
	FullBearer *bool
	/*The numbers of containers to return.
	  Maximum: 10000
	  Minimum: 1
	  In: query
	  Default: 100
	*/
	Limit *int64
	/*The number of containers to skip before starting to collect the result set.
	  Minimum: 0
	  In: query
	  Default: 0
	*/
	Offset *int64
	/*Filters to search objects.
	  Required: true
	  In: body
	*/
	SearchFilters *models.SearchFilters
	/*Use wallet connect signature scheme or native FrostFS signature.
	  In: query
	  Default: false
	*/
	WalletConnect *bool
}

SearchObjectsParams contains all the bound params for the search objects operation typically these are obtained from a http.Request

swagger:parameters searchObjects

func NewSearchObjectsParams

func NewSearchObjectsParams() SearchObjectsParams

NewSearchObjectsParams creates a new SearchObjectsParams object with the default values initialized.

func (*SearchObjectsParams) BindRequest

func (o *SearchObjectsParams) 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 NewSearchObjectsParams() beforehand.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳