Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Architecture ¶
type Architecture string
const ( X64 Architecture = "x64" ARM64 Architecture = "arm64" )
type Release ¶
type Release struct {
Hash string `json:"hash"`
Channel string `json:"channel"`
Version string `json:"version"`
DartSdkVersion string `json:"dart_sdk_version"`
DartSdkArch string `json:"dart_sdk_arch"`
ReleaseDate time.Time `json:"release_date"`
Archive string `json:"archive"`
Sha256 string `json:"sha256"`
}
type ReleasesResp ¶
type SDKQuery ¶
type SDKQuery struct {
FlutterVersion *semver.Version
FlutterVersionConstraint *semver.Constraints
DartVersion *semver.Version
DartVersionConstraint *semver.Constraints
}
type SDKVersionFinder ¶ added in v0.1.1
type SDKVersionFinder struct {
SDKVersionLister SDKVersionLister
}
func NewSDKVersionFinder ¶ added in v0.1.1
func NewSDKVersionFinder() SDKVersionFinder
func (SDKVersionFinder) FindLatestReleaseFor ¶ added in v0.1.1
func (f SDKVersionFinder) FindLatestReleaseFor(platform Platform, architecture Architecture, channel Channel, query SDKQuery) (*Release, error)
type SDKVersionLister ¶ added in v0.1.1
type SDKVersionLister interface {
ListReleasesByChannel(platform Platform, architecture Architecture) (map[string][]Release, error)
}
func NewSDKVersionLister ¶ added in v0.1.1
func NewSDKVersionLister() SDKVersionLister
Click to show internal directories.
Click to hide internal directories.