generic

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FalcoRulesKey represents the key used in the package's data field that
	// contains the raw rules.
	FalcoRulesKey = "rules"

	// OPAPoliciesKey represents the key used in the package's data field that
	// contains the raw policies.
	OPAPoliciesKey = "policies"
)

Variables

This section is empty.

Functions

func PreparePackage added in v1.2.0

func PreparePackage(r *hub.Repository, md *hub.PackageMetadata, pkgPath string) (*hub.Package, error)

PreparePackage prepares a package version using the metadata and the files in the path provided.

Types

type TrackerSource

type TrackerSource struct {
	// contains filtered or unexported fields
}

TrackerSource is a hub.TrackerSource implementation used by several kinds of repositories.

func NewTrackerSource

func NewTrackerSource(i *hub.TrackerSourceInput) *TrackerSource

NewTrackerSource creates a new TrackerSource instance.

func (*TrackerSource) GetPackagesAvailable

func (s *TrackerSource) GetPackagesAvailable() (map[string]*hub.Package, error)

GetPackagesAvailable implements the TrackerSource interface.

Jump to

Keyboard shortcuts

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