frostfs

package
v0.30.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrObjectAccessDenied

func IsErrObjectAccessDenied(err error) (string, bool)

func IsTimeoutError

func IsTimeoutError(err error) bool

func UnwrapErr

func UnwrapErr(err error) error

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

func NewFrostFS(p *pool.Pool) *FrostFS

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

func (x *FrostFS) CreateObject(ctx context.Context, prm handler.PrmObjectCreate) (oid.ID, error)

CreateObject implements frostfs.FrostFS interface method.

func (*FrostFS) GetEpochDurations

func (x *FrostFS) GetEpochDurations(ctx context.Context) (*utils.EpochDurations, error)

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

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.

func (*ResolverFrostFS) SystemDNS

func (x *ResolverFrostFS) SystemDNS(ctx context.Context) (string, error)

SystemDNS implements resolver.FrostFS interface method.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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