dockerfile2llb

package
v0.11.6 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 36 Imported by: 63

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dockefile2Outline added in v0.11.0

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

func Dockerfile2LLB

func Dockerfile2LLB(ctx context.Context, dt []byte, opt ConvertOpt) (*llb.State, *Image, *SBOMTargets, error)

func ListTargets added in v0.11.0

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

func WithInternalName

func WithInternalName(name string) llb.ConstraintsOpt

Types

type ConvertOpt

type ConvertOpt struct {
	Target       string
	MetaResolver llb.ImageMetaResolver
	BuildArgs    map[string]string
	Labels       map[string]string
	SessionID    string
	BuildContext *llb.State
	Excludes     []string
	// IgnoreCache contains names of the stages that should not use build cache.
	// Empty slice means ignore cache for all stages. Nil doesn't disable cache.
	IgnoreCache []string
	// CacheIDNamespace scopes the IDs for different cache mounts
	CacheIDNamespace string
	ImageResolveMode llb.ResolveMode
	TargetPlatform   *ocispecs.Platform
	BuildPlatforms   []ocispecs.Platform
	PrefixPlatform   bool
	ExtraHosts       []llb.HostIP
	ShmSize          int64
	Ulimit           []pb.Ulimit
	CgroupParent     string
	ForceNetMode     pb.NetMode
	LLBCaps          *apicaps.CapSet
	ContextLocalName string
	SourceMap        *llb.SourceMap
	Hostname         string
	SourceDateEpoch  *time.Time
	Warn             func(short, url string, detail [][]byte, location *parser.Range)
	ContextByName    func(ctx context.Context, name, resolveMode string, p *ocispecs.Platform) (*llb.State, *Image, error)
}

type Image

type Image image.Image

Image is the JSON structure which describes some basic information about the image. This provides the `application/vnd.oci.image.config.v1+json` mediatype when marshalled to JSON.

type SBOMTargets added in v0.11.0

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

	IgnoreCache bool
}

Jump to

Keyboard shortcuts

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