ipfs

package
v1.5.0-alpha11 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSpecConfig added in v1.4.0

func NewSpecConfig() *models.SpecConfig

Types

type IPFSPublisher

type IPFSPublisher struct {
	IPFSClient ipfs.Client
}

func NewIPFSPublisher

func NewIPFSPublisher(
	ctx context.Context,
	cl ipfs.Client,
) (*IPFSPublisher, error)

func (*IPFSPublisher) IsInstalled

func (publisher *IPFSPublisher) IsInstalled(ctx context.Context) (bool, error)

func (*IPFSPublisher) PublishResult added in v0.3.24

func (publisher *IPFSPublisher) PublishResult(
	ctx context.Context,
	execution *models.Execution,
	resultPath string,
) (models.SpecConfig, error)

func (*IPFSPublisher) ValidateJob added in v0.3.26

func (publisher *IPFSPublisher) ValidateJob(ctx context.Context, j models.Job) error

type PublisherSpec added in v1.4.0

type PublisherSpec struct{}

PublisherSpec mainly exists as a form of documentation to indicate the IPFS publisher spec does not contain params

Jump to

Keyboard shortcuts

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