sdk

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 8 Imported by: 0

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 FileOpener

type FileOpener interface {
	OpenReaderIfExists(path string) (io.Reader, 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

Jump to

Keyboard shortcuts

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