Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StoreSizeQuerier ¶
type StoreSizeQuerier interface {
// GetStoreSizes returns both total compressed size and latest file's uncompressed size
GetStoreSizes(ctx context.Context, path string) (*StoreSizes, error)
}
StoreSizeQuerier provides an interface for getting the total size of files in a storage location. This is structured to be easily portable back to dstore.
func NewStoreSizeQuerier ¶
func NewStoreSizeQuerier(storeURL string) (StoreSizeQuerier, error)
NewStoreSizeQuerier creates an appropriate size querier based on the storage URL
type StoreSizes ¶
type StoreSizes struct {
TotalCompressed int64 // Total size of all files (compressed)
LiveUncompressed *int64 // Uncompressed size from latest file metadata (nil if not available)
LiveCompressed int64 // Compressed size of latest file only
LatestFile string // Name of the latest file
}
StoreSizes contains the compressed (total) and uncompressed (live) sizes
Click to show internal directories.
Click to hide internal directories.