package types
import "github.com/containerd/nydus-snapshotter/pkg/daemon/types"
Index ¶
- type BuildTimeInfo
- type CacheMetrics
- type DaemonInfo
- func (info *DaemonInfo) DaemonState() DaemonState
- func (info *DaemonInfo) DaemonVersion() BuildTimeInfo
- type DaemonState
- type ErrorMessage
- type FsMetrics
- type InflightMetrics
- type MountRequest
Types ¶
type BuildTimeInfo ¶
type BuildTimeInfo struct {
PackageVer string `json:"package_ver"`
GitCommit string `json:"git_commit"`
BuildTime string `json:"build_time"`
Profile string `json:"profile"`
Rustc string `json:"rustc"`
}
type CacheMetrics ¶
type CacheMetrics struct {
ID string `json:"id"`
UnderlyingFiles []string `json:"underlying_files"`
StorePath string `json:"store_path"`
PartialHits uint64 `json:"partial_hits"`
WholeHits uint64 `json:"whole_hits"`
Total uint64 `json:"total"`
EntriesCount uint64 `json:"entries_count"`
PrefetchDataAmount uint64 `json:"prefetch_data_amount"`
PrefetchRequestsCount uint64 `json:"prefetch_requests_count"`
PrefetchWorkers uint `json:"prefetch_workers"`
PrefetchUnmergedChunks uint64 `json:"prefetch_unmerged_chunks"`
PrefetchCumulativeTimeMillis uint64 `json:"prefetch_cumulative_time_millis"`
PrefetchBeginTimeSecs uint64 `json:"prefetch_begin_time_secs"`
PrefetchBeginTimeMillis uint64 `json:"prefetch_begin_time_millis"`
PrefetchEndTimeSecs uint64 `json:"prefetch_end_time_secs"`
PrefetchEndTimeMillis uint64 `json:"prefetch_end_time_millis"`
BufferedBackendSize uint64 `json:"buffered_backend_size"`
DataAllReady bool `json:"data_all_ready"`
}
type DaemonInfo ¶
type DaemonInfo struct {
ID string `json:"id"`
Version BuildTimeInfo `json:"version"`
State DaemonState `json:"state"`
}
func (*DaemonInfo) DaemonState ¶
func (info *DaemonInfo) DaemonState() DaemonState
func (*DaemonInfo) DaemonVersion ¶
func (info *DaemonInfo) DaemonVersion() BuildTimeInfo
type DaemonState ¶
type DaemonState string
const ( DaemonStateUnknown DaemonState = "UNKNOWN" DaemonStateInit DaemonState = "INIT" DaemonStateReady DaemonState = "READY" DaemonStateRunning DaemonState = "RUNNING" DaemonStateDied DaemonState = "DIED" DaemonStateDestroyed DaemonState = "DESTROYED" )
type ErrorMessage ¶
type FsMetrics ¶
type FsMetrics struct {
FilesAccountEnabled bool `json:"files_account_enabled"`
AccessPatternEnabled bool `json:"access_pattern_enabled"`
MeasureLatency bool `json:"measure_latency"`
ID string `json:"id"`
DataRead uint64 `json:"data_read"`
BlockCountRead []uint64 `json:"block_count_read"`
FopHits []uint64 `json:"fop_hits"`
FopErrors []uint64 `json:"fop_errors"`
FopCumulativeLatencyTotal []uint64 `json:"fop_cumulative_latency_total"`
ReadLatencyDist []uint64 `json:"read_latency_dist"`
NrOpens uint64 `json:"nr_opens"`
}
type InflightMetrics ¶
type InflightMetrics struct {
Values []struct {
Inode uint64 `json:"inode"`
Opcode uint32 `json:"opcode"`
Unique uint64 `json:"unique"`
TimestampSecs uint64 `json:"timestamp_secs"`
}
}
type MountRequest ¶
type MountRequest struct {
FsType string `json:"fs_type"`
Source string `json:"source"`
Config string `json:"config"`
}
func NewMountRequest ¶
func NewMountRequest(source, config string) MountRequest
Source Files ¶
- Version
- v0.15.15 (latest)
- Published
- Apr 17, 2026
- Platform
- linux/amd64
- Last checked
- 1 hour ago –
Tools for package owners.