generate

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

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

type FileListing struct {
	Name string
	Path string
	Size int64
}

Jump to

Keyboard shortcuts

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