buildinfo

package
v0.10.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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, buildSources map[string]string) ([]byte, error)

Encode encodes build info.

func Format

func Format(dt []byte, format FormatOpts) (_ []byte, err error)

Format formats build info.

func FromImageConfig

func FromImageConfig(dt []byte) (*binfotypes.BuildInfo, error)

FromImageConfig returns build info from image config.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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