Documentation ¶
Index ¶
- Constants
- func Decode(enc string) (bi binfotypes.BuildInfo, _ error)
- func Encode(ctx context.Context, buildInfo []byte, buildSources map[string]string) ([]byte, error)
- func Format(dt []byte, format FormatOpts) (_ []byte, err error)
- func GetMetadata(metadata map[string][]byte, key string, reqFrontend string, ...) ([]byte, error)
- type ExportMode
- type FormatOpts
Constants ¶
View Source
const ( // ExportNone doesn't export build dependencies. ExportNone ExportMode = 0 // ExportImageConfig exports build dependencies to // the image config. ExportImageConfig = 1 << iota // ExportMetadata exports build dependencies as metadata to // the exporter response. ExportMetadata // ExportAll exports build dependencies as metadata and // image config. ExportAll = -1 )
View Source
const ExportDefault = ExportAll
ExportDefault is the default export mode for buildinfo opt.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
func Decode(enc string) (bi binfotypes.BuildInfo, _ error)
Decode decodes a base64 encoded build info.
Types ¶
type ExportMode ¶
type ExportMode int
ExportMode represents the export mode for buildinfo opt.
func ParseExportMode ¶
func ParseExportMode(s string) (ExportMode, error)
ParseExportMode returns the export mode matching a string.
type FormatOpts ¶
type FormatOpts struct {
RemoveAttrs bool
}
FormatOpts holds build info format options.
Click to show internal directories.
Click to hide internal directories.