disk_stats

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIndexFiles

func GetIndexFiles(indexDir string, globs ...string) ([]string, error)

Types

type DiskStats

type DiskStats struct {
	All     uint64 `json:"all"`
	Free    uint64 `json:"free"`
	Indexed int64  `json:"indexed"`
	Used    uint64 `json:"used"`
}

func DiskUsage

func DiskUsage(path string) (DiskStats, error)

type RepoStats

type RepoStats struct {
	IndexFileCount uint16 `json:"index_file_count"`
	SizeInBytes    uint64 `json:"size_in_bytes"`
}

func GetFileSizeAndCount

func GetFileSizeAndCount(indexDir string, globs ...string) RepoStats

func (RepoStats) ToMap

func (r RepoStats) ToMap() map[string]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL