user

package
v2.5.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 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

This section is empty.

Functions

This section is empty.

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) CidSummary

CidSummary gives a summary of the storage and jobs state of the specified cid.

func (*Service) DefaultStorageConfig

DefaultStorageConfig calls ffs.DefaultStorageConfig.

func (*Service) Get

Get gets the data for a stored Cid.

func (*Service) ListStorageInfo

ListStorageInfo returns a list of information about all stored cids, filtered by cids if provided.

func (*Service) ListStorageJobs

ListStorageJobs lists StorageJobs according to the provided request parameters.

func (*Service) NewAddress

NewAddress calls ffs.NewAddr.

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

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) StorageInfo

StorageInfo returns the information about a stored Cid. If no information is available, since the Cid was never stored, it returns an error with codes.NotFound.

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