package mounts

import "github.com/moby/buildkit/solver/llbsolver/mounts"

Index

Functions

func CacheMountsLocker

func CacheMountsLocker() sync.Locker

func ClearActiveCacheMounts

func ClearActiveCacheMounts()

ClearActiveCacheMounts clears shared cache mounts currently in use. Caller needs to hold CacheMountsLocker before calling

Types

type CacheRefMetadata

type CacheRefMetadata struct {
	cache.RefMetadata
}

func SearchCacheDir

func SearchCacheDir(ctx context.Context, store cache.MetadataStore, id string, withNested bool) ([]CacheRefMetadata, error)

func (CacheRefMetadata) ClearCacheDirIndex

func (md CacheRefMetadata) ClearCacheDirIndex() error

type MountManager

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

func NewMountManager

func NewMountManager(name string, cm cache.Manager, sm *session.Manager) *MountManager

func (*MountManager) MountableCache

func (mm *MountManager) MountableCache(ctx context.Context, m *pb.Mount, ref cache.ImmutableRef, g session.Group) (cache.MutableRef, error)

func (*MountManager) MountableSSH

func (mm *MountManager) MountableSSH(ctx context.Context, m *pb.Mount, g session.Group) (cache.Mountable, error)

func (*MountManager) MountableSecret

func (mm *MountManager) MountableSecret(ctx context.Context, m *pb.Mount, g session.Group) (cache.Mountable, error)

func (*MountManager) MountableTmpFS

func (mm *MountManager) MountableTmpFS(m *pb.Mount) cache.Mountable

Source Files

mount.go

Version
v0.21.1 (latest)
Published
Apr 29, 2025
Platform
linux/amd64
Imports
23 packages
Last checked
2 hours ago

Tools for package owners.