services

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 ListInstalledVersions(versionsDir string, logger *logrus.Logger) ([]semver.Version, error)
func ReplaceSymlink(dest, src string) error

func ValidateSemVer

func ValidateSemVer(s string) error

Types

type InstallHasuraClIOptions

type InstallHasuraClIOptions struct {
	Dir     string
	Version string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL