Documentation ¶
Index ¶
- type AuthmateFrostFS
- func (x *AuthmateFrostFS) ContainerExists(ctx context.Context, idCnr cid.ID) error
- func (x *AuthmateFrostFS) CreateContainer(ctx context.Context, prm authmate.PrmContainerCreate) (cid.ID, error)
- func (x *AuthmateFrostFS) CreateObject(ctx context.Context, prm tokens.PrmObjectCreate) (oid.ID, error)
- func (x *AuthmateFrostFS) GetCredsPayload(ctx context.Context, addr oid.Address) ([]byte, error)
- func (x *AuthmateFrostFS) TimeToEpoch(ctx context.Context, futureTime time.Time) (uint64, uint64, error)
- type FrostFS
- func (x *FrostFS) Container(ctx context.Context, layerPrm layer.PrmContainer) (*container.Container, error)
- func (x *FrostFS) ContainerEACL(ctx context.Context, layerPrm layer.PrmContainerEACL) (*eacl.Table, error)
- func (x *FrostFS) CreateContainer(ctx context.Context, prm layer.PrmContainerCreate) (*layer.ContainerCreateResult, error)
- func (x *FrostFS) CreateObject(ctx context.Context, prm layer.PrmObjectCreate) (oid.ID, error)
- func (x *FrostFS) DeleteContainer(ctx context.Context, id cid.ID, token *session.Container) error
- func (x *FrostFS) DeleteObject(ctx context.Context, prm layer.PrmObjectDelete) error
- func (x *FrostFS) ReadObject(ctx context.Context, prm layer.PrmObjectRead) (*layer.ObjectPart, error)
- func (x *FrostFS) SearchObjects(ctx context.Context, prm layer.PrmObjectSearch) ([]oid.ID, error)
- func (x *FrostFS) SetContainerEACL(ctx context.Context, table eacl.Table, sessionToken *session.Container) error
- func (x *FrostFS) TimeToEpoch(ctx context.Context, now, futureTime time.Time) (uint64, uint64, error)
- func (x *FrostFS) UserContainers(ctx context.Context, layerPrm layer.PrmUserContainers) ([]cid.ID, error)
- type PoolStatistic
- type ResolverFrostFS
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(p *pool.Pool, key *keys.PrivateKey) *AuthmateFrostFS
NewAuthmateFrostFS creates new AuthmateFrostFS using provided pool.Pool.
func (*AuthmateFrostFS) ContainerExists ¶
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) GetCredsPayload ¶ added in v0.28.0
GetCredsPayload 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) ContainerEACL ¶
func (x *FrostFS) ContainerEACL(ctx context.Context, layerPrm layer.PrmContainerEACL) (*eacl.Table, error)
ContainerEACL implements frostfs.FrostFS interface method.
func (*FrostFS) CreateContainer ¶
func (x *FrostFS) CreateContainer(ctx context.Context, prm layer.PrmContainerCreate) (*layer.ContainerCreateResult, error)
CreateContainer implements frostfs.FrostFS interface method.
func (*FrostFS) CreateObject ¶
CreateObject implements frostfs.FrostFS interface method.
func (*FrostFS) DeleteContainer ¶
DeleteContainer implements frostfs.FrostFS interface method.
func (*FrostFS) DeleteObject ¶
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
SearchObjects implements frostfs.FrostFS interface method.
func (*FrostFS) SetContainerEACL ¶
func (x *FrostFS) SetContainerEACL(ctx context.Context, table eacl.Table, sessionToken *session.Container) error
SetContainerEACL 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.