Documentation ¶
Overview ¶
Package analysis provides tools for extracting, indexing and analyzing source code archives.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructCtagsIndex ¶
func ConstructSymbolsIndex ¶
Types ¶
type Archive ¶
type Archive struct { Pkg *apt.Package // source package Dir string // local directory Tree Directory // index of package contents // contains filtered or unexported fields }
An Archive represents a package that's been extracted to the local filesystem.
func DownloadExtractAndWalkTree ¶
DownloadExtractAndWalkTree creates an Archive from an apt.Package. It downloads the files listed in the package's control file, extracts and combines them using dpkg-source, and walks the resulting directory to create the index.
type Directory ¶
func (Directory) Files ¶
Files recursively enumerates the directory and returns a flattened list of its contents. Nodes are added in sorted order by name.
func (Directory) MarshalJSON ¶
type File ¶
func (File) MarshalJSON ¶
type INode ¶
type INode interface {
// contains filtered or unexported methods
}
An INode represents anything that can be contained in a directory: a file, another directory or a symbolic link.
type Node ¶
type Node struct { Name string Files []string Children []*Node // contains filtered or unexported fields }
func ConstructFzfIndex ¶
type SymbolicLink ¶
func (SymbolicLink) MarshalJSON ¶
func (s SymbolicLink) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.