operations

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ThinFileUtils

type ThinFileUtils struct {
	// contains filtered or unexported fields
}

func NewThinFileUtils

func NewThinFileUtils(podName string, containerName string, namespace string, log logr.Logger) ThinFileUtils

func (ThinFileUtils) GetFileCount

func (t ThinFileUtils) GetFileCount(path string) (fileCount int64, err error)

func (ThinFileUtils) GetUsedSpace

func (t ThinFileUtils) GetUsedSpace(path string) (usedSpace int64, err error)

GetUsedSpace Get used space in byte use "df --block-size=1 |grep <path>'"

func (ThinFileUtils) LoadMetadataWithoutTimeout

func (t ThinFileUtils) LoadMetadataWithoutTimeout(path string) (err error)

Load the metadata without timeout

Jump to

Keyboard shortcuts

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