SYMBOL INDEX (1789 symbols across 192 files) FILE: cmd/containerd-nydus-grpc/main.go function main (line 25) | func main() { FILE: cmd/containerd-nydus-grpc/snapshotter.go function Start (line 30) | func Start(ctx context.Context, cfg *config.SnapshotterConfig) error { type ServeOptions (line 65) | type ServeOptions struct function Serve (line 73) | func Serve(ctx context.Context, sn snapshots.Snapshotter, options ServeO... function ensureSocketNotExists (line 113) | func ensureSocketNotExists(listeningSocketPath string) error { FILE: cmd/converter/main.go function main (line 9) | func main() { FILE: cmd/nydus-overlayfs/main.go constant extraOptionKey (line 18) | extraOptionKey = "extraoption=" constant kataVolumeOptionKey (line 21) | kataVolumeOptionKey = "io.katacontainers.volume=" type mountArgs (line 34) | type mountArgs struct function parseArgs (line 40) | func parseArgs(args []string) (*mountArgs, error) { function parseOptions (line 68) | func parseOptions(options []string) (int, string) { function longestCommonPrefix (line 112) | func longestCommonPrefix(strs []string) string { function compactLowerdirOption (line 142) | func compactLowerdirOption(options []string) (string, []string) { function run (line 214) | func run(args cli.Args) error { function main (line 246) | func main() { FILE: cmd/nydus-overlayfs/main_test.go function TestLongestCommonPrefix (line 18) | func TestLongestCommonPrefix(t *testing.T) { function TestCompactLowerdirOption (line 59) | func TestCompactLowerdirOption(t *testing.T) { function TestCompactLowerdirOption_RealWorldSizeSavings (line 149) | func TestCompactLowerdirOption_RealWorldSizeSavings(t *testing.T) { function TestParseArgs (line 170) | func TestParseArgs(t *testing.T) { FILE: cmd/optimizer-nri-plugin/main.go constant defaultEvents (line 33) | defaultEvents = "StartContainer,StopContainer" constant defaultServerPath (line 34) | defaultServerPath = "/usr/local/bin/optimizer-server" constant defaultPersistDir (line 35) | defaultPersistDir = "/opt/nri/optimizer/results" type PluginConfig (line 38) | type PluginConfig struct type PluginArgs (line 48) | type PluginArgs struct type Flags (line 55) | type Flags struct function buildFlags (line 60) | func buildFlags(args *PluginArgs) []cli.Flag { function NewPluginFlags (line 110) | func NewPluginFlags() *Flags { type plugin (line 118) | type plugin struct method Configure (line 137) | func (p *plugin) Configure(ctx context.Context, config, runtime, versi... method StartContainer (line 161) | func (p *plugin) StartContainer(_ context.Context, _ *api.PodSandbox, ... method StopContainer (line 188) | func (p *plugin) StopContainer(_ context.Context, _ *api.PodSandbox, c... method onClose (line 219) | func (p *plugin) onClose() { constant imageNameLabel (line 134) | imageNameLabel = "io.kubernetes.cri.image-name" function GetImageName (line 203) | func GetImageName(annotations map[string]string) (string, string, error) { function main (line 226) | func main() { FILE: cmd/prefetchfiles-nri-plugin/main.go constant endpointPrefetch (line 32) | endpointPrefetch = "/api/v1/prefetch" constant defaultEvents (line 33) | defaultEvents = "RunPodSandbox" constant defaultSystemControllerAddress (line 34) | defaultSystemControllerAddress = "/run/containerd-nydus/system.sock" constant defaultPrefetchConfigDir (line 35) | defaultPrefetchConfigDir = "/etc/nydus" constant nydusPrefetchAnnotation (line 36) | nydusPrefetchAnnotation = "containerd.io/nydus-prefetch" type PluginArgs (line 39) | type PluginArgs struct type Flags (line 45) | type Flags struct function buildFlags (line 50) | func buildFlags(args *PluginArgs) []cli.Flag { function NewPluginFlags (line 71) | func NewPluginFlags() *Flags { type plugin (line 79) | type plugin struct method RunPodSandbox (line 119) | func (p *plugin) RunPodSandbox(ctx context.Context, pod *api.PodSandbo... function sendDataOverHTTP (line 92) | func sendDataOverHTTP(data string, endpoint, sock string) error { function main (line 134) | func main() { FILE: config/config.go function init (line 27) | func init() { type DaemonMode (line 35) | type DaemonMode constant DaemonModeMultiple (line 39) | DaemonModeMultiple DaemonMode = DaemonMode(constant.DaemonModeMultiple) constant DaemonModeDedicated (line 41) | DaemonModeDedicated DaemonMode = DaemonMode(constant.DaemonModeDedicated) constant DaemonModeShared (line 43) | DaemonModeShared DaemonMode = DaemonMode(constant.DaemonModeShared) constant DaemonModeNone (line 49) | DaemonModeNone DaemonMode = DaemonMode(constant.DaemonModeNone) constant DaemonModeInvalid (line 50) | DaemonModeInvalid DaemonMode = DaemonMode(constant.DaemonModeInvalid) constant MaxRootPathLen (line 60) | MaxRootPathLen = 70 function parseDaemonMode (line 63) | func parseDaemonMode(m string) (DaemonMode, error) { type DaemonRecoverPolicy (line 78) | type DaemonRecoverPolicy method String (line 87) | func (p DaemonRecoverPolicy) String() string { constant RecoverPolicyInvalid (line 81) | RecoverPolicyInvalid DaemonRecoverPolicy = iota constant RecoverPolicyNone (line 82) | RecoverPolicyNone constant RecoverPolicyRestart (line 83) | RecoverPolicyRestart constant RecoverPolicyFailover (line 84) | RecoverPolicyFailover function ParseRecoverPolicy (line 104) | func ParseRecoverPolicy(p string) (DaemonRecoverPolicy, error) { constant FsDriverBlockdev (line 114) | FsDriverBlockdev string = constant.FsDriverBlockdev constant FsDriverFusedev (line 115) | FsDriverFusedev string = constant.FsDriverFusedev constant FsDriverFscache (line 116) | FsDriverFscache string = constant.FsDriverFscache constant FsDriverNodev (line 117) | FsDriverNodev string = constant.FsDriverNodev constant FsDriverProxy (line 118) | FsDriverProxy string = constant.FsDriverProxy constant FailoverPolicyNone (line 122) | FailoverPolicyNone string = constant.FailoverPolicyNone constant FailoverPolicyResend (line 123) | FailoverPolicyResend string = constant.FailoverPolicyResend constant FailoverPolicyFlush (line 124) | FailoverPolicyFlush string = constant.FailoverPolicyFlush type Experimental (line 127) | type Experimental struct type TarfsConfig (line 135) | type TarfsConfig struct type CgroupConfig (line 143) | type CgroupConfig struct type DaemonConfig (line 149) | type DaemonConfig struct type LoggingConfig (line 160) | type LoggingConfig struct type ImageConfig (line 172) | type ImageConfig struct type SnapshotConfig (line 179) | type SnapshotConfig struct type CacheManagerConfig (line 191) | type CacheManagerConfig struct type AuthConfig (line 200) | type AuthConfig struct type RemoteConfig (line 218) | type RemoteConfig struct type MirrorsConfig (line 225) | type MirrorsConfig struct type MetricsConfig (line 229) | type MetricsConfig struct type DebugConfig (line 238) | type DebugConfig struct type SystemControllerConfig (line 243) | type SystemControllerConfig struct type SnapshotterConfig (line 253) | type SnapshotterConfig struct function LoadSnapshotterConfig (line 279) | func LoadSnapshotterConfig(path string) (*SnapshotterConfig, error) { function MergeConfig (line 299) | func MergeConfig(to, from *SnapshotterConfig) error { function ValidateConfig (line 308) | func ValidateConfig(c *SnapshotterConfig) error { function ParseParameters (line 366) | func ParseParameters(args *flags.Args, cfg *SnapshotterConfig) error { function ParseCgroupConfig (line 424) | func ParseCgroupConfig(config CgroupConfig) (cgroup.Config, error) { FILE: config/config_test.go function TestLoadSnapshotterTOMLConfig (line 18) | func TestLoadSnapshotterTOMLConfig(t *testing.T) { function TestSnapshotterConfig (line 129) | func TestSnapshotterConfig(t *testing.T) { function TestMergeConfig (line 189) | func TestMergeConfig(t *testing.T) { function TestProcessConfigurations (line 228) | func TestProcessConfigurations(t *testing.T) { FILE: config/daemonconfig/daemonconfig.go constant backendTypeLocalfs (line 31) | backendTypeLocalfs StorageBackendType = "localfs" constant backendTypeOss (line 32) | backendTypeOss StorageBackendType = "oss" constant backendTypeRegistry (line 33) | backendTypeRegistry StorageBackendType = "registry" constant backendTypeS3 (line 34) | backendTypeS3 StorageBackendType = "s3" type DaemonConfig (line 37) | type DaemonConfig interface function NewDaemonConfig (line 48) | func NewDaemonConfig(fsDriver, path string) (DaemonConfig, error) { type BackendConfig (line 67) | type BackendConfig struct type DeviceConfig (line 110) | type DeviceConfig struct function DumpConfigFile (line 129) | func DumpConfigFile(c interface{}, path string) error { function DumpConfigString (line 141) | func DumpConfigString(c interface{}) (string, error) { function SupplementDaemonConfig (line 147) | func SupplementDaemonConfig(c DaemonConfig, imageID, snapshotID string, function selectMirrorHost (line 199) | func selectMirrorHost(mirrorsConfigDir, registryHost string) (scheme str... function splitMirrorURL (line 247) | func splitMirrorURL(mirrorHost string) (scheme, host string, err error) { function serializeWithSecretFilter (line 259) | func serializeWithSecretFilter(obj interface{}) map[string]interface{} { FILE: config/daemonconfig/daemonconfig_test.go function TestLoadConfig (line 16) | func TestLoadConfig(t *testing.T) { function TestAmplifyIo (line 67) | func TestAmplifyIo(t *testing.T) { function TestSerializeWithSecretFilter (line 96) | func TestSerializeWithSecretFilter(t *testing.T) { FILE: config/daemonconfig/fscache.go constant WorkDir (line 22) | WorkDir string = "workdir" constant Bootstrap (line 23) | Bootstrap string = "bootstrap" type BlobPrefetchConfig (line 26) | type BlobPrefetchConfig struct type FscacheDaemonConfig (line 34) | type FscacheDaemonConfig struct method StorageBackend (line 72) | func (c *FscacheDaemonConfig) StorageBackend() (string, *BackendConfig) { method Supplement (line 77) | func (c *FscacheDaemonConfig) Supplement(host, repo, snapshotID string... method FillAuth (line 105) | func (c *FscacheDaemonConfig) FillAuth(kc *auth.PassKeyChain) { method DumpString (line 115) | func (c *FscacheDaemonConfig) DumpString() (string, error) { method DumpFile (line 119) | func (c *FscacheDaemonConfig) DumpFile(f string) error { function LoadFscacheConfig (line 55) | func LoadFscacheConfig(p string) (*FscacheDaemonConfig, error) { FILE: config/daemonconfig/fuse.go constant CacheDir (line 19) | CacheDir string = "cachedir" type FuseDaemonConfig (line 22) | type FuseDaemonConfig struct method Supplement (line 63) | func (c *FuseDaemonConfig) Supplement(host, repo, snapshotID string, p... method FillAuth (line 77) | func (c *FuseDaemonConfig) FillAuth(kc *auth.PassKeyChain) { method StorageBackend (line 87) | func (c *FuseDaemonConfig) StorageBackend() (string, *BackendConfig) { method DumpString (line 91) | func (c *FuseDaemonConfig) DumpString() (string, error) { method DumpFile (line 95) | func (c *FuseDaemonConfig) DumpFile(f string) error { type FSPrefetch (line 37) | type FSPrefetch struct function LoadFuseConfig (line 46) | func LoadFuseConfig(p string) (*FuseDaemonConfig, error) { FILE: config/daemonconfig/mirror_select_test.go function writeMirrorHostsToml (line 21) | func writeMirrorHostsToml(t *testing.T, dir, content string) { function TestSplitMirrorURL (line 28) | func TestSplitMirrorURL(t *testing.T) { function TestSelectMirrorHost_NoConfig (line 87) | func TestSelectMirrorHost_NoConfig(t *testing.T) { function TestSelectMirrorHost_EmptyDir (line 93) | func TestSelectMirrorHost_EmptyDir(t *testing.T) { function TestSelectMirrorHost_MirrorNoPingURL (line 100) | func TestSelectMirrorHost_MirrorNoPingURL(t *testing.T) { function TestSelectMirrorHost_MirrorPingSucceeds (line 111) | func TestSelectMirrorHost_MirrorPingSucceeds(t *testing.T) { function TestSelectMirrorHost_MirrorPingFails_FallbackToOrigin (line 128) | func TestSelectMirrorHost_MirrorPingFails_FallbackToOrigin(t *testing.T) { function TestSelectMirrorHost_FirstMirrorFails_SecondMirrorNoPing (line 145) | func TestSelectMirrorHost_FirstMirrorFails_SecondMirrorNoPing(t *testing... FILE: config/daemonconfig/mirrors.go type MirrorConfig (line 23) | type MirrorConfig struct type HostFileConfig (line 32) | type HostFileConfig struct type hostConfig (line 46) | type hostConfig struct function makeStringSlice (line 57) | func makeStringSlice(slice []interface{}, cb func(string) string) ([]str... function parseMirrorsConfig (line 74) | func parseMirrorsConfig(hosts []hostConfig) []MirrorConfig { function hostDirectory (line 99) | func hostDirectory(host string) string { function hostPaths (line 107) | func hostPaths(root, host string) []string { function hostDirFromRoot (line 119) | func hostDirFromRoot(root, host string) (string, error) { function getSortedHosts (line 131) | func getSortedHosts(root *toml.Tree) ([]string, error) { function parseHostConfig (line 151) | func parseHostConfig(server string, config HostFileConfig) (hostConfig, ... function parseHostsFile (line 207) | func parseHostsFile(b []byte) ([]hostConfig, error) { function loadHostDir (line 245) | func loadHostDir(hostsDir string) ([]hostConfig, error) { function LoadMirrorsConfig (line 262) | func LoadMirrorsConfig(mirrorsConfigDir, registryHost string) ([]MirrorC... FILE: config/daemonconfig/mirrors_test.go function TestLoadMirrorConfigCACerts (line 19) | func TestLoadMirrorConfigCACerts(t *testing.T) { function TestLoadMirrorConfig (line 98) | func TestLoadMirrorConfig(t *testing.T) { FILE: config/default.go method FillUpWithDefaults (line 15) | func (c *SnapshotterConfig) FillUpWithDefaults() error { method SetupNydusBinaryPaths (line 61) | func (c *SnapshotterConfig) SetupNydusBinaryPaths() error { FILE: config/global.go type GlobalConfig (line 29) | type GlobalConfig struct function IsFusedevSharedModeEnabled (line 40) | func IsFusedevSharedModeEnabled() bool { function GetDaemonMode (line 44) | func GetDaemonMode() DaemonMode { function GetSnapshotsRootDir (line 48) | func GetSnapshotsRootDir() string { function GetRootMountpoint (line 52) | func GetRootMountpoint() string { function GetSocketRoot (line 56) | func GetSocketRoot() string { function GetConfigRoot (line 60) | func GetConfigRoot() string { function GetMirrorsConfigDir (line 64) | func GetMirrorsConfigDir() string { function GetFsDriver (line 68) | func GetFsDriver() string { function GetLogDir (line 72) | func GetLogDir() string { function GetLogLevel (line 76) | func GetLogLevel() string { function GetDaemonLogRotationSize (line 80) | func GetDaemonLogRotationSize() int { function GetDaemonThreadsNumber (line 84) | func GetDaemonThreadsNumber() int { function GetDaemonFailoverPolicy (line 88) | func GetDaemonFailoverPolicy() string { function GetLogToStdout (line 92) | func GetLogToStdout() bool { function IsBackendSourceEnabled (line 96) | func IsBackendSourceEnabled() bool { function IsSystemControllerEnabled (line 100) | func IsSystemControllerEnabled() bool { function SystemControllerAddress (line 104) | func SystemControllerAddress() string { function SystemControllerPprofAddress (line 108) | func SystemControllerPprofAddress() string { function GetDaemonProfileCPUDuration (line 112) | func GetDaemonProfileCPUDuration() int64 { function GetSkipSSLVerify (line 116) | func GetSkipSSLVerify() bool { constant TarfsLayerVerityOnly (line 121) | TarfsLayerVerityOnly string = "layer_verity_only" constant TarfsImageVerityOnly (line 122) | TarfsImageVerityOnly string = "image_verity_only" constant TarfsLayerBlockDevice (line 123) | TarfsLayerBlockDevice string = "layer_block" constant TarfsImageBlockDevice (line 124) | TarfsImageBlockDevice string = "image_block" constant TarfsLayerBlockWithVerity (line 125) | TarfsLayerBlockWithVerity string = "layer_block_with_verity" constant TarfsImageBlockWithVerity (line 126) | TarfsImageBlockWithVerity string = "image_block_with_verity" function GetTarfsMountOnHost (line 129) | func GetTarfsMountOnHost() bool { function GetTarfsExportEnabled (line 133) | func GetTarfsExportEnabled() bool { function GetTarfsExportFlags (line 148) | func GetTarfsExportFlags() (bool, bool, bool) { function ProcessConfigurations (line 167) | func ProcessConfigurations(c *SnapshotterConfig) error { function PrepareLogDir (line 196) | func PrepareLogDir(c *SnapshotterConfig) { function SetUpEnvironment (line 202) | func SetUpEnvironment(c *SnapshotterConfig) error { FILE: export/snapshotter/snapshotter.go function init (line 14) | func init() { FILE: internal/constant/values.go constant DaemonModeMultiple (line 14) | DaemonModeMultiple string = "multiple" constant DaemonModeDedicated (line 15) | DaemonModeDedicated string = "dedicated" constant DaemonModeShared (line 16) | DaemonModeShared string = "shared" constant DaemonModeNone (line 17) | DaemonModeNone string = "none" constant DaemonModeInvalid (line 18) | DaemonModeInvalid string = "" constant FsDriverBlockdev (line 23) | FsDriverBlockdev string = "blockdev" constant FsDriverFusedev (line 25) | FsDriverFusedev string = "fusedev" constant FsDriverFscache (line 27) | FsDriverFscache string = "fscache" constant FsDriverNodev (line 29) | FsDriverNodev string = "nodev" constant FsDriverProxy (line 31) | FsDriverProxy string = "proxy" constant DefaultDaemonMode (line 35) | DefaultDaemonMode = DaemonModeMultiple constant DefaultFsDriver (line 37) | DefaultFsDriver = FsDriverFusedev constant DefaultLogLevel (line 39) | DefaultLogLevel string = "info" constant DefaultGCPeriod (line 40) | DefaultGCPeriod = 24 * time.Hour constant DefaultNydusDaemonConfigPath (line 42) | DefaultNydusDaemonConfigPath string = "/etc/nydus/nydusd-config.json" constant NydusdBinaryName (line 43) | NydusdBinaryName string = "nydusd" constant NydusImageBinaryName (line 44) | NydusImageBinaryName string = "nydus-image" constant DefaultRootDir (line 46) | DefaultRootDir = "/var/lib/containerd/io.containerd.snap... constant DefaultAddress (line 47) | DefaultAddress = "/run/containerd-nydus/containerd-nydus... constant DefaultSystemControllerAddress (line 48) | DefaultSystemControllerAddress = "/run/containerd-nydus/system.sock" constant DefaultDaemonRotateLogMaxSize (line 51) | DefaultDaemonRotateLogMaxSize = 100 constant DefaultRotateLogMaxSize (line 52) | DefaultRotateLogMaxSize = 200 constant DefaultRotateLogMaxBackups (line 53) | DefaultRotateLogMaxBackups = 5 constant DefaultRotateLogMaxAge (line 54) | DefaultRotateLogMaxAge = 0 constant DefaultRotateLogLocalTime (line 55) | DefaultRotateLogLocalTime = true constant DefaultRotateLogCompress (line 56) | DefaultRotateLogCompress = true constant DefaultHungIOInterval (line 59) | DefaultHungIOInterval = 10 * time.Second constant DefaultCollectInterval (line 60) | DefaultCollectInterval = 1 * time.Minute constant FailoverPolicyNone (line 64) | FailoverPolicyNone string = "none" constant FailoverPolicyResend (line 65) | FailoverPolicyResend string = "resend" constant FailoverPolicyFlush (line 66) | FailoverPolicyFlush string = "flush" constant DefaultFailoverPolicy (line 67) | DefaultFailoverPolicy string = FailoverPolicyResend FILE: internal/flags/flags.go type Args (line 15) | type Args struct type Flags (line 31) | type Flags struct function buildFlags (line 36) | func buildFlags(args *Args) []cli.Flag { function NewFlags (line 109) | func NewFlags() *Flags { FILE: internal/flags/flags_test.go function TestNewFlags (line 16) | func TestNewFlags(t *testing.T) { FILE: internal/logging/setup.go constant DefaultLogDirName (line 22) | DefaultLogDirName = "logs" constant defaultLogFileName (line 23) | defaultLogFileName = "nydus-snapshotter.log" type RotateLogArgs (line 26) | type RotateLogArgs struct function SetUp (line 34) | func SetUp(logLevel string, logToStdout bool, logDir string, logRotateAr... function WithContext (line 71) | func WithContext() context.Context { FILE: internal/logging/setup_test.go constant TestLogDirName (line 22) | TestLogDirName = "test-rotate-logs" constant TestRootDirName (line 23) | TestRootDirName = "test-root" function GetRotateLogFileNumbers (line 26) | func GetRotateLogFileNumbers(testLogDir string, suffix string) int { function TestSetUp (line 40) | func TestSetUp(t *testing.T) { FILE: pkg/auth/cri.go constant DefaultImageServiceAddress (line 26) | DefaultImageServiceAddress = "/run/containerd/containerd.sock" type CRIProvider (line 33) | type CRIProvider struct method String (line 40) | func (p *CRIProvider) String() string { method GetCredentials (line 44) | func (p *CRIProvider) GetCredentials(req *AuthRequest) (*PassKeyChain,... function NewCRIProvider (line 36) | func NewCRIProvider() *CRIProvider { function newCRIConn (line 82) | func newCRIConn(criAddr string) (*grpc.ClientConn, error) { function AddImageProxy (line 102) | func AddImageProxy(ctx context.Context, rpc *grpc.Server, imageServiceAd... FILE: pkg/auth/cri_test.go type MockImageService (line 22) | type MockImageService struct method PullImage (line 26) | func (*MockImageService) PullImage(_ context.Context, _ *runtime.PullI... function TestFromImagePull (line 30) | func TestFromImagePull(t *testing.T) { FILE: pkg/auth/docker.go constant dockerHost (line 19) | dockerHost = "https://index.docker.io/v1/" constant convertedDockerHost (line 20) | convertedDockerHost = "registry-1.docker.io" type DockerProvider (line 24) | type DockerProvider struct method CanRenew (line 37) | func (p *DockerProvider) CanRenew() bool { return true } method String (line 39) | func (p *DockerProvider) String() string { method GetCredentials (line 45) | func (p *DockerProvider) GetCredentials(req *AuthRequest) (*PassKeyCha... function NewDockerProvider (line 29) | func NewDockerProvider() *DockerProvider { FILE: pkg/auth/docker_test.go constant testConfigFmt (line 20) | testConfigFmt = ` constant dockerUser (line 32) | dockerUser = "dockeruserfoobar" constant dockerPass (line 33) | dockerPass = "dockerpassfoobar" constant extraHost (line 34) | extraHost = "reg.docker.alibaba-cloud.com" constant extraUser (line 35) | extraUser = "extrauserfoobar" constant extraPass (line 36) | extraPass = "extrapassfoobar" constant configFile (line 38) | configFile = "config.json" function setupDockerConfig (line 43) | func setupDockerConfig() (string, error) { function TestDockerCred (line 62) | func TestDockerCred(t *testing.T) { FILE: pkg/auth/keychain.go constant sep (line 22) | sep = ":" type PassKeyChain (line 30) | type PassKeyChain struct method ToBase64 (line 50) | func (kc PassKeyChain) ToBase64() string { method TokenBase (line 59) | func (kc PassKeyChain) TokenBase() bool { method Resolve (line 153) | func (kc PassKeyChain) Resolve(_ authn.Resource) (authn.Authenticator,... method toAuthConfig (line 159) | func (kc PassKeyChain) toAuthConfig() authn.AuthConfig { function FromBase64 (line 35) | func FromBase64(str string) (PassKeyChain, error) { function GetRegistryKeyChain (line 95) | func GetRegistryKeyChain(ref string, labels map[string]string) *PassKeyC... function getRegistryKeyChainFromProviders (line 100) | func getRegistryKeyChainFromProviders(ref string, labels map[string]stri... function fetchFromProviders (line 119) | func fetchFromProviders(req *AuthRequest, providers []AuthProvider) *Pas... function GetKeyChainByRef (line 147) | func GetKeyChainByRef(ref string, labels map[string]string) (*PassKeyCha... FILE: pkg/auth/kubelet.go constant pluginExecTimeout (line 34) | pluginExecTimeout = 1 * time.Minute constant globalCacheKey (line 37) | globalCacheKey = "" type KubeletProvider (line 46) | type KubeletProvider struct method CanRenew (line 189) | func (p *KubeletProvider) CanRenew() bool { return true } method String (line 191) | func (p *KubeletProvider) String() string { method GetCredentials (line 200) | func (p *KubeletProvider) GetCredentials(req *AuthRequest) (*PassKeyCh... method evictExpired (line 309) | func (p *KubeletProvider) evictExpired() { method getCachedCredential (line 323) | func (p *KubeletProvider) getCachedCredential(image string, validUntil... method execPlugin (line 421) | func (p *KubeletProvider) execPlugin(ctx context.Context, plugin *kube... type kubeletCredential (line 54) | type kubeletCredential struct function InitKubeletProvider (line 61) | func InitKubeletProvider(configPath, binDir string) error { function NewKubeletProvider (line 80) | func NewKubeletProvider(configPath, binDir string) (*KubeletProvider, er... function validateCredentialProvider (line 133) | func validateCredentialProvider(p *kubeletconfigv1.CredentialProvider) e... function bestKeychainMatch (line 346) | func bestKeychainMatch(keychains map[string]*PassKeyChain, image string)... function computeCacheKey (line 370) | func computeCacheKey(cacheKeyType credentialproviderv1.PluginCacheKeyTyp... function parseRegistry (line 385) | func parseRegistry(image string) string { function resolveCacheDuration (line 393) | func resolveCacheDuration(resp *credentialproviderv1.CredentialProviderR... function isImageAllowed (line 402) | func isImageAllowed(plugin *kubeletconfigv1.CredentialProvider, image st... function parseSchemelessURL (line 487) | func parseSchemelessURL(schemelessURL string) (*url.URL, error) { function splitURL (line 499) | func splitURL(url *url.URL) (parts []string, port string) { function urlsMatchStr (line 510) | func urlsMatchStr(glob string, target string) (bool, error) { function urlsMatch (line 532) | func urlsMatch(globURL *url.URL, targetURL *url.URL) (bool, error) { FILE: pkg/auth/kubelet_test.go constant testUser (line 26) | testUser = "test-user" constant testPass (line 27) | testPass = "test-pass" type credentialMap (line 30) | type credentialMap function setupKubeletProvider (line 34) | func setupKubeletProvider(t *testing.T) (configPath, binDir string) { function buildAuthSection (line 50) | func buildAuthSection(registries credentialMap) string { function createMockPlugin (line 70) | func createMockPlugin(t *testing.T, binDir, pluginName string, registrie... function createMockPluginWithTTL (line 77) | func createMockPluginWithTTL(t *testing.T, binDir, pluginName string, re... function createMockPluginFull (line 84) | func createMockPluginFull(t *testing.T, binDir, pluginName string, regis... function createMockCredentialProvider (line 100) | func createMockCredentialProvider(name string, matchImages []string) kub... function createMockCredentialProviderWithTTL (line 106) | func createMockCredentialProviderWithTTL(name string, matchImages []stri... function createMockProviderConfig (line 116) | func createMockProviderConfig(t *testing.T, configPath string, providers... function setupMockProvider (line 135) | func setupMockProvider(t *testing.T, binDir, pluginName, configPath stri... function TestNewKubeletProvider (line 143) | func TestNewKubeletProvider(t *testing.T) { function TestValidateCredentialProvider (line 252) | func TestValidateCredentialProvider(t *testing.T) { function TestKubeletProviderGetCredentials (line 413) | func TestKubeletProviderGetCredentials(t *testing.T) { function TestInitKubeletProvider (line 631) | func TestInitKubeletProvider(t *testing.T) { function TestURLsMatch (line 703) | func TestURLsMatch(t *testing.T) { function TestKubeletProviderEvictExpired (line 798) | func TestKubeletProviderEvictExpired(t *testing.T) { function TestKubeletProviderValidUntil (line 819) | func TestKubeletProviderValidUntil(t *testing.T) { function TestKubeletProviderRegistryCache (line 869) | func TestKubeletProviderRegistryCache(t *testing.T) { function TestKubeletProviderCacheKeyType (line 952) | func TestKubeletProviderCacheKeyType(t *testing.T) { function TestComputeCacheKey (line 1045) | func TestComputeCacheKey(t *testing.T) { function TestParseRegistry (line 1088) | func TestParseRegistry(t *testing.T) { FILE: pkg/auth/kubesecret.go type KubeSecretProvider (line 29) | type KubeSecretProvider struct method CanRenew (line 38) | func (p *KubeSecretProvider) CanRenew() bool { return true } method String (line 40) | func (p *KubeSecretProvider) String() string { method GetCredentials (line 46) | func (p *KubeSecretProvider) GetCredentials(req *AuthRequest) (*PassKe... function NewKubeSecretProvider (line 32) | func NewKubeSecretProvider() *KubeSecretProvider { type KubeSecretListener (line 68) | type KubeSecretListener struct method addDockerConfig (line 116) | func (kubelistener *KubeSecretListener) addDockerConfig(key string, ob... method deleteDockerConfig (line 131) | func (kubelistener *KubeSecretListener) deleteDockerConfig(key string) { method SyncKubeSecrets (line 137) | func (kubelistener *KubeSecretListener) SyncKubeSecrets(ctx context.Co... method GetCredentialsStore (line 197) | func (kubelistener *KubeSecretListener) GetCredentialsStore(host strin... function InitKubeSecretListener (line 73) | func InitKubeSecretListener(ctx context.Context, kubeconfigPath string) ... FILE: pkg/auth/kubesecret_test.go constant testDockerConfigJSONFmt (line 14) | testDockerConfigJSONFmt = ` constant dockerConfigKey (line 26) | dockerConfigKey = "testKey" constant registryUser (line 27) | registryUser = "dockeruserfoobar" constant registryPass (line 28) | registryPass = "dockerpassfoobar" constant registryEmail (line 29) | registryEmail = "test@alibaba.com" function TestGetCredentialsStore (line 32) | func TestGetCredentialsStore(t *testing.T) { FILE: pkg/auth/labels.go type LabelsProvider (line 15) | type LabelsProvider struct method String (line 22) | func (p *LabelsProvider) String() string { method GetCredentials (line 28) | func (p *LabelsProvider) GetCredentials(req *AuthRequest) (*PassKeyCha... function NewLabelsProvider (line 18) | func NewLabelsProvider() *LabelsProvider { FILE: pkg/auth/labels_test.go function TestFromLabels (line 17) | func TestFromLabels(t *testing.T) { FILE: pkg/auth/provider.go type AuthRequest (line 18) | type AuthRequest struct type AuthProvider (line 30) | type AuthProvider interface type RenewableProvider (line 39) | type RenewableProvider interface function parseReference (line 46) | func parseReference(ref string) (refSpec reference.Spec, host string, er... FILE: pkg/auth/renewal.go function InitCredentialStore (line 24) | func InitCredentialStore(interval time.Duration) { function GetStoredCredential (line 30) | func GetStoredCredential(ref string) *PassKeyChain { function RenewCredential (line 40) | func RenewCredential(ref string) *PassKeyChain { function EvictStaleCredentials (line 60) | func EvictStaleCredentials(liveRefs map[string]struct{}) { type credentialEntry (line 76) | type credentialEntry struct type credentialStore (line 86) | type credentialStore struct method Add (line 100) | func (s *credentialStore) Add(ref string, kc *PassKeyChain) { method Get (line 114) | func (s *credentialStore) Get(ref string) *PassKeyChain { method Remove (line 126) | func (s *credentialStore) Remove(ref string) { method Entries (line 138) | func (s *credentialStore) Entries() []credentialEntry { function newCredentialStore (line 92) | func newCredentialStore(renewInterval time.Duration) *credentialStore { FILE: pkg/auth/renewal_test.go type mockProvider (line 23) | type mockProvider struct method GetCredentials (line 28) | func (m *mockProvider) GetCredentials(_ *AuthRequest) (*PassKeyChain, ... method CanRenew (line 32) | func (m *mockProvider) CanRenew() bool { return true } method String (line 34) | func (m *mockProvider) String() string { return "mockProvider" } type mockNonRenewableProvider (line 37) | type mockNonRenewableProvider struct method GetCredentials (line 42) | func (m *mockNonRenewableProvider) GetCredentials(_ *AuthRequest) (*Pa... method String (line 46) | func (m *mockNonRenewableProvider) String() string { return "mockNonRe... type trackingProvider (line 49) | type trackingProvider struct method GetCredentials (line 55) | func (p *trackingProvider) GetCredentials(_ *AuthRequest) (*PassKeyCha... method CanRenew (line 69) | func (p *trackingProvider) CanRenew() bool { return true } method String (line 71) | func (p *trackingProvider) String() string { return "trackingProvider" } function TestRenewableProviderTypeAssertion (line 75) | func TestRenewableProviderTypeAssertion(t *testing.T) { function TestCredentialStoreGet (line 103) | func TestCredentialStoreGet(t *testing.T) { function TestCredentialStoreRemove (line 136) | func TestCredentialStoreRemove(t *testing.T) { function TestCredentialStoreAdd_Upsert (line 166) | func TestCredentialStoreAdd_Upsert(t *testing.T) { function TestCredentialStoreEntries (line 180) | func TestCredentialStoreEntries(t *testing.T) { function TestCredentialStoreConcurrency (line 189) | func TestCredentialStoreConcurrency(t *testing.T) { function TestRenewCredential (line 210) | func TestRenewCredential(t *testing.T) { function TestEvictStaleCredentials (line 264) | func TestEvictStaleCredentials(t *testing.T) { function TestEvictStaleCredentials_GracePeriod (line 315) | func TestEvictStaleCredentials_GracePeriod(t *testing.T) { function TestGetStoredCredential (line 329) | func TestGetStoredCredential(t *testing.T) { function TestEvictStaleCredentials_NilStore (line 379) | func TestEvictStaleCredentials_NilStore(t *testing.T) { function TestGetRegistryKeyChainFromProviders (line 390) | func TestGetRegistryKeyChainFromProviders(t *testing.T) { FILE: pkg/backend/backend.go constant BackendTypeOSS (line 19) | BackendTypeOSS = "oss" constant BackendTypeS3 (line 20) | BackendTypeS3 = "s3" constant BackendTypeLocalFS (line 21) | BackendTypeLocalFS = "localfs" type Backend (line 31) | type Backend interface function NewBackend (line 46) | func NewBackend(_type string, config []byte, forcePush bool) (Backend, e... FILE: pkg/backend/localfs.go type LocalFSBackend (line 24) | type LocalFSBackend struct method dstPath (line 46) | func (b *LocalFSBackend) dstPath(blobID string) string { method Push (line 50) | func (b *LocalFSBackend) Push(ctx context.Context, cs content.Store, d... method Check (line 82) | func (b *LocalFSBackend) Check(blobDigest digest.Digest) (string, erro... method Type (line 100) | func (b *LocalFSBackend) Type() string { function newLocalFSBackend (line 29) | func newLocalFSBackend(rawConfig []byte, forcePush bool) (*LocalFSBacken... FILE: pkg/backend/oss.go type OSSBackend (line 25) | type OSSBackend struct method push (line 99) | func (b *OSSBackend) push(ctx context.Context, cs content.Store, desc ... method Push (line 159) | func (b *OSSBackend) Push(ctx context.Context, cs content.Store, desc ... method Check (line 180) | func (b *OSSBackend) Check(blobDigest digest.Digest) (string, error) { method Type (line 191) | func (b *OSSBackend) Type() string { function newOSSBackend (line 33) | func newOSSBackend(rawConfig []byte, forcePush bool) (*OSSBackend, error) { function splitFileByPartSize (line 69) | func splitFileByPartSize(blobSize, chunkSize int64) ([]oss.FileChunk, er... FILE: pkg/backend/s3.go type S3Backend (line 30) | type S3Backend struct method client (line 101) | func (b *S3Backend) client() (*s3.Client, error) { method existObject (line 119) | func (b *S3Backend) existObject(ctx context.Context, objectKey string)... method Push (line 138) | func (b *S3Backend) Push(ctx context.Context, cs content.Store, desc o... method Check (line 175) | func (b *S3Backend) Check(blobDigest digest.Digest) (string, error) { method Type (line 186) | func (b *S3Backend) Type() string { type S3Config (line 45) | type S3Config struct function newS3Backend (line 56) | func newS3Backend(rawConfig []byte, forcePush bool) (*S3Backend, error) { FILE: pkg/backend/s3_test.go function Test_newS3Backend (line 16) | func Test_newS3Backend(t *testing.T) { FILE: pkg/cache/manager.go constant imageDiskFileSuffix (line 25) | imageDiskFileSuffix = ".image.disk" constant layerDiskFileSuffix (line 26) | layerDiskFileSuffix = ".layer.disk" constant chunkMapFileSuffix (line 27) | chunkMapFileSuffix = ".chunk_map" constant metaFileSuffix (line 28) | metaFileSuffix = ".blob.meta" constant dataFileSuffix (line 30) | dataFileSuffix = ".blob.data" type Manager (line 34) | type Manager struct method CacheDir (line 63) | func (m *Manager) CacheDir() string { method CacheUsage (line 71) | func (m *Manager) CacheUsage(ctx context.Context, blobID string) (snap... method RemoveBlobCache (line 100) | func (m *Manager) RemoveBlobCache(blobID string) error { type Opt (line 40) | type Opt struct function NewManager (line 47) | func NewManager(opt Opt) (*Manager, error) { function ExtractBlobIDFromFilename (line 133) | func ExtractBlobIDFromFilename(filename string) string { FILE: pkg/cache/manager_test.go function TestExtractBlobIDFromFilename (line 15) | func TestExtractBlobIDFromFilename(t *testing.T) { FILE: pkg/cgroup/cgroup.go constant defaultSlice (line 18) | defaultSlice = "system.slice" type Config (line 25) | type Config struct type DaemonCgroup (line 29) | type DaemonCgroup interface function createCgroup (line 36) | func createCgroup(name string, config Config) (DaemonCgroup, error) { function supported (line 44) | func supported() bool { function displayMode (line 48) | func displayMode() string { FILE: pkg/cgroup/manager.go type Manager (line 13) | type Manager struct method AddProc (line 44) | func (m *Manager) AddProc(pid int) error { method Delete (line 49) | func (m *Manager) Delete() error { type Opt (line 19) | type Opt struct function NewManager (line 24) | func NewManager(opt Opt) (*Manager, error) { FILE: pkg/cgroup/v1/v1.go type Cgroup (line 16) | type Cgroup struct method Delete (line 67) | func (cg Cgroup) Delete() error { method AddProc (line 78) | func (cg Cgroup) AddProc(pid int) error { function generateHierarchy (line 20) | func generateHierarchy() cgroup1.Hierarchy { function NewCgroup (line 24) | func NewCgroup(slice, name string, memoryLimitInBytes int64) (Cgroup, er... FILE: pkg/cgroup/v2/v2.go constant defaultRoot (line 22) | defaultRoot = "/sys/fs/cgroup" type Cgroup (line 29) | type Cgroup struct method Delete (line 79) | func (cg Cgroup) Delete() error { method AddProc (line 85) | func (cg Cgroup) AddProc(pid int) error { function readSubtreeControllers (line 33) | func readSubtreeControllers(dir string) ([]string, error) { function NewCgroup (line 41) | func NewCgroup(slice, name string, memoryLimitInBytes int64) (Cgroup, er... FILE: pkg/converter/constant.go constant ManifestOSFeatureNydus (line 10) | ManifestOSFeatureNydus = "nydus.remoteimage.v1" constant ManifestConfigNydus (line 11) | ManifestConfigNydus = "application/vnd.nydus.image.config.v1+json" constant ManifestArtifactTypeNydus (line 12) | ManifestArtifactTypeNydus = "application/vnd.nydus.image.manifest.v1+json" constant MediaTypeNydusBlob (line 13) | MediaTypeNydusBlob = "application/vnd.oci.image.layer.nydus.blob.v1" constant BootstrapFileNameInLayer (line 14) | BootstrapFileNameInLayer = "image/image.boot" constant ManifestNydusCache (line 16) | ManifestNydusCache = "containerd.io/snapshot/nydus-cache" constant LayerAnnotationFSVersion (line 18) | LayerAnnotationFSVersion = "containerd.io/snapshot/nydus-fs-ver... constant LayerAnnotationNydusBlob (line 19) | LayerAnnotationNydusBlob = "containerd.io/snapshot/nydus-blob" constant LayerAnnotationNydusBlobDigest (line 20) | LayerAnnotationNydusBlobDigest = "containerd.io/snapshot/nydus-blob-d... constant LayerAnnotationNydusBlobSize (line 21) | LayerAnnotationNydusBlobSize = "containerd.io/snapshot/nydus-blob-s... constant LayerAnnotationNydusBootstrap (line 22) | LayerAnnotationNydusBootstrap = "containerd.io/snapshot/nydus-bootst... constant LayerAnnotationNydusSourceChainID (line 23) | LayerAnnotationNydusSourceChainID = "containerd.io/snapshot/nydus-source... constant LayerAnnotationNydusEncryptedBlob (line 24) | LayerAnnotationNydusEncryptedBlob = "containerd.io/snapshot/nydus-encryp... constant LayerAnnotationNydusSourceDigest (line 25) | LayerAnnotationNydusSourceDigest = "containerd.io/snapshot/nydus-source... constant LayerAnnotationNydusTargetDigest (line 26) | LayerAnnotationNydusTargetDigest = "containerd.io/snapshot/nydus-target... constant LayerAnnotationNydusReferenceBlobIDs (line 28) | LayerAnnotationNydusReferenceBlobIDs = "containerd.io/snapshot/nydus-ref... constant LayerAnnotationUncompressed (line 30) | LayerAnnotationUncompressed = "containerd.io/uncompressed" FILE: pkg/converter/convert_unix.go constant EntryBlob (line 46) | EntryBlob = "image.blob" constant EntryBootstrap (line 47) | EntryBootstrap = "image.boot" constant EntryBlobMeta (line 48) | EntryBlobMeta = "blob.meta" constant EntryBlobMetaHeader (line 49) | EntryBlobMetaHeader = "blob.meta.header" constant EntryTOC (line 50) | EntryTOC = "rafs.blob.toc" constant envNydusBuilder (line 52) | envNydusBuilder = "NYDUS_BUILDER" constant envNydusWorkDir (line 53) | envNydusWorkDir = "NYDUS_WORKDIR" constant configGCLabelKey (line 55) | configGCLabelKey = "containerd.io/gc.ref.content.config" function getBuilder (line 64) | func getBuilder(specifiedPath string) string { function ensureWorkDir (line 77) | func ensureWorkDir(specifiedBasePath string) (string, error) { function unpackOciTar (line 102) | func unpackOciTar(ctx context.Context, dst string, reader io.Reader) err... function unpackNydusBlob (line 132) | func unpackNydusBlob(bootDst, blobDst string, ra content.ReaderAt, unpac... function seekFileByTarHeader (line 163) | func seekFileByTarHeader(ra content.ReaderAt, targetName string, maxSize... function seekFileByTOC (line 221) | func seekFileByTOC(ra content.ReaderAt, targetName string, handle func(i... function UnpackEntry (line 287) | func UnpackEntry(ra content.ReaderAt, targetName string, target io.Write... function seekFile (line 300) | func seekFile(ra content.ReaderAt, targetName string, handle func(io.Rea... function Pack (line 326) | func Pack(ctx context.Context, dest io.Writer, opt PackOption) (io.Write... function packFromDirectory (line 365) | func packFromDirectory(ctx context.Context, dest io.Writer, opt PackOpti... function packFromTar (line 444) | func packFromTar(ctx context.Context, dest io.Writer, opt PackOption) (i... function calcBlobTOCDigest (line 542) | func calcBlobTOCDigest(ra content.ReaderAt) (*digest.Digest, error) { function Merge (line 561) | func Merge(ctx context.Context, layers []Layer, dest io.Writer, opt Merg... function Unpack (line 774) | func Unpack(ctx context.Context, ra content.ReaderAt, dest io.Writer, op... function IsNydusBlobAndExists (line 842) | func IsNydusBlobAndExists(ctx context.Context, cs content.Store, desc oc... function IsNydusBlob (line 852) | func IsNydusBlob(desc ocispec.Descriptor) bool { function IsNydusBootstrap (line 862) | func IsNydusBootstrap(desc ocispec.Descriptor) bool { function isNydusImage (line 873) | func isNydusImage(manifest *ocispec.Manifest) bool { function makeBlobDesc (line 885) | func makeBlobDesc(ctx context.Context, cs content.Store, opt PackOption,... function LayerConvertFunc (line 927) | func LayerConvertFunc(opt PackOption) converter.ConvertFunc { function ConvertHookFunc (line 1038) | func ConvertHookFunc(opt MergeOption) converter.ConvertHookFunc { function convertIndex (line 1056) | func convertIndex(ctx context.Context, cs content.Store, newDesc *ocispe... function convertManifest (line 1074) | func convertManifest(ctx context.Context, cs content.Store, oldDesc ocis... function mergeManifestBlobDigests (line 1187) | func mergeManifestBlobDigests(nydusBlobDigests, originalBlobDigests []di... function MergeLayers (line 1203) | func MergeLayers(ctx context.Context, cs content.Store, descs []ocispec.... FILE: pkg/converter/convert_windows.go function Pack (line 22) | func Pack(ctx context.Context, dest io.Writer, opt PackOption) (io.Write... function Merge (line 26) | func Merge(ctx context.Context, layers []Layer, dest io.Writer, opt Merg... function Unpack (line 30) | func Unpack(ctx context.Context, ra content.ReaderAt, dest io.Writer, op... function IsNydusBlobAndExists (line 34) | func IsNydusBlobAndExists(ctx context.Context, cs content.Store, desc oc... function IsNydusBlob (line 38) | func IsNydusBlob(desc ocispec.Descriptor) bool { function IsNydusBootstrap (line 42) | func IsNydusBootstrap(desc ocispec.Descriptor) bool { function LayerConvertFunc (line 46) | func LayerConvertFunc(opt PackOption) converter.ConvertFunc { function ConvertHookFunc (line 50) | func ConvertHookFunc(opt MergeOption) converter.ConvertHookFunc { function MergeLayers (line 54) | func MergeLayers(ctx context.Context, cs content.Store, descs []ocispec.... FILE: pkg/converter/cs_proxy_unix.go type contentStoreProxy (line 28) | type contentStoreProxy struct method close (line 62) | func (p *contentStoreProxy) close() error { function setupContentStoreProxy (line 33) | func setupContentStoreProxy(workDir string, ra content.ReaderAt) (*conte... function parseRangeHeader (line 70) | func parseRangeHeader(rangeStr string, totalLen int64) (start, wantedLen... function contentProxyHandler (line 95) | func contentProxyHandler(ra content.ReaderAt) http.Handler { FILE: pkg/converter/merge_unix_test.go function d (line 20) | func d(c byte) digest.Digest { function repeat (line 24) | func repeat(c byte, n int) []byte { function TestMergeManifestBlobDigests (line 34) | func TestMergeManifestBlobDigests(t *testing.T) { FILE: pkg/converter/reconvert_unix.go function DefaultIndexConvertFunc (line 38) | func DefaultIndexConvertFunc(layerConvertFunc converter.ConvertFunc, doc... function collectNydusBlobDigests (line 62) | func collectNydusBlobDigests(ctx context.Context, cs content.Store, desc... function collectFromManifest (line 84) | func collectFromManifest(ctx context.Context, cs content.Store, desc oci... type wrappedStore (line 102) | type wrappedStore struct method Info (line 107) | func (s *wrappedStore) Info(ctx context.Context, dgst digest.Digest) (... function ReconvertHookFunc (line 127) | func ReconvertHookFunc() converter.ConvertHookFunc { function LayerReconvertFunc (line 196) | func LayerReconvertFunc(opt UnpackOption) converter.ConvertFunc { function makeOCIBlobDesc (line 298) | func makeOCIBlobDesc(ctx context.Context, cs content.Store, uncompressed... FILE: pkg/converter/reconvert_unix_test.go type mockContentStore (line 25) | type mockContentStore struct method Info (line 38) | func (m *mockContentStore) Info(_ context.Context, dgst digest.Digest)... method addBlob (line 45) | func (m *mockContentStore) addBlob(dgst digest.Digest, data []byte, la... method ReaderAt (line 54) | func (m *mockContentStore) ReaderAt(_ context.Context, desc ocispec.De... function newMockContentStore (line 31) | func newMockContentStore() *mockContentStore { type mockReaderAt (line 61) | type mockReaderAt struct method ReadAt (line 65) | func (r *mockReaderAt) ReadAt(p []byte, off int64) (n int, err error) { method Size (line 73) | func (r *mockReaderAt) Size() int64 { method Close (line 77) | func (r *mockReaderAt) Close() error { function TestCollectNydusBlobDigests (line 81) | func TestCollectNydusBlobDigests(t *testing.T) { function TestCollectFromManifest (line 226) | func TestCollectFromManifest(t *testing.T) { function TestWrappedStore_Info (line 320) | func TestWrappedStore_Info(t *testing.T) { function TestWrappedStore_Info_Error (line 393) | func TestWrappedStore_Info_Error(t *testing.T) { function TestMakeOCIBlobDesc (line 407) | func TestMakeOCIBlobDesc(t *testing.T) { function TestReconvertHookFunc_NilDescriptor (line 484) | func TestReconvertHookFunc_NilDescriptor(t *testing.T) { function TestReconvertHookFunc_NonManifestType (line 495) | func TestReconvertHookFunc_NonManifestType(t *testing.T) { FILE: pkg/converter/tool/builder.go function isSignalKilled (line 25) | func isSignalKilled(err error) bool { type PackOption (line 29) | type PackOption struct type MergeOption (line 49) | type MergeOption struct type UnpackOption (line 65) | type UnpackOption struct type outputJSON (line 74) | type outputJSON struct function buildPackArgs (line 78) | func buildPackArgs(option PackOption) []string { function Pack (line 148) | func Pack(option PackOption) error { function packRef (line 180) | func packRef(option PackOption) error { function Merge (line 220) | func Merge(option MergeOption) ([]digest.Digest, error) { function Unpack (line 296) | func Unpack(option UnpackOption) error { FILE: pkg/converter/tool/feature.go type Feature (line 20) | type Feature type Features (line 21) | type Features method Add (line 51) | func (features *Features) Add(items ...Feature) { method Remove (line 57) | func (features *Features) Remove(items ...Feature) { method Contains (line 63) | func (features *Features) Contains(feature Feature) bool { method Equals (line 68) | func (features *Features) Equals(other Features) bool { constant envNydusDisableTar2Rafs (line 23) | envNydusDisableTar2Rafs string = "NYDUS_DISABLE_TAR2RAFS" constant FeatureTar2Rafs (line 30) | FeatureTar2Rafs Feature = "--type tar-rafs" constant FeatureBatchSize (line 34) | FeatureBatchSize Feature = "--batch-size" constant FeatureEncrypt (line 37) | FeatureEncrypt Feature = "--encrypt" function NewFeatures (line 45) | func NewFeatures(items ...Feature) Features { function GetHelp (line 83) | func GetHelp(builder string) []byte { function detectFeature (line 94) | func detectFeature(msg []byte, feature Feature) bool { function DetectFeatures (line 116) | func DetectFeatures(builder string, required Features, getHelp func(stri... FILE: pkg/converter/tool/feature_test.go function TestFeature (line 16) | func TestFeature(t *testing.T) { function TestDetectFeature (line 184) | func TestDetectFeature(t *testing.T) { function TestDetectFeatures (line 702) | func TestDetectFeatures(t *testing.T) { FILE: pkg/converter/types.go constant CompressorNone (line 27) | CompressorNone Compressor = 0x0000_0001 constant CompressorZstd (line 28) | CompressorZstd Compressor = 0x0000_0002 constant CompressorLz4Block (line 29) | CompressorLz4Block Compressor = 0x0000_0004 constant CompressorMask (line 30) | CompressorMask Compressor = 0x0000_000f type Layer (line 37) | type Layer struct type Backend (line 47) | type Backend interface type PackOption (line 58) | type PackOption struct type MergeOption (line 92) | type MergeOption struct type UnpackOption (line 135) | type UnpackOption struct type TOCEntry (line 153) | type TOCEntry struct method GetCompressor (line 170) | func (entry *TOCEntry) GetCompressor() (Compressor, error) { method GetName (line 182) | func (entry *TOCEntry) GetName() string { method GetUncompressedDigest (line 194) | func (entry *TOCEntry) GetUncompressedDigest() string { method GetCompressedOffset (line 198) | func (entry *TOCEntry) GetCompressedOffset() uint64 { method GetCompressedSize (line 202) | func (entry *TOCEntry) GetCompressedSize() uint64 { method GetUncompressedSize (line 206) | func (entry *TOCEntry) GetUncompressedSize() uint64 { FILE: pkg/converter/utils.go type File (line 24) | type File struct type writeCloser (line 30) | type writeCloser struct method Close (line 36) | func (c *writeCloser) Close() error { function newWriteCloser (line 53) | func newWriteCloser(wc io.WriteCloser, action func() error) *writeCloser { type seekReader (line 60) | type seekReader struct method Read (line 65) | func (ra *seekReader) Read(p []byte) (int, error) { method Seek (line 71) | func (ra *seekReader) Seek(offset int64, whence int) (int64, error) { function newSeekReader (line 84) | func newSeekReader(ra io.ReaderAt) *seekReader { function packToTar (line 92) | func packToTar(files []File, compress bool) io.ReadCloser { function readJSON (line 161) | func readJSON(ctx context.Context, cs content.Store, x interface{}, desc... function writeJSON (line 182) | func writeJSON(ctx context.Context, cs content.Store, x interface{}, old... FILE: pkg/daemon/client.go constant endpointDaemonInfo (line 33) | endpointDaemonInfo = "/api/v1/daemon" constant endpointMount (line 35) | endpointMount = "/api/v1/mount" constant endpointMetrics (line 37) | endpointMetrics = "/api/v1/metrics" constant endpointCacheMetrics (line 39) | endpointCacheMetrics = "/api/v1/metrics/blobcache" constant endpointInflightMetrics (line 41) | endpointInflightMetrics = "/api/v1/metrics/inflight" constant endpointTakeOver (line 43) | endpointTakeOver = "/api/v1/daemon/fuse/takeover" constant endpointSendFd (line 45) | endpointSendFd = "/api/v1/daemon/fuse/sendfd" constant endpointStart (line 47) | endpointStart = "/api/v1/daemon/start" constant endpointExit (line 49) | endpointExit = "/api/v1/daemon/exit" constant endpointConfig (line 51) | endpointConfig = "/api/v1/config" constant endpointBlobs (line 55) | endpointBlobs = "/api/v2/blobs" constant defaultHTTPClientTimeout (line 57) | defaultHTTPClientTimeout = 30 * time.Second constant jsonContentType (line 59) | jsonContentType = "application/json" type NydusdClient (line 64) | type NydusdClient interface type nydusdClient (line 87) | type nydusdClient struct method url (line 93) | func (c *nydusdClient) url(path string, query query) (url string) { method request (line 105) | func (c *nydusdClient) request(method string, url string, method GetDaemonInfo (line 216) | func (c *nydusdClient) GetDaemonInfo() (*types.DaemonInfo, error) { method Mount (line 234) | func (c *nydusdClient) Mount(mp, bootstrap, mountConfig string) error { method Umount (line 247) | func (c *nydusdClient) Umount(mp string) error { method BindBlob (line 254) | func (c *nydusdClient) BindBlob(daemonConfig string) error { method UnbindBlob (line 264) | func (c *nydusdClient) UnbindBlob(domainID, blobID string) error { method GetFsMetrics (line 280) | func (c *nydusdClient) GetFsMetrics(sid string) (*types.FsMetrics, err... method GetInflightMetrics (line 297) | func (c *nydusdClient) GetInflightMetrics() (*types.InflightMetrics, e... method GetCacheMetrics (line 312) | func (c *nydusdClient) GetCacheMetrics(sid string) (*types.CacheMetric... method UpdateConfig (line 329) | func (c *nydusdClient) UpdateConfig(id string, params map[string]strin... method TakeOver (line 342) | func (c *nydusdClient) TakeOver() error { method SendFd (line 347) | func (c *nydusdClient) SendFd() error { method Start (line 352) | func (c *nydusdClient) Start() error { method Exit (line 357) | func (c *nydusdClient) Exit() error { function succeeded (line 135) | func succeeded(resp *http.Response) bool { function decode (line 139) | func decode(resp *http.Response, v any) error { function parseErrorMessage (line 149) | func parseErrorMessage(resp *http.Response) error { function buildTransport (line 160) | func buildTransport(sock string) http.RoundTripper { function WaitUntilSocketExisted (line 175) | func WaitUntilSocketExisted(sock string, pid int) error { function NewNydusClient (line 206) | func NewNydusClient(sock string) (NydusdClient, error) { FILE: pkg/daemon/client_test.go function prepareNydusServer (line 32) | func prepareNydusServer(t *testing.T) (string, func()) { function TestNydusClient_CheckStatus (line 61) | func TestNydusClient_CheckStatus(t *testing.T) { function TestUpdateConfig (line 73) | func TestUpdateConfig(t *testing.T) { FILE: pkg/daemon/command/command.go type DaemonCommand (line 20) | type DaemonCommand struct function BuildCommand (line 44) | func BuildCommand(opts []Opt) ([]string, error) { function WithMode (line 105) | func WithMode(m string) Opt { function WithPrefetchFiles (line 111) | func WithPrefetchFiles(p string) Opt { function WithFscacheDriver (line 117) | func WithFscacheDriver(w string) Opt { function WithFscacheThreads (line 123) | func WithFscacheThreads(num int) Opt { function WithThreadNum (line 129) | func WithThreadNum(num int) Opt { function WithConfig (line 135) | func WithConfig(config string) Opt { function WithBootstrap (line 141) | func WithBootstrap(b string) Opt { function WithMountpoint (line 147) | func WithMountpoint(m string) Opt { function WithAPISock (line 153) | func WithAPISock(api string) Opt { function WithLogFile (line 159) | func WithLogFile(l string) Opt { function WithLogLevel (line 165) | func WithLogLevel(l string) Opt { function WithLogRotationSize (line 171) | func WithLogRotationSize(l int) Opt { function WithSupervisor (line 177) | func WithSupervisor(s string) Opt { function WithID (line 183) | func WithID(id string) Opt { function WithUpgrade (line 189) | func WithUpgrade() Opt { function WithBackendSource (line 195) | func WithBackendSource(source string) Opt { function WithFailoverPolicy (line 201) | func WithFailoverPolicy(policy string) Opt { FILE: pkg/daemon/command/command_builder_test.go function TestBuildCommand (line 16) | func TestBuildCommand(t *testing.T) { function BenchmarkBuildCommand (line 44) | func BenchmarkBuildCommand(b *testing.B) { FILE: pkg/daemon/config.go function WithSocketDir (line 22) | func WithSocketDir(dir string) NewDaemonOpt { function WithRef (line 34) | func WithRef(ref int32) NewDaemonOpt { function WithLogDir (line 41) | func WithLogDir(dir string) NewDaemonOpt { function WithLogToStdout (line 51) | func WithLogToStdout(logToStdout bool) NewDaemonOpt { function WithLogLevel (line 58) | func WithLogLevel(logLevel string) NewDaemonOpt { function WithLogRotationSize (line 69) | func WithLogRotationSize(logRotationSize int) NewDaemonOpt { function WithConfigDir (line 76) | func WithConfigDir(dir string) NewDaemonOpt { function WithMountpoint (line 88) | func WithMountpoint(mountpoint string) NewDaemonOpt { function WithNydusdThreadNum (line 95) | func WithNydusdThreadNum(nydusdThreadNum int) NewDaemonOpt { function WithFsDriver (line 102) | func WithFsDriver(fsDriver string) NewDaemonOpt { function WithFailoverPolicy (line 109) | func WithFailoverPolicy(failoverPolicy string) NewDaemonOpt { function WithDaemonMode (line 116) | func WithDaemonMode(daemonMode config.DaemonMode) NewDaemonOpt { FILE: pkg/daemon/daemon.go constant APISocketFileName (line 40) | APISocketFileName = "api.sock" constant SharedNydusDaemonID (line 41) | SharedNydusDaemonID = "shared_daemon" type NewDaemonOpt (line 44) | type NewDaemonOpt type ConfigState (line 47) | type ConfigState struct type Daemon (line 67) | type Daemon struct method Lock (line 96) | func (d *Daemon) Lock() { method Unlock (line 100) | func (d *Daemon) Unlock() { method ID (line 104) | func (d *Daemon) ID() string { method Pid (line 108) | func (d *Daemon) Pid() int { method IncRef (line 112) | func (d *Daemon) IncRef() { method DecRef (line 116) | func (d *Daemon) DecRef() int32 { method GetRef (line 120) | func (d *Daemon) GetRef() int32 { method HostMountpoint (line 124) | func (d *Daemon) HostMountpoint() (mnt string) { method ConfigFile (line 130) | func (d *Daemon) ConfigFile(instanceID string) string { method NydusdThreadNum (line 138) | func (d *Daemon) NydusdThreadNum() int { method GetAPISock (line 142) | func (d *Daemon) GetAPISock() string { method LogFile (line 146) | func (d *Daemon) LogFile() string { method AddRafsInstance (line 150) | func (d *Daemon) AddRafsInstance(r *rafs.Rafs) { method UpdateRafsInstance (line 157) | func (d *Daemon) UpdateRafsInstance(r *rafs.Rafs) { method RemoveRafsInstance (line 161) | func (d *Daemon) RemoveRafsInstance(snapshotID string) { method GetState (line 173) | func (d *Daemon) GetState() (types.DaemonState, error) { method State (line 194) | func (d *Daemon) State() types.DaemonState { method ResetState (line 201) | func (d *Daemon) ResetState() { method WaitUntilState (line 208) | func (d *Daemon) WaitUntilState(expected types.DaemonState) error { method IsSharedDaemon (line 232) | func (d *Daemon) IsSharedDaemon() bool { method SharedMount (line 240) | func (d *Daemon) SharedMount(rafs *rafs.Rafs) error { method sharedFusedevMount (line 256) | func (d *Daemon) sharedFusedevMount(rafs *rafs.Rafs) error { method sharedErofsMount (line 286) | func (d *Daemon) sharedErofsMount(ra *rafs.Rafs) error { method SharedUmount (line 337) | func (d *Daemon) SharedUmount(rafs *rafs.Rafs) error { method sharedErofsUmount (line 357) | func (d *Daemon) sharedErofsUmount(ra *rafs.Rafs) error { method UmountRafsInstance (line 383) | func (d *Daemon) UmountRafsInstance(r *rafs.Rafs) error { method UmountRafsInstances (line 393) | func (d *Daemon) UmountRafsInstances() error { method SendStates (line 410) | func (d *Daemon) SendStates() { method doSendStates (line 428) | func (d *Daemon) doSendStates() error { method TakeOver (line 441) | func (d *Daemon) TakeOver() error { method Start (line 454) | func (d *Daemon) Start() error { method Exit (line 467) | func (d *Daemon) Exit() error { method GetDaemonInfo (line 480) | func (d *Daemon) GetDaemonInfo() (*types.DaemonInfo, error) { method GetFsMetrics (line 489) | func (d *Daemon) GetFsMetrics(sid string) (*types.FsMetrics, error) { method GetInflightMetrics (line 498) | func (d *Daemon) GetInflightMetrics() (*types.InflightMetrics, error) { method UpdateAuthConfig (line 512) | func (d *Daemon) UpdateAuthConfig(snapshotID string, kc *auth.PassKeyC... method GetCacheMetrics (line 543) | func (d *Daemon) GetCacheMetrics(sid string) (*types.CacheMetrics, err... method GetClient (line 551) | func (d *Daemon) GetClient() (NydusdClient, error) { method ResetClient (line 572) | func (d *Daemon) ResetClient() { method Terminate (line 578) | func (d *Daemon) Terminate() error { method Wait (line 597) | func (d *Daemon) Wait() error { method ClearVestige (line 626) | func (d *Daemon) ClearVestige() { method CloneRafsInstances (line 654) | func (d *Daemon) CloneRafsInstances(src *Daemon) { method RecoverRafsInstances (line 665) | func (d *Daemon) RecoverRafsInstances() error { function NewDaemon (line 693) | func NewDaemon(opt ...NewDaemonOpt) (*Daemon, error) { function GetDaemonGitCommit (line 709) | func GetDaemonGitCommit(nydusdPath string) (string, error) { FILE: pkg/daemon/daemon_test.go function TestMain (line 26) | func TestMain(m *testing.M) { function minimalFuseConfig (line 35) | func minimalFuseConfig() []byte { function TestUpdateAuthConfig (line 45) | func TestUpdateAuthConfig(t *testing.T) { FILE: pkg/daemon/idgen.go function newID (line 13) | func newID() string { FILE: pkg/daemon/types/types.go type BuildTimeInfo (line 10) | type BuildTimeInfo struct type DaemonState (line 18) | type DaemonState constant DaemonStateUnknown (line 21) | DaemonStateUnknown DaemonState = "UNKNOWN" constant DaemonStateInit (line 22) | DaemonStateInit DaemonState = "INIT" constant DaemonStateReady (line 23) | DaemonStateReady DaemonState = "READY" constant DaemonStateRunning (line 24) | DaemonStateRunning DaemonState = "RUNNING" constant DaemonStateDied (line 25) | DaemonStateDied DaemonState = "DIED" constant DaemonStateDestroyed (line 26) | DaemonStateDestroyed DaemonState = "DESTROYED" type DaemonInfo (line 29) | type DaemonInfo struct method DaemonState (line 35) | func (info *DaemonInfo) DaemonState() DaemonState { method DaemonVersion (line 39) | func (info *DaemonInfo) DaemonVersion() BuildTimeInfo { type ErrorMessage (line 43) | type ErrorMessage struct type MountRequest (line 48) | type MountRequest struct function NewMountRequest (line 54) | func NewMountRequest(source, config string) MountRequest { type FsMetrics (line 62) | type FsMetrics struct type InflightMetrics (line 76) | type InflightMetrics struct type CacheMetrics (line 85) | type CacheMetrics struct FILE: pkg/encryption/encryption.go function encryptLayer (line 32) | func encryptLayer(cc *encconfig.CryptoConfig, dataReader content.ReaderA... function decryptLayer (line 90) | func decryptLayer(cc *encconfig.CryptoConfig, dataReader content.ReaderA... function ingestReader (line 117) | func ingestReader(ctx context.Context, cs content.Ingester, ref string, ... function EncryptNydusBootstrap (line 143) | func EncryptNydusBootstrap(ctx context.Context, cs content.Store, desc o... function DeryptNydusBootstrap (line 206) | func DeryptNydusBootstrap(ctx context.Context, cs content.Store, desc oc... FILE: pkg/errdefs/errors.go function IsAlreadyExists (line 28) | func IsAlreadyExists(err error) bool { function IsNotFound (line 33) | func IsNotFound(err error) bool { function IsConnectionClosed (line 39) | func IsConnectionClosed(err error) bool { function IsErofsMounted (line 48) | func IsErofsMounted(err error) bool { FILE: pkg/fanotify/conn/conn.go type Client (line 14) | type Client struct method GetEventInfo (line 24) | func (c *Client) GetEventInfo() (*EventInfo, error) { type EventInfo (line 18) | type EventInfo struct FILE: pkg/fanotify/fanotify.go type Server (line 26) | type Server struct method RunServer (line 52) | func (fserver *Server) RunServer() error { method RunReceiver (line 103) | func (fserver *Server) RunReceiver() error { method StopServer (line 152) | func (fserver *Server) StopServer() { function NewServer (line 39) | func NewServer(binaryPath string, containerPid uint32, imageName string,... FILE: pkg/filesystem/config.go type NewFSOpt (line 21) | type NewFSOpt function WithNydusdBinaryPath (line 23) | func WithNydusdBinaryPath(p string) NewFSOpt { function WithManagers (line 30) | func WithManagers(managers []*manager.Manager) NewFSOpt { function WithCacheManager (line 42) | func WithCacheManager(cm *cache.Manager) NewFSOpt { function WithReferrerManager (line 53) | func WithReferrerManager(rm *referrer.Manager) NewFSOpt { function WithIndexManager (line 64) | func WithIndexManager(im *index.Manager) NewFSOpt { function WithTarfsManager (line 75) | func WithTarfsManager(tm *tarfs.Manager) NewFSOpt { function WithVerifier (line 85) | func WithVerifier(verifier *signature.Verifier) NewFSOpt { function WithRootMountpoint (line 92) | func WithRootMountpoint(mountpoint string) NewFSOpt { function WithEnableStargz (line 99) | func WithEnableStargz(enable bool) NewFSOpt { FILE: pkg/filesystem/fs.go type Filesystem (line 47) | type Filesystem struct method TryRetainSharedDaemon (line 207) | func (fs *Filesystem) TryRetainSharedDaemon(d *daemon.Daemon) { method TryStopSharedDaemon (line 224) | func (fs *Filesystem) TryStopSharedDaemon() { method WaitUntilReady (line 251) | func (fs *Filesystem) WaitUntilReady(snapshotID string) error { method Mount (line 319) | func (fs *Filesystem) Mount(ctx context.Context, snapshotID string, la... method getSnapshotMutex (line 491) | func (fs *Filesystem) getSnapshotMutex(snapshotID string) *sync.Mutex { method copyBlobMetaFiles (line 496) | func (fs *Filesystem) copyBlobMetaFiles(bootstrap, cacheDir string) er... method copyFile (line 522) | func (fs *Filesystem) copyFile(src, dst string) error { method Umount (line 539) | func (fs *Filesystem) Umount(_ context.Context, snapshotID string) err... method CacheUsage (line 599) | func (fs *Filesystem) CacheUsage(ctx context.Context, blobDigest strin... method RemoveCache (line 610) | func (fs *Filesystem) RemoveCache(blobDigest string) error { method WalkManagers (line 638) | func (fs *Filesystem) WalkManagers(fn func(*manager.Manager) error) er... method GetCacheDir (line 648) | func (fs *Filesystem) GetCacheDir() (string, error) { method Teardown (line 657) | func (fs *Filesystem) Teardown(ctx context.Context) error { method MountPoint (line 676) | func (fs *Filesystem) MountPoint(snapshotID string) (string, error) { method BootstrapFile (line 685) | func (fs *Filesystem) BootstrapFile(id string) (string, error) { method mountRemote (line 695) | func (fs *Filesystem) mountRemote(fsManager *manager.Manager, useShare... method decideDaemonMountpoint (line 718) | func (fs *Filesystem) decideDaemonMountpoint(fsDriver string, isShared... method initSharedDaemon (line 738) | func (fs *Filesystem) initSharedDaemon(fsManager *manager.Manager) (er... method createDaemon (line 789) | func (fs *Filesystem) createDaemon(fsManager *manager.Manager, daemonM... method getManager (line 835) | func (fs *Filesystem) getManager(fsDriver string) (*manager.Manager, e... method getSharedDaemon (line 843) | func (fs *Filesystem) getSharedDaemon(fsDriver string) (*daemon.Daemon... method getDaemonByRafs (line 858) | func (fs *Filesystem) getDaemonByRafs(rafs *racache.Rafs) (*daemon.Dae... method GetDaemonByID (line 871) | func (fs *Filesystem) GetDaemonByID(id string) (*daemon.Daemon, error) { function NewFileSystem (line 64) | func NewFileSystem(ctx context.Context, opt ...NewFSOpt) (*Filesystem, e... FILE: pkg/filesystem/index_adaptor.go method IndexDetectEnabled (line 21) | func (fs *Filesystem) IndexDetectEnabled() bool { method CheckIndexAlternative (line 26) | func (fs *Filesystem) CheckIndexAlternative(ctx context.Context, labels ... method TryFetchMetadataFromIndex (line 60) | func (fs *Filesystem) TryFetchMetadataFromIndex(ctx context.Context, lab... FILE: pkg/filesystem/referer_adaptor.go method ReferrerDetectEnabled (line 18) | func (fs *Filesystem) ReferrerDetectEnabled() bool { method CheckReferrer (line 22) | func (fs *Filesystem) CheckReferrer(ctx context.Context, labels map[stri... method TryFetchMetadata (line 44) | func (fs *Filesystem) TryFetchMetadata(ctx context.Context, labels map[s... FILE: pkg/filesystem/stargz_adaptor.go method UpperPath (line 31) | func (fs *Filesystem) UpperPath(id string) string { method StargzEnabled (line 35) | func (fs *Filesystem) StargzEnabled() bool { method IsStargzDataLayer (line 41) | func (fs *Filesystem) IsStargzDataLayer(labels map[string]string) (bool,... method MergeStargzMetaLayer (line 73) | func (fs *Filesystem) MergeStargzMetaLayer(ctx context.Context, s storag... method PrepareStargzMetaLayer (line 165) | func (fs *Filesystem) PrepareStargzMetaLayer(blob *stargz.Blob, storageP... method StargzLayer (line 262) | func (fs *Filesystem) StargzLayer(labels map[string]string) bool { FILE: pkg/filesystem/tarfs_adaptor.go method TarfsEnabled (line 20) | func (fs *Filesystem) TarfsEnabled() bool { method PrepareTarfsLayer (line 24) | func (fs *Filesystem) PrepareTarfsLayer(ctx context.Context, labels map[... method MergeTarfsLayers (line 66) | func (fs *Filesystem) MergeTarfsLayers(s storage.Snapshot, storageLocate... method DetachTarfsLayer (line 70) | func (fs *Filesystem) DetachTarfsLayer(snapshotID string) error { method ExportBlockData (line 74) | func (fs *Filesystem) ExportBlockData(s storage.Snapshot, perLayer bool,... method GetTarfsImageDiskFilePath (line 79) | func (fs *Filesystem) GetTarfsImageDiskFilePath(id string) (string, erro... method GetTarfsLayerDiskFilePath (line 86) | func (fs *Filesystem) GetTarfsLayerDiskFilePath(id string) (string, erro... FILE: pkg/index/detector.go constant maxManifestIndexSize (line 29) | maxManifestIndexSize = 0x800000 type detector (line 31) | type detector struct method checkIndexAlternative (line 43) | func (d *detector) checkIndexAlternative(ctx context.Context, ref stri... method findNydusManifestInIndex (line 113) | func (d *detector) findNydusManifestInIndex(index ocispec.Index, origi... method hasNydusFeatures (line 137) | func (d *detector) hasNydusFeatures(platform *ocispec.Platform) bool { method hasNydusArtifactType (line 146) | func (d *detector) hasNydusArtifactType(desc *ocispec.Descriptor) bool { method fetchMetadata (line 154) | func (d *detector) fetchMetadata(ctx context.Context, ref string, desc... function newDetector (line 35) | func newDetector(keyChain *auth.PassKeyChain, insecure bool) *detector { FILE: pkg/index/detector_test.go function TestHasNydusFeatures (line 17) | func TestHasNydusFeatures(t *testing.T) { function TestFindNydusManifestInIndex (line 75) | func TestFindNydusManifestInIndex(t *testing.T) { FILE: pkg/index/manager.go type Manager (line 24) | type Manager struct method CheckIndexAlternative (line 42) | func (manager *Manager) CheckIndexAlternative(ctx context.Context, ref... method TryFetchMetadata (line 87) | func (manager *Manager) TryFetchMetadata(ctx context.Context, ref stri... function NewManager (line 30) | func NewManager(insecure bool) *Manager { FILE: pkg/index/manager_test.go function TestCheckIndexAlternative (line 18) | func TestCheckIndexAlternative(t *testing.T) { FILE: pkg/label/label.go constant CRIImageRef (line 18) | CRIImageRef = snpkg.TargetRefLabel constant CRIImageLayers (line 19) | CRIImageLayers = snpkg.TargetImageLayersLabel constant CRILayerDigest (line 20) | CRILayerDigest = snpkg.TargetLayerDigestLabel constant CRIManifestDigest (line 21) | CRIManifestDigest = snpkg.TargetManifestDigestLabel constant TargetSnapshotRef (line 29) | TargetSnapshotRef = "containerd.io/snapshot.ref" constant NydusDataLayer (line 32) | NydusDataLayer = "containerd.io/snapshot/nydus-blob" constant NydusMetaLayer (line 34) | NydusMetaLayer = "containerd.io/snapshot/nydus-bootstrap" constant NydusRefLayer (line 36) | NydusRefLayer = "containerd.io/snapshot/nydus-ref" constant NydusTarfsLayer (line 38) | NydusTarfsLayer = "containerd.io/snapshot/nydus-tarfs" constant NydusImageBlockInfo (line 40) | NydusImageBlockInfo = "containerd.io/snapshot/nydus-image-block" constant NydusLayerBlockInfo (line 42) | NydusLayerBlockInfo = "containerd.io/snapshot/nydus-layer-block" constant NydusImagePullSecret (line 44) | NydusImagePullSecret = "containerd.io/snapshot/pullsecret" constant NydusImagePullUsername (line 46) | NydusImagePullUsername = "containerd.io/snapshot/pullusername" constant NydusProxyMode (line 48) | NydusProxyMode = "containerd.io/snapshot/nydus-proxy-mode" constant NydusSignature (line 50) | NydusSignature = "containerd.io/snapshot/nydus-signature" constant StargzLayer (line 53) | StargzLayer = "containerd.io/snapshot/stargz" constant OverlayfsVolatileOpt (line 58) | OverlayfsVolatileOpt = "containerd.io/snapshot/overlay.volatile" constant TarfsHint (line 62) | TarfsHint = "containerd.io/snapshot/tarfs-hint" constant NydusIndexAlternative (line 65) | NydusIndexAlternative = "containerd.io/snapshot/nydus-index-alternative" function IsNydusDataLayer (line 68) | func IsNydusDataLayer(labels map[string]string) bool { function IsNydusMetaLayer (line 73) | func IsNydusMetaLayer(labels map[string]string) bool { function IsTarfsDataLayer (line 78) | func IsTarfsDataLayer(labels map[string]string) bool { function IsNydusProxyMode (line 83) | func IsNydusProxyMode(labels map[string]string) bool { function HasTarfsHint (line 88) | func HasTarfsHint(labels map[string]string) bool { FILE: pkg/layout/layout.go constant MaxSuperBlockSize (line 18) | MaxSuperBlockSize = 8 * 1024 constant RafsV5 (line 20) | RafsV5 string = "v5" constant RafsV6 (line 21) | RafsV6 string = "v6" constant RafsV5SuperVersion (line 22) | RafsV5SuperVersion uint32 = 0x500 constant RafsV5SuperMagic (line 23) | RafsV5SuperMagic uint32 = 0x5241_4653 constant RafsV6SuperMagic (line 24) | RafsV6SuperMagic uint32 = 0xE0F5_E1E2 constant RafsV6SuperBlockSize (line 25) | RafsV6SuperBlockSize uint32 = 1024 + 128 + 256 constant RafsV6SuperBlockOffset (line 26) | RafsV6SuperBlockOffset uint32 = 1024 constant RafsV6ChunkInfoOffset (line 27) | RafsV6ChunkInfoOffset uint32 = 1024 + 128 + 24 constant BootstrapFile (line 28) | BootstrapFile string = "image/image.boot" constant LegacyBootstrapFile (line 29) | LegacyBootstrapFile string = "image.boot" constant DummyMountpoint (line 30) | DummyMountpoint string = "/dummy" type ImageMode (line 35) | type ImageMode constant OnDemand (line 38) | OnDemand ImageMode = iota constant PreLoad (line 39) | PreLoad function init (line 42) | func init() { function isRafsV6 (line 56) | func isRafsV6(buf []byte) bool { function DetectFsVersion (line 60) | func DetectFsVersion(header []byte) (string, error) { FILE: pkg/manager/daemon_adaptor.go constant endpointGetBackend (line 29) | endpointGetBackend string = "/api/v1/daemons/%s/backend" method StartDaemon (line 38) | func (m *Manager) StartDaemon(d *daemon.Daemon) error { method BuildDaemonCommand (line 123) | func (m *Manager) BuildDaemonCommand(d *daemon.Daemon, bin string, upgra... FILE: pkg/manager/daemon_cache.go type DaemonCache (line 18) | type DaemonCache struct method Add (line 32) | func (s *DaemonCache) Add(daemon *daemon.Daemon) *daemon.Daemon { method removeLocked (line 41) | func (s *DaemonCache) removeLocked(d *daemon.Daemon) *daemon.Daemon { method Remove (line 47) | func (s *DaemonCache) Remove(d *daemon.Daemon) *daemon.Daemon { method RemoveByDaemonID (line 55) | func (s *DaemonCache) RemoveByDaemonID(id string) *daemon.Daemon { method Update (line 60) | func (s *DaemonCache) Update(d *daemon.Daemon) { method GetByDaemonID (line 69) | func (s *DaemonCache) GetByDaemonID(id string, op func(d *daemon.Daemo... method List (line 82) | func (s *DaemonCache) List() []*daemon.Daemon { method Size (line 98) | func (s *DaemonCache) Size() int { function newDaemonCache (line 23) | func newDaemonCache() *DaemonCache { FILE: pkg/manager/daemon_cache_test.go function TestDaemonStatesCache (line 26) | func TestDaemonStatesCache(t *testing.T) { FILE: pkg/manager/daemon_event.go method SubscribeDaemonEvent (line 26) | func (m *Manager) SubscribeDaemonEvent(d *daemon.Daemon) error { method UnsubscribeDaemonEvent (line 34) | func (m *Manager) UnsubscribeDaemonEvent(d *daemon.Daemon) error { method handleDaemonDeathEvent (line 43) | func (m *Manager) handleDaemonDeathEvent() { method doDaemonFailover (line 73) | func (m *Manager) doDaemonFailover(d *daemon.Daemon) { method doDaemonRestart (line 112) | func (m *Manager) doDaemonRestart(d *daemon.Daemon) { method DoDaemonUpgrade (line 144) | func (m *Manager) DoDaemonUpgrade(d *daemon.Daemon, nydusdPath string, m... function buildNextAPISocket (line 225) | func buildNextAPISocket(cur string) (string, error) { FILE: pkg/manager/manager.go type Manager (line 33) | type Manager struct method Lock (line 106) | func (m *Manager) Lock() { method Unlock (line 110) | func (m *Manager) Unlock() { method CacheDir (line 114) | func (m *Manager) CacheDir() string { method Recover (line 124) | func (m *Manager) Recover(ctx context.Context, method AddRafsInstance (line 135) | func (m *Manager) AddRafsInstance(r *rafs.Rafs) error { method UpdateRafsInstance (line 149) | func (m *Manager) UpdateRafsInstance(r *rafs.Rafs) error { method RemoveRafsInstance (line 153) | func (m *Manager) RemoveRafsInstance(snapshotID string) error { method recoverRafsInstances (line 157) | func (m *Manager) recoverRafsInstances(ctx context.Context, method AddDaemon (line 190) | func (m *Manager) AddDaemon(daemon *daemon.Daemon) error { method UpdateDaemon (line 204) | func (m *Manager) UpdateDaemon(daemon *daemon.Daemon) error { method UpdateDaemonLocked (line 212) | func (m *Manager) UpdateDaemonLocked(daemon *daemon.Daemon) error { method DeleteDaemon (line 223) | func (m *Manager) DeleteDaemon(daemon *daemon.Daemon) error { method GetByDaemonID (line 238) | func (m *Manager) GetByDaemonID(id string) *daemon.Daemon { method ListDaemons (line 242) | func (m *Manager) ListDaemons() []*daemon.Daemon { method DestroyDaemon (line 248) | func (m *Manager) DestroyDaemon(d *daemon.Daemon) error { method cleanUpDaemonResources (line 295) | func (m *Manager) cleanUpDaemonResources(d *daemon.Daemon) { method recoverDaemons (line 312) | func (m *Manager) recoverDaemons(ctx context.Context, type Opt (line 54) | type Opt struct function NewManager (line 65) | func NewManager(opt Opt) (*Manager, error) { FILE: pkg/manager/monitor.go type LivenessMonitor (line 26) | type LivenessMonitor interface type target (line 38) | type target struct type livenessMonitor (line 50) | type livenessMonitor struct method Subscribe (line 81) | func (m *livenessMonitor) Subscribe(id string, path string, notifier c... method Unsubscribe (line 151) | func (m *livenessMonitor) Unsubscribe(id string) (err error) { method unsubscribe (line 158) | func (m *livenessMonitor) unsubscribe(id string) (err error) { method Run (line 191) | func (m *livenessMonitor) Run() { method Destroy (line 231) | func (m *livenessMonitor) Destroy() { type deathEvent (line 60) | type deathEvent struct function newMonitor (line 65) | func newMonitor() (_ *livenessMonitor, err error) { FILE: pkg/manager/monitor_test.go function startUnixServer (line 20) | func startUnixServer(ctx context.Context, sock string) { function TestLivenessMonitor (line 47) | func TestLivenessMonitor(t *testing.T) { FILE: pkg/manager/store.go type Store (line 19) | type Store interface FILE: pkg/metrics/collector/cache.go type CacheMetricsCollector (line 15) | type CacheMetricsCollector struct method Collect (line 25) | func (c *CacheMetricsCollector) Collect() { type CacheMetricsVecCollector (line 21) | type CacheMetricsVecCollector struct method Collect (line 49) | func (c *CacheMetricsVecCollector) Collect() { FILE: pkg/metrics/collector/collector.go type Collector (line 21) | type Collector interface function NewDaemonEventCollector (line 26) | func NewDaemonEventCollector(ev types.DaemonState) *DaemonEventCollector { function NewFsMetricsCollector (line 30) | func NewFsMetricsCollector(m *types.FsMetrics, imageRef string) *FsMetri... function NewFsMetricsVecCollector (line 34) | func NewFsMetricsVecCollector() *FsMetricsVecCollector { function NewInflightMetricsVecCollector (line 38) | func NewInflightMetricsVecCollector(hungIOInterval time.Duration) *Infli... function NewDaemonInfoCollector (line 44) | func NewDaemonInfoCollector(version *types.BuildTimeInfo, value float64)... function NewDaemonImageCollector (line 48) | func NewDaemonImageCollector(daemonID, imageRef string) *DaemonImageColl... function NewSnapshotterMetricsCollector (line 52) | func NewSnapshotterMetricsCollector(ctx context.Context, cacheDir string... function NewSnapshotMetricsTimer (line 60) | func NewSnapshotMetricsTimer(method SnapshotMethod) *prometheus.Timer { function NewCacheMetricsCollector (line 64) | func NewCacheMetricsCollector(m *types.CacheMetrics, imageRef, daemonID ... function NewCacheMetricsVecCollector (line 68) | func NewCacheMetricsVecCollector() *CacheMetricsVecCollector { FILE: pkg/metrics/collector/daemon.go type DaemonEventCollector (line 15) | type DaemonEventCollector struct method Collect (line 34) | func (d *DaemonEventCollector) Collect() { type DaemonInfoCollector (line 19) | type DaemonInfoCollector struct method Collect (line 38) | func (d *DaemonInfoCollector) Collect() { type DaemonResourceCollector (line 24) | type DaemonResourceCollector struct method Collect (line 46) | func (d *DaemonResourceCollector) Collect() { type DaemonImageCollector (line 29) | type DaemonImageCollector struct method Collect (line 50) | func (d *DaemonImageCollector) Collect() { method Delete (line 54) | func (d *DaemonImageCollector) Delete() { FILE: pkg/metrics/collector/fs.go type FsMetricsCollector (line 22) | type FsMetricsCollector struct method Collect (line 36) | func (f *FsMetricsCollector) Collect() { type FsMetricsVecCollector (line 27) | type FsMetricsVecCollector struct method Clear (line 79) | func (f *FsMetricsVecCollector) Clear() { method Collect (line 85) | func (f *FsMetricsVecCollector) Collect() { type InflightMetricsVecCollector (line 31) | type InflightMetricsVecCollector struct method Collect (line 55) | func (i *InflightMetricsVecCollector) Collect() { FILE: pkg/metrics/collector/snapshotter.go type SnapshotterMetricsCollector (line 19) | type SnapshotterMetricsCollector struct method CollectCacheUsage (line 36) | func (s *SnapshotterMetricsCollector) CollectCacheUsage() { method CollectResourceUsage (line 45) | func (s *SnapshotterMetricsCollector) CollectResourceUsage() { method Collect (line 80) | func (s *SnapshotterMetricsCollector) Collect() { type SnapshotMethod (line 26) | type SnapshotMethod constant SnapshotMethodUnknown (line 29) | SnapshotMethodUnknown SnapshotMethod = "UNKNOWN" constant SnapshotMethodPrepare (line 30) | SnapshotMethodPrepare SnapshotMethod = "PREPARE" constant SnapshotMethodMount (line 31) | SnapshotMethodMount SnapshotMethod = "MOUNTS" constant SnapshotMethodCleanup (line 32) | SnapshotMethodCleanup SnapshotMethod = "CLEANUP" constant SnapshotMethodRemove (line 33) | SnapshotMethodRemove SnapshotMethod = "REMOVE" function CollectSnapshotMetricsTimer (line 85) | func CollectSnapshotMetricsTimer(h *prometheus.HistogramVec, event Snaps... FILE: pkg/metrics/data/labels.go constant imageRefLabel (line 4) | imageRefLabel = "image_ref" constant nydusdEventLabel (line 5) | nydusdEventLabel = "nydusd_event" constant nydusdVersionLabel (line 6) | nydusdVersionLabel = "version" constant daemonIDLabel (line 7) | daemonIDLabel = "daemon_id" constant snapshotEventLabel (line 8) | snapshotEventLabel = "snapshot_operation" constant credentialResultLabel (line 9) | credentialResultLabel = "result" FILE: pkg/metrics/listener.go function trapClosedConnErr (line 24) | func trapClosedConnErr(err error) error { function NewMetricsHTTPListenerServer (line 32) | func NewMetricsHTTPListenerServer(addr string) error { FILE: pkg/metrics/registry/registry.go function init (line 18) | func init() { FILE: pkg/metrics/serve.go type ServerOpt (line 26) | type ServerOpt type Server (line 28) | type Server struct method CollectDaemonResourceMetrics (line 87) | func (s *Server) CollectDaemonResourceMetrics(_ context.Context) { method CollectFsMetrics (line 105) | func (s *Server) CollectFsMetrics(ctx context.Context) { method CollectCacheMetrics (line 150) | func (s *Server) CollectCacheMetrics(ctx context.Context) { method CollectInflightMetrics (line 191) | func (s *Server) CollectInflightMetrics(ctx context.Context) { method StartCollectMetrics (line 222) | func (s *Server) StartCollectMetrics(ctx context.Context) error { function WithProcessManagers (line 38) | func WithProcessManagers(managers []*manager.Manager) ServerOpt { function WithCollectInterval (line 45) | func WithCollectInterval(interval time.Duration) ServerOpt { function WithHungIOInterval (line 55) | func WithHungIOInterval(hungIOInterval time.Duration) ServerOpt { function NewServer (line 65) | func NewServer(ctx context.Context, opts ...ServerOpt) (*Server, error) { FILE: pkg/metrics/tool/common.go constant defaultClkTck (line 21) | defaultClkTck = 100 function FormatFloat64 (line 24) | func FormatFloat64(f float64, point int) float64 { function ParseFloat64 (line 39) | func ParseFloat64(val string) float64 { function GetClkTck (line 44) | func GetClkTck() float64 { function GetPageSize (line 58) | func GetPageSize() float64 { FILE: pkg/metrics/tool/stat.go type Stat (line 20) | type Stat struct function CalculateCPUUtilization (line 37) | func CalculateCPUUtilization(begin *Stat, now *Stat) (float64, error) { function GetProcessMemoryRSSKiloBytes (line 53) | func GetProcessMemoryRSSKiloBytes(pid int) (float64, error) { function GetProcessStat (line 62) | func GetProcessStat(pid int) (*Stat, error) { function GetProcessRunningState (line 98) | func GetProcessRunningState(pid int) (string, error) { function IsZombieProcess (line 109) | func IsZombieProcess(pid int) (bool, error) { FILE: pkg/metrics/tool/stat_test.go function TestFindZombie (line 15) | func TestFindZombie(t *testing.T) { FILE: pkg/metrics/types/ttl/gauge.go type LabelWithValue (line 22) | type LabelWithValue struct type GaugeVec (line 27) | type GaugeVec struct method cleanUpExpired (line 53) | func (gv *GaugeVec) cleanUpExpired() { method WithLabelValues (line 68) | func (gv *GaugeVec) WithLabelValues(val ...string) *GaugeWithTTL { type GaugeWithTTL (line 35) | type GaugeWithTTL struct method Set (line 77) | func (gwt *GaugeWithTTL) Set(val float64) { function NewGaugeVecWithTTL (line 41) | func NewGaugeVecWithTTL(opts prometheus.GaugeOpts, labelNames []string, ... FILE: pkg/metrics/types/ttl/gauge_test.go function TestNewGaugeVecWithTTL (line 19) | func TestNewGaugeVecWithTTL(t *testing.T) { FILE: pkg/metrics/types/types.go type Fop (line 16) | type Fop constant Getattr (line 19) | Getattr = iota constant Readlink (line 20) | Readlink constant Open (line 21) | Open constant Release (line 22) | Release constant Read (line 23) | Read constant Statfs (line 24) | Statfs constant Getxattr (line 25) | Getxattr constant Listxattr (line 26) | Listxattr constant Opendir (line 27) | Opendir constant Lookup (line 28) | Lookup constant Readdir (line 29) | Readdir constant Readdirplus (line 30) | Readdirplus constant Access (line 31) | Access constant Forget (line 32) | Forget constant BatchForget (line 33) | BatchForget constant MaxFops (line 35) | MaxFops function GetMaxFops (line 38) | func GetMaxFops() uint { function MakeFopBuckets (line 42) | func MakeFopBuckets() []uint64 { type GetCountersFn (line 51) | type GetCountersFn type MetricHistogram (line 53) | type MetricHistogram struct method ToConstHistogram (line 62) | func (h *MetricHistogram) ToConstHistogram(m *types.FsMetrics, imageRe... method Clear (line 85) | func (h *MetricHistogram) Clear() { method Save (line 89) | func (h *MetricHistogram) Save(m prometheus.Metric) { method Describe (line 94) | func (h *MetricHistogram) Describe(ch chan<- *prometheus.Desc) { method Collect (line 100) | func (h *MetricHistogram) Collect(ch chan<- prometheus.Metric) { FILE: pkg/pprof/listener.go function NewPprofHTTPListener (line 18) | func NewPprofHTTPListener(addr string) error { FILE: pkg/prefetch/prefetch.go type prefetchInfo (line 16) | type prefetchInfo struct method SetPrefetchFiles (line 23) | func (p *prefetchInfo) SetPrefetchFiles(body []byte) error { method GetPrefetchInfo (line 45) | func (p *prefetchInfo) GetPrefetchInfo(image string) string { method DeleteFromPrefetchMap (line 55) | func (p *prefetchInfo) DeleteFromPrefetchMap(image string) { FILE: pkg/rafs/rafs.go constant AnnoFsCacheDomainID (line 24) | AnnoFsCacheDomainID string = "fscache.domainid" constant AnnoFsCacheID (line 25) | AnnoFsCacheID string = "fscache.id" type NewRafsOpt (line 28) | type NewRafsOpt function init (line 30) | func init() { type Cache (line 39) | type Cache struct method Lock (line 48) | func (rs *Cache) Lock() { method Unlock (line 52) | func (rs *Cache) Unlock() { method Add (line 56) | func (rs *Cache) Add(r *Rafs) { method Remove (line 62) | func (rs *Cache) Remove(snapshotID string) { method Get (line 68) | func (rs *Cache) Get(snapshotID string) *Rafs { method Len (line 75) | func (rs *Cache) Len() int { method Head (line 82) | func (rs *Cache) Head() *Rafs { method List (line 92) | func (rs *Cache) List() map[string]*Rafs { method ListLocked (line 101) | func (rs *Cache) ListLocked() map[string]*Rafs { method SetIntances (line 105) | func (rs *Cache) SetIntances(instances map[string]*Rafs) { function NewRafsCache (line 44) | func NewRafsCache() Cache { type Rafs (line 112) | type Rafs struct method AddAnnotation (line 146) | func (r *Rafs) AddAnnotation(k, v string) { method GetSnapshotDir (line 150) | func (r *Rafs) GetSnapshotDir() string { method GetFsDriver (line 154) | func (r *Rafs) GetFsDriver() string { method FscacheWorkDir (line 163) | func (r *Rafs) FscacheWorkDir() string { method SetMountpoint (line 167) | func (r *Rafs) SetMountpoint(mp string) { method GetMountpoint (line 177) | func (r *Rafs) GetMountpoint() string { method RelaMountpoint (line 185) | func (r *Rafs) RelaMountpoint() string { method BootstrapFile (line 189) | func (r *Rafs) BootstrapFile() (string, error) { function NewRafs (line 126) | func NewRafs(snapshotID, imageID, fsDriver string) (*Rafs, error) { FILE: pkg/referrer/manager.go type Manager (line 21) | type Manager struct method CheckReferrer (line 39) | func (manager *Manager) CheckReferrer(ctx context.Context, ref string,... method TryFetchMetadata (line 75) | func (manager *Manager) TryFetchMetadata(ctx context.Context, ref stri... function NewManager (line 27) | func NewManager(insecure bool) *Manager { FILE: pkg/referrer/referrer.go constant maxManifestIndexSize (line 28) | maxManifestIndexSize = 0x800000 type referrer (line 30) | type referrer struct method checkReferrer (line 43) | func (r *referrer) checkReferrer(ctx context.Context, ref string, mani... method fetchMetadata (line 107) | func (r *referrer) fetchMetadata(ctx context.Context, ref string, desc... function newReferrer (line 34) | func newReferrer(keyChain *auth.PassKeyChain, insecure bool) *referrer { FILE: pkg/remote/remote.go function isErrHTTPResponseToHTTPSClient (line 26) | func isErrHTTPResponseToHTTPSClient(err error) bool { function isErrConnectionRefused (line 35) | func isErrConnectionRefused(err error) bool { type Remote (line 40) | type Remote struct method RetryWithPlainHTTP (line 101) | func (remote *Remote) RetryWithPlainHTTP(ref string, err error) bool { method Resolve (line 125) | func (remote *Remote) Resolve(_ context.Context, _ string) remotes.Res... method Fetcher (line 129) | func (remote *Remote) Fetcher(ctx context.Context, ref string) (remote... function New (line 56) | func New(keyChain *auth.PassKeyChain, insecure bool) *Remote { FILE: pkg/remote/remote_test.go function TestRetryWithPlainHTTP (line 16) | func TestRetryWithPlainHTTP(t *testing.T) { FILE: pkg/remote/remotes/docker/auth/fetch.go function GenerateTokenOptions (line 41) | func GenerateTokenOptions(ctx context.Context, host, username, secret st... type TokenOptions (line 70) | type TokenOptions struct type OAuthTokenResponse (line 88) | type OAuthTokenResponse struct function FetchTokenWithOAuth (line 97) | func FetchTokenWithOAuth(ctx context.Context, client *http.Client, heade... type FetchTokenResponse (line 154) | type FetchTokenResponse struct function FetchToken (line 163) | func FetchToken(ctx context.Context, client *http.Client, headers http.H... FILE: pkg/remote/remotes/docker/auth/fetch_test.go function TestGenerateTokenOptions (line 26) | func TestGenerateTokenOptions(t *testing.T) { FILE: pkg/remote/remotes/docker/auth/parse.go type AuthenticationScheme (line 26) | type AuthenticationScheme constant BasicAuth (line 30) | BasicAuth AuthenticationScheme = 1 << iota constant DigestAuth (line 32) | DigestAuth constant BearerAuth (line 34) | BearerAuth type Challenge (line 39) | type Challenge struct type byScheme (line 47) | type byScheme method Len (line 49) | func (bs byScheme) Len() int { return len(bs) } method Swap (line 50) | func (bs byScheme) Swap(i, j int) { bs[i], bs[j] = bs[j], bs[i] } method Less (line 53) | func (bs byScheme) Less(i, j int) bool { return bs[i].Scheme > bs[j].S... type octetType (line 56) | type octetType constant isToken (line 61) | isToken octetType = 1 << iota constant isSpace (line 62) | isSpace function init (line 65) | func init() { function ParseAuthHeader (line 98) | func ParseAuthHeader(header http.Header) []Challenge { function parseValueAndParams (line 119) | func parseValueAndParams(header string) (value string, params map[string... function skipSpace (line 147) | func skipSpace(s string) (rest string) { function expectToken (line 157) | func expectToken(s string) (token, rest string) { function expectTokenOrQuoted (line 167) | func expectTokenOrQuoted(s string) (value string, rest string) { FILE: pkg/remote/remotes/docker/auth/parse_test.go function TestParseAuthHeaderBearer (line 28) | func TestParseAuthHeaderBearer(t *testing.T) { function TestParseAuthHeader (line 75) | func TestParseAuthHeader(t *testing.T) { function FuzzParseAuthHeader (line 89) | func FuzzParseAuthHeader(f *testing.F) { FILE: pkg/remote/remotes/docker/authorizer.go type dockerAuthorizer (line 34) | type dockerAuthorizer struct method Authorize (line 111) | func (a *dockerAuthorizer) Authorize(ctx context.Context, req *http.Re... method getAuthHandler (line 136) | func (a *dockerAuthorizer) getAuthHandler(host string) *authHandler { method AddResponses (line 143) | func (a *dockerAuthorizer) AddResponses(ctx context.Context, responses... type authorizerConfig (line 47) | type authorizerConfig struct type AuthorizerOpt (line 55) | type AuthorizerOpt function WithAuthClient (line 58) | func WithAuthClient(client *http.Client) AuthorizerOpt { function WithAuthCreds (line 65) | func WithAuthCreds(creds func(string) (string, string, error)) Authorize... function WithAuthHeader (line 72) | func WithAuthHeader(hdr http.Header) AuthorizerOpt { type OnFetchRefreshToken (line 79) | type OnFetchRefreshToken function WithFetchRefreshToken (line 82) | func WithFetchRefreshToken(f OnFetchRefreshToken) AuthorizerOpt { function NewDockerAuthorizer (line 91) | func NewDockerAuthorizer(opts ...AuthorizerOpt) Authorizer { type authResult (line 204) | type authResult struct type authHandler (line 212) | type authHandler struct method authorize (line 240) | func (ah *authHandler) authorize(ctx context.Context) (string, string,... method doBasicAuth (line 251) | func (ah *authHandler) doBasicAuth(ctx context.Context) (string, strin... method doBearerAuth (line 262) | func (ah *authHandler) doBearerAuth(ctx context.Context) (token, refre... function newAuthHandler (line 230) | func newAuthHandler(client *http.Client, hdr http.Header, scheme auth.Au... function invalidAuthorization (line 331) | func invalidAuthorization(c auth.Challenge, responses []*http.Response) ... function sameRequest (line 345) | func sameRequest(r1, r2 *http.Request) bool { FILE: pkg/remote/remotes/docker/config/config_unix.go function hostPaths (line 26) | func hostPaths(root, host string) (hosts []string) { function rootSystemPool (line 40) | func rootSystemPool() (*x509.CertPool, error) { FILE: pkg/remote/remotes/docker/config/config_windows.go function hostPaths (line 25) | func hostPaths(root, host string) (hosts []string) { function rootSystemPool (line 39) | func rootSystemPool() (*x509.CertPool, error) { FILE: pkg/remote/remotes/docker/config/docker_fuzzer_internal.go function FuzzParseHostsFile (line 27) | func FuzzParseHostsFile(data []byte) int { FILE: pkg/remote/remotes/docker/config/hosts.go type UpdateClientFunc (line 42) | type UpdateClientFunc type hostConfig (line 44) | type hostConfig struct type HostOptions (line 61) | type HostOptions struct function ConfigureHosts (line 75) | func ConfigureHosts(ctx context.Context, options HostOptions) docker.Reg... function HostDirFromRoot (line 244) | func HostDirFromRoot(root string) func(string) (string, error) { function hostDirectory (line 258) | func hostDirectory(host string) string { function loadHostDir (line 266) | func loadHostDir(ctx context.Context, hostsDir string) ([]hostConfig, er... type hostFileConfig (line 289) | type hostFileConfig struct function parseHostsFile (line 327) | func parseHostsFile(baseDir string, b []byte) ([]hostConfig, error) { function parseHostConfig (line 381) | func parseHostConfig(server string, baseDir string, config hostFileConfi... function getSortedHosts (line 498) | func getSortedHosts(root *toml.Tree) ([]string, error) { function makeStringSlice (line 519) | func makeStringSlice(slice []interface{}, cb func(string) string) ([]str... function makeAbsPath (line 536) | func makeAbsPath(p string, base string) string { function loadCertFiles (line 552) | func loadCertFiles(ctx context.Context, certsDir string) ([]hostConfig, ... FILE: pkg/remote/remotes/docker/config/hosts_test.go constant allCaps (line 32) | allCaps = docker.HostCapabilityPull | docker.HostCapabilityResolve | doc... function TestDefaultHosts (line 34) | func TestDefaultHosts(t *testing.T) { function TestParseHostFile (line 75) | func TestParseHostFile(t *testing.T) { function TestLoadCertFiles (line 210) | func TestLoadCertFiles(t *testing.T) { function compareRegistryHost (line 287) | func compareRegistryHost(j, k docker.RegistryHost) bool { function compareHostConfig (line 304) | func compareHostConfig(j, k hostConfig) bool { function printHostConfig (line 362) | func printHostConfig(hc []hostConfig) string { FILE: pkg/remote/remotes/docker/converter.go constant LegacyConfigMediaType (line 36) | LegacyConfigMediaType = "application/octet-stream" function ConvertManifest (line 43) | func ConvertManifest(ctx context.Context, store content.Store, desc ocis... FILE: pkg/remote/remotes/docker/converter_fuzz.go function FuzzConvertManifest (line 32) | func FuzzConvertManifest(data []byte) int { FILE: pkg/remote/remotes/docker/errcode.go type ErrorCoder (line 27) | type ErrorCoder interface type ErrorCode (line 33) | type ErrorCode method ErrorCode (line 38) | func (ec ErrorCode) ErrorCode() ErrorCode { method Error (line 43) | func (ec ErrorCode) Error() string { method Descriptor (line 49) | func (ec ErrorCode) Descriptor() ErrorDescriptor { method String (line 60) | func (ec ErrorCode) String() string { method Message (line 65) | func (ec ErrorCode) Message() string { method MarshalText (line 71) | func (ec ErrorCode) MarshalText() (text []byte, err error) { method UnmarshalText (line 76) | func (ec *ErrorCode) UnmarshalText(text []byte) error { method WithMessage (line 90) | func (ec ErrorCode) WithMessage(message string) Error { method WithDetail (line 99) | func (ec ErrorCode) WithDetail(detail interface{}) Error { method WithArgs (line 107) | func (ec ErrorCode) WithArgs(args ...interface{}) Error { type Error (line 115) | type Error struct method ErrorCode (line 127) | func (e Error) ErrorCode() ErrorCode { method Error (line 132) | func (e Error) Error() string { method WithDetail (line 138) | func (e Error) WithDetail(detail interface{}) Error { method WithArgs (line 148) | func (e Error) WithArgs(args ...interface{}) Error { type ErrorDescriptor (line 157) | type ErrorDescriptor struct function ParseErrorCode (line 181) | func ParseErrorCode(value string) ErrorCode { type Errors (line 192) | type Errors method Error (line 196) | func (errs Errors) Error() string { method Len (line 212) | func (errs Errors) Len() int { method MarshalJSON (line 218) | func (errs Errors) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 255) | func (errs *Errors) UnmarshalJSON(data []byte) error { FILE: pkg/remote/remotes/docker/errdesc.go function Register (line 99) | func Register(group string, descriptor ErrorDescriptor) ErrorCode { type byValue (line 120) | type byValue method Len (line 122) | func (a byValue) Len() int { return len(a) } method Swap (line 123) | func (a byValue) Swap(i, j int) { a[i], a[j] = a[j], a[i] } method Less (line 124) | func (a byValue) Less(i, j int) bool { return a[i].Value < a[j].Value } function GetGroupNames (line 127) | func GetGroupNames() []string { function GetErrorCodeGroup (line 138) | func GetErrorCodeGroup(name string) []ErrorDescriptor { function GetErrorAllDescriptors (line 146) | func GetErrorAllDescriptors() []ErrorDescriptor { FILE: pkg/remote/remotes/docker/fetcher.go type dockerFetcher (line 36) | type dockerFetcher struct method Fetch (line 40) | func (r dockerFetcher) Fetch(ctx context.Context, desc ocispec.Descrip... method createGetReq (line 154) | func (r dockerFetcher) createGetReq(ctx context.Context, host Registry... method FetchByDigest (line 183) | func (r dockerFetcher) FetchByDigest(ctx context.Context, dgst digest.... method open (line 262) | func (r dockerFetcher) open(ctx context.Context, req *request, mediaty... FILE: pkg/remote/remotes/docker/fetcher_fuzz.go function FuzzFetcher (line 32) | func FuzzFetcher(data []byte) int { function FuzzParseDockerRef (line 78) | func FuzzParseDockerRef(data []byte) int { FILE: pkg/remote/remotes/docker/fetcher_test.go function TestFetcherOpen (line 33) | func TestFetcherOpen(t *testing.T) { function TestDockerFetcherOpen (line 121) | func TestDockerFetcherOpen(t *testing.T) { FILE: pkg/remote/remotes/docker/handler.go function AppendDistributionSourceLabel (line 34) | func AppendDistributionSourceLabel(manager content.Manager, ref string) ... function appendDistributionSourceLabel (line 79) | func appendDistributionSourceLabel(originLabel, repo string) string { function distributionSourceLabelKey (line 105) | func distributionSourceLabelKey(source string) string { function selectRepositoryMountCandidate (line 111) | func selectRepositoryMountCandidate(refspec reference.Spec, sources map[... function commonPrefixComponents (line 139) | func commonPrefixComponents(components []string, target string) int { FILE: pkg/remote/remotes/docker/handler_test.go function TestAppendDistributionLabel (line 27) | func TestAppendDistributionLabel(t *testing.T) { function TestDistributionSourceLabelKey (line 72) | func TestDistributionSourceLabelKey(t *testing.T) { function TestCommonPrefixComponents (line 79) | func TestCommonPrefixComponents(t *testing.T) { function TestSelectRepositoryMountCandidate (line 107) | func TestSelectRepositoryMountCandidate(t *testing.T) { FILE: pkg/remote/remotes/docker/httpreadseeker.go constant maxRetry (line 28) | maxRetry = 3 type httpReadSeeker (line 30) | type httpReadSeeker struct method Read (line 47) | func (hrs *httpReadSeeker) Read(p []byte) (n int, err error) { method Close (line 83) | func (hrs *httpReadSeeker) Close() error { method Seek (line 95) | func (hrs *httpReadSeeker) Seek(offset int64, whence int) (int64, erro... method reader (line 134) | func (hrs *httpReadSeeker) reader() (io.Reader, error) { function newHTTPReadSeeker (line 40) | func newHTTPReadSeeker(size int64, open func(offset int64) (io.ReadClose... FILE: pkg/remote/remotes/docker/pusher.go type dockerPusher (line 40) | type dockerPusher struct method Writer (line 52) | func (p dockerPusher) Writer(ctx context.Context, opts ...content.Writ... method Push (line 65) | func (p dockerPusher) Push(ctx context.Context, desc ocispec.Descripto... method push (line 69) | func (p dockerPusher) push(ctx context.Context, desc ocispec.Descripto... function getManifestPath (line 299) | func getManifestPath(object string, dgst digest.Digest) []string { type pushWriter (line 318) | type pushWriter struct method setPipe (line 349) | func (pw *pushWriter) setPipe(p *io.PipeWriter) { method setError (line 353) | func (pw *pushWriter) setError(err error) { method setResponse (line 356) | func (pw *pushWriter) setResponse(resp *http.Response) { method Write (line 360) | func (pw *pushWriter) Write(p []byte) (n int, err error) { method Close (line 407) | func (pw *pushWriter) Close() error { method Status (line 425) | func (pw *pushWriter) Status() (content.Status, error) { method Digest (line 434) | func (pw *pushWriter) Digest() digest.Digest { method Commit (line 439) | func (pw *pushWriter) Commit(ctx context.Context, size int64, expected... method Truncate (line 514) | func (pw *pushWriter) Truncate(size int64) error { function newPushWriter (line 335) | func newPushWriter(db *dockerBase, ref string, expected digest.Digest, t... function requestWithMountFrom (line 520) | func requestWithMountFrom(req *request, mount, from string) *request { FILE: pkg/remote/remotes/docker/pusher_test.go function TestGetManifestPath (line 40) | func TestGetManifestPath(t *testing.T) { function TestPusherErrClosedRetry (line 69) | func TestPusherErrClosedRetry(t *testing.T) { function TestPusherErrReset (line 90) | func TestPusherErrReset(t *testing.T) { function tryUpload (line 135) | func tryUpload(ctx context.Context, t *testing.T, p dockerPusher, layerC... function samplePusher (line 152) | func samplePusher(t *testing.T) (dockerPusher, *uploadableMockRegistry, ... type uploadableMockRegistry (line 183) | type uploadableMockRegistry struct method ServeHTTP (line 189) | func (u *uploadableMockRegistry) ServeHTTP(w http.ResponseWriter, r *h... method defaultHandler (line 199) | func (u *uploadableMockRegistry) defaultHandler(w http.ResponseWriter,... method isContentAlreadyExist (line 254) | func (u *uploadableMockRegistry) isContentAlreadyExist(c string) bool { function Test_dockerPusher_push (line 263) | func Test_dockerPusher_push(t *testing.T) { FILE: pkg/remote/remotes/docker/referrers.go method FetchReferrers (line 32) | func (r dockerFetcher) FetchReferrers(ctx context.Context, dgst digest.D... FILE: pkg/remote/remotes/docker/registry.go type HostCapabilities (line 43) | type HostCapabilities method Has (line 66) | func (c HostCapabilities) Has(t HostCapabilities) bool { constant HostCapabilityPull (line 48) | HostCapabilityPull HostCapabilities = 1 << iota constant HostCapabilityResolve (line 52) | HostCapabilityResolve constant HostCapabilityPush (line 56) | HostCapabilityPush constant HostCapabilityReferrers (line 60) | HostCapabilityReferrers type RegistryHost (line 73) | type RegistryHost struct method isProxy (line 83) | func (h RegistryHost) isProxy(refhost string) bool { type RegistryHosts (line 94) | type RegistryHosts function Registries (line 102) | func Registries(registries ...RegistryHosts) RegistryHosts { type registryOpts (line 117) | type registryOpts struct type RegistryOpt (line 125) | type RegistryOpt function WithPlainHTTP (line 129) | func WithPlainHTTP(f func(string) (bool, error)) RegistryOpt { function WithAuthorizer (line 136) | func WithAuthorizer(a Authorizer) RegistryOpt { function WithHostTranslator (line 143) | func WithHostTranslator(h func(string) (string, error)) RegistryOpt { function WithClient (line 150) | func WithClient(c *http.Client) RegistryOpt { function ConfigureDefaultRegistries (line 160) | func ConfigureDefaultRegistries(ropts ...RegistryOpt) RegistryHosts { function MatchAllHosts (line 205) | func MatchAllHosts(string) (bool, error) { function MatchLocalhost (line 214) | func MatchLocalhost(host string) (bool, error) { FILE: pkg/remote/remotes/docker/registry_test.go function TestHasCapability (line 21) | func TestHasCapability(t *testing.T) { function TestMatchLocalhost (line 49) | func TestMatchLocalhost(t *testing.T) { FILE: pkg/remote/remotes/docker/resolver.go type Authorizer (line 66) | type Authorizer interface type ResolverOptions (line 89) | type ResolverOptions struct function DefaultHost (line 125) | func DefaultHost(ns string) (string, error) { type dockerResolver (line 132) | type dockerResolver struct method Resolve (line 226) | func (r *dockerResolver) Resolve(ctx context.Context, ref string) (str... method Fetcher (line 407) | func (r *dockerResolver) Fetcher(ctx context.Context, ref string) (rem... method Pusher (line 418) | func (r *dockerResolver) Pusher(ctx context.Context, ref string) (remo... method resolveDockerBase (line 431) | func (r *dockerResolver) resolveDockerBase(ref string) (*dockerBase, e... method base (line 447) | func (r *dockerResolver) base(refspec reference.Spec) (*dockerBase, er... function NewResolver (line 140) | func NewResolver(options ResolverOptions) remotes.Resolver { function getManifestMediaType (line 198) | func getManifestMediaType(resp *http.Response) string { type countingReader (line 213) | type countingReader struct method Read (line 218) | func (r *countingReader) Read(p []byte) (int, error) { type dockerBase (line 440) | type dockerBase struct method filterHosts (line 464) | func (r *dockerBase) filterHosts(capsets ...HostCapabilities) (hosts [... method request (line 476) | func (r *dockerBase) request(host RegistryHost, method string, ps ...s... type request (line 537) | type request struct method authorize (line 499) | func (r *request) authorize(ctx context.Context, req *http.Request) er... method addQuery (line 510) | func (r *request) addQuery(key, value string) (err error) { method addNamespace (line 530) | func (r *request) addNamespace(ns string) error { method do (line 546) | func (r *request) do(ctx context.Context) (*http.Response, error) { method doWithRetries (line 607) | func (r *request) doWithRetries(ctx context.Context, responses []*http... method retryRequest (line 626) | func (r *request) retryRequest(ctx context.Context, responses []*http.... method String (line 658) | func (r *request) String() string { function requestFields (line 662) | func requestFields(req *http.Request) log.Fields { function responseFields (line 683) | func responseFields(resp *http.Response) log.Fields { function IsLocalhost (line 702) | func IsLocalhost(host string) bool { FILE: pkg/remote/remotes/docker/resolver_test.go function TestHTTPResolver (line 41) | func TestHTTPResolver(t *testing.T) { function TestHTTPSResolver (line 53) | func TestHTTPSResolver(t *testing.T) { function TestBasicResolver (line 57) | func TestBasicResolver(t *testing.T) { function TestAnonymousTokenResolver (line 86) | func TestAnonymousTokenResolver(t *testing.T) { function TestBasicAuthTokenResolver (line 100) | func TestBasicAuthTokenResolver(t *testing.T) { function TestRefreshTokenResolver (line 122) | func TestRefreshTokenResolver(t *testing.T) { function TestFetchRefreshToken (line 145) | func TestFetchRefreshToken(t *testing.T) { function TestPostBasicAuthTokenResolver (line 170) | func TestPostBasicAuthTokenResolver(t *testing.T) { function TestBadTokenResolver (line 193) | func TestBadTokenResolver(t *testing.T) { function TestHostFailureFallbackResolver (line 225) | func TestHostFailureFallbackResolver(t *testing.T) { function TestHostTLSFailureFallbackResolver (line 262) | func TestHostTLSFailureFallbackResolver(t *testing.T) { function TestResolveProxy (line 312) | func TestResolveProxy(t *testing.T) { function TestResolveProxyFallback (line 375) | func TestResolveProxyFallback(t *testing.T) { function flipLocalhost (line 447) | func flipLocalhost(host string) string { function withTokenServer (line 457) | func withTokenServer(th http.Handler, creds func(string) (string, string... function tlsServer (line 496) | func tlsServer(h http.Handler) (string, ResolverOptions, func()) { type logHandler (line 520) | type logHandler struct method ServeHTTP (line 525) | func (h logHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request) { type namespaceRouter (line 529) | type namespaceRouter method ServeHTTP (line 531) | func (nr namespaceRouter) ServeHTTP(rw http.ResponseWriter, r *http.Re... function runBasicTest (line 540) | func runBasicTest(t *testing.T, name string, sf func(h http.Handler) (st... function testFetch (line 587) | func testFetch(ctx context.Context, f remotes.Fetcher, desc ocispec.Desc... function testocimanifest (line 623) | func testocimanifest(ctx context.Context, f remotes.Fetcher, desc ocispe... type testContent (line 649) | type testContent struct method Descriptor (line 661) | func (tc testContent) Descriptor() ocispec.Descriptor { method Digest (line 669) | func (tc testContent) Digest() digest.Digest { method ServeHTTP (line 673) | func (tc testContent) ServeHTTP(w http.ResponseWriter, r *http.Request) { function newContent (line 654) | func newContent(mediaType string, b []byte) testContent { type testManifest (line 681) | type testManifest struct method OCIManifest (line 693) | func (m testManifest) OCIManifest() []byte { method RegisterHandler (line 708) | func (m testManifest) RegisterHandler(r *http.ServeMux, name string) { function newManifest (line 686) | func newManifest(config testContent, refs ...testContent) testManifest { function newRefreshTokenServer (line 714) | func newRefreshTokenServer(t testing.TB, name string, disablePOST bool, ... type refreshTokenServer (line 727) | type refreshTokenServer struct method isValidAuthorizationHeader (line 738) | func (srv *refreshTokenServer) isValidAuthorizationHeader(s string) bo... method BasicTestFunc (line 743) | func (srv *refreshTokenServer) BasicTestFunc() func(h http.Handler) (s... FILE: pkg/remote/remotes/docker/schema1/converter.go constant manifestSizeLimit (line 49) | manifestSizeLimit = 8e6 constant labelDockerSchema1EmptyLayer (line 50) | labelDockerSchema1EmptyLayer = "containerd.io/docker.schema1.empty-layer" type blobState (line 53) | type blobState struct type Converter (line 59) | type Converter struct method Handle (line 81) | func (c *Converter) Handle(ctx context.Context, desc ocispec.Descripto... method Convert (line 151) | func (c *Converter) Convert(ctx context.Context, opts ...ConvertOpt) (... method fetchManifest (line 243) | func (c *Converter) fetchManifest(ctx context.Context, desc ocispec.De... method fetchBlob (line 269) | func (c *Converter) fetchBlob(ctx context.Context, desc ocispec.Descri... method reuseLabelBlobState (line 387) | func (c *Converter) reuseLabelBlobState(ctx context.Context, desc ocis... method schema1ManifestHistory (line 432) | func (c *Converter) schema1ManifestHistory() ([]ocispec.History, []dig... function NewConverter (line 71) | func NewConverter(contentStore content.Store, fetcher remotes.Fetcher) *... type ConvertOptions (line 128) | type ConvertOptions struct type ConvertOpt (line 138) | type ConvertOpt function UseDockerSchema2 (line 142) | func UseDockerSchema2() ConvertOpt { function ReadStripSignature (line 234) | func ReadStripSignature(schema1Blob io.Reader) ([]byte, error) { type fsLayer (line 471) | type fsLayer struct type history (line 475) | type history struct type manifest (line 479) | type manifest struct type v1History (line 486) | type v1History struct function isEmptyLayer (line 500) | func isEmptyLayer(compatHistory []byte) (bool, error) { type signature (line 519) | type signature struct type jsParsedSignature (line 523) | type jsParsedSignature struct type protectedBlock (line 527) | type protectedBlock struct function joseBase64UrlDecode (line 536) | func joseBase64UrlDecode(s string) ([]byte, error) { function stripSignature (line 549) | func stripSignature(b []byte) ([]byte, error) { type blobStateCalculator (line 579) | type blobStateCalculator struct method Write (line 591) | func (c *blobStateCalculator) Write(p []byte) (int, error) { method State (line 603) | func (c *blobStateCalculator) State() blobState { function newBlobStateCalculator (line 584) | func newBlobStateCalculator() *blobStateCalculator { FILE: pkg/remote/remotes/docker/scope.go function RepositoryScope (line 32) | func RepositoryScope(refspec reference.Spec, push bool) (string, error) { type tokenScopesKey (line 46) | type tokenScopesKey struct function ContextWithRepositoryScope (line 49) | func ContextWithRepositoryScope(ctx context.Context, refspec reference.S... function WithScope (line 58) | func WithScope(ctx context.Context, scope string) context.Context { function ContextWithAppendPullRepositoryScope (line 71) | func ContextWithAppendPullRepositoryScope(ctx context.Context, repo stri... function GetTokenScopes (line 76) | func GetTokenScopes(ctx context.Context, common []string) []string { FILE: pkg/remote/remotes/docker/scope_test.go function TestRepositoryScope (line 27) | func TestRepositoryScope(t *testing.T) { function TestGetTokenScopes (line 59) | func TestGetTokenScopes(t *testing.T) { function TestCustomScope (line 103) | func TestCustomScope(t *testing.T) { FILE: pkg/remote/remotes/docker/status.go type Status (line 29) | type Status struct type StatusTracker (line 42) | type StatusTracker interface type StatusTrackLocker (line 48) | type StatusTrackLocker interface type memoryStatusTracker (line 54) | type memoryStatusTracker struct method GetStatus (line 68) | func (t *memoryStatusTracker) GetStatus(ref string) (Status, error) { method SetStatus (line 78) | func (t *memoryStatusTracker) SetStatus(ref string, status Status) { method Lock (line 84) | func (t *memoryStatusTracker) Lock(ref string) { method Unlock (line 88) | func (t *memoryStatusTracker) Unlock(ref string) { function NewInMemoryTracker (line 61) | func NewInMemoryTracker() StatusTrackLocker { FILE: pkg/remote/remotes/errors/errors.go type ErrUnexpectedStatus (line 28) | type ErrUnexpectedStatus struct method Error (line 35) | func (e ErrUnexpectedStatus) Error() string { function NewUnexpectedStatusErr (line 40) | func NewUnexpectedStatusErr(resp *http.Response) error { FILE: pkg/remote/remotes/handlers.go type refKeyPrefix (line 38) | type refKeyPrefix struct function WithMediaTypeKeyPrefix (line 44) | func WithMediaTypeKeyPrefix(ctx context.Context, mediaType, prefix strin... function MakeRefKey (line 59) | func MakeRefKey(ctx context.Context, desc ocispec.Descriptor) string { function FetchHandler (line 92) | func FetchHandler(ingester content.Ingester, fetcher Fetcher) images.Han... function Fetch (line 114) | func Fetch(ctx context.Context, ingester content.Ingester, fetcher Fetch... function PushHandler (line 158) | func PushHandler(pusher Pusher, provider content.Provider) images.Handle... function push (line 171) | func push(ctx context.Context, provider content.Provider, pusher Pusher,... function PushContent (line 209) | func PushContent(ctx context.Context, pusher Pusher, desc ocispec.Descri... function SkipNonDistributableBlobs (line 279) | func SkipNonDistributableBlobs(f images.HandlerFunc) images.HandlerFunc { function FilterManifestByPlatformHandler (line 312) | func FilterManifestByPlatformHandler(f images.HandlerFunc, m platforms.M... function annotateDistributionSourceHandler (line 347) | func annotateDistributionSourceHandler(f images.HandlerFunc, manager con... FILE: pkg/remote/remotes/handlers_test.go function TestContextCustomKeyPrefix (line 33) | func TestContextCustomKeyPrefix(t *testing.T) { function TestSkipNonDistributableBlobs (line 81) | func TestSkipNonDistributableBlobs(t *testing.T) { type memoryLabelStore (line 173) | type memoryLabelStore struct method Get (line 184) | func (mls *memoryLabelStore) Get(d digest.Digest) (map[string]string, ... method Set (line 192) | func (mls *memoryLabelStore) Set(d digest.Digest, labels map[string]st... method Update (line 200) | func (mls *memoryLabelStore) Update(d digest.Digest, update map[string... function newMemoryLabelStore (line 178) | func newMemoryLabelStore() local.LabelStore { FILE: pkg/remote/remotes/resolver.go type Resolver (line 29) | type Resolver interface type Fetcher (line 56) | type Fetcher interface type FetcherByDigest (line 62) | type FetcherByDigest interface type ReferrersFetcher (line 71) | type ReferrersFetcher interface type Pusher (line 76) | type Pusher interface type FetcherFunc (line 84) | type FetcherFunc method Fetch (line 87) | func (fn FetcherFunc) Fetch(ctx context.Context, desc ocispec.Descript... type PusherFunc (line 93) | type PusherFunc method Push (line 96) | func (fn PusherFunc) Push(ctx context.Context, desc ocispec.Descriptor... FILE: pkg/remote/unpack.go function Unpack (line 20) | func Unpack(reader io.Reader, source, target string) error { FILE: pkg/resolve/resolver.go type Resolver (line 23) | type Resolver struct method Resolve (line 34) | func (r *Resolver) Resolve(ref, digest string, labels map[string]strin... function NewResolver (line 27) | func NewResolver() *Resolver { function newRetryHTTPClient (line 71) | func newRetryHTTPClient(tr http.RoundTripper) *retryablehttp.Client { FILE: pkg/signature/signature.go type Verifier (line 20) | type Verifier struct method Verify (line 50) | func (v *Verifier) Verify(label map[string]string, bootstrapFile strin... function NewVerifier (line 25) | func NewVerifier(publicKeyFile string, validateSignature bool) (*Verifie... function getFromLabel (line 73) | func getFromLabel(labels map[string]string) ([]byte, error) { FILE: pkg/snapshot/storage.go function GetSnapshotInfo (line 21) | func GetSnapshotInfo(ctx context.Context, ms *storage.MetaStore, key str... function GetSnapshot (line 41) | func GetSnapshot(ctx context.Context, ms *storage.MetaStore, key string)... function IterateParentSnapshots (line 63) | func IterateParentSnapshots(ctx context.Context, ms *storage.MetaStore, ... function UpdateSnapshotInfo (line 92) | func UpdateSnapshotInfo(ctx context.Context, ms *storage.MetaStore, info... FILE: pkg/stargz/resolver.go constant httpTimeout (line 30) | httpTimeout = 15 * time.Second constant FooterSize (line 33) | FooterSize = 47 constant TocFileName (line 34) | TocFileName = "stargz.index.json" type Resolver (line 37) | type Resolver struct method GetBlob (line 110) | func (r *Resolver) GetBlob(ref, digest string, keychain authn.Keychain... method resolve (line 152) | func (r *Resolver) resolve(ref, digest string, keychain authn.Keychain... function NewResolver (line 41) | func NewResolver() *Resolver { type Blob (line 48) | type Blob struct method GetTocOffset (line 55) | func (bb *Blob) GetTocOffset() (int64, error) { method ReadToc (line 65) | func (bb *Blob) ReadToc() (io.Reader, error) { method GetDigest (line 102) | func (bb *Blob) GetDigest() string { method GetImageReference (line 106) | func (bb *Blob) GetImageReference() string { type readerAtFunc (line 128) | type readerAtFunc method ReadAt (line 130) | func (f readerAtFunc) ReadAt(p []byte, offset int64) (int, error) { re... function parseFooter (line 133) | func parseFooter(p []byte) (tocOffset int64, ok bool) { function getSize (line 205) | func getSize(url string, tr http.RoundTripper) (int64, error) { FILE: pkg/stargz/resolver_test.go function TestResolver_resolve (line 27) | func TestResolver_resolve(t *testing.T) { type MockResolver (line 56) | type MockResolver struct method Resolve (line 59) | func (res *MockResolver) Resolve(_ name.Reference, _ string, _ authn.K... type mockRoundTripper (line 63) | type mockRoundTripper struct method RoundTrip (line 65) | func (tr *mockRoundTripper) RoundTrip(req *http.Request) (*http.Respon... FILE: pkg/store/daemonstore.go type DaemonRafsStore (line 17) | type DaemonRafsStore struct method AddDaemon (line 28) | func (s *DaemonRafsStore) AddDaemon(d *daemon.Daemon) error { method UpdateDaemon (line 34) | func (s *DaemonRafsStore) UpdateDaemon(d *daemon.Daemon) error { method DeleteDaemon (line 38) | func (s *DaemonRafsStore) DeleteDaemon(id string) error { method WalkDaemons (line 42) | func (s *DaemonRafsStore) WalkDaemons(ctx context.Context, cb func(d *... method CleanupDaemons (line 46) | func (s *DaemonRafsStore) CleanupDaemons(ctx context.Context) error { method AddRafsInstance (line 50) | func (s *DaemonRafsStore) AddRafsInstance(r *rafs.Rafs) error { method UpdateRafsInstance (line 54) | func (s *DaemonRafsStore) UpdateRafsInstance(r *rafs.Rafs) error { method DeleteRafsInstance (line 58) | func (s *DaemonRafsStore) DeleteRafsInstance(snapshotID string) error { method WalkRafsInstances (line 62) | func (s *DaemonRafsStore) WalkRafsInstances(ctx context.Context, cb fu... method NextInstanceSeq (line 66) | func (s *DaemonRafsStore) NextInstanceSeq() (uint64, error) { function NewDaemonRafsStore (line 21) | func NewDaemonRafsStore(db *Database) (*DaemonRafsStore, error) { FILE: pkg/store/database.go constant databaseFileName (line 27) | databaseFileName = "nydus.db" type Database (line 48) | type Database struct method initDatabase (line 142) | func (db *Database) initDatabase() error { method Close (line 193) | func (db *Database) Close() error { method SaveDaemon (line 202) | func (db *Database) SaveDaemon(_ context.Context, d *daemon.Daemon) er... method UpdateDaemon (line 213) | func (db *Database) UpdateDaemon(_ context.Context, d *daemon.Daemon) ... method DeleteDaemon (line 226) | func (db *Database) DeleteDaemon(_ context.Context, id string) error { method CleanupDaemons (line 239) | func (db *Database) CleanupDaemons(_ context.Context) error { method WalkDaemons (line 249) | func (db *Database) WalkDaemons(_ context.Context, cb func(info *daemo... method WalkRafsInstances (line 266) | func (db *Database) WalkRafsInstances(_ context.Context, cb func(r *ra... method AddRafsInstance (line 282) | func (db *Database) AddRafsInstance(_ context.Context, instance *rafs.... method UpdateRafsInstance (line 290) | func (db *Database) UpdateRafsInstance(_ context.Context, instance *ra... method DeleteRafsInstance (line 298) | func (db *Database) DeleteRafsInstance(_ context.Context, snapshotID s... method NextInstanceSeq (line 310) | func (db *Database) NextInstanceSeq() (uint64, error) { function NewDatabase (line 53) | func NewDatabase(rootDir string) (*Database, error) { function ensureDirectory (line 72) | func ensureDirectory(dir string) error { function getDaemonsBucket (line 80) | func getDaemonsBucket(tx *bolt.Tx) *bolt.Bucket { function getInstancesBucket (line 85) | func getInstancesBucket(tx *bolt.Tx) *bolt.Bucket { function updateObject (line 90) | func updateObject(bucket *bolt.Bucket, key string, obj interface{}) error { function putObject (line 105) | func putObject(bucket *bolt.Bucket, key string, obj interface{}) error { function getObject (line 125) | func getObject(bucket *bolt.Bucket, key string, obj interface{}) error { FILE: pkg/store/database_compat.go constant SharedNydusDaemonID (line 26) | SharedNydusDaemonID = "shared_daemon" type CompatDaemon (line 28) | type CompatDaemon struct method WalkCompatDaemons (line 45) | func (db *Database) WalkCompatDaemons(_ context.Context, handler func(cd... function RedirectInstanceConfig (line 66) | func RedirectInstanceConfig(newPath, oldPath string) error { method tryTranslateRecords (line 91) | func (db *Database) tryTranslateRecords() error { method tryUpgradeRecords (line 203) | func (db *Database) tryUpgradeRecords(version string) error { FILE: pkg/store/database_test.go function Test_daemon (line 21) | func Test_daemon(t *testing.T) { function TestLegacyRecordsMultipleDaemonModes (line 77) | func TestLegacyRecordsMultipleDaemonModes(t *testing.T) { function TestLegacyRecordsSharedDaemonModes (line 148) | func TestLegacyRecordsSharedDaemonModes(t *testing.T) { function prepareCompatTestConfig (line 231) | func prepareCompatTestConfig(t *testing.T, rootDir, fsDriver string, dae... function writeLegacyDatabase (line 245) | func writeLegacyDatabase(t *testing.T, rootDir string, records []*Compat... function writeConfigFile (line 277) | func writeConfigFile(t *testing.T, file string, content []byte) { function listDaemons (line 284) | func listDaemons(t *testing.T, db *Database) map[string]daemon.ConfigSta... function listRafsInstances (line 297) | func listRafsInstances(t *testing.T, db *Database) map[string]rafs.Rafs { FILE: pkg/supervisor/supervisor.go type StatesStorage (line 30) | type StatesStorage interface type MemStatesStorage (line 40) | type MemStatesStorage struct method Save (line 50) | func (mss *MemStatesStorage) Save(data []byte) { method Load (line 55) | func (mss *MemStatesStorage) Load() ([]byte, error) { method Clean (line 61) | func (mss *MemStatesStorage) Clean() { function newMemStatesStorage (line 44) | func newMemStatesStorage() *MemStatesStorage { type Supervisor (line 66) | type Supervisor struct method save (line 77) | func (su *Supervisor) save(data []byte, fd int) { method load (line 95) | func (su *Supervisor) load() ([]byte, int, error) { method waitStatesTimeout (line 186) | func (su *Supervisor) waitStatesTimeout(to time.Duration) (func() erro... method SendStatesTimeout (line 251) | func (su *Supervisor) SendStatesTimeout(to time.Duration) error { method FetchDaemonStates (line 316) | func (su *Supervisor) FetchDaemonStates(trigger func() error) error { method Sock (line 344) | func (su *Supervisor) Sock() string { function recv (line 107) | func recv(uc *net.UnixConn) ([]byte, int, error) { function send (line 164) | func send(uc *net.UnixConn, data []byte, fd int) error { type SupervisorsSet (line 350) | type SupervisorsSet struct method NewSupervisor (line 367) | func (ss *SupervisorsSet) NewSupervisor(id string) *Supervisor { method GetSupervisor (line 389) | func (ss *SupervisorsSet) GetSupervisor(id string) *Supervisor { method DestroySupervisor (line 396) | func (ss *SupervisorsSet) DestroySupervisor(id string) error { function NewSupervisorSet (line 357) | func NewSupervisorSet(root string) (*SupervisorsSet, error) { FILE: pkg/supervisor/supervisor_test.go function TestSupervisor (line 20) | func TestSupervisor(t *testing.T) { function TestSupervisorTimeout (line 84) | func TestSupervisorTimeout(t *testing.T) { FILE: pkg/system/system.go constant endpointDaemons (line 40) | endpointDaemons string = "/api/v1/daemons" constant endpointDaemonRecords (line 43) | endpointDaemonRecords string = "/api/v1/daemons/records" constant endpointDaemonsUpgrade (line 44) | endpointDaemonsUpgrade string = "/api/v1/daemons/upgrade" constant endpointPrefetch (line 45) | endpointPrefetch string = "/api/v1/prefetch" constant endpointGetBackend (line 47) | endpointGetBackend string = "/api/v1/daemons/{id}/backend" constant defaultErrorCode (line 50) | defaultErrorCode string = "Unknown" type Controller (line 60) | type Controller struct method Run (line 161) | func (sc *Controller) Run() error { method registerRouter (line 188) | func (sc *Controller) registerRouter() { method getBackend (line 196) | func (sc *Controller) getBackend() func(w http.ResponseWriter, r *http... method setPrefetchConfiguration (line 236) | func (sc *Controller) setPrefetchConfiguration() func(w http.ResponseW... method describeDaemons (line 250) | func (sc *Controller) describeDaemons() func(w http.ResponseWriter, r ... method getDaemonRecords (line 303) | func (sc *Controller) getDaemonRecords() func(w http.ResponseWriter, r... method upgradeDaemons (line 328) | func (sc *Controller) upgradeDaemons() func(w http.ResponseWriter, r *... method upgradeNydusDaemon (line 382) | func (sc *Controller) upgradeNydusDaemon(d *daemon.Daemon, c upgradeRe... type upgradeRequest (line 70) | type upgradeRequest struct type errorMessage (line 76) | type errorMessage struct method encode (line 85) | func (m *errorMessage) encode() string { function newErrorMessage (line 81) | func newErrorMessage(message string) errorMessage { function jsonResponse (line 94) | func jsonResponse(w http.ResponseWriter, payload interface{}) { type daemonInfo (line 110) | type daemonInfo struct type rafsInstanceInfo (line 124) | type rafsInstanceInfo struct function NewSystemController (line 131) | func NewSystemController(fs *filesystem.Filesystem, managers []*manager.... function buildNextAPISocket (line 466) | func buildNextAPISocket(cur string) (string, error) { function upgradeNydusdWithSymlink (line 492) | func upgradeNydusdWithSymlink(sourcePath, destinationPath string) error { FILE: pkg/system/system_test.go function TestBuildUpgradeSocket (line 15) | func TestBuildUpgradeSocket(t *testing.T) { FILE: pkg/tarfs/tarfs.go constant TarfsStatusInit (line 45) | TarfsStatusInit = 0 constant TarfsStatusPrepare (line 46) | TarfsStatusPrepare = 1 constant TarfsStatusReady (line 47) | TarfsStatusReady = 2 constant TarfsStatusFailed (line 48) | TarfsStatusFailed = 3 constant MaxManifestConfigSize (line 52) | MaxManifestConfigSize = 0x100000 constant TarfsLayerBootstrapName (line 53) | TarfsLayerBootstrapName = "layer.boot" constant TarfsImageBootstrapName (line 54) | TarfsImageBootstrapName = "image.boot" constant TarfsLayerDiskName (line 55) | TarfsLayerDiskName = "layer.disk" constant TarfsImageDiskName (line 56) | TarfsImageDiskName = "image.disk" type Manager (line 59) | type Manager struct method fetchImageInfo (line 105) | func (t *Manager) fetchImageInfo(ctx context.Context, remote *remote.R... method fetchImageManifest (line 129) | func (t *Manager) fetchImageManifest(ctx context.Context, remote *remo... method fetchImageConfig (line 154) | func (t *Manager) fetchImageConfig(ctx context.Context, remote *remote... method getBlobDiffID (line 180) | func (t *Manager) getBlobDiffID(ctx context.Context, remote *remote.Re... method getBlobStream (line 199) | func (t *Manager) getBlobStream(ctx context.Context, remote *remote.Re... method generateBootstrap (line 214) | func (t *Manager) generateBootstrap(tarReader io.Reader, snapshotID, l... method getImageBlobInfo (line 284) | func (t *Manager) getImageBlobInfo(metaFilePath string) (string, error) { method blobProcess (line 309) | func (t *Manager) blobProcess(ctx context.Context, wg *sync.WaitGroup,... method PrepareLayer (line 391) | func (t *Manager) PrepareLayer(snapshotID, ref string, manifestDigest,... method MergeLayers (line 411) | func (t *Manager) MergeLayers(s storage.Snapshot, storageLocater func(... method ExportBlockData (line 465) | func (t *Manager) ExportBlockData(s storage.Snapshot, perLayer bool, l... method MountTarErofs (line 573) | func (t *Manager) MountTarErofs(snapshotID string, s *storage.Snapshot... method UmountTarErofs (line 665) | func (t *Manager) UmountTarErofs(snapshotID string) error { method DetachLayer (line 683) | func (t *Manager) DetachLayer(snapshotID string) error { method getSnapshotStatus (line 726) | func (t *Manager) getSnapshotStatus(snapshotID string, lock bool) (*sn... method waitLayerReady (line 739) | func (t *Manager) waitLayerReady(snapshotID string) error { method attachLoopdev (line 754) | func (t *Manager) attachLoopdev(blob string) (*losetup.Device, error) { method CheckTarfsHintAnnotation (line 762) | func (t *Manager) CheckTarfsHintAnnotation(ctx context.Context, ref st... method GetConcurrentLimiter (line 799) | func (t *Manager) GetConcurrentLimiter(ref string) *semaphore.Weighted { method copyTarfsAnnotations (line 813) | func (t *Manager) copyTarfsAnnotations(labels map[string]string, rafs ... method layerTarFilePath (line 827) | func (t *Manager) layerTarFilePath(blobID string) string { method LayerDiskFilePath (line 831) | func (t *Manager) LayerDiskFilePath(blobID string) string { method ImageDiskFilePath (line 835) | func (t *Manager) ImageDiskFilePath(blobID string) string { method layerMetaFilePath (line 839) | func (t *Manager) layerMetaFilePath(upperDirPath string) string { method imageMetaFilePath (line 843) | func (t *Manager) imageMetaFilePath(upperDirPath string) string { type snapshotStatus (line 75) | type snapshotStatus struct function NewManager (line 87) | func NewManager(insecure, checkTarfsHint bool, cacheDirPath, nydusImageP... FILE: pkg/utils/display/display.go function ByteToReadableIEC (line 11) | func ByteToReadableIEC(b uint32) string { function MicroSecondToReadable (line 25) | func MicroSecondToReadable(b uint64) string { FILE: pkg/utils/erofs/erofs.go function Mount (line 18) | func Mount(domainID, fscacheID, mountpoint string) error { function Umount (line 42) | func Umount(mountPoint string) error { function FscacheID (line 46) | func FscacheID(snapshotID string) string { FILE: pkg/utils/file/file.go function IsDirExisted (line 11) | func IsDirExisted(path string) (bool, error) { FILE: pkg/utils/mount/mount.go type Interface (line 22) | type Interface interface type Mounter (line 26) | type Mounter struct method Umount (line 29) | func (m *Mounter) Umount(target string) error { function NormalizePath (line 42) | func NormalizePath(path string) (realPath string, err error) { function IsMountpoint (line 56) | func IsMountpoint(path string) (bool, error) { function WaitUntilUnmounted (line 84) | func WaitUntilUnmounted(path string) error { FILE: pkg/utils/parser/parser.go function InitUnitMultipliers (line 22) | func InitUnitMultipliers() { function MemoryConfigToBytes (line 38) | func MemoryConfigToBytes(data string, totalMemoryBytes int) (int64, erro... FILE: pkg/utils/parser/parser_test.go function TestMemoryLimitToBytes (line 15) | func TestMemoryLimitToBytes(t *testing.T) { FILE: pkg/utils/registry/registry.go type Image (line 25) | type Image struct function ConvertToVPCHost (line 30) | func ConvertToVPCHost(registryHost string) string { function ParseImage (line 39) | func ParseImage(imageID string) (Image, error) { function ParseLabels (line 52) | func ParseLabels(labels map[string]string) (rRef, rDigest string) { function AuthnTransport (line 62) | func AuthnTransport(ref name.Reference, tr http.RoundTripper, keychain a... FILE: pkg/utils/registry/registry_test.go function TestConvertToVPCHost1 (line 14) | func TestConvertToVPCHost1(t *testing.T) { function TestParseImage (line 47) | func TestParseImage(t *testing.T) { FILE: pkg/utils/retry/retry.go type RetryableFunc (line 16) | type RetryableFunc type retryIfFunc (line 29) | type retryIfFunc type AbortFunc (line 31) | type AbortFunc type OnRetryFunc (line 35) | type OnRetryFunc type DelayTypeFunc (line 37) | type DelayTypeFunc type Config (line 39) | type Config struct type Option (line 51) | type Option function LastErrorOnly (line 55) | func LastErrorOnly(lastErrorOnly bool) Option { function Attempts (line 63) | func Attempts(attempts uint) Option { function OnlyRetryIf (line 70) | func OnlyRetryIf(abortFunc AbortFunc) Option { function Delay (line 83) | func Delay(delay time.Duration) Option { function MaxDelay (line 91) | func MaxDelay(maxDelay time.Duration) Option { function MaxJitter (line 98) | func MaxJitter(maxJitter time.Duration) Option { function DelayType (line 106) | func DelayType(delayType DelayTypeFunc) Option { function BackOffDelay (line 113) | func BackOffDelay(n uint, config *Config) time.Duration { function FixedDelay (line 118) | func FixedDelay(_ uint, config *Config) time.Duration { function RandomDelay (line 123) | func RandomDelay(_ uint, config *Config) time.Duration { function CombineDelay (line 128) | func CombineDelay(delays ...DelayTypeFunc) DelayTypeFunc { function OnRetry (line 138) | func OnRetry(onRetry OnRetryFunc) Option { function Do (line 144) | func Do(retryFunc RetryableFunc, opts ...Option) error { type Error (line 210) | type Error method Error (line 214) | func (e Error) Error() string { method WrappedErrors (line 239) | func (e Error) WrappedErrors() []error { function lenWithoutNil (line 225) | func lenWithoutNil(e Error) (count int) { type unrecoverableError (line 243) | type unrecoverableError struct function Unrecoverable (line 248) | func Unrecoverable(err error) error { function IsRecoverable (line 253) | func IsRecoverable(err error) bool { function unpackUnrecoverable (line 258) | func unpackUnrecoverable(err error) error { FILE: pkg/utils/signals/signal.go function SetupSignalHandler (line 22) | func SetupSignalHandler() (stopCh <-chan struct{}) { FILE: pkg/utils/signals/signal_test.go function TestSetupSignalHandler (line 18) | func TestSetupSignalHandler(t *testing.T) { FILE: pkg/utils/signer/signer.go type Signer (line 18) | type Signer struct method Verify (line 33) | func (s *Signer) Verify(input io.Reader, signature []byte) error { function New (line 22) | func New(publicKey []byte) (*Signer, error) { FILE: pkg/utils/sysinfo/sysinfo.go function GetSysinfo (line 20) | func GetSysinfo() { function GetTotalMemoryBytes (line 31) | func GetTotalMemoryBytes() (int, error) { FILE: pkg/utils/transport/pool.go constant HTTPClientTimeOut (line 21) | HTTPClientTimeOut = time.Second * 60 type Pool (line 24) | type Pool struct method Resolve (line 42) | func (r *Pool) Resolve(ref name.Reference, digest string, keychain aut... function NewPool (line 30) | func NewPool() *Pool { type Resolve (line 38) | type Resolve interface function redirect (line 71) | func redirect(endpointURL string, tr http.RoundTripper) (url string, err... FILE: pkg/utils/transport/pool_test.go type FakeReference (line 14) | type FakeReference struct method Context (line 21) | func (t FakeReference) Context() name.Repository { method Identifier (line 25) | func (t FakeReference) Identifier() string { method Name (line 29) | func (t FakeReference) Name() string { method String (line 33) | func (t FakeReference) String() string { method Scope (line 37) | func (t FakeReference) Scope(action string) string { function TestResolve (line 41) | func TestResolve(t *testing.T) { FILE: snapshot/mount_option.go constant KataVirtualVolumeDefaultSource (line 31) | KataVirtualVolumeDefaultSource = "overlay" constant KataVirtualVolumeDummySource (line 32) | KataVirtualVolumeDummySource = "dummy-image-reference" type ExtraOption (line 35) | type ExtraOption struct method remoteMountWithExtraOptions (line 42) | func (o *snapshotter) remoteMountWithExtraOptions(ctx context.Context, s... method mountWithKataVolume (line 117) | func (o *snapshotter) mountWithKataVolume(ctx context.Context, id string... method mountWithProxyVolume (line 170) | func (o *snapshotter) mountWithProxyVolume(rafs rafs.Rafs) ([]string, er... method mountWithTarfsVolume (line 193) | func (o *snapshotter) mountWithTarfsVolume(ctx context.Context, rafs raf... method prepareKataVirtualVolume (line 250) | func (o *snapshotter) prepareKataVirtualVolume(blockType, source, volume... function parseTarfsDmVerityInfo (line 282) | func parseTarfsDmVerityInfo(info string) (DmVerityInfo, error) { constant minBlockSize (line 307) | minBlockSize = 1 << 9 constant maxBlockSize (line 308) | maxBlockSize = 1 << 19 constant KataVirtualVolumeOptionName (line 312) | KataVirtualVolumeOptionName = "io.katacontainers.volume" constant KataVirtualVolumeDirectBlockType (line 313) | KataVirtualVolumeDirectBlockType = "direct_block" constant KataVirtualVolumeImageRawBlockType (line 314) | KataVirtualVolumeImageRawBlockType = "image_raw_block" constant KataVirtualVolumeLayerRawBlockType (line 315) | KataVirtualVolumeLayerRawBlockType = "layer_raw_block" constant KataVirtualVolumeImageNydusBlockType (line 316) | KataVirtualVolumeImageNydusBlockType = "image_nydus_block" constant KataVirtualVolumeLayerNydusBlockType (line 317) | KataVirtualVolumeLayerNydusBlockType = "layer_nydus_block" constant KataVirtualVolumeImageNydusFsType (line 318) | KataVirtualVolumeImageNydusFsType = "image_nydus_fs" constant KataVirtualVolumeLayerNydusFsType (line 319) | KataVirtualVolumeLayerNydusFsType = "layer_nydus_fs" constant KataVirtualVolumeImageGuestPullType (line 320) | KataVirtualVolumeImageGuestPullType = "image_guest_pull" type DmVerityInfo (line 324) | type DmVerityInfo struct method Validate (line 333) | func (d *DmVerityInfo) Validate() error { method validateHashType (line 354) | func (d *DmVerityInfo) validateHashType() error { method validateHash (line 365) | func (d *DmVerityInfo) validateHash(expectedLen int, hashType string) ... function validateBlockSize (line 373) | func validateBlockSize(blockSize uint64) bool { function ParseDmVerityInfo (line 377) | func ParseDmVerityInfo(option string) (*DmVerityInfo, error) { type DirectAssignedVolume (line 389) | type DirectAssignedVolume struct method Validate (line 393) | func (d *DirectAssignedVolume) Validate() bool { type ImagePullVolume (line 398) | type ImagePullVolume struct method Validate (line 402) | func (i *ImagePullVolume) Validate() bool { type NydusImageVolume (line 407) | type NydusImageVolume struct method Validate (line 412) | func (n *NydusImageVolume) Validate() bool { type KataVirtualVolume (line 417) | type KataVirtualVolume struct method Validate (line 428) | func (k *KataVirtualVolume) Validate() bool { function ParseKataVirtualVolume (line 451) | func ParseKataVirtualVolume(option []byte) (*KataVirtualVolume, error) { function ParseKataVirtualVolumeFromBase64 (line 463) | func ParseKataVirtualVolumeFromBase64(option string) (*KataVirtualVolume... function EncodeKataVirtualVolumeToBase64 (line 471) | func EncodeKataVirtualVolumeToBase64(volume KataVirtualVolume) (string, ... FILE: snapshot/mount_option_test.go function TestDmVerityInfoValidation (line 11) | func TestDmVerityInfoValidation(t *testing.T) { function TestDirectAssignedVolumeValidation (line 117) | func TestDirectAssignedVolumeValidation(t *testing.T) { function TestImagePullVolumeValidation (line 129) | func TestImagePullVolumeValidation(t *testing.T) { function TestNydusImageVolumeValidation (line 141) | func TestNydusImageVolumeValidation(t *testing.T) { function TestKataVirtualVolumeValidation (line 155) | func TestKataVirtualVolumeValidation(t *testing.T) { function TestParseDmVerityInfo (line 180) | func TestParseDmVerityInfo(t *testing.T) { function TestParseKataVirtualVolume (line 206) | func TestParseKataVirtualVolume(t *testing.T) { FILE: snapshot/process.go function chooseProcessor (line 26) | func chooseProcessor(ctx context.Context, logger *logrus.Entry, FILE: snapshot/renewal.go function startCredentialRenewal (line 23) | func startCredentialRenewal(ctx context.Context, interval time.Duration,... function credentialRenewalLoop (line 33) | func credentialRenewalLoop(ctx context.Context, interval time.Duration, ... function reconcileCredentials (line 56) | func reconcileCredentials(ctx context.Context, managers []*mgr.Manager) { FILE: snapshot/renewal_test.go function TestStartCredentialRenewalLifecycle (line 20) | func TestStartCredentialRenewalLifecycle(t *testing.T) { FILE: snapshot/snapshot.go type snapshotter (line 54) | type snapshotter struct method Cleanup (line 320) | func (o *snapshotter) Cleanup(ctx context.Context) error { method Stat (line 361) | func (o *snapshotter) Stat(ctx context.Context, key string) (snapshots... method Update (line 366) | func (o *snapshotter) Update(ctx context.Context, info snapshots.Info,... method Usage (line 370) | func (o *snapshotter) Usage(ctx context.Context, key string) (snapshot... method Mounts (line 403) | func (o *snapshotter) Mounts(ctx context.Context, key string) ([]mount... method Prepare (line 495) | func (o *snapshotter) Prepare(ctx context.Context, key, parent string,... method View (line 531) | func (o *snapshotter) View(ctx context.Context, key, parent string, op... method Commit (line 592) | func (o *snapshotter) Commit(ctx context.Context, name, key string, op... method Remove (line 636) | func (o *snapshotter) Remove(ctx context.Context, key string) error { method Walk (line 700) | func (o *snapshotter) Walk(ctx context.Context, fn snapshots.WalkFunc,... method Close (line 714) | func (o *snapshotter) Close() error { method upperPath (line 735) | func (o *snapshotter) upperPath(id string) string { method lowerPath (line 740) | func (o *snapshotter) lowerPath(id string) (mnt string, err error) { method workPath (line 750) | func (o *snapshotter) workPath(id string) string { method findIndexAlternativeLayer (line 754) | func (o *snapshotter) findIndexAlternativeLayer(ctx context.Context, k... method findReferrerLayer (line 760) | func (o *snapshotter) findReferrerLayer(ctx context.Context, key strin... method findMetaLayer (line 766) | func (o *snapshotter) findMetaLayer(ctx context.Context, key string) (... method createSnapshot (line 772) | func (o *snapshotter) createSnapshot(ctx context.Context, kind snapsho... method createSnapshotWithRecovery (line 781) | func (o *snapshotter) createSnapshotWithRecovery(ctx context.Context, ... method isMissingParentError (line 891) | func (o *snapshotter) isMissingParentError(err error) bool { method recoverParentFromContainerd (line 906) | func (o *snapshotter) recoverParentFromContainerd(ctx context.Context,... method createPlaceholderSnapshot (line 931) | func (o *snapshotter) createPlaceholderSnapshot(ctx context.Context, k... method mergeTarfs (line 1005) | func (o *snapshotter) mergeTarfs(ctx context.Context, s storage.Snapsh... method mountProxy (line 1049) | func (o *snapshotter) mountProxy(ctx context.Context, s storage.Snapsh... method mountRemote (line 1101) | func (o *snapshotter) mountRemote(ctx context.Context, labels map[stri... method mountNative (line 1157) | func (o *snapshotter) mountNative(ctx context.Context, labels map[stri... method prepareDirectory (line 1193) | func (o *snapshotter) prepareDirectory(snapshotDir string, kind snapsh... method getCleanupDirectories (line 1212) | func (o *snapshotter) getCleanupDirectories(ctx context.Context) ([]st... method cleanupDirectories (line 1246) | func (o *snapshotter) cleanupDirectories(ctx context.Context) ([]strin... method cleanupSnapshotDirectory (line 1263) | func (o *snapshotter) cleanupSnapshotDirectory(ctx context.Context, di... method getUnusedCacheBlobs (line 1284) | func (o *snapshotter) getUnusedCacheBlobs(ctx context.Context) ([]stri... method snapshotRoot (line 1363) | func (o *snapshotter) snapshotRoot() string { method snapshotDir (line 1367) | func (o *snapshotter) snapshotDir(id string) string { function NewSnapshotter (line 68) | func NewSnapshotter(ctx context.Context, cfg *config.SnapshotterConfig) ... function bindMount (line 1025) | func bindMount(source, roFlag string) []mount.Mount { function overlayMount (line 1038) | func overlayMount(options []string) []mount.Mount { function treatAsProxyDriver (line 1371) | func treatAsProxyDriver(labels map[string]string) bool { FILE: snapshot/snapshot_test.go function TestMountNative (line 23) | func TestMountNative(t *testing.T) { function TestMountNativeConfigVolatile (line 228) | func TestMountNativeConfigVolatile(t *testing.T) { FILE: snapshot/utils.go function getSupportsDType (line 16) | func getSupportsDType(dir string) (bool, error) { function lchown (line 20) | func lchown(target string, st os.FileInfo) error { FILE: tests/converter_test.go constant envNydusdPath (line 49) | envNydusdPath = "NYDUS_NYDUSD" function hugeString (line 91) | func hugeString(mb int) string { function dropCache (line 113) | func dropCache(t *testing.T) { function ensureFile (line 120) | func ensureFile(t *testing.T, name string) { function ensureNoFile (line 125) | func ensureNoFile(t *testing.T, name string) { function writeFileToTar (line 130) | func writeFileToTar(t *testing.T, tw *tar.Writer, name string, data stri... function writeDirToTar (line 151) | func writeDirToTar(t *testing.T, tw *tar.Writer, name string) { function writeToFile (line 168) | func writeToFile(t *testing.T, reader io.Reader, fileName string) { function buildChunkDictTar (line 177) | func buildChunkDictTar(t *testing.T, n int) io.ReadCloser { function buildOCILowerTar (line 196) | func buildOCILowerTar(t *testing.T, n int) (io.ReadCloser, map[string]st... function buildOCIUpperTar (line 225) | func buildOCIUpperTar(t *testing.T, teePath string, lowerFileTree map[st... function packLayer (line 276) | func packLayer(t *testing.T, source io.ReadCloser, chunkDict, workDir st... function packLayerRef (line 302) | func packLayerRef(t *testing.T, gzipSource io.ReadCloser, workDir string... function unpackLayer (line 338) | func unpackLayer(t *testing.T, workDir string, ra content.ReaderAt, stre... function verify (line 358) | func verify(t *testing.T, workDir string, expectedFileTree map[string]st... function buildChunkDict (line 420) | func buildChunkDict(t *testing.T, workDir, fsVersion string, n int) (str... function TestPack (line 459) | func TestPack(t *testing.T) { function testPack (line 464) | func testPack(t *testing.T, fsVersion string) { function TestPackRef (line 531) | func TestPackRef(t *testing.T) { function TestUnpack (line 607) | func TestUnpack(t *testing.T) { function testUnpack (line 612) | func testUnpack(t *testing.T, fsVersion string, tarSize int) { type ConvertTestOption (line 637) | type ConvertTestOption struct type ReConvertTestOption (line 648) | type ReConvertTestOption struct function TestImageConvert (line 657) | func TestImageConvert(t *testing.T) { function testImageConvertNoBackend (line 665) | func testImageConvertNoBackend(t *testing.T, fsVersion string) { function testImageConvertS3Backend (line 672) | func testImageConvertS3Backend(t *testing.T, fsVersion string) { function testImageConvertWithCrypt (line 735) | func testImageConvertWithCrypt(t *testing.T, fsVersion string) { function testImageConvertBasic (line 773) | func testImageConvertBasic(testOpt *ConvertTestOption) { function TestImageReConvert (line 890) | func TestImageReConvert(t *testing.T) { function testImageReConvertNoBackend (line 894) | func testImageReConvertNoBackend(t *testing.T) { function testImageReConvertBasic (line 900) | func testImageReConvertBasic(testOpt *ReConvertTestOption) { FILE: tests/nydusd.go type NydusdConfig (line 25) | type NydusdConfig struct type Nydusd (line 40) | type Nydusd struct method Mount (line 155) | func (nydusd *Nydusd) Mount() error { method Umount (line 200) | func (nydusd *Nydusd) Umount() error { type daemonInfo (line 44) | type daemonInfo struct function makeConfig (line 75) | func makeConfig(conf NydusdConfig) error { function checkReady (line 91) | func checkReady(ctx context.Context, sock string) <-chan bool { function NewNydusd (line 146) | func NewNydusd(conf NydusdConfig) (*Nydusd, error) { FILE: tools/optimizer-server/src/main.rs type FanotifyEvent (line 30) | struct FanotifyEvent { type EventInfo (line 41) | struct EventInfo { method eq (line 48) | fn eq(&self, target: &EventInfo) -> bool { constant DEFAULT_TARGET (line 58) | const DEFAULT_TARGET: &str = "/"; constant FAN_CLOEXEC (line 60) | const FAN_CLOEXEC: u32 = 0x0000_0001; constant FAN_NONBLOCK (line 61) | const FAN_NONBLOCK: u32 = 0x0000_0002; constant FAN_CLASS_CONTENT (line 62) | const FAN_CLASS_CONTENT: u32 = 0x0000_0004; constant O_RDONLY (line 64) | const O_RDONLY: u32 = 0; constant O_LARGEFILE (line 65) | const O_LARGEFILE: u32 = 0; constant FAN_MARK_ADD (line 67) | const FAN_MARK_ADD: u32 = 0x0000_0001; constant FAN_MARK_MOUNT (line 68) | const FAN_MARK_MOUNT: u32 = 0x0000_0010; constant FAN_ACCESS (line 70) | const FAN_ACCESS: u64 = 0x0000_0001; constant FAN_OPEN (line 71) | const FAN_OPEN: u64 = 0x0000_0020; constant FAN_OPEN_EXEC (line 72) | const FAN_OPEN_EXEC: u64 = 0x00001000; constant AT_FDCWD (line 73) | const AT_FDCWD: i32 = -100; type SetnsError (line 77) | enum SetnsError { type SendError (line 84) | enum SendError { function get_pid (line 89) | fn get_pid() -> Option { function get_target (line 93) | fn get_target() -> String { function get_fd_path (line 97) | fn get_fd_path(fd: i32) -> io::Result { function set_ns (line 102) | fn set_ns(ns_path: String, flags: CloneFlags) -> Result<(), SetnsError> { function init_fanotify (line 107) | fn init_fanotify() -> Result { function mark_fanotify (line 119) | fn mark_fanotify(fd: i32, path: &str) -> Result<(), io::Error> { function read_fanotify (line 135) | fn read_fanotify(fanotify_fd: i32) -> Vec { function close_fd (line 150) | fn close_fd(fd: i32) { function generate_event_info (line 156) | fn generate_event_info(path: &Path) -> Result { function send_event (line 164) | fn send_event(event: &EventInfo) -> Result<(), SendError> { function handle_event (line 173) | fn handle_event(event: &FanotifyEvent, event_duplicate: &mut Vec... function handle_fanotify_event (line 183) | fn handle_fanotify_event(fd: i32) { function start_fanotify (line 240) | fn start_fanotify() -> Result<(), io::Error> { function join_namespace (line 247) | fn join_namespace(pid: String) -> Result<(), SetnsError> { function main (line 253) | fn main() {