package buildinfo

import "github.com/moby/buildkit/util/buildinfo"

Index

Functions

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 GetMetadata

func GetMetadata(metadata map[string][]byte, key string, reqFrontend string, reqAttrs map[string]string) ([]byte, error)

GetMetadata returns buildinfo metadata for the specified key. If the key is already there, result will be merged.

Types

type FormatOpts

type FormatOpts struct {
	RemoveAttrs bool
}

FormatOpts holds build info format options.

Source Files

buildinfo.go

Directories

PathSynopsis
util/buildinfo/types
Version
v0.10.3
Published
May 6, 2022
Platform
js/wasm
Imports
12 packages
Last checked
25 seconds ago

Tools for package owners.