Documentation ¶
Index ¶
- Constants
- Variables
- func ExcludeVersions(versions, excludeVersions []string) []string
- func GetReleases(minVersion string) ([]string, error)
- func ReleasesWithMaxVersion(releases []string, maxVersion string) []string
- func ReleasesWithMinVersion(releases []string, minVersion string) []string
- func SiadBinaryPath(version string) string
- type Command
Constants ¶
const (
// BinariesDir defines path to store built siad binaries.
BinariesDir = "../upgrade-binaries"
)
Variables ¶
var StaticBuilder builder
StaticBuilder defines a struct with methods to build different siad binary versions for multiple tests. Versions used by multiple tests are build first.
Functions ¶
func ExcludeVersions ¶
ExcludeVersions takes as an input a slice of versions to be filtered and a slice of versions which should be excluded from the first slice. It returns a slice of versions without excluded versions.
func GetReleases ¶
GetReleases returns slice of git tags of Sia Gitlab releases greater than or equal to the given minimal version in ascending semantic version order. If there is a patch tagged with "-antfarm" suffix for a Sia release, patch tag instead release tag is added to the return slice. NOTE: These patches are ONLY to enable the Sia Antfarm to run and are not intended to address any underlying bugs in siad.
func ReleasesWithMaxVersion ¶
ReleasesWithMaxVersion returns releases that satisfy the given maximal version.
func ReleasesWithMinVersion ¶
ReleasesWithMinVersion returns releases that satisfy the given minimal version.
func SiadBinaryPath ¶
SiadBinaryPath returns built siad-dev binary path from the given Sia version.
Types ¶
type Command ¶
type Command struct { // Specific environment variables to set EnvVars map[string]string // Name of the command Name string // Command's subcommands or arguments Args []string // Working directory. Keep unset (empty string) to use default caller // working directory Dir string }
Command defines a struct for parameters to call execute method.