Documentation ¶
Index ¶
- type AuthmateNeoFS
- func (x *AuthmateNeoFS) ContainerExists(ctx context.Context, idCnr cid.ID) error
- func (x *AuthmateNeoFS) CreateContainer(ctx context.Context, prm authmate.PrmContainerCreate) (*cid.ID, error)
- func (x *AuthmateNeoFS) CreateObject(ctx context.Context, prm tokens.PrmObjectCreate) (*oid.ID, error)
- func (x *AuthmateNeoFS) ReadObjectPayload(ctx context.Context, addr address.Address) ([]byte, error)
- func (x *AuthmateNeoFS) TimeToEpoch(ctx context.Context, futureTime time.Time) (uint64, uint64, error)
- type NeoFS
- func (x *NeoFS) Container(ctx context.Context, idCnr cid.ID) (*container.Container, error)
- func (x *NeoFS) ContainerEACL(ctx context.Context, id cid.ID) (*eacl.Table, error)
- func (x *NeoFS) CreateContainer(ctx context.Context, prm neofs.PrmContainerCreate) (*cid.ID, error)
- func (x *NeoFS) CreateObject(ctx context.Context, prm neofs.PrmObjectCreate) (*oid.ID, error)
- func (x *NeoFS) DeleteContainer(ctx context.Context, id cid.ID, token *session.Container) error
- func (x *NeoFS) DeleteObject(ctx context.Context, prm neofs.PrmObjectDelete) error
- func (x *NeoFS) ReadObject(ctx context.Context, prm neofs.PrmObjectRead) (*neofs.ObjectPart, error)
- func (x *NeoFS) SelectObjects(ctx context.Context, prm neofs.PrmObjectSelect) ([]oid.ID, error)
- func (x *NeoFS) SetContainerEACL(ctx context.Context, table eacl.Table) error
- func (x *NeoFS) TimeToEpoch(ctx context.Context, futureTime time.Time) (uint64, uint64, error)
- func (x *NeoFS) UserContainers(ctx context.Context, id user.ID) ([]cid.ID, error)
- type ResolverNeoFS
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
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 (*NeoFS) ContainerEACL ¶
ContainerEACL implements neofs.NeoFS interface method.
func (*NeoFS) CreateContainer ¶
CreateContainer implements neofs.NeoFS interface method.
func (*NeoFS) CreateObject ¶
CreateObject implements neofs.NeoFS interface method.
func (*NeoFS) DeleteContainer ¶
DeleteContainer implements neofs.NeoFS interface method.
func (*NeoFS) DeleteObject ¶
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 ¶
SelectObjects implements neofs.NeoFS interface method.
func (*NeoFS) SetContainerEACL ¶
SetContainerEACL implements neofs.NeoFS interface method.
func (*NeoFS) TimeToEpoch ¶ added in v0.20.0
TimeToEpoch 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.