user

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrEmptyAuthToken is returned when the provided auth-token is unknown.
	ErrEmptyAuthToken = errors.New("auth token can't be empty")
)

Functions

func ToProtoStorageJobs

func ToProtoStorageJobs(jobs []ffs.StorageJob) ([]*userPb.StorageJob, error)

ToProtoStorageJobs converts a slice of ffs.StorageJobs to proto Jobs.

func ToRPCStorageConfig

func ToRPCStorageConfig(config ffs.StorageConfig) *userPb.StorageConfig

ToRPCStorageConfig converts from a ffs.StorageConfig to a rpc StorageConfig.

Types

type Service

type Service struct {
	userPb.UnimplementedUserServiceServer
	// contains filtered or unexported fields
}

Service implements the Powergate API.

func New

New creates a new powergate Service.

func (*Service) Addresses

Addresses calls ffs.Addrs.

func (*Service) ApplyStorageConfig

ApplyStorageConfig applies the provided cid storage config.

func (*Service) Balance

Balance returns the balance for an address.

func (*Service) BuildInfo

BuildInfo returns information about the powergate build.

func (*Service) CancelStorageJob

CancelStorageJob calls API.CancelJob.

func (*Service) CidInfo

CidInfo returns information about cids managed by the FFS instance.

func (*Service) DefaultStorageConfig

DefaultStorageConfig calls ffs.DefaultStorageConfig.

func (*Service) ExecutingStorageJobs

ExecutingStorageJobs returns a list of executing storage jobs.

func (*Service) Get

Get gets the data for a stored Cid.

func (*Service) LatestFinalStorageJobs

LatestFinalStorageJobs returns a list of latest final storage jobs.

func (*Service) LatestSuccessfulStorageJobs

LatestSuccessfulStorageJobs returns a list of latest successful storage jobs.

func (*Service) NewAddress

NewAddress calls ffs.NewAddr.

func (*Service) QueuedStorageJobs

QueuedStorageJobs returns a list of queued storage jobs.

func (*Service) Remove

Remove calls ffs.Remove.

func (*Service) ReplaceData

ReplaceData calls ffs.Replace.

func (*Service) RetrievalDealRecords

RetrievalDealRecords calls ffs.ListRetrievalDealRecords.

func (*Service) SendFil

SendFil sends fil from a managed address to any other address.

func (*Service) SetDefaultStorageConfig

SetDefaultStorageConfig sets a new config to be used by default.

func (*Service) SignMessage

SignMessage calls ffs.SignMessage.

func (*Service) Stage

Stage allows to stage-pin a stream of data in Hot-Storage in preparation for pushing a storage configuration.

func (*Service) StageCid added in v1.2.2

StageCid allows to stage-pin a cid in Hot-Storage in preparation for pushing a storage configuration.

func (*Service) StorageConfigForJob

StorageConfigForJob returns the StorageConfig associated with the job id.

func (*Service) StorageDealRecords

StorageDealRecords calls ffs.ListStorageDealRecords.

func (*Service) StorageJob

StorageJob calls API.GetStorageJob.

func (*Service) StorageJobsSummary

StorageJobsSummary returns a summary of all storage jobs.

func (*Service) UserIdentifier

UserIdentifier returns the API instance id.

func (*Service) VerifyMessage

VerifyMessage calls ffs.VerifyMessage.

func (*Service) WatchLogs

WatchLogs returns a stream of human-readable messages related to executions of a Cid. The listener is automatically unsubscribed when the client closes the stream.

func (*Service) WatchStorageJobs

WatchStorageJobs calls API.WatchJobs.

Jump to

Keyboard shortcuts

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