Versions in this module Expand all Collapse all v1 v1.0.0 Aug 15, 2018 Changes in this version + var BBBuilder = Builder + var BinaryBuilder = Builder + var DefaultRamfs = []cpio.Record + var SourceBuilder = Builder + func BBBuild(af ArchiveFiles, opts BuildOpts) error + func BinaryBuild(af ArchiveFiles, opts BuildOpts) error + func BuildBusybox(env golang.Environ, pkgs []string, binaryPath string) error + func CreateBBMainSource(fset *token.FileSet, astp *ast.Package, pkgs []string, destDir string) error + func CreateInitramfs(opts Opts) error + func DefaultPackageImports(env golang.Environ) ([]string, error) + func ParseAST(p *build.Package) (*token.FileSet, *ast.Package, error) + func ParseExtraFiles(archive ArchiveFiles, extraFiles []string, lddDeps bool) error + func ResolvePackagePaths(env golang.Environ, pkgs []string) ([]string, error) + func RewritePackage(env golang.Environ, pkgPath, destDir, bbImportPath string, ...) error + func SourceBuild(af ArchiveFiles, opts BuildOpts) error + func WriteFile(w ArchiveWriter, src, dest string) error + type ArchiveFiles struct + Files map[string]string + Records map[string]cpio.Record + func NewArchiveFiles() ArchiveFiles + func (af ArchiveFiles) AddFile(src string, dest string) error + func (af ArchiveFiles) AddRecord(r cpio.Record) error + func (af ArchiveFiles) Contains(dest string) bool + func (af ArchiveFiles) Rename(name string, newname string) + func (af ArchiveFiles) SortedKeys() []string + func (af ArchiveFiles) WriteTo(w ArchiveWriter) error + type ArchiveOpts struct + BaseArchive ArchiveReader + DefaultRecords []cpio.Record + OutputFile ArchiveWriter + UseExistingInit bool + func (opts *ArchiveOpts) Write() error + type ArchiveReader cpio.RecordReader + type ArchiveWriter interface + Finish func() error + type Archiver interface + OpenWriter func(path, goos, goarch string) (ArchiveWriter, error) + Reader func(io.ReaderAt) ArchiveReader + func GetArchiver(name string) (Archiver, error) + type BuildOpts struct + BinaryDir string + Env golang.Environ + Packages []string + TempDir string + type Builder struct + Build func(ArchiveFiles, BuildOpts) error + DefaultBinaryDir string + func GetBuilder(name string) (Builder, error) + type CPIOArchiver struct + func (ca CPIOArchiver) OpenWriter(path, goos, goarch string) (ArchiveWriter, error) + func (ca CPIOArchiver) Reader(r io.ReaderAt) ArchiveReader + type Commands struct + BinaryDir string + Builder Builder + Packages []string + func (c Commands) TargetDir() string + type DirArchiver struct + func (da DirArchiver) OpenWriter(path, goos, goarch string) (ArchiveWriter, error) + func (da DirArchiver) Reader(io.ReaderAt) ArchiveReader + type Opts struct + Archiver Archiver + BaseArchive ArchiveReader + Commands []Commands + DefaultShell string + Env golang.Environ + ExtraFiles []string + InitCmd string + OutputFile ArchiveWriter + TempDir string + UseExistingInit bool + type Package struct + func NewPackage(name string, p *build.Package, importer types.Importer) (*Package, error) + func NewPackageFromEnv(env golang.Environ, importPath string, importer types.Importer) (*Package, error) + func (p *Package) Rewrite(destDir, bbImportPath string) error Incompatible versions in this module v4.0.0+incompatible Jan 27, 2019 v3.0.0+incompatible Nov 21, 2018 v2.0.0+incompatible Oct 1, 2018