package dockerfile2llb

import "github.com/moby/buildkit/frontend/dockerfile/dockerfile2llb"

Index

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
	SourceMap      *llb.SourceMap
	TargetPlatform *ocispecs.Platform
	MetaResolver   llb.ImageMetaResolver
	LLBCaps        *apicaps.CapSet
	Warn           func(short, url string, detail [][]byte, location *parser.Range)
}

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) (*llb.State, *image.Image, *SBOMTargets, error)

Source Files

convert.go convert_norunsecurity.go convert_runmount.go convert_runnetwork.go convert_secrets.go convert_ssh.go defaultshell.go image.go outline.go platform.go

Version
v0.12.2
Published
Aug 23, 2023
Platform
js/wasm
Imports
36 packages
Last checked
6 minutes ago

Tools for package owners.