Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrAlreadyPushed indicates a dataset has already been published // TODO (b5) - move this into lib/remote ErrAlreadyPushed = fmt.Errorf("this dataset has already been published") )
Functions ¶
This section is empty.
Types ¶
type Actor ¶
Actor is a peer in a network simulation
func NewActor ¶
func NewActor(ctx context.Context, runenv *runtime.RunEnv, opts ...func(cfg *Config)) (*Actor, error)
NewActor creates an actor instance
func (*Actor) GenerateDatasetVersion ¶
GenerateDatasetVersion creates & Saves a new version of a dataset Datasets are generic CSV datasets with only the number of rows configurable We're trying to test the network here. Size should be the only real concern
func (*Actor) ID ¶
ID provides a string identifier for this peer TODO (b5) - this should be a logbook identifier
type ActorInfo ¶
type ActorInfo struct { Seq int // sequence number within the test Peername string PeerID string AddrInfo *peer.AddrInfo }
ActorInfo carries details about an actor
type Config ¶
type Config struct { QriConfig *config.Config EventHandlers map[event.Topic]func(payload interface{}) }
Config
type RemoteHooks ¶
type RemoteHooks struct {
// contains filtered or unexported fields
}
RemoteHooks implements remote behaviour for cloud backend to store and pin datasets. Remote invokes cloud infrastructure on successful push
func (*RemoteHooks) RemoteOptionsFunc ¶
func (r *RemoteHooks) RemoteOptionsFunc() lib.Option
RemoteOptionsFunc creates a function to connect hooks to a remote at initialization