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) ContainsAny(ref name.Reference) (bool, error)
- func (lm *Mapper) ContainsManifest(ref name.Reference) bool
- func (lm *Mapper) List() ([]Properties, error)
- func (lm *Mapper) Read(ctx context.Context, ref name.Reference) (v1.Image, error)
- func (lm *Mapper) ReadDigest(ref name.Reference) (v1.Hash, error)
- func (lm *Mapper) ReadManifest(ref name.Reference) (*v1.Manifest, 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 ConfigMediaType = types.MediaType("application/online.jarosik.tomasz.v1.config+json")
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 ¶ added in v0.6.0
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) ContainsAny ¶
ContainsAny returns true if there is a directory corresponding to the provided reference It does not validate if that directory contains anything useful
func (*Mapper) List ¶
func (lm *Mapper) List() ([]Properties, error)
func (*Mapper) ReadDigest ¶ added in v0.6.1
func (*Mapper) ReadManifest ¶ added in v0.6.1
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 ¶ added in v0.6.0
func (s *Statistics) String() string
String formats the Statistics struct for human-readable output
Click to show internal directories.
Click to hide internal directories.