Documentation ¶
Index ¶
- Variables
- type ChunkInfoSource
- type FileInfo
- func (f *FileInfo) AddFile(rootCid boson.Address) error
- func (f *FileInfo) DeleteFile(rootCid boson.Address) error
- func (f *FileInfo) GetChunkInfoDiscoverOverlays(rootCid boson.Address) []aurora.ChunkInfoOverlay
- func (f *FileInfo) GetChunkInfoServerOverlays(rootCid boson.Address) []aurora.ChunkInfoOverlay
- func (f *FileInfo) GetChunkInfoSource(rootCid boson.Address) ChunkInfoSource
- func (f *FileInfo) GetFileList(page filestore.Page, filter []filestore.Filter, sort filestore.Sort) ([]FileView, int)
- func (f *FileInfo) GetFileSize(rootCid boson.Address) (int64, error)
- func (f *FileInfo) ManifestView(ctx context.Context, nameOrHex string, pathVar string, depth int) (*ManifestNode, error)
- func (f *FileInfo) PinFile(rootCid boson.Address, pinned bool) error
- func (f *FileInfo) RegisterFile(rootCid boson.Address, registered bool) error
- type FileView
- type Interface
- type ManifestNode
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ChunkInfoSource ¶
type ChunkInfoSource struct { Len int `json:"len"` ChunkSource []aurora.ChunkSourceApi `json:"chunkSource"` }
type FileInfo ¶
type FileInfo struct {
// contains filtered or unexported fields
}
func (*FileInfo) GetChunkInfoDiscoverOverlays ¶
func (f *FileInfo) GetChunkInfoDiscoverOverlays(rootCid boson.Address) []aurora.ChunkInfoOverlay
func (*FileInfo) GetChunkInfoServerOverlays ¶
func (f *FileInfo) GetChunkInfoServerOverlays(rootCid boson.Address) []aurora.ChunkInfoOverlay
func (*FileInfo) GetChunkInfoSource ¶
func (f *FileInfo) GetChunkInfoSource(rootCid boson.Address) ChunkInfoSource
func (*FileInfo) GetFileList ¶
func (*FileInfo) ManifestView ¶
type Interface ¶
type Interface interface { GetFileList(page filestore.Page, filter []filestore.Filter, sort filestore.Sort) ([]FileView, int) GetFileSize(rootCid boson.Address) (int64, error) ManifestView(ctx context.Context, nameOrHex string, pathVar string, depth int) (*ManifestNode, error) AddFile(rootCid boson.Address) error DeleteFile(rootCid boson.Address) error PinFile(rootCid boson.Address, pinned bool) error RegisterFile(rootCid boson.Address, registered bool) error GetChunkInfoDiscoverOverlays(rootCid boson.Address) []aurora.ChunkInfoOverlay GetChunkInfoServerOverlays(rootCid boson.Address) []aurora.ChunkInfoOverlay GetChunkInfoSource(rootCid boson.Address) ChunkInfoSource }
type ManifestNode ¶
type ManifestNode struct { Type string `json:"type"` Hash string `json:"hash,omitempty"` Name string `json:"name,omitempty"` Size uint64 `json:"size,omitempty"` Extension string `json:"ext,omitempty"` Default string `json:"default,omitempty"` ErrDefault string `json:"errDefault,omitempty"` MimeType string `json:"mime,omitempty"` ReferenceLink string `json:"referenceLink,omitempty"` Nodes map[string]*ManifestNode `json:"sub,omitempty"` }
Click to show internal directories.
Click to hide internal directories.