image

package
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveRegistryCache added in v0.1.9

func RemoveRegistryCache(tag string, cacheDir string) error

RemoveRegistryCache removes a registry-cached image by tag.

Types

type BuildOptions

type BuildOptions struct {
	CacheDir  string
	ForcePull bool
}

type BuildResult

type BuildResult struct {
	RootfsPath string
	Digest     string
	Size       int64
	Cached     bool
	OCI        *OCIConfig
}

type Builder

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

func NewBuilder

func NewBuilder(opts *BuildOptions) *Builder

func (*Builder) Build

func (b *Builder) Build(ctx context.Context, imageRef string) (*BuildResult, error)

func (*Builder) Import added in v0.1.4

func (b *Builder) Import(ctx context.Context, reader io.Reader, tag string) (*BuildResult, error)

func (*Builder) SaveTag added in v0.1.4

func (b *Builder) SaveTag(tag string, result *BuildResult) error

func (*Builder) Store added in v0.1.4

func (b *Builder) Store() *Store

type ImageInfo added in v0.1.4

type ImageInfo struct {
	Tag        string
	RootfsPath string
	Meta       ImageMeta
}

func ListRegistryCache added in v0.1.4

func ListRegistryCache(cacheDir string) ([]ImageInfo, error)

ListRegistryCache lists images cached from registry pulls (non-local store).

type ImageMeta added in v0.1.4

type ImageMeta struct {
	Tag       string     `json:"tag"`
	Digest    string     `json:"digest,omitempty"`
	Size      int64      `json:"size"`
	CreatedAt time.Time  `json:"created_at"`
	Source    string     `json:"source,omitempty"`
	OCI       *OCIConfig `json:"oci,omitempty"`
}

type OCIConfig added in v0.1.10

type OCIConfig struct {
	User       string            `json:"user,omitempty"`
	WorkingDir string            `json:"working_dir,omitempty"`
	Entrypoint []string          `json:"entrypoint,omitempty"`
	Cmd        []string          `json:"cmd,omitempty"`
	Env        map[string]string `json:"env,omitempty"`
}

type Store added in v0.1.4

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

func NewStore added in v0.1.4

func NewStore(baseDir string) *Store

func (*Store) Get added in v0.1.4

func (s *Store) Get(tag string) (*BuildResult, error)

func (*Store) List added in v0.1.4

func (s *Store) List() ([]ImageInfo, error)

func (*Store) Remove added in v0.1.4

func (s *Store) Remove(tag string) error

func (*Store) Save added in v0.1.4

func (s *Store) Save(tag string, rootfsPath string, meta ImageMeta) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL