Documentation
¶
Index ¶
- func CalculateDigest(data []byte) string
- func CalculateDirectoryDigest(dir string) (string, error)
- func GetCachePath(ref string) string
- func ImageExistsInCache(ref string) bool
- func IsLocalReference(ref string) bool
- func SanitizeImageRef(ref string) string
- type Builder
- type CachedImage
- type Deleter
- type Extractor
- type ImageMetadata
- type Lister
- type LocalBuildMetadata
- type LocalBuilder
- type Puller
- type Pusher
- type Remover
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateDigest ¶
CalculateDigest calculates SHA256 digest of data
func CalculateDirectoryDigest ¶
CalculateDirectoryDigest calculates SHA256 digest of all files in a directory Files are processed in sorted order for deterministic results
func GetCachePath ¶
GetCachePath returns the local cache path for an image reference, or "" if the image is not in the cache. Checks local build cache first, then the registry pull cache.
func ImageExistsInCache ¶
ImageExistsInCache checks if an image exists in the local cache Checks both local build cache and registry pull cache
func IsLocalReference ¶
IsLocalReference checks if an image reference is local (no registry prefix)
func SanitizeImageRef ¶
SanitizeImageRef converts an image reference to a safe filename
Types ¶
type Builder ¶
type Builder struct{}
func NewBuilder ¶
func NewBuilder() *Builder
func (*Builder) BuildImage ¶
BuildImage creates a Docker image from scratch with the specified files
type CachedImage ¶
type CachedImage struct {
Name string
Type string // "local-build" or "registry-pull"
Source string
BuildTime time.Time
Size int64
Manifest *manifest.Manifest // The aigogo.json manifest if available
}
CachedImage represents a cached image with its metadata
type Deleter ¶
type Deleter struct {
// contains filtered or unexported fields
}
Deleter handles deleting images from registries
type ImageMetadata ¶
type Lister ¶
type Lister struct{}
func (*Lister) ListDetailed ¶
func (l *Lister) ListDetailed() ([]CachedImage, error)
List returns all cached images with their metadata
type LocalBuildMetadata ¶
type LocalBuildMetadata struct {
Name string `json:"name"`
Type string `json:"type"` // "local-build" or "registry-pull"
BuiltAt string `json:"built_at"`
Source string `json:"source"` // "local", registry URL, etc.
Registry string `json:"registry,omitempty"`
Manifest *manifest.Manifest `json:"manifest,omitempty"`
}
LocalBuildMetadata stores information about local builds
type LocalBuilder ¶
type LocalBuilder struct {
// contains filtered or unexported fields
}
LocalBuilder builds packages to local cache without pushing
func NewLocalBuilder ¶
func NewLocalBuilder() *LocalBuilder
NewLocalBuilder creates a new local builder
func (*LocalBuilder) BuildFromDir ¶
func (b *LocalBuilder) BuildFromDir(srcDir string, imageRef string, m *manifest.Manifest, force bool) error
BuildFromDir builds a package from a specific directory