Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Requirement ¶
type Requirement struct {
// Original line from the file
Raw string
// Type of requirement
Type RequirementType
// For registry assets
Name string
VersionSpec string
VersionOperator string // ==, >=, >, <=, <, ~=
// For git sources
GitURL string
GitRef string
GitName string
GitSubdirectory string
// For path sources
Path string
// For HTTP sources
URL string
}
Requirement represents a single requirement from the requirements file
func ParseLine ¶
func ParseLine(line string) (Requirement, error)
ParseLine parses a single requirement line
func (Requirement) String ¶
func (r Requirement) String() string
String returns a string representation of the requirement
type RequirementType ¶
type RequirementType string
RequirementType indicates the type of requirement
const ( RequirementTypeRegistry RequirementType = "registry" RequirementTypeGit RequirementType = "git" RequirementTypePath RequirementType = "path" RequirementTypeHTTP RequirementType = "http" )
Click to show internal directories.
Click to hide internal directories.