Documentation ¶
Index ¶
- Constants
- func GetReleaseByTagName(owner, repo, tag string) (*model.GitHubRelease, error)
- func InstallHasuraCLI(opt InstallHasuraClIOptions) error
- func ListHasuraReleases(limit int) ([]model.GitHubRelease, error)
- func ListInstalledVersions(versionsDir string, logger *logrus.Logger) ([]semver.Version, error)
- func ReplaceSymlink(dest, src string) error
- func ValidateSemVer(s string) error
- type InstallHasuraClIOptions
Constants ¶
View Source
const GITHUB_ENDPOINT_GET_RELEASE_BY_TAG_NAME string = "https://api.github.com/repos/%s/%s/releases/tags/%s"
View Source
const GITHUB_ENDPOINT_LIST_RELEASES string = "https://api.github.com/repos/hasura/graphql-engine/releases"
Variables ¶
This section is empty.
Functions ¶
func GetReleaseByTagName ¶
func GetReleaseByTagName(owner, repo, tag string) (*model.GitHubRelease, error)
func InstallHasuraCLI ¶
func InstallHasuraCLI(opt InstallHasuraClIOptions) error
InstallHasura CLI installs hasura-cli NOTE: https://hasura.io/docs/latest/hasura-cli/install-hasura-cli/
func ListHasuraReleases ¶
func ListHasuraReleases(limit int) ([]model.GitHubRelease, error)
func ListInstalledVersions ¶
func ReplaceSymlink ¶
func ValidateSemVer ¶
Types ¶
type InstallHasuraClIOptions ¶
Click to show internal directories.
Click to hide internal directories.