Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/containers/nydus-storage-plugin
/ functions
Functions
59 in github.com/containers/nydus-storage-plugin
⨍
Functions
59
◇
Types & classes
24
↓ 10 callers
Function
copyAttr
Ported from stargz-snapshotter, copyright The stargz-snapshotter Authors. https://github.com/containerd/stargz-snapshotter/blob/efc4166e93a22804b90e27
pkg/fs/utils.go:25
↓ 6 callers
Method
newInodeWithID
(ctx context.Context, p func(uint32) fusefs.InodeEmbedder)
pkg/fs/fs.go:113
↓ 4 callers
Method
inc
()
pkg/cache/lrucache.go:104
↓ 3 callers
Method
decreaseOnceFunc
(rc *refCounter)
pkg/cache/lrucache.go:82
↓ 3 callers
Function
defaultDirAttr
Ported from stargz-snapshotter, copyright The stargz-snapshotter Authors. https://github.com/containerd/stargz-snapshotter/blob/efc4166e93a22804b90e27
pkg/fs/utils.go:80
↓ 3 callers
Method
metadataDir
(refspec reference.Spec)
pkg/manager/ref_pool.go:219
↓ 2 callers
Method
Add
Add adds object to the cache and returns the cached contents with incrementing the reference count. If the specified content already exists in the cac
pkg/cache/lrucache.go:55
↓ 2 callers
Method
Create
Create marks this layer as "using". We don't use refnode.Mkdir because Mkdir event doesn't reach here if layernode already exists.
pkg/fs/layer_node.go:35
↓ 2 callers
Method
Open
(ctx context.Context, flags uint32)
pkg/fs/blob_node.go:23
↓ 2 callers
Function
ValidateMediaType
ValidateMediaType returns an error if the byte slice is invalid JSON or if the media type identifies the blob as one format but it contains elements o
pkg/utils/manifest.go:29
↓ 2 callers
Method
configFile
(refspec reference.Spec)
pkg/manager/ref_pool.go:227
↓ 2 callers
Method
dec
()
pkg/cache/lrucache.go:110
↓ 2 callers
Method
loadRef
(ctx context.Context, refspec reference.Spec)
pkg/manager/ref_pool.go:70
↓ 2 callers
Method
manifestFile
(refspec reference.Spec)
pkg/manager/ref_pool.go:223
↓ 2 callers
Method
releasable
()
pkg/fs/fs.go:35
↓ 1 callers
Method
Get
Get retrieves the specified object from the cache and increments the reference counter of the target content. Client must call `done` callback to decr
pkg/cache/lrucache.go:39
↓ 1 callers
Method
GetLayerInfo
(ctx context.Context, refspec reference.Spec, dgst digest.Digest)
pkg/manager/manager.go:105
↓ 1 callers
Method
Getattr
(ctx context.Context, out *fuse.AttrOut)
pkg/fs/blob_file.go:31
↓ 1 callers
Function
Mount
(ctx context.Context, mountPoint string, rootDir string, debug bool, layManager *manager.LayerManager)
pkg/fs/fs.go:81
↓ 1 callers
Function
NewDockerconfigKeychain
Ported from stargz-snapshotter, copyright The stargz-snapshotter Authors. https://github.com/containerd/stargz-snapshotter/blob/923399007a8cde1ec87107
pkg/services/keychain/dockerconfig/dockerconfig.go:15
↓ 1 callers
Function
NewLRUCache
NewLRUCache creates new lru cache.
pkg/cache/lrucache.go:24
↓ 1 callers
Function
NewLayerManager
(ctx context.Context, rootDir string, hosts source.RegistryHosts, cfg *config.Config)
pkg/manager/manager.go:32
↓ 1 callers
Method
RefRoot
()
pkg/manager/manager.go:270
↓ 1 callers
Function
RegistryHostsFromConfig
RegistryHostsFromConfig creates RegistryHosts (a set of registry configuration) from Config.
pkg/services/resolver/resolver.go:43
↓ 1 callers
Method
Release
(ctx context.Context, refspec reference.Spec, dgst digest.Digest, snapshotID string)
pkg/manager/manager.go:205
↓ 1 callers
Method
ReleaseAll
(ctx context.Context)
pkg/manager/manager.go:240
↓ 1 callers
Method
ResolverMetaLayer
(ctx context.Context, refspec reference.Spec, snapshotID string, digest digest.Digest)
pkg/manager/manager.go:113
↓ 1 callers
Method
Use
(refspec reference.Spec, dgst digest.Digest)
pkg/manager/manager.go:250
↓ 1 callers
Method
add
port from stargz-snapshooter. add reserves an unique uint32 object for the provided releasable object. when that object become releasable, that ID wil
pkg/fs/id_map.go:23
↓ 1 callers
Function
colon2dash
(s string)
pkg/manager/manager.go:274
↓ 1 callers
Function
defaultFileAttr
Ported from stargz-snapshotter, copyright The stargz-snapshotter Authors. https://github.com/containerd/stargz-snapshotter/blob/efc4166e93a22804b90e27
pkg/fs/utils.go:63
↓ 1 callers
Function
defaultLinkAttr
Ported from stargz-snapshotter, copyright The stargz-snapshotter Authors. https://github.com/containerd/stargz-snapshotter/blob/efc4166e93a22804b90e27
pkg/fs/utils.go:91
↓ 1 callers
Method
fetchManifestAndConfig
(ctx context.Context, refspec reference.Spec)
pkg/manager/ref_pool.go:178
↓ 1 callers
Function
fetchManifestPlatform
(ctx context.Context, fetcher remotes.Fetcher, desc ocispec.Descriptor, platform ocispec.Platform)
pkg/manager/ref_pool.go:231
↓ 1 callers
Method
finalize
()
pkg/cache/lrucache.go:124
↓ 1 callers
Function
genLayerInfo
(dgst digest.Digest, manifest ocispec.Manifest, config ocispec.Image)
pkg/manager/manager.go:292
↓ 1 callers
Method
initialize
()
pkg/cache/lrucache.go:120
↓ 1 callers
Function
isForgotten
Ported from stargz-snapshotter, copyright The stargz-snapshotter Authors. https://github.com/containerd/stargz-snapshotter/blob/efc4166e93a22804b90e27
pkg/fs/utils.go:11
↓ 1 callers
Function
layerToAttr
Ported from stargz-snapshotter, copyright The stargz-snapshotter Authors. https://github.com/containerd/stargz-snapshotter/blob/efc4166e93a22804b90e27
pkg/fs/utils.go:45
↓ 1 callers
Function
multiCredsFuncs
(ref reference.Spec, credsFuncs ...Credential)
pkg/services/resolver/resolver.go:81
↓ 1 callers
Function
newRefPool
(ctx context.Context, root string, hosts source.RegistryHosts)
pkg/manager/ref_pool.go:34
↓ 1 callers
Method
readManifestAndConfig
(refspec reference.Spec)
pkg/manager/ref_pool.go:132
↓ 1 callers
Method
release
()
pkg/fs/fs.go:67
↓ 1 callers
Method
release
(refspec reference.Spec)
pkg/manager/ref_pool.go:115
↓ 1 callers
Method
root
()
pkg/manager/ref_pool.go:215
↓ 1 callers
Method
use
(refspec reference.Spec)
pkg/manager/ref_pool.go:98
↓ 1 callers
Function
waitForSIGINT
()
cmd/store/main.go:23
↓ 1 callers
Method
writeManifestAndConfig
(refspec reference.Spec, manifest ocispec.Manifest, config ocispec.Image)
pkg/manager/ref_pool.go:153
Method
Getattr
(ctx context.Context, f fusefs.FileHandle, out *fuse.AttrOut)
pkg/fs/diff_node.go:18
Method
Lookup
(ctx context.Context, name string, out *fuse.EntryOut)
pkg/fs/ref_node.go:29
Method
Lookup
Lookup loads manifest and config of specified name (image reference) and returns refnode of the specified name
pkg/fs/root_node.go:28
Method
Lookup
Lookup routes to the target file stored in the pool, based on the specified file name.
pkg/fs/layer_node.go:44
Method
Read
(ctx context.Context, dest []byte, off int64)
pkg/fs/blob_file.go:17
Method
Remove
Remove removes the specified contents from the cache. OnEvicted callback will be called when nobody refers to the removed content.
pkg/cache/lrucache.go:76
Method
Rmdir
(ctx context.Context, name string)
pkg/fs/ref_node.go:63
Method
Rmdir
(ctx context.Context, name string)
pkg/fs/diff_node.go:23
Function
main
()
cmd/store/main.go:29
Method
releasable
()
pkg/fs/fs.go:60
Method
releasable
()
pkg/fs/fs.go:77