Documentation ¶
Index ¶
- func NewNoopNodeDependencyInjector() node.NodeDependencyInjector
- 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
- type NoopExecutorsFactory
- type NoopPublishersFactory
- type NoopStorageProvidersFactory
- type NoopVerifiersFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNoopNodeDependencyInjector ¶
func NewNoopNodeDependencyInjector() node.NodeDependencyInjector
Noop implementations of node factories used to mock certain components, which is useful for testing.
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 ¶
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 }
type LotusNode ¶
type NoopExecutorsFactory ¶
type NoopExecutorsFactory struct {
// contains filtered or unexported fields
}
func NewNoopExecutorsFactory ¶
func NewNoopExecutorsFactory() *NoopExecutorsFactory
func NewNoopExecutorsFactoryWithConfig ¶
func NewNoopExecutorsFactoryWithConfig(config noop_executor.ExecutorConfig) *NoopExecutorsFactory
func (*NoopExecutorsFactory) Get ¶
func (f *NoopExecutorsFactory) Get( ctx context.Context, nodeConfig node.NodeConfig) (executor.ExecutorProvider, error)
type NoopPublishersFactory ¶
type NoopPublishersFactory struct {
// contains filtered or unexported fields
}
func NewNoopPublishersFactory ¶
func NewNoopPublishersFactory() *NoopPublishersFactory
func NewNoopPublishersFactoryWithConfig ¶ added in v0.3.25
func NewNoopPublishersFactoryWithConfig(config noop_publisher.PublisherConfig) *NoopPublishersFactory
func (*NoopPublishersFactory) Get ¶
func (f *NoopPublishersFactory) Get( ctx context.Context, nodeConfig node.NodeConfig) (publisher.PublisherProvider, error)
type NoopStorageProvidersFactory ¶
type NoopStorageProvidersFactory struct {
// contains filtered or unexported fields
}
func NewNoopStorageProvidersFactory ¶
func NewNoopStorageProvidersFactory() *NoopStorageProvidersFactory
func NewNoopStorageProvidersFactoryWithConfig ¶
func NewNoopStorageProvidersFactoryWithConfig(config noop_storage.StorageConfig) *NoopStorageProvidersFactory
func (*NoopStorageProvidersFactory) Get ¶
func (f *NoopStorageProvidersFactory) Get( ctx context.Context, nodeConfig node.NodeConfig) (storage.StorageProvider, error)
type NoopVerifiersFactory ¶
type NoopVerifiersFactory struct {
// contains filtered or unexported fields
}
func NewNoopVerifiersFactory ¶
func NewNoopVerifiersFactory() *NoopVerifiersFactory
func NewNoopVerifiersFactoryWithConfig ¶ added in v0.3.25
func NewNoopVerifiersFactoryWithConfig(config noop_verifier.VerifierConfig) *NoopVerifiersFactory
func (*NoopVerifiersFactory) Get ¶
func (f *NoopVerifiersFactory) Get( ctx context.Context, nodeConfig node.NodeConfig) (verifier.VerifierProvider, error)
Click to show internal directories.
Click to hide internal directories.