copier

package
v0.0.0-...-ebe581b Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocatedSlice

type LocatedSlice struct {
	Slice slicer.Slice
	Nodes blockchain.Nodes
}

LocatedSlice contains Nodes selected to store Slice

type ReplicaExpOptions

type ReplicaExpOptions struct {
	SliceID       string                       // expand sliceID of file
	PrivateKey    []byte                       // used for signature
	SelectedNodes blockchain.Nodes             // slice exist nodes list
	NewReplica    int                          // new replica number
	NodesList     blockchain.NodeHs            // all node lists
	SliceMetas    []blockchain.PublicSliceMeta // slice metas
	PairingConf   types.PairingChallengeConf   // pairing based challenge config
}

ReplicaExpOptions contains some options for expanding replicas.

type SelectOptions

type SelectOptions struct {
	Replica  uint32
	Excludes map[string]struct{} // nodeID -> struct{}
}

SelectOptions contains some options for selecting Storage Nodes

Replica is the number of replicas
Excludes is a reserved field, not used

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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