local

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

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

ManifestName is the name of the file containing the Policy Manifest.

Variables

This section is empty.

Functions

func IsPolicyFile

func IsPolicyFile(file os.FileInfo) bool

func IsPolicyTestFile

func IsPolicyTestFile(file os.FileInfo) bool

Types

type Config

type Config struct {
	Dir string
}

Config is the configuration for the package source.

func (*Config) NewPackageSource

func (c *Config) NewPackageSource() (packagesources.PackageSource, error)

NewPackageSource creates a new PackageSource from configuration. It validates the configuration.

type PackageSource

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

PackageSource can load packages from a local directory.

func (*PackageSource) Load

func (ps *PackageSource) Load() ([]*packaging.Package, error)

Load loads packages from a local directory.

Jump to

Keyboard shortcuts

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