Documentation ¶
Index ¶
- type ArchV1Allow
- type ArchV1Component
- type ArchV1Document
- func (doc ArchV1Document) CommonComponents() arch.CommonComponents
- func (doc ArchV1Document) CommonVendors() arch.CommonVendors
- func (doc ArchV1Document) Components() arch.Components
- func (doc ArchV1Document) Dependencies() arch.Dependencies
- func (doc ArchV1Document) ExcludedDirectories() arch.ExcludedDirectories
- func (doc ArchV1Document) ExcludedFilesRegExp() arch.ExcludedFilesRegExp
- func (doc ArchV1Document) Options() arch.Options
- func (doc ArchV1Document) Reference() models.Reference
- func (doc ArchV1Document) Vendors() arch.Vendors
- func (doc ArchV1Document) Version() speca.Referable[int]
- func (doc ArchV1Document) WorkingDirectory() speca.Referable[string]
- type ArchV1Rules
- func (rule ArchV1Rules) AnyProjectDeps() speca.Referable[bool]
- func (rule ArchV1Rules) AnyVendorDeps() speca.Referable[bool]
- func (rule ArchV1Rules) CanUse() []speca.Referable[string]
- func (rule ArchV1Rules) DeepScan() speca.Referable[bool]
- func (rule ArchV1Rules) MayDependOn() []speca.Referable[string]
- func (rule ArchV1Rules) Reference() models.Reference
- type ArchV1Vendor
- type ArchV2Allow
- type ArchV2Component
- type ArchV2Document
- func (doc ArchV2Document) CommonComponents() arch.CommonComponents
- func (doc ArchV2Document) CommonVendors() arch.CommonVendors
- func (doc ArchV2Document) Components() arch.Components
- func (doc ArchV2Document) Dependencies() arch.Dependencies
- func (doc ArchV2Document) ExcludedDirectories() arch.ExcludedDirectories
- func (doc ArchV2Document) ExcludedFilesRegExp() arch.ExcludedFilesRegExp
- func (doc ArchV2Document) Options() arch.Options
- func (doc ArchV2Document) Reference() models.Reference
- func (doc ArchV2Document) Vendors() arch.Vendors
- func (doc ArchV2Document) Version() speca.Referable[int]
- func (doc ArchV2Document) WorkingDirectory() speca.Referable[string]
- type ArchV2Rules
- func (rule ArchV2Rules) AnyProjectDeps() speca.Referable[bool]
- func (rule ArchV2Rules) AnyVendorDeps() speca.Referable[bool]
- func (rule ArchV2Rules) CanUse() []speca.Referable[string]
- func (rule ArchV2Rules) DeepScan() speca.Referable[bool]
- func (rule ArchV2Rules) MayDependOn() []speca.Referable[string]
- func (rule ArchV2Rules) Reference() models.Reference
- type ArchV2Vendor
- type ArchV3Allow
- type ArchV3Component
- type ArchV3Document
- func (doc ArchV3Document) CommonComponents() arch.CommonComponents
- func (doc ArchV3Document) CommonVendors() arch.CommonVendors
- func (doc ArchV3Document) Components() arch.Components
- func (doc ArchV3Document) Dependencies() arch.Dependencies
- func (doc ArchV3Document) ExcludedDirectories() arch.ExcludedDirectories
- func (doc ArchV3Document) ExcludedFilesRegExp() arch.ExcludedFilesRegExp
- func (doc ArchV3Document) Options() arch.Options
- func (doc ArchV3Document) Reference() models.Reference
- func (doc ArchV3Document) Vendors() arch.Vendors
- func (doc ArchV3Document) Version() speca.Referable[int]
- func (doc ArchV3Document) WorkingDirectory() speca.Referable[string]
- type ArchV3Rules
- func (rule ArchV3Rules) AnyProjectDeps() speca.Referable[bool]
- func (rule ArchV3Rules) AnyVendorDeps() speca.Referable[bool]
- func (rule ArchV3Rules) CanUse() []speca.Referable[string]
- func (rule ArchV3Rules) DeepScan() speca.Referable[bool]
- func (rule ArchV3Rules) MayDependOn() []speca.Referable[string]
- func (rule ArchV3Rules) Reference() models.Reference
- type ArchV3Vendor
- type JSONSchemaProvider
- type Provider
- type YAMLSourceCodeReferenceResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchV1Allow ¶
type ArchV1Allow struct { V1DepOnAnyVendor bool `yaml:"depOnAnyVendor" json:"depOnAnyVendor"` // contains filtered or unexported fields }
func (ArchV1Allow) IsDependOnAnyVendor ¶
func (opt ArchV1Allow) IsDependOnAnyVendor() speca.Referable[bool]
func (ArchV1Allow) Reference ¶
func (opt ArchV1Allow) Reference() models.Reference
type ArchV1Component ¶
type ArchV1Component struct { V1LocalPath string `yaml:"in" json:"in"` // contains filtered or unexported fields }
func (ArchV1Component) Reference ¶
func (c ArchV1Component) Reference() models.Reference
func (ArchV1Component) RelativePaths ¶
func (c ArchV1Component) RelativePaths() []speca.Referable[models.Glob]
type ArchV1Document ¶
type ArchV1Document struct { V1Version int `yaml:"version" json:"version"` V1Allow ArchV1Allow `yaml:"allow" json:"allow"` V1Vendors map[arch.VendorName]ArchV1Vendor `yaml:"vendors" json:"vendors"` V1Exclude []string `yaml:"exclude" json:"exclude"` V1ExcludeFilesRegExp []string `yaml:"excludeFiles" json:"excludeFiles"` V1Components map[arch.ComponentName]ArchV1Component `yaml:"components" json:"components"` V1Dependencies map[arch.ComponentName]ArchV1Rules `yaml:"deps" json:"deps"` V1CommonComponents []string `yaml:"commonComponents" json:"commonComponents"` V1CommonVendors []string `yaml:"commonVendors" json:"commonVendors"` // contains filtered or unexported fields }
func (ArchV1Document) CommonComponents ¶
func (doc ArchV1Document) CommonComponents() arch.CommonComponents
func (ArchV1Document) CommonVendors ¶
func (doc ArchV1Document) CommonVendors() arch.CommonVendors
func (ArchV1Document) Components ¶
func (doc ArchV1Document) Components() arch.Components
func (ArchV1Document) Dependencies ¶
func (doc ArchV1Document) Dependencies() arch.Dependencies
func (ArchV1Document) ExcludedDirectories ¶
func (doc ArchV1Document) ExcludedDirectories() arch.ExcludedDirectories
func (ArchV1Document) ExcludedFilesRegExp ¶
func (doc ArchV1Document) ExcludedFilesRegExp() arch.ExcludedFilesRegExp
func (ArchV1Document) Options ¶
func (doc ArchV1Document) Options() arch.Options
func (ArchV1Document) Reference ¶
func (doc ArchV1Document) Reference() models.Reference
func (ArchV1Document) Vendors ¶
func (doc ArchV1Document) Vendors() arch.Vendors
func (ArchV1Document) WorkingDirectory ¶
func (doc ArchV1Document) WorkingDirectory() speca.Referable[string]
type ArchV1Rules ¶
type ArchV1Rules struct { V1MayDependOn []string `yaml:"mayDependOn" json:"mayDependOn"` V1CanUse []string `yaml:"canUse" json:"canUse"` V1AnyProjectDeps bool `yaml:"anyProjectDeps" json:"anyProjectDeps"` V1AnyVendorDeps bool `yaml:"anyVendorDeps" json:"anyVendorDeps"` // contains filtered or unexported fields }
func (ArchV1Rules) AnyProjectDeps ¶
func (rule ArchV1Rules) AnyProjectDeps() speca.Referable[bool]
func (ArchV1Rules) AnyVendorDeps ¶
func (rule ArchV1Rules) AnyVendorDeps() speca.Referable[bool]
func (ArchV1Rules) MayDependOn ¶
func (rule ArchV1Rules) MayDependOn() []speca.Referable[string]
func (ArchV1Rules) Reference ¶
func (rule ArchV1Rules) Reference() models.Reference
type ArchV1Vendor ¶
type ArchV1Vendor struct { V1ImportPath string `yaml:"in" json:"in"` // contains filtered or unexported fields }
func (ArchV1Vendor) ImportPaths ¶
func (v ArchV1Vendor) ImportPaths() []speca.Referable[models.Glob]
func (ArchV1Vendor) Reference ¶
func (v ArchV1Vendor) Reference() models.Reference
type ArchV2Allow ¶
type ArchV2Allow struct { V2DepOnAnyVendor bool `yaml:"depOnAnyVendor" json:"depOnAnyVendor"` // contains filtered or unexported fields }
func (ArchV2Allow) IsDependOnAnyVendor ¶
func (opt ArchV2Allow) IsDependOnAnyVendor() speca.Referable[bool]
func (ArchV2Allow) Reference ¶
func (opt ArchV2Allow) Reference() models.Reference
type ArchV2Component ¶
type ArchV2Component struct { V2LocalPaths stringsList `yaml:"in" json:"in"` // contains filtered or unexported fields }
func (ArchV2Component) Reference ¶
func (c ArchV2Component) Reference() models.Reference
func (ArchV2Component) RelativePaths ¶
func (c ArchV2Component) RelativePaths() []speca.Referable[models.Glob]
type ArchV2Document ¶
type ArchV2Document struct { V2Version int `yaml:"version" json:"version"` V2WorkDir string `yaml:"workdir" json:"workdir"` V2Allow ArchV2Allow `yaml:"allow" json:"allow"` V2Vendors map[arch.VendorName]ArchV2Vendor `yaml:"vendors" json:"vendors"` V2Exclude []string `yaml:"exclude" json:"exclude"` V2ExcludeFilesRegExp []string `yaml:"excludeFiles" json:"excludeFiles"` V2Components map[arch.ComponentName]ArchV2Component `yaml:"components" json:"components"` V2Dependencies map[arch.ComponentName]ArchV2Rules `yaml:"deps" json:"deps"` V2CommonComponents []string `yaml:"commonComponents" json:"commonComponents"` V2CommonVendors []string `yaml:"commonVendors" json:"commonVendors"` // contains filtered or unexported fields }
func (ArchV2Document) CommonComponents ¶
func (doc ArchV2Document) CommonComponents() arch.CommonComponents
func (ArchV2Document) CommonVendors ¶
func (doc ArchV2Document) CommonVendors() arch.CommonVendors
func (ArchV2Document) Components ¶
func (doc ArchV2Document) Components() arch.Components
func (ArchV2Document) Dependencies ¶
func (doc ArchV2Document) Dependencies() arch.Dependencies
func (ArchV2Document) ExcludedDirectories ¶
func (doc ArchV2Document) ExcludedDirectories() arch.ExcludedDirectories
func (ArchV2Document) ExcludedFilesRegExp ¶
func (doc ArchV2Document) ExcludedFilesRegExp() arch.ExcludedFilesRegExp
func (ArchV2Document) Options ¶
func (doc ArchV2Document) Options() arch.Options
func (ArchV2Document) Reference ¶
func (doc ArchV2Document) Reference() models.Reference
func (ArchV2Document) Vendors ¶
func (doc ArchV2Document) Vendors() arch.Vendors
func (ArchV2Document) WorkingDirectory ¶
func (doc ArchV2Document) WorkingDirectory() speca.Referable[string]
type ArchV2Rules ¶
type ArchV2Rules struct { V2MayDependOn []string `yaml:"mayDependOn" json:"mayDependOn"` V2CanUse []string `yaml:"canUse" json:"canUse"` V2AnyProjectDeps bool `yaml:"anyProjectDeps" json:"anyProjectDeps"` V2AnyVendorDeps bool `yaml:"anyVendorDeps" json:"anyVendorDeps"` // contains filtered or unexported fields }
func (ArchV2Rules) AnyProjectDeps ¶
func (rule ArchV2Rules) AnyProjectDeps() speca.Referable[bool]
func (ArchV2Rules) AnyVendorDeps ¶
func (rule ArchV2Rules) AnyVendorDeps() speca.Referable[bool]
func (ArchV2Rules) MayDependOn ¶
func (rule ArchV2Rules) MayDependOn() []speca.Referable[string]
func (ArchV2Rules) Reference ¶
func (rule ArchV2Rules) Reference() models.Reference
type ArchV2Vendor ¶
type ArchV2Vendor struct { V2ImportPaths stringsList `yaml:"in" json:"in"` // contains filtered or unexported fields }
func (ArchV2Vendor) ImportPaths ¶
func (v ArchV2Vendor) ImportPaths() []speca.Referable[models.Glob]
func (ArchV2Vendor) Reference ¶
func (v ArchV2Vendor) Reference() models.Reference
type ArchV3Allow ¶
type ArchV3Allow struct { V3DepOnAnyVendor bool `yaml:"depOnAnyVendor" json:"depOnAnyVendor"` V3DeepScan *bool `yaml:"deepScan" json:"deepScan"` // contains filtered or unexported fields }
func (ArchV3Allow) IsDependOnAnyVendor ¶
func (opt ArchV3Allow) IsDependOnAnyVendor() speca.Referable[bool]
func (ArchV3Allow) Reference ¶
func (opt ArchV3Allow) Reference() models.Reference
type ArchV3Component ¶
type ArchV3Component struct { V3LocalPaths stringsList `yaml:"in" json:"in"` // contains filtered or unexported fields }
func (ArchV3Component) Reference ¶
func (c ArchV3Component) Reference() models.Reference
func (ArchV3Component) RelativePaths ¶
func (c ArchV3Component) RelativePaths() []speca.Referable[models.Glob]
type ArchV3Document ¶
type ArchV3Document struct { V3Version int `yaml:"version" json:"version"` V3WorkDir string `yaml:"workdir" json:"workdir"` V3Allow ArchV3Allow `yaml:"allow" json:"allow"` V3Vendors map[arch.VendorName]ArchV3Vendor `yaml:"vendors" json:"vendors"` V3Exclude []string `yaml:"exclude" json:"exclude"` V3ExcludeFilesRegExp []string `yaml:"excludeFiles" json:"excludeFiles"` V3Components map[arch.ComponentName]ArchV3Component `yaml:"components" json:"components"` V3Dependencies map[arch.ComponentName]ArchV3Rules `yaml:"deps" json:"deps"` V3CommonComponents []string `yaml:"commonComponents" json:"commonComponents"` V3CommonVendors []string `yaml:"commonVendors" json:"commonVendors"` // contains filtered or unexported fields }
func (ArchV3Document) CommonComponents ¶
func (doc ArchV3Document) CommonComponents() arch.CommonComponents
func (ArchV3Document) CommonVendors ¶
func (doc ArchV3Document) CommonVendors() arch.CommonVendors
func (ArchV3Document) Components ¶
func (doc ArchV3Document) Components() arch.Components
func (ArchV3Document) Dependencies ¶
func (doc ArchV3Document) Dependencies() arch.Dependencies
func (ArchV3Document) ExcludedDirectories ¶
func (doc ArchV3Document) ExcludedDirectories() arch.ExcludedDirectories
func (ArchV3Document) ExcludedFilesRegExp ¶
func (doc ArchV3Document) ExcludedFilesRegExp() arch.ExcludedFilesRegExp
func (ArchV3Document) Options ¶
func (doc ArchV3Document) Options() arch.Options
func (ArchV3Document) Reference ¶
func (doc ArchV3Document) Reference() models.Reference
func (ArchV3Document) Vendors ¶
func (doc ArchV3Document) Vendors() arch.Vendors
func (ArchV3Document) WorkingDirectory ¶
func (doc ArchV3Document) WorkingDirectory() speca.Referable[string]
type ArchV3Rules ¶
type ArchV3Rules struct { V3MayDependOn []string `yaml:"mayDependOn" json:"mayDependOn"` V3CanUse []string `yaml:"canUse" json:"canUse"` V3AnyProjectDeps bool `yaml:"anyProjectDeps" json:"anyProjectDeps"` V3AnyVendorDeps bool `yaml:"anyVendorDeps" json:"anyVendorDeps"` V3DeepScan *bool `yaml:"deepScan" json:"deepScan"` // contains filtered or unexported fields }
func (ArchV3Rules) AnyProjectDeps ¶
func (rule ArchV3Rules) AnyProjectDeps() speca.Referable[bool]
func (ArchV3Rules) AnyVendorDeps ¶
func (rule ArchV3Rules) AnyVendorDeps() speca.Referable[bool]
func (ArchV3Rules) MayDependOn ¶
func (rule ArchV3Rules) MayDependOn() []speca.Referable[string]
func (ArchV3Rules) Reference ¶
func (rule ArchV3Rules) Reference() models.Reference
type ArchV3Vendor ¶
type ArchV3Vendor struct { V3ImportPaths stringsList `yaml:"in" json:"in"` // contains filtered or unexported fields }
func (ArchV3Vendor) ImportPaths ¶
func (v ArchV3Vendor) ImportPaths() []speca.Referable[models.Glob]
func (ArchV3Vendor) Reference ¶
func (v ArchV3Vendor) Reference() models.Reference
type JSONSchemaProvider ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider( yamlReferenceResolver YAMLSourceCodeReferenceResolver, jsonSchemaProvider JSONSchemaProvider, sourceCode []byte, ) *Provider
Click to show internal directories.
Click to hide internal directories.