yaml

package
v0.0.0-...-094b1a8 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelV3

type ModelV3 struct {
	Version            int                                     `json:"version"`
	WorkingDirectory   string                                  `json:"workdir"`
	Allow              ModelV3Allow                            `json:"allow"`
	ExcludeDirectories []string                                `json:"exclude"`
	ExcludeFiles       []string                                `json:"excludeFiles"`
	Components         map[string]ModelV3Component             `json:"components"`
	Vendors            map[string]ModelV3Vendor                `json:"vendors"`
	CommonComponents   []string                                `json:"commonComponents"`
	CommonVendors      []string                                `json:"commonVendors"`
	Dependencies       map[string]ModelV3ComponentDependencies `json:"deps"`
}

type ModelV3Allow

type ModelV3Allow struct {
	DepOnAnyVendor bool `json:"depOnAnyVendor"`
	DeepScan       bool `json:"deepScan"`
}

type ModelV3Component

type ModelV3Component struct {
	In stringList `json:"in"`
}

type ModelV3ComponentDependencies

type ModelV3ComponentDependencies struct {
	MayDependOn    []string       `json:"mayDependOn"`
	CanUse         []string       `json:"canUse"`
	AnyVendorDeps  bool           `json:"anyVendorDeps"`
	AnyProjectDeps bool           `json:"anyProjectDeps"`
	DeepScan       optional[bool] `json:"deepScan"`
}

type ModelV3Vendor

type ModelV3Vendor struct {
	In stringList `json:"in"`
}

type ModelV4

type ModelV4 struct {
	Version          int                                     `json:"version"`
	WorkingDirectory string                                  `json:"workingDirectory"`
	Settings         ModelV4Settings                         `json:"settings"`
	Exclude          ModelV4Exclude                          `json:"exclude"`
	Components       map[string]ModelV4Component             `json:"components"`
	Vendors          map[string]ModelV4Vendor                `json:"vendors"`
	CommonComponents []string                                `json:"commonComponents"`
	CommonVendors    []string                                `json:"commonVendors"`
	Dependencies     map[string]ModelV4ComponentDependencies `json:"dependencies"`
}

type ModelV4Component

type ModelV4Component struct {
	In stringList `json:"in"`
}

type ModelV4ComponentDependencies

type ModelV4ComponentDependencies struct {
	MayDependOn    []string `json:"mayDependOn"`
	CanUse         []string `json:"canUse"`
	AnyVendorDeps  bool     `json:"anyVendorDeps"`
	AnyProjectDeps bool     `json:"anyProjectDeps"`
	CanContainTags []string `json:"canContainTags"`
}

type ModelV4Exclude

type ModelV4Exclude struct {
	RelativeDirectories []string `json:"directories"`
	RelativeFiles       []string `json:"files"`
}

type ModelV4Settings

type ModelV4Settings struct {
	Imports ModelV4SettingsImports `json:"imports"`
	Tags    ModelV4SettingsTags    `json:"structTags"`
}

type ModelV4SettingsImports

type ModelV4SettingsImports struct {
	StrictMode            bool `json:"strictMode"`
	AllowAnyVendorImports bool `json:"allowAnyVendorImports"`
}

type ModelV4SettingsTags

type ModelV4SettingsTags struct {
	Allowed optional[stringList] `json:"allowed"`
}

type ModelV4Vendor

type ModelV4Vendor struct {
	In stringList `json:"in"`
}

type Reader

type Reader struct {
}

func NewReader

func NewReader() *Reader

func (*Reader) Parse

func (r *Reader) Parse(path arch.PathAbsolute, source []byte) (models.Config, error)

func (*Reader) ReadFile

func (r *Reader) ReadFile(path arch.PathAbsolute) (models.Config, error)

type TransformContext

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

Directories

Path Synopsis
gen

Jump to

Keyboard shortcuts

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