anderson

package
v0.0.0-...-d7bf708 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2014 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainingGopath

func ContainingGopath(packagePath string) (string, error)

func Gopaths

func Gopaths() ([]string, error)

func LookGopath

func LookGopath(packagePath string) (string, error)

Types

type Config

type Config struct {
	Whitelist  []string `yaml:"whitelist"`
	Blacklist  []string `yaml:"blacklist"`
	Exceptions []string `yaml:"exceptions"`
}

type LicenseClassifier

type LicenseClassifier struct {
	Config Config
}

func (LicenseClassifier) Classify

func (c LicenseClassifier) Classify(path string, importPath string) (LicenseStatus, string, string, error)

type LicenseStatus

type LicenseStatus int
const (
	LicenseTypeUnknown LicenseStatus = iota
	LicenseTypeNoLicense
	LicenseTypeBanned
	LicenseTypeAllowed
	LicenseTypeMarginal
)

func (LicenseStatus) Color

func (s LicenseStatus) Color() string

func (LicenseStatus) FailsBuild

func (s LicenseStatus) FailsBuild() bool

func (LicenseStatus) Message

func (s LicenseStatus) Message() string

type Package

type Package struct {
	Dir        string
	Root       string
	ImportPath string
	Deps       []string
	Standard   bool

	TestGoFiles  []string
	TestImports  []string
	XTestGoFiles []string
	XTestImports []string

	Error struct {
		Err string
	}
}

type PackageLister

type PackageLister struct{}

func (PackageLister) ListDependencies

func (l PackageLister) ListDependencies() ([]string, error)

type StdinLister

type StdinLister struct{}

func (StdinLister) ListDependencies

func (l StdinLister) ListDependencies() ([]string, error)

Jump to

Keyboard shortcuts

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