ocifs

package module
v0.0.0-...-aafbd4a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 22 Imported by: 1

README

= ocifs

a read-only FUSE union filesystem for Docker and OCI images, in pure Go


Documentation

Index

Constants

This section is empty.

Variables

View Source
var MountWithID = func(id string) MountOption {
	return func(im *ImageMount) {
		im.id = id
	}
}
View Source
var MountWithTargetPath = func(targetPath string) MountOption {
	return func(im *ImageMount) {
		im.mountPoint = targetPath
	}
}
View Source
var WithAuthSource = func(prefix string, auth authn.AuthConfig) Option {
	return func(o *OCIFS) {
		o.authn.creds[prefix] = auth
	}
}
View Source
var WithCacheExpiration = func(exp time.Duration) Option {
	return func(o *OCIFS) {
		o.exp = exp
	}
}
View Source
var WithEnableDefaultKeychain = func() Option {
	return func(o *OCIFS) {
		o.authn.includeDefaultKeychain = true
	}
}
View Source
var WithExtraDirs = func(extraDirs []string) Option {
	return func(o *OCIFS) {
		o.extraDirs = extraDirs
	}
}
View Source
var WithWorkDir = func(workDir string) Option {
	return func(o *OCIFS) {
		o.workDir = filepath.Clean(workDir)
	}
}

Functions

This section is empty.

Types

type ImageMount

type ImageMount struct {
	// contains filtered or unexported fields
}

func (*ImageMount) ConfigFile

func (im *ImageMount) ConfigFile() (*v1.ConfigFile, error)

func (*ImageMount) MountPoint

func (im *ImageMount) MountPoint() string

func (*ImageMount) Unmount

func (im *ImageMount) Unmount() error

func (*ImageMount) Wait

func (im *ImageMount) Wait()

type MountOption

type MountOption func(*ImageMount)

type OCIFS

type OCIFS struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) (*OCIFS, error)

func (*OCIFS) Mount

func (o *OCIFS) Mount(imgRef string, opts ...MountOption) (*ImageMount, error)

type Option

type Option func(*OCIFS)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL