Documentation ¶
Index ¶
- Variables
- func Build(m moby.Moby, w io.Writer, opts BuildOpts) error
- func Formats(base string, image string, formats []string, size int, arch, cache string) error
- func ImageBundle(prefix, location string, ref *reference.Spec, config []byte, ...) error
- func ImageTar(location string, ref *reference.Spec, prefix string, tw tarWriter, ...) (e error)
- func OutputTypes() []string
- func Streamable(t string) bool
- func ValidateFormats(formats []string, cache string) error
- type BuildOpts
- type SbomGenerator
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// MobyDir is the location of the cache directory, defaults to ~/.moby
MobyDir = defaultMobyConfigDir()
)
Functions ¶
func Build ¶
Build performs the actual build process. The output is the filesystem in a tar stream written to w.
func ImageBundle ¶
func ImageBundle(prefix, location string, ref *reference.Spec, config []byte, runtime moby.Runtime, tw tarWriter, readonly bool, dupMap map[string]string, opts BuildOpts) error
ImageBundle produces an OCI bundle at the given path in a tarball, given an image and a config.json
func ImageTar ¶
func ImageTar(location string, ref *reference.Spec, prefix string, tw tarWriter, resolv string, opts BuildOpts) (e error)
ImageTar takes a Docker image and outputs it to a tar stream location is where it is in the linuxkit.yaml file
func Streamable ¶
Streamable returns true if an output can be streamed
func ValidateFormats ¶
ValidateFormats checks if the format type is known
Types ¶
type BuildOpts ¶
type BuildOpts struct { Pull bool BuilderType string DecompressKernel bool CacheDir string DockerCache bool Arch string SbomGenerator *SbomGenerator InputTar string }
BuildOpts options that control the linuxkit build process
type SbomGenerator ¶
type SbomGenerator struct {
// contains filtered or unexported fields
}
SbomGenerator handler for generating sbom
func NewSbomGenerator ¶
func NewSbomGenerator(filename string, currentBuildTime bool) (*SbomGenerator, error)
func (*SbomGenerator) Add ¶
func (s *SbomGenerator) Add(prefix string, sbom io.ReadCloser) error
Click to show internal directories.
Click to hide internal directories.