local

package
v0.1.8-rc Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ManifestName = "policy-manifest.yaml"

Variables

This section is empty.

Functions

func IsPolicyFile

func IsPolicyFile(file os.FileInfo) bool

func IsPolicyTestFile

func IsPolicyTestFile(file os.FileInfo) bool

Types

type LocalPackage added in v0.1.9

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

func LoadLocalPackage added in v0.1.9

func LoadLocalPackage(dirPath string) (*LocalPackage, error)

LoadLocalPackage eagerly reads and parses files on disk to present a Preflight package.

func LoadLocalPackages added in v0.1.9

func LoadLocalPackages(dirPath string) ([]*LocalPackage, error)

func (*LocalPackage) PolicyManifest added in v0.1.9

func (lp *LocalPackage) PolicyManifest() *packaging.PolicyManifest

func (*LocalPackage) RegoText added in v0.1.9

func (lp *LocalPackage) RegoText() map[string]string

Jump to

Keyboard shortcuts

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