Versions in this module Expand all Collapse all v0 v0.1.0 Jun 22, 2026 Changes in this version + const FileTypeBlock + const FileTypeChar + const FileTypeDir + const FileTypeFifo + const FileTypeHardlink + const FileTypeRegular + const FileTypeSymlink + const FileTypeUnknown + const MediaTypeDockerImageConfig + const MediaTypeDockerLayerTar + const MediaTypeDockerLayerTarGzip + const MediaTypeDockerManifest + const MediaTypeDockerManifestList + const MediaTypeImageConfig + const MediaTypeImageIndex + const MediaTypeImageManifest + const MediaTypeLayerTar + const MediaTypeLayerTarGzip + const MediaTypeLayerTarZstd + var ErrReadOnly = errors.New("oci: read-only filesystem") + func RegisterDecompressor(mediaType string, d Decompressor) + type BlobSource interface + Blob func(digest string) (io.ReadCloser, error) + func OCILayout(dir string) BlobSource + func Tarball(p string) (BlobSource, error) + func TarballFS(fsys fs.FS) (BlobSource, error) + type Decompressor func(r io.Reader) (io.Reader, error) + type FS struct + func Open(src BlobSource) (*FS, error) + func OpenDescriptor(src BlobSource, top descriptor, sel Selector) (*FS, error) + func OpenLayout(dir string) (*FS, error) + func OpenSelect(src BlobSource, sel Selector) (*FS, error) + func OpenTarball(p string) (*FS, error) + func (f *FS) Close() error + func (f *FS) DeleteDir(path string) error + func (f *FS) DeleteFile(path string) error + func (f *FS) ListDir(path string) ([]filesystem.DirEntry, error) + func (f *FS) MkDir(path string, perm os.FileMode) error + func (f *FS) ReadFile(path string) ([]byte, error) + func (f *FS) ReadLink(path string) (string, error) + func (f *FS) Rename(oldPath, newPath string) error + func (f *FS) Stat(path string) (filesystem.Stat, error) + func (f *FS) WriteFile(path string, data []byte, perm os.FileMode) error + type Selector struct + Architecture string + Digest string + OS string + Variant string