package buildinfo
import "github.com/moby/buildkit/util/buildinfo"
Index ¶
- func AddMetadata(metadata map[string][]byte, key string, c *provenance.Capture) error
- func Decode(enc string) (bi binfotypes.BuildInfo, _ error)
- func Encode(ctx context.Context, metadata map[string][]byte, key string, llbSources map[string]string) ([]byte, error)
- func Format(dt []byte, opts FormatOpts) (_ []byte, err error)
- func FromProvenance(c *provenance.Capture) (*binfotypes.BuildInfo, error)
- type FormatOpts
Functions ¶
func AddMetadata ¶
func Decode ¶
func Decode(enc string) (bi binfotypes.BuildInfo, _ error)
Decode decodes a base64 encoded build info.
func Encode ¶
func Encode(ctx context.Context, metadata map[string][]byte, key string, llbSources map[string]string) ([]byte, error)
Encode encodes build info.
func Format ¶
func Format(dt []byte, opts FormatOpts) (_ []byte, err error)
Format formats build info.
func FromProvenance ¶
func FromProvenance(c *provenance.Capture) (*binfotypes.BuildInfo, error)
Types ¶
type FormatOpts ¶
type FormatOpts struct { RemoveAttrs bool }
FormatOpts holds build info format options.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
util/buildinfo/types |
- Version
- v0.11.0-rc1
- Published
- Nov 24, 2022
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 2 minutes ago –
Tools for package owners.