Documentation
¶
Index ¶
- func Dockefile2Outline(ctx context.Context, dt []byte, opt ConvertOpt) (*outline.Outline, error)
- func Dockerfile2LLB(ctx context.Context, dt []byte, opt ConvertOpt) (*llb.State, *Image, *SBOMTargets, error)
- func ListTargets(ctx context.Context, dt []byte) (*targets.List, error)
- func WithInternalName(name string) llb.ConstraintsOpt
- type ConvertOpt
- type Image
- type SBOMTargets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dockefile2Outline ¶ added in v0.11.0
func Dockerfile2LLB ¶
func Dockerfile2LLB(ctx context.Context, dt []byte, opt ConvertOpt) (*llb.State, *Image, *SBOMTargets, error)
func ListTargets ¶ added in v0.11.0
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)
}
Click to show internal directories.
Click to hide internal directories.