5.3. bropkg.source module

A module containing the definition of a “package source”: a git repository containing a collection of bro-pkg.index files. These are simple INI files that can describe many Bro packages. Each section of the file names a Bro package along with the git URL where it is located and metadata tags that help classify/describe it.

bropkg.source.AGGREGATE_DATA_FILE = 'aggregate.meta'

The name of the package source file where package metadata gets aggregated.

bropkg.source.INDEX_FILENAME = 'bro-pkg.index'

The name of package index files.

class bropkg.source.Source(name, clone_path, git_url)

Bases: object

A Bro package source.

This class contains properties of a package source like its name, remote git URL, and local git clone.

name

str – The name of the source as given by a config file key in it’s [sources] section.

git_url

str – The git URL of the package source.

clone

git.Repo – The local git clone of the package source.

package_index_files()

Return a list paths to package index files in the source.

packages()

Return a list of package.Package in the source.