Documentation
¶
Index ¶
Constants ¶
View Source
const PubspecRelPath = "pubspec.yaml"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ASDFVersionReader ¶
type ASDFVersionReader struct {
// contains filtered or unexported fields
}
func NewASDFVersionReader ¶
func NewASDFVersionReader(fileOpener FileOpener) ASDFVersionReader
func (ASDFVersionReader) ReadSDKVersions ¶
func (r ASDFVersionReader) ReadSDKVersions(projectRootDir string) (*semver.Version, string, error)
type FVMVersionReader ¶
type FVMVersionReader struct {
// contains filtered or unexported fields
}
func NewFVMVersionReader ¶
func NewFVMVersionReader(fileOpener FileOpener) FVMVersionReader
func (FVMVersionReader) ReadSDKVersion ¶
func (r FVMVersionReader) ReadSDKVersion(projectRootDir string) (*semver.Version, string, error)
type PubspecLockVersionReader ¶
type PubspecLockVersionReader struct {
// contains filtered or unexported fields
}
func NewPubspecLockVersionReader ¶
func NewPubspecLockVersionReader(fileOpener FileOpener) PubspecLockVersionReader
func (PubspecLockVersionReader) ReadSDKVersions ¶
func (r PubspecLockVersionReader) ReadSDKVersions(projectRootDir string) (*VersionConstraint, *VersionConstraint, error)
type PubspecVersionReader ¶
type PubspecVersionReader struct {
// contains filtered or unexported fields
}
func NewPubspecVersionReader ¶
func NewPubspecVersionReader(fileOpener FileOpener) PubspecVersionReader
func (PubspecVersionReader) ReadSDKVersions ¶
func (r PubspecVersionReader) ReadSDKVersions(projectRootDir string) (*VersionConstraint, *VersionConstraint, error)
type VersionConstraint ¶
type VersionConstraint struct { Version *semver.Version Constraint *semver.Constraints }
VersionConstraint stores either an exact version or a version constraint. Version is a valid semantic version, constraint supports the Caret and the traditional syntax.
Caret syntax - ^1.2.3 = >=1.2.3 <2.0.0 - ^0.1.2 = >=0.1.2 <0.2.0 (prior to a 1.0.0 release the minor versions acts as the API stability level)
Traditional syntax - any (any version) - 1.2.3 - >=1.2.3 - >1.2.3 - <=1.2.3 - <1.2.3
func NewVersionConstraint ¶
func NewVersionConstraint(version string) (*VersionConstraint, error)
func (VersionConstraint) String ¶
func (c VersionConstraint) String() string
Click to show internal directories.
Click to hide internal directories.