Documentation ¶
Index ¶
- func CheckReady(ctx context.Context, sock string) <-chan bool
- func Run(t *testing.T, cmd string)
- func RunWithCombinedOutput(cmd string) (string, error)
- func RunWithOutput(cmd string) string
- func RunWithoutOutput(t *testing.T, cmd string)
- type AccessPatternMetrics
- type BackendMetrics
- type BlobCacheMetrics
- type Container
- func (container *Container) AddFileToMount(t *testing.T, files map[string][]byte)
- func (container *Container) AddFileToUpper(t *testing.T, files map[string][]byte)
- func (container *Container) Destory(t *testing.T)
- func (container *Container) Mount(t *testing.T)
- func (container *Container) Serve(t *testing.T)
- type FileMetrics
- type GlobalMetrics
- type Image
- type InflightMetrics
- type Nydusd
- func (nydusd *Nydusd) GetAccessPatternMetrics(id string) ([]AccessPatternMetrics, error)
- func (nydusd *Nydusd) GetBackendMetrics(id string) (*BackendMetrics, error)
- func (nydusd *Nydusd) GetBlobCacheMetrics(id string) (*BlobCacheMetrics, error)
- func (nydusd *Nydusd) GetFilesMetrics(id string) (map[string]FileMetrics, error)
- func (nydusd *Nydusd) GetGlobalMetrics() (*GlobalMetrics, error)
- func (nydusd *Nydusd) GetInflightMetrics() (*InflightMetrics, error)
- func (nydusd *Nydusd) GetLatestFileMetrics() ([][]uint64, error)
- func (nydusd *Nydusd) Mount() error
- func (nydusd *Nydusd) MountByAPI(config NydusdConfig) error
- func (nydusd *Nydusd) Umount() error
- type NydusdConfig
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunWithCombinedOutput ¶
func RunWithOutput ¶
func RunWithoutOutput ¶
Types ¶
type AccessPatternMetrics ¶
type BackendMetrics ¶
type BackendMetrics struct { }
type BlobCacheMetrics ¶
type BlobCacheMetrics struct {
PrefetchDataAmount uint64 `json:"prefetch_data_amount"`
}
type Container ¶
type Container struct { WorkDir string // contains filtered or unexported fields }
func (*Container) AddFileToMount ¶
func (*Container) AddFileToUpper ¶
type FileMetrics ¶
type FileMetrics struct { }
type GlobalMetrics ¶
type InflightMetrics ¶
type InflightMetrics struct {
Ino uint64 `json:"inode"`
}
type Nydusd ¶
type Nydusd struct {
NydusdConfig
}
func NewNydusd ¶
func NewNydusd(conf NydusdConfig) (*Nydusd, error)
func (*Nydusd) GetAccessPatternMetrics ¶
func (nydusd *Nydusd) GetAccessPatternMetrics(id string) ([]AccessPatternMetrics, error)
func (*Nydusd) GetBackendMetrics ¶
func (nydusd *Nydusd) GetBackendMetrics(id string) (*BackendMetrics, error)
func (*Nydusd) GetBlobCacheMetrics ¶
func (nydusd *Nydusd) GetBlobCacheMetrics(id string) (*BlobCacheMetrics, error)
func (*Nydusd) GetFilesMetrics ¶
func (nydusd *Nydusd) GetFilesMetrics(id string) (map[string]FileMetrics, error)
func (*Nydusd) GetGlobalMetrics ¶
func (nydusd *Nydusd) GetGlobalMetrics() (*GlobalMetrics, error)
func (*Nydusd) GetInflightMetrics ¶
func (nydusd *Nydusd) GetInflightMetrics() (*InflightMetrics, error)
func (*Nydusd) GetLatestFileMetrics ¶
func (*Nydusd) MountByAPI ¶
func (nydusd *Nydusd) MountByAPI(config NydusdConfig) error
type NydusdConfig ¶
type NydusdConfig struct { EnablePrefetch bool NydusdPath string BootstrapPath string ConfigPath string BackendType string BackendConfig string BlobCacheDir string APISockPath string MountPath string RafsMode string DigestValidate bool CacheType string CacheCompressed bool IOStatsFiles bool LatestReadFiles bool AccessPattern bool PrefetchFiles []string AmplifyIO uint64 }
Click to show internal directories.
Click to hide internal directories.