Documentation
¶
Index ¶
- Variables
- type Executable
- type GitHub
- func (m GitHub) Domains() []string
- func (m GitHub) ExecutableArchive(v version.Version, p platform.Platform) (artifact.Remote[executable.Archive], error)
- func (m GitHub) ExecutableArchiveChecksums(v version.Version) (artifact.Remote[checksum.Executable], error)
- func (m GitHub) SourceArchive(v version.Version) (artifact.Remote[source.Archive], error)
- func (m GitHub) SourceArchiveChecksums(v version.Version) (artifact.Remote[checksum.Source], error)
- func (m GitHub) Supports(v version.Version) bool
- type Mirror
- type Source
- type TuxFamily
- func (m TuxFamily) Domains() []string
- func (m TuxFamily) ExecutableArchive(v version.Version, p platform.Platform) (artifact.Remote[executable.Archive], error)
- func (m TuxFamily) ExecutableArchiveChecksums(v version.Version) (artifact.Remote[checksum.Executable], error)
- func (m TuxFamily) SourceArchive(v version.Version) (artifact.Remote[source.Archive], error)
- func (m TuxFamily) SourceArchiveChecksums(v version.Version) (artifact.Remote[checksum.Source], error)
- func (m TuxFamily) Supports(v version.Version) bool
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Executable ¶
type Executable interface { Mirror ExecutableArchive(v version.Version, p platform.Platform) (artifact.Remote[executable.Archive], error) ExecutableArchiveChecksums(v version.Version) (artifact.Remote[checksum.Executable], error) }
Executable is a mirror which hosts Godot executable artifacts. This does not imply that *all* executable versions are hosted, so users should be prepared to handle the case where resolving the artifact URL fails.
type GitHub ¶
type GitHub struct{}
A mirror implementation for fetching artifacts via releases on the Godot GitHub repository.
func (GitHub) ExecutableArchive ¶
func (GitHub) ExecutableArchiveChecksums ¶
func (GitHub) SourceArchive ¶
func (GitHub) SourceArchiveChecksums ¶
type Mirror ¶
type Mirror interface { // Domains returns a slice of domains at which the mirror hosts artifacts. Domains() []string // Checks whether the version is broadly supported by the mirror. No network // request is issued, but this does not guarantee the host has the version. // To check whether the host has the version definitively via the network, // use the 'Has' method. Supports(v version.Version) bool }
Specifies a host of Godot release artifacts. The associated methods are related to the host itself and not about individual artifacts.
type Source ¶
type Source interface { Mirror SourceArchive(v version.Version) (artifact.Remote[source.Archive], error) SourceArchiveChecksums(v version.Version) (artifact.Remote[checksum.Source], error) }
Source is a mirror which hosts Godot repository source code versions. This does not imply that *all* executable versions are hosted, so users should be prepared to handle the case where resolving the artifact URL fails.
type TuxFamily ¶
type TuxFamily struct{}
A mirror implementation for fetching artifacts via the Godot TuxFamily host.