Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKitfile ¶
func GenerateKitfile(dir *DirectoryListing, packageOpt *artifact.Package) (*artifact.KitFile, error)
Generate a basic Kitfile by looking at the contents of a directory. Parameter packageOpt can be used to define metadata for the Kitfile (i.e. the package section), which is left empty if the parameter is nil.
Types ¶
type DirectoryListing ¶
type DirectoryListing struct {
Name string
Path string
Files []FileListing
Subdirs []DirectoryListing
}
func DirectoryListingFromFS ¶
func DirectoryListingFromFS(contextDir string) (*DirectoryListing, error)
type FileListing ¶
Click to show internal directories.
Click to hide internal directories.