Documentation
¶
Index ¶
- Variables
- func GetInternalStructs(in interface{}) []interface{}
- type Curio
- type CurioMethods
- type CurioStruct
- func (s *CurioStruct) AllocatePieceToSector(p0 context.Context, p1 address.Address, p2 lpiece.PieceDealInfo, p3 int64, ...) (lapi.SectorOffset, error)
- func (s *CurioStruct) LogList(p0 context.Context) ([]string, error)
- func (s *CurioStruct) LogSetLevel(p0 context.Context, p1 string, p2 string) error
- func (s *CurioStruct) Shutdown(p0 context.Context) error
- func (s *CurioStruct) StorageAddLocal(p0 context.Context, p1 string) error
- func (s *CurioStruct) StorageDetachLocal(p0 context.Context, p1 string) error
- func (s *CurioStruct) StorageFindSector(p0 context.Context, p1 abi.SectorID, p2 storiface.SectorFileType, ...) ([]storiface.SectorStorageInfo, error)
- func (s *CurioStruct) StorageInfo(p0 context.Context, p1 storiface.ID) (storiface.StorageInfo, error)
- func (s *CurioStruct) StorageInit(p0 context.Context, p1 string, p2 storiface.LocalStorageMeta) error
- func (s *CurioStruct) StorageList(p0 context.Context) (map[storiface.ID][]storiface.Decl, error)
- func (s *CurioStruct) StorageLocal(p0 context.Context) (map[storiface.ID]string, error)
- func (s *CurioStruct) StorageStat(p0 context.Context, p1 storiface.ID) (fsutil.FsStat, error)
- func (s *CurioStruct) Version(p0 context.Context) (lapi.Version, error)
- type CurioStub
- func (s *CurioStub) AllocatePieceToSector(p0 context.Context, p1 address.Address, p2 lpiece.PieceDealInfo, p3 int64, ...) (lapi.SectorOffset, error)
- func (s *CurioStub) LogList(p0 context.Context) ([]string, error)
- func (s *CurioStub) LogSetLevel(p0 context.Context, p1 string, p2 string) error
- func (s *CurioStub) Shutdown(p0 context.Context) error
- func (s *CurioStub) StorageAddLocal(p0 context.Context, p1 string) error
- func (s *CurioStub) StorageDetachLocal(p0 context.Context, p1 string) error
- func (s *CurioStub) StorageFindSector(p0 context.Context, p1 abi.SectorID, p2 storiface.SectorFileType, ...) ([]storiface.SectorStorageInfo, error)
- func (s *CurioStub) StorageInfo(p0 context.Context, p1 storiface.ID) (storiface.StorageInfo, error)
- func (s *CurioStub) StorageInit(p0 context.Context, p1 string, p2 storiface.LocalStorageMeta) error
- func (s *CurioStub) StorageList(p0 context.Context) (map[storiface.ID][]storiface.Decl, error)
- func (s *CurioStub) StorageLocal(p0 context.Context) (map[storiface.ID]string, error)
- func (s *CurioStub) StorageStat(p0 context.Context, p1 storiface.ID) (fsutil.FsStat, error)
- func (s *CurioStub) Version(p0 context.Context) (lapi.Version, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotSupported = xerrors.New("method not supported")
Functions ¶
func GetInternalStructs ¶
func GetInternalStructs(in interface{}) []interface{}
GetInternalStructs extracts all pointers to 'Internal' sub-structs from the provided pointer to a proxy struct
Types ¶
type Curio ¶
type Curio interface {
Version(context.Context) (lapi.Version, error) //perm:admin
Shutdown(context.Context) error //perm:admin
AllocatePieceToSector(ctx context.Context, maddr address.Address, piece lpiece.PieceDealInfo, rawSize int64, source url.URL, header http.Header) (lapi.SectorOffset, error) //perm:write
StorageInit(ctx context.Context, path string, opts storiface.LocalStorageMeta) error //perm:admin
StorageAddLocal(ctx context.Context, path string) error //perm:admin
StorageDetachLocal(ctx context.Context, path string) error //perm:admin
StorageList(ctx context.Context) (map[storiface.ID][]storiface.Decl, error) //perm:admin
StorageLocal(ctx context.Context) (map[storiface.ID]string, error) //perm:admin
StorageStat(ctx context.Context, id storiface.ID) (fsutil.FsStat, error) //perm:admin
StorageInfo(context.Context, storiface.ID) (storiface.StorageInfo, error) //perm:admin
StorageFindSector(ctx context.Context, sector abi.SectorID, ft storiface.SectorFileType, ssize abi.SectorSize, allowFetch bool) ([]storiface.SectorStorageInfo, error) //perm:admin
LogList(ctx context.Context) ([]string, error) //perm:read
LogSetLevel(ctx context.Context, subsystem, level string) error //perm:admin
}
type CurioMethods ¶
type CurioMethods struct {
AllocatePieceToSector func(p0 context.Context, p1 address.Address, p2 lpiece.PieceDealInfo, p3 int64, p4 url.URL, p5 http.Header) (lapi.SectorOffset, error) `perm:"write"`
LogList func(p0 context.Context) ([]string, error) `perm:"read"`
LogSetLevel func(p0 context.Context, p1 string, p2 string) error `perm:"admin"`
Shutdown func(p0 context.Context) error `perm:"admin"`
StorageAddLocal func(p0 context.Context, p1 string) error `perm:"admin"`
StorageDetachLocal func(p0 context.Context, p1 string) error `perm:"admin"`
StorageFindSector func(p0 context.Context, p1 abi.SectorID, p2 storiface.SectorFileType, p3 abi.SectorSize, p4 bool) ([]storiface.SectorStorageInfo, error) `perm:"admin"`
StorageInfo func(p0 context.Context, p1 storiface.ID) (storiface.StorageInfo, error) `perm:"admin"`
StorageInit func(p0 context.Context, p1 string, p2 storiface.LocalStorageMeta) error `perm:"admin"`
StorageList func(p0 context.Context) (map[storiface.ID][]storiface.Decl, error) `perm:"admin"`
StorageLocal func(p0 context.Context) (map[storiface.ID]string, error) `perm:"admin"`
StorageStat func(p0 context.Context, p1 storiface.ID) (fsutil.FsStat, error) `perm:"admin"`
Version func(p0 context.Context) (lapi.Version, error) `perm:"admin"`
}
type CurioStruct ¶
type CurioStruct struct {
Internal CurioMethods
}
func (*CurioStruct) AllocatePieceToSector ¶
func (s *CurioStruct) AllocatePieceToSector(p0 context.Context, p1 address.Address, p2 lpiece.PieceDealInfo, p3 int64, p4 url.URL, p5 http.Header) (lapi.SectorOffset, error)
func (*CurioStruct) LogSetLevel ¶
func (*CurioStruct) StorageAddLocal ¶
func (s *CurioStruct) StorageAddLocal(p0 context.Context, p1 string) error
func (*CurioStruct) StorageDetachLocal ¶
func (s *CurioStruct) StorageDetachLocal(p0 context.Context, p1 string) error
func (*CurioStruct) StorageFindSector ¶
func (s *CurioStruct) StorageFindSector(p0 context.Context, p1 abi.SectorID, p2 storiface.SectorFileType, p3 abi.SectorSize, p4 bool) ([]storiface.SectorStorageInfo, error)
func (*CurioStruct) StorageInfo ¶
func (s *CurioStruct) StorageInfo(p0 context.Context, p1 storiface.ID) (storiface.StorageInfo, error)
func (*CurioStruct) StorageInit ¶
func (s *CurioStruct) StorageInit(p0 context.Context, p1 string, p2 storiface.LocalStorageMeta) error
func (*CurioStruct) StorageList ¶
func (*CurioStruct) StorageLocal ¶
func (*CurioStruct) StorageStat ¶
type CurioStub ¶
type CurioStub struct {
}
func (*CurioStub) AllocatePieceToSector ¶
func (*CurioStub) LogSetLevel ¶
func (*CurioStub) StorageAddLocal ¶
func (*CurioStub) StorageDetachLocal ¶
func (*CurioStub) StorageFindSector ¶
func (s *CurioStub) StorageFindSector(p0 context.Context, p1 abi.SectorID, p2 storiface.SectorFileType, p3 abi.SectorSize, p4 bool) ([]storiface.SectorStorageInfo, error)
func (*CurioStub) StorageInfo ¶
func (*CurioStub) StorageInit ¶
func (*CurioStub) StorageList ¶
func (*CurioStub) StorageLocal ¶
func (*CurioStub) StorageStat ¶
Click to show internal directories.
Click to hide internal directories.