Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilParams = fmt.Errorf("shuttle message had nil params")
View Source
var ErrNoShuttleConnection = fmt.Errorf("no connection to requested shuttle")
Functions ¶
This section is empty.
Types ¶
type IManager ¶
type IManager interface {
Connect(c echo.Context, handle string, done chan struct{}) error
IsOnline(handle string) (bool, error)
CanAddContent(handle string) (bool, error)
HostName(handle string) (string, error)
StorageStats(handle string) (*util.ShuttleStorageStats, error)
AddrInfo(handle string) (*peer.AddrInfo, error)
GetShuttlesConfig(u *util.User) (interface{}, error)
StartTransfer(ctx context.Context, loc string, cd *model.ContentDeal, datacid cid.Cid) error
RestartTransfer(ctx context.Context, loc string, chanid datatransfer.ChannelID, d model.ContentDeal) error
GetTransferStatus(ctx context.Context, contLoc string, d *model.ContentDeal) (*filclient.ChannelState, error)
UnpinContent(ctx context.Context, loc string, conts []uint64) error
PinContent(ctx context.Context, loc string, cont util.Content, origins []*peer.AddrInfo) error
ConsolidateContent(ctx context.Context, loc string, contents []util.Content) error
AggregateContent(ctx context.Context, loc string, zone *util.Content, zoneContents []util.Content) error
CommPContent(ctx context.Context, loc string, data cid.Cid) error
SplitContent(ctx context.Context, loc string, cont uint64, size int64) error
GetLocationForRetrieval(ctx context.Context, cont util.Content) (string, error)
GetLocationForStorage(ctx context.Context, obj cid.Cid, uid uint) (string, error)
CleanupPreparedRequest(ctx context.Context, loc string, dbid uint, authToken string) error
PrepareForDataRequest(ctx context.Context, loc string, dbid uint, authToken string, propCid cid.Cid, payloadCid cid.Cid, size uint64) error
GetPreferredUploadEndpoints(u *util.User) ([]string, error)
GetByAuth(auth string) (*model.Shuttle, error)
}
Click to show internal directories.
Click to hide internal directories.