Documentation ¶
Index ¶
- func IsErrObjectAccessDenied(err error) (string, bool)
- func IsTimeoutError(err error) bool
- func UnwrapErr(err error) error
- type FrostFS
- func (x *FrostFS) Container(ctx context.Context, layerPrm handler.PrmContainer) (*container.Container, error)
- func (x *FrostFS) CreateObject(ctx context.Context, prm handler.PrmObjectCreate) (oid.ID, error)
- func (x *FrostFS) GetEpochDurations(ctx context.Context) (*utils.EpochDurations, error)
- func (x *FrostFS) ReadObject(ctx context.Context, prm handler.PrmObjectRead) (*handler.ObjectPart, error)
- func (x *FrostFS) SearchObjects(ctx context.Context, prm handler.PrmObjectSearch) (handler.ResObjectSearch, error)
- type ResolverFrostFS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrObjectAccessDenied ¶
func IsTimeoutError ¶
Types ¶
type FrostFS ¶
type FrostFS struct {
// contains filtered or unexported fields
}
FrostFS represents virtual connection to the FrostFS network. It is used to provide an interface to dependent packages which work with FrostFS.
func NewFrostFS ¶
NewFrostFS creates new FrostFS using provided pool.Pool.
func (*FrostFS) Container ¶
func (x *FrostFS) Container(ctx context.Context, layerPrm handler.PrmContainer) (*container.Container, error)
Container implements frostfs.FrostFS interface method.
func (*FrostFS) CreateObject ¶
CreateObject implements frostfs.FrostFS interface method.
func (*FrostFS) GetEpochDurations ¶
GetEpochDurations implements frostfs.FrostFS interface method.
func (*FrostFS) ReadObject ¶
func (x *FrostFS) ReadObject(ctx context.Context, prm handler.PrmObjectRead) (*handler.ObjectPart, error)
ReadObject implements frostfs.FrostFS interface method.
func (*FrostFS) SearchObjects ¶
func (x *FrostFS) SearchObjects(ctx context.Context, prm handler.PrmObjectSearch) (handler.ResObjectSearch, error)
SearchObjects implements frostfs.FrostFS interface method.
type ResolverFrostFS ¶
type ResolverFrostFS struct {
// contains filtered or unexported fields
}
ResolverFrostFS represents virtual connection to the FrostFS network. It implements resolver.FrostFS.
func NewResolverFrostFS ¶
func NewResolverFrostFS(p *pool.Pool) *ResolverFrostFS
NewResolverFrostFS creates new ResolverFrostFS using provided pool.Pool.