Documentation ¶
Index ¶
- Constants
- func GetCommitFromGitLocal(repo string, input string) (string, error)
- func GetCommitFromGitRemote(repo string, input string) (string, error)
- func GetVersionsFromGitLocal(repo string) ([]version.Version, error)
- func GetVersionsFromGitRemote(repo string) ([]version.Version, error)
- func Less(verLeft, verRight version.Version) bool
- func RunCommandAndGetOutputInDir(program string, dir string, args ...string) (string, error)
- func SearchVersions(cmdCtx *cmdcontext.CmdCtx, searchCtx SearchCtx, cliOpts *config.CliOpts, ...) error
- func SearchVersionsLocal(cmdCtx *cmdcontext.CmdCtx, cliOpts *config.CliOpts, program string) error
- func TntIoMakePkgURI(Package string, Release string, Tarball string) (string, error)
- type BundleInfo
- type BundleInfoSlice
- type SearchCtx
- type SearchFlags
Constants ¶
const ( ProgramCe = "tarantool" ProgramEe = "tarantool-ee" ProgramTt = "tt" ProgramDev = "tarantool-dev" )
const ( GitRepoTarantool = "https://github.com/tarantool/tarantool.git" GitRepoTT = "https://github.com/tarantool/tt.git" )
const ApiURI = TntIoURI + "/api"
const PkgURI = TntIoURI + "/packages"
const TntIoURI = "https://www.tarantool.io/en/accounts/customer_zone"
Variables ¶
This section is empty.
Functions ¶
func GetCommitFromGitLocal ¶ added in v1.3.0
GetCommitFromGitLocal returns hash or pr/ID info from specified local git repo.
func GetCommitFromGitRemote ¶ added in v1.3.0
GetCommitFromGitRemote returns hash or pr/ID info from specified remote git repo.
func GetVersionsFromGitLocal ¶
GetVersionsFromGitLocal returns sorted versions list from specified local git repo.
func GetVersionsFromGitRemote ¶
GetVersionsFromGitRemote returns sorted versions list from specified remote git repo.
func RunCommandAndGetOutputInDir ¶
RunCommandAndGetOutputInDir returns output of command.
func SearchVersions ¶
func SearchVersions(cmdCtx *cmdcontext.CmdCtx, searchCtx SearchCtx, cliOpts *config.CliOpts, program string) error
SearchVersions outputs available versions of program.
func SearchVersionsLocal ¶
SearchVersionsLocal outputs available versions of program from distfiles directory.
Types ¶
type BundleInfo ¶ added in v1.0.0
type BundleInfo struct { // Version represents the info about the bundle's version. Version version.Version // Package represents package name. Package string // Release represents the release version (e.g: 2.10). Release string // Download token. Token string }
BundleInfo is a structure that contains specific information about SDK bundle.
func FetchBundlesInfo ¶ added in v1.0.0
FetchBundlesInfo returns slice of information about all available tarantool-ee bundles. The result will be sorted in ascending order.
func FetchBundlesInfoLocal ¶ added in v1.0.0
func FetchBundlesInfoLocal(files []string) ([]BundleInfo, error)
FetchBundlesInfoLocal returns slice of information about all tarantool-ee bundles available locally. The result will be sorted in ascending order.
func GetTarantoolBundleInfo ¶ added in v1.0.0
func GetTarantoolBundleInfo(cliOpts *config.CliOpts, local bool, files []string, expectedVersion string) (BundleInfo, error)
GetTarantoolBundleInfo returns the available EE SDK bundle for user's OS, corresponding to the passed expected version argument.
type BundleInfoSlice ¶ added in v1.0.0
type BundleInfoSlice []BundleInfo
BundleInfoSlice attaches the methods of sort.Interface to []Version, sorting from oldest to newest.
func (BundleInfoSlice) Len ¶ added in v1.0.0
func (bundles BundleInfoSlice) Len() int
sort.Interface Len implementation
func (BundleInfoSlice) Less ¶ added in v1.0.0
func (bundles BundleInfoSlice) Less(i, j int) bool
sort.Interface Less implementation
func (BundleInfoSlice) Swap ¶ added in v1.0.0
func (bundles BundleInfoSlice) Swap(i, j int)
sort.Interface Swap implementation
type SearchCtx ¶ added in v1.0.0
type SearchCtx struct { // Filter out which builds of tarantool-ee must be included in the result of search. Filter SearchFlags // What package to look for. Package string // Release version to look for. ReleaseVersion string // Program name ProgramName string }
SearchCtx contains information for programs searching.
type SearchFlags ¶ added in v1.1.0
type SearchFlags int64
const ( SearchRelease SearchFlags = iota SearchDebug SearchAll )