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 } }
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 (*OCIFS) Mount ¶
func (o *OCIFS) Mount(imgRef string, opts ...MountOption) (*ImageMount, error)
Click to show internal directories.
Click to hide internal directories.