filecoinlotus

package
v0.3.29 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

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

func NewPublisher

func NewPublisher(
	ctx context.Context,
	cm *system.CleanupManager,
	config PublisherConfig,
) (*Publisher, error)

func (*Publisher) IsInstalled

func (l *Publisher) IsInstalled(ctx context.Context) (bool, error)

func (*Publisher) PublishResult added in v0.3.24

func (l *Publisher) PublishResult(
	ctx context.Context,
	executionID string,
	j model.Job,
	resultPath string,
) (model.StorageSpec, error)

func (*Publisher) ValidateJob added in v0.3.26

func (l *Publisher) ValidateJob(ctx context.Context, j model.Job) error

type PublisherConfig

type PublisherConfig struct {
	// How long the deal for the data should be created for
	StorageDuration time.Duration
	// Location of the Lotus configuration directory - either $LOTUS_PATH or ~/.lotus
	PathDir string
	// Directory to use when uploading content to Lotus - optional
	UploadDir string
	// How close miner should be when selecting the cheapest
	MaximumPing time.Duration
}

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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