archfile

package
v1.4.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YamlAllow

type YamlAllow struct {
	DepOnAnyVendor bool `yaml:"depOnAnyVendor"`
}

type YamlComponent

type YamlComponent struct {
	LocalPath string `yaml:"in"`
}

type YamlComponentName

type YamlComponentName = string

type YamlExcludeLocalPath

type YamlExcludeLocalPath = string

type YamlRules

type YamlRules struct {
	MayDependOn    []YamlComponentName `yaml:"mayDependOn"`
	CanUse         []YamlVendorName    `yaml:"canUse"`
	AnyProjectDeps bool                `yaml:"anyProjectDeps"`
	AnyVendorDeps  bool                `yaml:"anyVendorDeps"`
}

type YamlSpec

type YamlSpec struct {
	Version            int                                 `yaml:"version"`
	Allow              YamlAllow                           `yaml:"allow"`
	Vendors            map[YamlVendorName]YamlVendor       `yaml:"vendors"`
	Exclude            []YamlExcludeLocalPath              `yaml:"exclude"`
	ExcludeFilesRegExp []string                            `yaml:"excludeFiles"`
	Components         map[YamlComponentName]YamlComponent `yaml:"components"`
	Dependencies       map[YamlComponentName]YamlRules     `yaml:"deps"`
	CommonComponents   []YamlComponentName                 `yaml:"commonComponents"`
	CommonVendors      []YamlVendorName                    `yaml:"commonVendors"`
}

func NewYamlSpec added in v1.3.0

func NewYamlSpec(sourceCode []byte) (*YamlSpec, error)

type YamlVendor

type YamlVendor struct {
	ImportPath string `yaml:"in"`
}

type YamlVendorName

type YamlVendorName = string

Jump to

Keyboard shortcuts

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