model

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 1 Imported by: 3

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 DevfileFilter added in v1.0.1

type DevfileFilter struct {
	MinSchemaVersion string
	MaxSchemaVersion string
}

type DevfileScore added in v1.1.2

type DevfileScore struct {
	DevfileIndex int
	Score        int
}

type DevfileType added in v1.1.2

type DevfileType struct {
	Name        string
	Language    string
	ProjectType string
	Tags        []string
	Versions    []Version
}

type Language

type Language struct {
	Name                    string
	Aliases                 []string
	Weight                  float64
	Frameworks              []string
	Tools                   []string
	CanBeComponent          bool
	CanBeContainerComponent 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
}

type Version added in v1.0.1

type Version struct {
	SchemaVersion string
	Default       bool
	Version       string
}

Jump to

Keyboard shortcuts

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