internal

package
v0.44.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAttributePool

func GenerateAttributePool(count uint) []objectSDK.Attribute

func GenerateObject

func GenerateObject(options ...ObjectOption) *objectSDK.Object

func GenerateOwnerPool

func GenerateOwnerPool(count uint) []user.ID

func GeneratePayloadPool

func GeneratePayloadPool(count uint, size uint) [][]byte

func PopulateGraveyard

func PopulateGraveyard(
	ctx context.Context,
	db *meta.DB,
	group *errgroup.Group,
	workBufferSize int,
	count uint,
	factory func() *objectSDK.Object,
)

func PopulateLocked

func PopulateLocked(
	ctx context.Context,
	db *meta.DB,
	group *errgroup.Group,
	workBufferSize int,
	count uint,
	factory func() *objectSDK.Object,
)

func PopulateWithBigObjects

func PopulateWithBigObjects(
	ctx context.Context,
	db *meta.DB,
	group *errgroup.Group,
	count uint,
	factory func() *objectSDK.Object,
)

func PopulateWithObjects

func PopulateWithObjects(
	ctx context.Context,
	db *meta.DB,
	group *errgroup.Group,
	count uint,
	factory func() *objectSDK.Object,
)

Types

type EpochState

type EpochState struct{}

func (EpochState) CurrentEpoch

func (s EpochState) CurrentEpoch() uint64

type ObjectOption

type ObjectOption func(obj *objectSDK.Object)

func WithAttributesFromPool

func WithAttributesFromPool(pool []objectSDK.Attribute, count uint) ObjectOption

func WithContainerID

func WithContainerID(cid cid.ID) ObjectOption

func WithOwnerIDFromPool

func WithOwnerIDFromPool(pool []user.ID) ObjectOption

func WithPayloadFromPool

func WithPayloadFromPool(pool [][]byte) ObjectOption

func WithType

func WithType(typ objectSDK.Type) ObjectOption

Jump to

Keyboard shortcuts

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