Documentation
¶
Index ¶
- Constants
- func NewFileSystem(ctx context.Context, opt ...NewFSOpt) (fspkg.FileSystem, error)
- type NewFSOpt
- func WithCacheManager(cm *cache.Manager) NewFSOpt
- func WithDaemonConfig(cfg config.DaemonConfig) NewFSOpt
- func WithDaemonMode(daemonMode string) NewFSOpt
- func WithLogDir(dir string) NewFSOpt
- func WithLogLevel(logLevel string) NewFSOpt
- func WithLogToStdout(logToStdout bool) NewFSOpt
- func WithMeta(root string) NewFSOpt
- func WithNydusdBinaryPath(p string) NewFSOpt
- func WithNydusdThreadNum(nydusdThreadNum int) NewFSOpt
- func WithProcessManager(pm *process.Manager) NewFSOpt
- func WithVPCRegistry(vpcRegistry bool) NewFSOpt
- func WithVerifier(verifier *signature.Verifier) NewFSOpt
- type Resolver
Constants ¶
View Source
const BootstrapFile = "image/image.boot"
View Source
const ChunkInfoOffset = 1024 + 128 + 24
View Source
const LayerAnnotationNydusBlobIDs = "containerd.io/snapshot/nydus-blob-ids"
TODO: Move snapshotter needed all image annotations to nydus-snapshotter.
View Source
const LegacyBootstrapFile = "image.boot"
View Source
const MaxSuperBlockSize = 8 * 1024
RafsV6 layout: 1k + SuperBlock(128) + SuperBlockExtener(256) RafsV5 layout: 8K superblock So we only need to read the MaxSuperBlockSize size to include both v5 and v6 superblocks
View Source
const RafsV6Magic = 0xE0F5E1E2
View Source
const RafsV6SuppeOffset = 1024
Variables ¶
This section is empty.
Functions ¶
func NewFileSystem ¶
NewFileSystem initialize Filesystem instance
Types ¶
type NewFSOpt ¶
type NewFSOpt func(d *filesystem) error
func WithCacheManager ¶
func WithDaemonConfig ¶
func WithDaemonConfig(cfg config.DaemonConfig) NewFSOpt
func WithDaemonMode ¶
func WithLogDir ¶
func WithLogLevel ¶
func WithLogToStdout ¶
func WithNydusdBinaryPath ¶
func WithNydusdThreadNum ¶
func WithProcessManager ¶
func WithVPCRegistry ¶
func WithVerifier ¶
type Resolver ¶ added in v0.11.2
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶ added in v0.11.2
func NewResolver() *Resolver
Click to show internal directories.
Click to hide internal directories.