Documentation ¶
Index ¶
- func ValidCacheDir(dir string) (match bool)
- type JuiceFileUtils
- func (j JuiceFileUtils) Count(juiceSubPath string) (total int64, err error)
- func (j JuiceFileUtils) DeleteCacheDir(dir string) (err error)
- func (j JuiceFileUtils) DeleteCacheDirs(dirs []string) (err error)
- func (j JuiceFileUtils) GetFileCount(juiceSubPath string) (fileCount int64, err error)
- func (j JuiceFileUtils) GetMetric(juicefsPath string) (metrics string, err error)
- func (j JuiceFileUtils) GetStatus(source string) (status string, err error)
- func (j JuiceFileUtils) GetUsedSpace(juicefsPath string) (usedSpace int64, err error)
- func (j JuiceFileUtils) IsExist(juiceSubPath string) (found bool, err error)
- func (j JuiceFileUtils) LoadMetadataWithoutTimeout(juicefsPath string) (err error)
- func (j JuiceFileUtils) Mkdir(juiceSubPath string) (err error)
- func (j JuiceFileUtils) QueryMetaDataInfoIntoFile(key KeyOfMetaDataFile, filename string) (value string, err error)
- type KeyOfMetaDataFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidCacheDir ¶ added in v0.8.5
Types ¶
type JuiceFileUtils ¶
type JuiceFileUtils struct {
// contains filtered or unexported fields
}
func NewJuiceFileUtils ¶
func (JuiceFileUtils) Count ¶
func (j JuiceFileUtils) Count(juiceSubPath string) (total int64, err error)
The count of the JuiceFS Filesystem
func (JuiceFileUtils) DeleteCacheDir ¶ added in v0.8.5
func (j JuiceFileUtils) DeleteCacheDir(dir string) (err error)
DeleteCacheDir delete cache dir in pod
func (JuiceFileUtils) DeleteCacheDirs ¶ added in v0.8.5
func (j JuiceFileUtils) DeleteCacheDirs(dirs []string) (err error)
DeleteCacheDirs delete cache dir in pod
func (JuiceFileUtils) GetFileCount ¶
func (j JuiceFileUtils) GetFileCount(juiceSubPath string) (fileCount int64, err error)
file count of the JuiceFS Filesystem (except folder) use "ls -lR xxx|grep "^-"| wc -l"
func (JuiceFileUtils) GetMetric ¶
func (j JuiceFileUtils) GetMetric(juicefsPath string) (metrics string, err error)
GetMetric Get pod metrics
func (JuiceFileUtils) GetStatus ¶ added in v0.8.0
func (j JuiceFileUtils) GetStatus(source string) (status string, err error)
GetStatus get status of volume
func (JuiceFileUtils) GetUsedSpace ¶ added in v0.8.0
func (j JuiceFileUtils) GetUsedSpace(juicefsPath string) (usedSpace int64, err error)
GetUsedSpace Get used space in byte use "df --block-size=1 |grep <juicefsPath>'"
func (JuiceFileUtils) IsExist ¶
func (j JuiceFileUtils) IsExist(juiceSubPath string) (found bool, err error)
IsExist checks if the juicePath exists
func (JuiceFileUtils) LoadMetadataWithoutTimeout ¶
func (j JuiceFileUtils) LoadMetadataWithoutTimeout(juicefsPath string) (err error)
Load the metadata without timeout
func (JuiceFileUtils) Mkdir ¶
func (j JuiceFileUtils) Mkdir(juiceSubPath string) (err error)
Mkdir mkdir in juicefs container
func (JuiceFileUtils) QueryMetaDataInfoIntoFile ¶
func (j JuiceFileUtils) QueryMetaDataInfoIntoFile(key KeyOfMetaDataFile, filename string) (value string, err error)
QueryMetaDataInfoIntoFile queries the metadata info file.
type KeyOfMetaDataFile ¶
type KeyOfMetaDataFile string
var ( DatasetName KeyOfMetaDataFile = "dataset" Namespace KeyOfMetaDataFile = "namespace" UfsTotal KeyOfMetaDataFile = "ufstotal" FileNum KeyOfMetaDataFile = "filenum" )
Click to show internal directories.
Click to hide internal directories.