neofs

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 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 AuthmateNeoFS

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

AuthmateNeoFS is a mediator which implements authmate.NeoFS through pool.Pool.

func NewAuthmateNeoFS added in v0.20.0

func NewAuthmateNeoFS(p *pool.Pool) *AuthmateNeoFS

NewAuthmateNeoFS creates new AuthmateNeoFS using provided pool.Pool.

func (*AuthmateNeoFS) ContainerExists added in v0.20.0

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

ContainerExists implements authmate.NeoFS interface method.

func (*AuthmateNeoFS) CreateContainer

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

CreateContainer implements authmate.NeoFS interface method.

func (*AuthmateNeoFS) CreateObject

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

CreateObject implements authmate.NeoFS interface method.

func (*AuthmateNeoFS) ReadObjectPayload

func (x *AuthmateNeoFS) ReadObjectPayload(ctx context.Context, addr address.Address) ([]byte, error)

ReadObjectPayload implements authmate.NeoFS interface method.

func (*AuthmateNeoFS) TimeToEpoch added in v0.20.0

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

TimeToEpoch implements authmate.NeoFS interface method.

type NeoFS

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

NeoFS represents virtual connection to the NeoFS network. It is used to provide an interface to dependent packages which work with NeoFS.

func NewNeoFS added in v0.20.0

func NewNeoFS(p *pool.Pool) *NeoFS

NewNeoFS creates new NeoFS using provided pool.Pool.

func (*NeoFS) Container

func (x *NeoFS) Container(ctx context.Context, idCnr cid.ID) (*container.Container, error)

Container implements neofs.NeoFS interface method.

func (*NeoFS) ContainerEACL

func (x *NeoFS) ContainerEACL(ctx context.Context, id cid.ID) (*eacl.Table, error)

ContainerEACL implements neofs.NeoFS interface method.

func (*NeoFS) CreateContainer

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

CreateContainer implements neofs.NeoFS interface method.

func (*NeoFS) CreateObject

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

CreateObject implements neofs.NeoFS interface method.

func (*NeoFS) DeleteContainer

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

DeleteContainer implements neofs.NeoFS interface method.

func (*NeoFS) DeleteObject

func (x *NeoFS) DeleteObject(ctx context.Context, prm neofs.PrmObjectDelete) error

DeleteObject implements neofs.NeoFS interface method.

func (*NeoFS) ReadObject

func (x *NeoFS) ReadObject(ctx context.Context, prm neofs.PrmObjectRead) (*neofs.ObjectPart, error)

ReadObject implements neofs.NeoFS interface method.

func (*NeoFS) SelectObjects

func (x *NeoFS) SelectObjects(ctx context.Context, prm neofs.PrmObjectSelect) ([]oid.ID, error)

SelectObjects implements neofs.NeoFS interface method.

func (*NeoFS) SetContainerEACL

func (x *NeoFS) SetContainerEACL(ctx context.Context, table eacl.Table) error

SetContainerEACL implements neofs.NeoFS interface method.

func (*NeoFS) TimeToEpoch added in v0.20.0

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

TimeToEpoch implements neofs.NeoFS interface method.

func (*NeoFS) UserContainers

func (x *NeoFS) UserContainers(ctx context.Context, id user.ID) ([]cid.ID, error)

UserContainers implements neofs.NeoFS interface method.

type ResolverNeoFS added in v0.20.0

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

ResolverNeoFS represents virtual connection to the NeoFS network. It implements resolver.NeoFS.

func NewResolverNeoFS added in v0.20.0

func NewResolverNeoFS(p *pool.Pool) *ResolverNeoFS

NewResolverNeoFS creates new ResolverNeoFS using provided pool.Pool.

func (*ResolverNeoFS) SystemDNS added in v0.20.0

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

SystemDNS implements resolver.NeoFS interface method.

Jump to

Keyboard shortcuts

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