bee

package
v0.15.9 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeeV2 added in v0.9.1

type BeeV2 struct {
	Addr swarm.Address
	// contains filtered or unexported fields
}

func (*BeeV2) Authenticate added in v0.9.1

func (b *BeeV2) Authenticate(ctx context.Context, password string) (string, error)

func (*BeeV2) DownloadChunk added in v0.9.1

func (b *BeeV2) DownloadChunk(ctx context.Context, ref swarm.Address) ([]byte, error)

func (*BeeV2) ExpectToHaveFile added in v0.9.1

func (b *BeeV2) ExpectToHaveFile(ctx context.Context, file File) error

func (*BeeV2) Name added in v0.9.1

func (b *BeeV2) Name() string

func (*BeeV2) NewChunkUploader added in v0.9.1

func (b *BeeV2) NewChunkUploader(ctx context.Context) (*ChunkUploader, error)

func (*BeeV2) RefreshAuthToken added in v0.9.1

func (b *BeeV2) RefreshAuthToken(ctx context.Context, token string) (string, error)

func (*BeeV2) Restricted added in v0.9.1

func (b *BeeV2) Restricted() bool

func (*BeeV2) UploadFile added in v0.9.1

func (b *BeeV2) UploadFile(ctx context.Context, file File) error

func (*BeeV2) UploadRandomFile added in v0.9.1

func (b *BeeV2) UploadRandomFile(ctx context.Context) (File, error)

NewRandomFile returns new pseudorandom file

func (*BeeV2) Withdraw added in v0.15.7

func (b *BeeV2) Withdraw(ctx context.Context, token, addr string) error

type Bees added in v0.9.1

type Bees []BeeV2

func (Bees) Filter added in v0.9.1

func (bb Bees) Filter(f FilterFunc) (out Bees)

func (Bees) ForEach added in v0.9.1

func (bb Bees) ForEach(c ConsumeFunc) error

type CaseOptions

type CaseOptions struct {
	FileName      string
	FileSize      int64
	GasPrice      string
	PostageAmount int64
	PostageLabel  string
	Seed          int64
	PostageDepth  uint64

	AdminPassword       string
	RestrictedGroupName string
	Role                string
}

type CheckCase

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

func NewCheckCase

func NewCheckCase(ctx context.Context, cluster orchestration.Cluster, caseOpts CaseOptions, logger logging.Logger) (*CheckCase, error)

func (*CheckCase) Balances

func (c *CheckCase) Balances(ctx context.Context) (balances orchestration.NodeGroupBalances, err error)

func (*CheckCase) Bee

func (c *CheckCase) Bee(index int) *BeeV2

func (*CheckCase) Bees added in v0.9.1

func (c *CheckCase) Bees() Bees

func (*CheckCase) LastBee

func (c *CheckCase) LastBee() *BeeV2

func (*CheckCase) RandomBee

func (c *CheckCase) RandomBee() *BeeV2

type ChunkUploader

type ChunkUploader struct {
	Overlay string
	// contains filtered or unexported fields
}

func (*ChunkUploader) Name

func (c *ChunkUploader) Name() string

func (*ChunkUploader) UploadRandomChunk

func (cu *ChunkUploader) UploadRandomChunk() (*chunkV2, error)

type ConsumeFunc added in v0.9.1

type ConsumeFunc func(b *BeeV2) error

type File

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

type FilterFunc added in v0.9.1

type FilterFunc func(b *BeeV2) bool

type Wallet added in v0.15.7

type Wallet struct {
	BZZ, Native *big.Int
}

Jump to

Keyboard shortcuts

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