speca

package
v1.6.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmptyReference

func NewEmptyReference() models.Reference

func NewReference

func NewReference(file string, line int, offset int) models.Reference

Types

type Allow

type Allow struct {
	DepOnAnyVendor ReferableBool
}

type Component

type Component struct {
	Name           ReferableString
	ResolvedPaths  []ReferableResolvedPath
	AllowedImports []ReferableResolvedPath
	MayDependOn    []ReferableString
	CanUse         []ReferableString
	SpecialFlags   SpecialFlags
}

type Integrity

type Integrity struct {
	DocumentNotices []Notice
	Suggestions     []Notice
}

type Notice

type Notice struct {
	Notice error
	Ref    models.Reference
}

type ReferableBool

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

func NewEmptyReferableBool

func NewEmptyReferableBool(value bool) ReferableBool

func NewReferableBool

func NewReferableBool(value bool, ref models.Reference) ReferableBool

func (ReferableBool) Reference

func (s ReferableBool) Reference() models.Reference

func (ReferableBool) Value

func (s ReferableBool) Value() bool

type ReferableInt

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

func NewEmptyReferableInt

func NewEmptyReferableInt(value int) ReferableInt

func NewReferableInt

func NewReferableInt(value int, ref models.Reference) ReferableInt

func (ReferableInt) Reference

func (s ReferableInt) Reference() models.Reference

func (ReferableInt) Value

func (s ReferableInt) Value() int

type ReferableRegExp

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

func NewEmptyReferableRegExp

func NewEmptyReferableRegExp(value *regexp.Regexp) ReferableRegExp

func NewReferableRegExp

func NewReferableRegExp(value *regexp.Regexp, ref models.Reference) ReferableRegExp

func (ReferableRegExp) Reference

func (s ReferableRegExp) Reference() models.Reference

func (ReferableRegExp) Value

func (s ReferableRegExp) Value() *regexp.Regexp

type ReferableResolvedPath

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

func NewEmptyReferableResolvedPath

func NewEmptyReferableResolvedPath(value models.ResolvedPath) ReferableResolvedPath

func NewReferableResolvedPath

func NewReferableResolvedPath(value models.ResolvedPath, ref models.Reference) ReferableResolvedPath

func (ReferableResolvedPath) Reference

func (s ReferableResolvedPath) Reference() models.Reference

func (ReferableResolvedPath) Value

type ReferableString

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

func NewEmptyReferableString

func NewEmptyReferableString(value string) ReferableString

func NewReferableString

func NewReferableString(value string, ref models.Reference) ReferableString

func (ReferableString) Reference

func (s ReferableString) Reference() models.Reference

func (ReferableString) Value

func (s ReferableString) Value() string

type Spec

type Spec struct {
	RootDirectory       ReferableString
	WorkingDirectory    ReferableString
	ModuleName          ReferableString
	Allow               Allow
	Components          []Component
	Exclude             []ReferableResolvedPath
	ExcludeFilesMatcher []ReferableRegExp
	Integrity           Integrity
}

type SpecialFlags

type SpecialFlags struct {
	AllowAllProjectDeps ReferableBool
	AllowAllVendorDeps  ReferableBool
}

Jump to

Keyboard shortcuts

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