Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // BuildOS is the operating system (GOOS) used during the build process. BuildOS string // BuildARM is the ARM version (GOARM) used during the build process. BuildARM string // BuildARCH is the architecture (GOARCH) used during the build process. BuildARCH string )
View Source
var ( // HTTPClient is the client used to make HTTP calls in the cli package. HTTPClient = &http.Client{Timeout: 10 * time.Second} // LatestReleaseURL is the endpoint that provides information about the latest release. LatestReleaseURL = "https://api.github.com/repos/exercism/cli/releases/latest" )
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct { ID int `json:"id"` Name string `json:"name"` ContentType string `json:"content_type"` }
Asset is a build for a particular system, uploaded to a GitHub release.
type CLI ¶
CLI is information about the CLI itself.
func (*CLI) IsUpToDate ¶
IsUpToDate compares the current version to that of the latest release.
type Release ¶
type Release struct { Location string `json:"html_url"` TagName string `json:"tag_name"` Assets []Asset `json:"assets"` }
Release is a specific build of the CLI, released on GitHub.
type Status ¶
type Status struct { Censor bool Version versionStatus System systemStatus Configuration configurationStatus APIReachability apiReachabilityStatus // contains filtered or unexported fields }
Status represents the results of a CLI self test.
Click to show internal directories.
Click to hide internal directories.