dockerfile2llb

package
v0.0.0-...-f90450c Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const PackageStepCount = 3

Variables

This section is empty.

Functions

func Dockefile2Outline

func Dockefile2Outline(ctx context.Context, dt []byte, opt ConvertOpt) (*outline.Outline, error)

func ListTargets

func ListTargets(ctx context.Context, dt []byte) (*targets.List, error)

Types

type ConvertOpt

type ConvertOpt struct {
	dockerui.Config
	Client         *dockerui.Client
	MainContext    *llb.State
	SourceMap      *llb.SourceMap
	TargetPlatform *ocispecs.Platform
	MetaResolver   client.Client
	LLBCaps        *apicaps.CapSet
	Warn           func(short, url string, detail [][]byte, location *parser.Range)
}

type PackageDownload

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

type PackageInvocation

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

func NewPackageInvocation

func NewPackageInvocation(d *dispatchState, c *instructions.PackageCommand,
	dopt dispatchOpt) *PackageInvocation

func (*PackageInvocation) Dispatch

func (i *PackageInvocation) Dispatch() error

func (*PackageInvocation) DownloadFiles

func (i *PackageInvocation) DownloadFiles(base llb.State, files []PackageDownload,
	destination string) (llb.State, error)

func (*PackageInvocation) ParseURIs

func (i *PackageInvocation) ParseURIs(uris []byte) ([]PackageDownload, error)

func (*PackageInvocation) ReadFile

func (i *PackageInvocation) ReadFile(state llb.State, path string) ([]byte, error)

func (*PackageInvocation) Run

func (i *PackageInvocation) Run(state llb.State, stageName string, withLayer bool,
	script []string, extra ...llb.RunOption) (llb.State, error)

type SBOMTargets

type SBOMTargets struct {
	Core   llb.State
	Extras map[string]llb.State

	IgnoreCache bool
}

func Dockerfile2LLB

func Dockerfile2LLB(ctx context.Context, dt []byte, opt ConvertOpt) (st *llb.State, img, baseImg *dockerspec.DockerOCIImage, sbom *SBOMTargets, err error)

Jump to

Keyboard shortcuts

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