tsourse

package
v0.42.0-rc.8 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

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

Source represents wrapper over the object service that allows checking if a tombstone is available in FrostFS network.

Must be created via NewSource function. `var` and `Source{}` declarations leads to undefined behaviour and may lead to panics.

func NewSource

func NewSource(p TombstoneSourcePrm) Source

NewSource creates, initialize and returns local tombstone Source. The returned structure is ready to use.

Panics if any of the provided options does not allow constructing a valid tombstone local Source.

func (Source) Tombstone

func (s Source) Tombstone(ctx context.Context, a oid.Address, _ uint64) (*objectSDK.Object, error)

Tombstone checks if the engine stores tombstone. Returns nil, nil if the tombstone has been removed or marked for removal.

type TombstoneSourcePrm

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

TombstoneSourcePrm groups required parameters for Source creation.

func (*TombstoneSourcePrm) SetGetService

func (s *TombstoneSourcePrm) SetGetService(v *getsvc.Service)

SetGetService sets object service.

Jump to

Keyboard shortcuts

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