model

package
v0.0.0-...-26c3d7a Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationFileInfo

type ApplicationFileInfo struct {
	Dir  string
	File string
}

type Component

type Component struct {
	Name      string
	Path      string
	Languages []Language
	Ports     []int
}

type DetectionSettings

type DetectionSettings struct {
	BasePath              string
	PortDetectionStrategy []PortDetectionAlgorithm
}

type DevFileScore

type DevFileScore struct {
	DevFileIndex int
	Score        int
}

type DevFileType

type DevFileType struct {
	Name        string
	Language    string
	ProjectType string
	Tags        []string
}

type Language

type Language struct {
	Name           string
	Aliases        []string
	Weight         float64
	Frameworks     []string
	Tools          []string
	CanBeComponent bool
}

type PortDetectionAlgorithm

type PortDetectionAlgorithm int
const (
	DockerFile PortDetectionAlgorithm = 0
	Compose    PortDetectionAlgorithm = 1
	Source     PortDetectionAlgorithm = 2
)

type PortMatchRule

type PortMatchRule struct {
	Regex     *regexp.Regexp
	ToReplace string
}

type PortMatchRules

type PortMatchRules struct {
	MatchIndexRegexes []PortMatchRule
	MatchRegexes      []PortMatchSubRule
}

type PortMatchSubRule

type PortMatchSubRule struct {
	Regex    *regexp.Regexp
	SubRegex *regexp.Regexp
}

Jump to

Keyboard shortcuts

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