Documentation ¶
Index ¶
- type ReposInfo
- type RootPkg
- func (rp *RootPkg) Build(path string, pkgName string, reposInfo ReposInfo) error
- func (rp *RootPkg) ExpandPkg(t *testing.T, reposInfo ReposInfo) string
- func (rp *RootPkg) ExpandPkgWithName(t *testing.T, rootName string, reposInfo ReposInfo) string
- func (rp *RootPkg) WithFile(name, content string) *RootPkg
- func (rp *RootPkg) WithSubPackages(ps ...*SubPkg) *RootPkg
- type SubPkg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RootPkg ¶
type RootPkg struct {
// contains filtered or unexported fields
}
RootPkg is a package without any parent package.
func (*RootPkg) Build ¶
Build outputs the current data structure as a set of (nested) package in the provided path.
func (*RootPkg) ExpandPkg ¶
ExpandPkg writes the provided package to disk. The name of the root package will just be set to "base".
func (*RootPkg) ExpandPkgWithName ¶
ExpandPkgWithName writes the provided package to disk and uses the given rootName to set the value of the package directory and the metadata.name field of the root package.
func (*RootPkg) WithFile ¶
WithFile configures the package to contain a file with the provided name and the given content.
func (*RootPkg) WithSubPackages ¶
WithSubPackages adds the provided packages as subpackages to the current package
type SubPkg ¶
type SubPkg struct { Name string // contains filtered or unexported fields }
func (*SubPkg) WithFile ¶
WithFile configures the package to contain a file with the provided name and the given content.
func (*SubPkg) WithSubPackages ¶
WithSubPackages adds the provided packages as subpackages to the current package