Documentation ¶
Index ¶
- Constants
- func DirectoryDiskUsage(path string) (string, error)
- func IsDirWithOnlyFiles(path string) (bool, error)
- type ImmutableStatistics
- type Layout
- type Mapper
- func (lm *Mapper) Adopt(src string, ref name.Reference, failIfContainsSubdirectories bool) error
- func (lm *Mapper) Clone(src name.Reference, dst name.Reference) error
- func (lm *Mapper) List() ([]Properties, error)
- func (lm *Mapper) Read(ctx context.Context, ref name.Reference) (v1.Image, error)
- func (lm *Mapper) Rehash(ctx context.Context, ref name.Reference) error
- func (lm *Mapper) Remove(src name.Reference) error
- func (lm *Mapper) Stats() ImmutableStatistics
- func (lm *Mapper) Write(ctx context.Context, img v1.Image, ref name.Reference) error
- func (lm *Mapper) WriteIfNotPresent(ctx context.Context, img v1.Image, ref name.Reference) error
- type MountableImage
- type Properties
- type Statistics
Constants ¶
View Source
const OSWindows = "windows"
Variables ¶
This section is empty.
Functions ¶
func DirectoryDiskUsage ¶
DirectoryDiskUsage returns the disk usage of the specified directory.
func IsDirWithOnlyFiles ¶
IsDirWithOnlyFiles checks if the given path is a directory that contains only files (no subdirectories).
Types ¶
type ImmutableStatistics ¶
type ImmutableStatistics struct { SourceBytesCount int64 BytesWrittenCount int64 BytesSkippedCount int64 BytesReadCount int64 BytesClonedCount int64 CompressedBytesCount int64 MatchedSegmentsCount int64 }
ImmutableStatistics holds the immutable copy of statistics
type Mapper ¶
type Mapper struct {
// contains filtered or unexported fields
}
func (*Mapper) List ¶
func (lm *Mapper) List() ([]Properties, error)
func (*Mapper) Stats ¶
func (lm *Mapper) Stats() ImmutableStatistics
type MountableImage ¶
func NewMountableImage ¶
func NewMountableImage(image v1.Image, ref name.Reference) *MountableImage
func (*MountableImage) ConfigLayer ¶
func (mi *MountableImage) ConfigLayer() (v1.Layer, error)
func (*MountableImage) LayerByDiffID ¶
func (*MountableImage) LayerByDigest ¶
type Properties ¶
type Statistics ¶
type Statistics struct { SourceBytesCount atomic.Int64 BytesWrittenCount atomic.Int64 BytesSkippedCount atomic.Int64 BytesReadCount atomic.Int64 BytesClonedCount atomic.Int64 CompressedBytesCount atomic.Int64 MatchedSegmentsCount atomic.Int64 }
func (*Statistics) Add ¶
func (s *Statistics) Add(other *Statistics)
func (*Statistics) Clear ¶
func (s *Statistics) Clear()
func (*Statistics) String ¶
func (s *Statistics) String() string
String formats the Statistics struct for human-readable output
Click to show internal directories.
Click to hide internal directories.