buildinfo

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package buildinfo implements utilities for build information.

Deprecated: Build information is deprecated: https://github.com/moby/buildkit/blob/master/docs/deprecated.md

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMetadata added in v0.11.0

func AddMetadata(metadata map[string][]byte, key string, c *provenance.Capture) error

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 added in v0.11.0

func FromProvenance(c *provenance.Capture) (*binfotypes.BuildInfo, error)

Types

type FormatOpts

type FormatOpts struct {
	RemoveAttrs bool
}

FormatOpts holds build info format options.

Directories

Path Synopsis
Package binfotypes implements types for build information.
Package binfotypes implements types for build information.

Jump to

Keyboard shortcuts

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