interfaces

package
v0.0.0-...-4181ed6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPFSClient

type IPFSClient interface {
	GetClientFor(ctx context.Context, path string) (IPFSFilesAPI, error)
	IPFSFilesAPI
}

IPFSClient makes requests to an IPFS node.

type IPFSFilesAPI

type IPFSFilesAPI interface {
	FilesRead(ctx context.Context, path string, options ...ipfsapi.FilesOpt) (io.ReadCloser, error)
	FilesWrite(ctx context.Context, path string, data io.Reader, options ...ipfsapi.FilesOpt) error
	FilesRm(ctx context.Context, path string, force bool) error
	FilesCp(ctx context.Context, src string, dest string) error
	FilesStat(ctx context.Context, path string, options ...ipfsapi.FilesOpt) (*ipfsapi.FilesStatObject, error)
	FilesMkdir(ctx context.Context, path string, options ...ipfsapi.FilesOpt) error
	FilesLs(ctx context.Context, path string, options ...ipfsapi.FilesOpt) ([]*ipfsapi.MfsLsEntry, error)
	FilesMv(ctx context.Context, src string, dest string) error
}

IPFSFilesAPI makes requests to an IPFS node.

type StorageDriver

type StorageDriver interface {
	storagedriver.StorageDriver
}

StorageDriver is storage driver interface.

Directories

Path Synopsis
Package mock_interfaces is a generated GoMock package.
Package mock_interfaces is a generated GoMock package.

Jump to

Keyboard shortcuts

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