frostfs

package
v0.30.4 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthmateFrostFS

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

AuthmateFrostFS is a mediator which implements authmate.FrostFS through pool.Pool.

func NewAuthmateFrostFS

func NewAuthmateFrostFS(frostFS layer.FrostFS) *AuthmateFrostFS

NewAuthmateFrostFS creates new AuthmateFrostFS using provided pool.Pool.

func (*AuthmateFrostFS) ContainerExists

func (x *AuthmateFrostFS) ContainerExists(ctx context.Context, idCnr cid.ID) error

ContainerExists implements authmate.FrostFS interface method.

func (*AuthmateFrostFS) CreateContainer

func (x *AuthmateFrostFS) CreateContainer(ctx context.Context, prm authmate.PrmContainerCreate) (cid.ID, error)

CreateContainer implements authmate.FrostFS interface method.

func (*AuthmateFrostFS) CreateObject

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

CreateObject implements authmate.FrostFS interface method.

func (*AuthmateFrostFS) GetCredsObject added in v0.30.0

func (x *AuthmateFrostFS) GetCredsObject(ctx context.Context, addr oid.Address) (*object.Object, error)

GetCredsObject implements authmate.FrostFS interface method.

func (*AuthmateFrostFS) TimeToEpoch

func (x *AuthmateFrostFS) TimeToEpoch(ctx context.Context, futureTime time.Time) (uint64, uint64, error)

TimeToEpoch implements authmate.FrostFS interface method.

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, key *keys.PrivateKey) *FrostFS

NewFrostFS creates new FrostFS using provided pool.Pool.

func (*FrostFS) Container

func (x *FrostFS) Container(ctx context.Context, layerPrm layer.PrmContainer) (*container.Container, error)

Container implements frostfs.FrostFS interface method.

func (*FrostFS) CreateContainer

CreateContainer implements frostfs.FrostFS interface method.

func (*FrostFS) CreateObject

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

CreateObject implements frostfs.FrostFS interface method.

func (*FrostFS) DeleteContainer

func (x *FrostFS) DeleteContainer(ctx context.Context, id cid.ID, token *session.Container) error

DeleteContainer implements frostfs.FrostFS interface method.

func (*FrostFS) DeleteObject

func (x *FrostFS) DeleteObject(ctx context.Context, prm layer.PrmObjectDelete) error

DeleteObject implements frostfs.FrostFS interface method.

func (*FrostFS) ReadObject

func (x *FrostFS) ReadObject(ctx context.Context, prm layer.PrmObjectRead) (*layer.ObjectPart, error)

ReadObject implements frostfs.FrostFS interface method.

func (*FrostFS) SearchObjects added in v0.28.0

func (x *FrostFS) SearchObjects(ctx context.Context, prm layer.PrmObjectSearch) ([]oid.ID, error)

SearchObjects implements frostfs.FrostFS interface method.

func (*FrostFS) TimeToEpoch

func (x *FrostFS) TimeToEpoch(ctx context.Context, now, futureTime time.Time) (uint64, uint64, error)

TimeToEpoch implements frostfs.FrostFS interface method.

func (*FrostFS) UserContainers

func (x *FrostFS) UserContainers(ctx context.Context, layerPrm layer.PrmUserContainers) ([]cid.ID, error)

UserContainers implements frostfs.FrostFS interface method.

type PoolStatistic

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

PoolStatistic is a mediator which implements authmate.FrostFS through pool.Pool.

func NewPoolStatistic

func NewPoolStatistic(p *pool.Pool) *PoolStatistic

NewPoolStatistic creates new PoolStatistic using provided pool.Pool.

func (*PoolStatistic) Statistic

func (x *PoolStatistic) Statistic() pool.Statistic

Statistic implements 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