image

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOptions

type BuildOptions struct {
	CacheDir  string
	ForcePull bool
}

type BuildResult

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

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"`
}

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