Documentation ¶
Index ¶
- func NewNoopExecutorsFactory() node.ExecutorsFactory
- func NewNoopExecutorsFactoryWithConfig(config noop_executor.ExecutorConfig) node.ExecutorsFactory
- func NewNoopNodeDependencyInjector() node.NodeDependencyInjector
- func NewNoopPublishersFactory() node.PublishersFactory
- func NewNoopPublishersFactoryWithConfig(config noop_publisher.PublisherConfig) node.PublishersFactory
- func NewNoopStorageProvidersFactory() node.StorageProvidersFactory
- func NewNoopStorageProvidersFactoryWithConfig(config noop_storage.StorageConfig) node.StorageProvidersFactory
- func NewNoopVerifiersFactory() node.VerifiersFactory
- func NewNoopVerifiersFactoryWithConfig(config noop_verifier.VerifierConfig) node.VerifiersFactory
- func ToIPFSClients(nodes []*node.Node) []ipfs.Client
- type CloserWithContext
- type DevStack
- func NewDevStack(ctx context.Context, cm *system.CleanupManager, options DevStackOptions, ...) (*DevStack, error)
- func NewDevStackForRunLocal(ctx context.Context, cm *system.CleanupManager, count int, jobGPU uint64) (*DevStack, error)
- func NewNoopDevStack(ctx context.Context, cm *system.CleanupManager, options DevStackOptions, ...) (*DevStack, error)
- func NewStandardDevStack(ctx context.Context, cm *system.CleanupManager, options DevStackOptions, ...) (*DevStack, error)
- type DevStackIPFS
- type DevStackOptions
- type LotusNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNoopExecutorsFactory ¶
func NewNoopExecutorsFactory() node.ExecutorsFactory
func NewNoopExecutorsFactoryWithConfig ¶
func NewNoopExecutorsFactoryWithConfig(config noop_executor.ExecutorConfig) node.ExecutorsFactory
func NewNoopNodeDependencyInjector ¶
func NewNoopNodeDependencyInjector() node.NodeDependencyInjector
Noop implementations of node factories used to mock certain components, which is useful for testing.
func NewNoopPublishersFactory ¶
func NewNoopPublishersFactory() node.PublishersFactory
func NewNoopPublishersFactoryWithConfig ¶ added in v0.3.25
func NewNoopPublishersFactoryWithConfig(config noop_publisher.PublisherConfig) node.PublishersFactory
func NewNoopStorageProvidersFactory ¶
func NewNoopStorageProvidersFactory() node.StorageProvidersFactory
func NewNoopStorageProvidersFactoryWithConfig ¶
func NewNoopStorageProvidersFactoryWithConfig(config noop_storage.StorageConfig) node.StorageProvidersFactory
func NewNoopVerifiersFactory ¶
func NewNoopVerifiersFactory() node.VerifiersFactory
func NewNoopVerifiersFactoryWithConfig ¶ added in v0.3.25
func NewNoopVerifiersFactoryWithConfig(config noop_verifier.VerifierConfig) node.VerifiersFactory
Types ¶
type CloserWithContext ¶
type DevStack ¶
func NewDevStack ¶
func NewDevStack( ctx context.Context, cm *system.CleanupManager, options DevStackOptions, computeConfig node.ComputeConfig, requesterNodeConfig node.RequesterConfig, injector node.NodeDependencyInjector, nodeOverrides ...node.NodeConfig, ) (*DevStack, error)
func NewDevStackForRunLocal ¶
func NewNoopDevStack ¶
func NewNoopDevStack( ctx context.Context, cm *system.CleanupManager, options DevStackOptions, computeConfig node.ComputeConfig, requesterNodeConfig node.RequesterConfig, ) (*DevStack, error)
func NewStandardDevStack ¶
func NewStandardDevStack( ctx context.Context, cm *system.CleanupManager, options DevStackOptions, computeConfig node.ComputeConfig, requesterNodeConfig node.RequesterConfig, ) (*DevStack, error)
func (*DevStack) GetNodeIds ¶
func (*DevStack) IPFSClients ¶
func (*DevStack) PrintNodeInfo ¶
type DevStackIPFS ¶
type DevStackIPFS struct { IPFSClients []ipfs.Client CleanupManager *system.CleanupManager }
func NewDevStackIPFS ¶
func NewDevStackIPFS(ctx context.Context, cm *system.CleanupManager, count int) (*DevStackIPFS, error)
NewDevStackIPFS creates a devstack but with only IPFS servers connected to each other
type DevStackOptions ¶
type DevStackOptions struct { NumberOfHybridNodes int // Number of nodes to start in the cluster NumberOfRequesterOnlyNodes int // Number of nodes to start in the cluster NumberOfComputeOnlyNodes int // Number of nodes to start in the cluster NumberOfBadComputeActors int // Number of compute nodes to be bad actors NumberOfBadRequesterActors int // Number of requester nodes to be bad actors Peer string // Connect node 0 to another network node PublicIPFSMode bool // Use public IPFS nodes LocalNetworkLotus bool FilecoinUnsealedPath string EstuaryAPIKey string SimulatorAddr string // if this is set, we will use the simulator transport SimulatorMode bool // if this is set, the first node will be a simulator node and will use the simulator transport CPUProfilingFile string MemoryProfilingFile string DisabledFeatures node.FeatureConfig AllowListedLocalPaths []string // Local paths that are allowed to be mounted into jobs }
Click to show internal directories.
Click to hide internal directories.