Documentation
¶
Index ¶
- Constants
- type GraphsplitManifest
- type GraphsplitManifestEntry
- type Manifest
- func (m *Manifest) Add(entries ...*cadre.File)
- func (m *Manifest) Count() int
- func (m *Manifest) EntryNames() []string
- func (m *Manifest) Graphsplit() GraphsplitManifest
- func (m *Manifest) Id() string
- func (m *Manifest) Index() int
- func (m *Manifest) Namespace() string
- func (m *Manifest) Path() string
- func (m *Manifest) ReadAllEntries() ([]*cadre.File, error)
- func (m *Manifest) ReadEntries(ctx context.Context) (<-chan *cadre.File, error)
- func (m *Manifest) Size() int64
- func (m *Manifest) String() string
- func (m *Manifest) WriteTo(dst string) error
- type Metadata
Constants ¶
View Source
const ( MetadataFileName = "metadata.json" EntriesFileName = "entries.csv" EntriesCSVFields = "name,path,size,sha256,mtime" )
View Source
const (
GraphsplitManifestFileName = "manifest.csv"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphsplitManifest ¶
type GraphsplitManifest struct {
File cadre.File
Entries []GraphsplitManifestEntry
}
func NewGraphsplitManifest ¶
func NewGraphsplitManifest(path string) (GraphsplitManifest, error)
func (GraphsplitManifest) String ¶
func (m GraphsplitManifest) String() string
type GraphsplitManifestEntry ¶
type GraphsplitManifestEntry struct {
FileName string `json:"file_name"`
PayloadCID string `json:"payload_cid"`
PayloadHash string `json:"payload_hash"`
PayloadSize int64 `json:"payload_size"`
PieceCID string `json:"piece_cid"`
PieceHash string `json:"piece_hash"`
PieceSize int64 `json:"piece_size"`
}
func (GraphsplitManifestEntry) String ¶
func (e GraphsplitManifestEntry) String() string
type Manifest ¶
type Manifest struct {
// contains filtered or unexported fields
}
func NewManifest ¶
func (*Manifest) EntryNames ¶
func (*Manifest) Graphsplit ¶
func (m *Manifest) Graphsplit() GraphsplitManifest
func (*Manifest) ReadEntries ¶
Click to show internal directories.
Click to hide internal directories.