deletesvc

package
v0.43.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkInfo

type NetworkInfo interface {
	netmap.State

	// Must return the lifespan of the tombstones
	// in the FrostFS epochs.
	TombstoneLifetime() (uint64, error)

	// Returns user ID of the local storage node. Result must not be nil.
	// New tombstone objects will have the result as an owner ID if removal is executed w/o a session.
	LocalNodeID() user.ID
}

NetworkInfo wraps network state and configurations.

type Option

type Option func(*cfg)

Option is a Service's constructor option.

func WithLogger

func WithLogger(l *logger.Logger) Option

WithLogger returns option to specify Delete service's logger.

type Prm

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

Prm groups parameters of Delete service call.

func (*Prm) SetCommonParameters

func (p *Prm) SetCommonParameters(common *util.CommonPrm)

SetCommonParameters sets common parameters of the operation.

func (*Prm) WithAddress

func (p *Prm) WithAddress(addr oid.Address)

WithAddress sets address of the object to be removed.

func (*Prm) WithTombstoneAddressTarget

func (p *Prm) WithTombstoneAddressTarget(w TombstoneAddressWriter)

WithTombstoneAddressTarget sets tombstone address destination.

type Service

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

Service utility serving requests of Object.Get service.

func New

func New(gs *getsvc.Service,
	ss *searchsvc.Service,
	ps *putsvc.Service,
	ni NetworkInfo,
	ks *util.KeyStorage,
	opts ...Option,
) *Service

New creates, initializes and returns utility serving Object.Get service requests.

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, prm Prm) error

Delete serves requests to remote the objects.

type TombstoneAddressWriter

type TombstoneAddressWriter interface {
	SetAddress(address oid.Address)
}

TombstoneAddressWriter is an interface of tombstone address setter.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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