infra

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder builds images

func NewBuilder

func NewBuilder(config config.Build, initializer base.Initializer, repo *Repository, storage storage.Driver, parser parser.Parser) *Builder

NewBuilder creates new image builder

func (*Builder) Build

func (b *Builder) Build(ctx context.Context, cacheDir string, img *description.Descriptor) (types.BuildID, error)

Build builds images

func (*Builder) BuildFromFile

func (b *Builder) BuildFromFile(ctx context.Context, cacheDir string, specFile, name string, tags ...types.Tag) (types.BuildID, error)

BuildFromFile builds image from spec file

type Repository

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

Repository is an image repository

func NewRepository

func NewRepository() *Repository

NewRepository creates new image repository

func (*Repository) Retrieve

func (r *Repository) Retrieve(buildKey types.BuildKey) *description.Descriptor

Retrieve retrieves image descriptor from repository

func (*Repository) Store

func (r *Repository) Store(img *description.Descriptor)

Store stores image descriptor in repository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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