githubutil

package
v0.2.40 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FlytectlReleaseConfig = &updater.Updater{
	Provider: &provider.Github{
		RepositoryURL: flytectlRepository,
		ArchiveName:   getFlytectlAssetName(),
	},
	ExecutableName: flytectl,
	Version:        stdlibversion.Version,
}

FlytectlReleaseConfig represent the updater config for flytectl binary

Functions

func CheckBrewInstall

func CheckBrewInstall(goos platformutil.Platform) (string, error)

CheckBrewInstall returns the path of symlink if flytectl is installed from brew

func CheckVersionExist

func CheckVersionExist(version, repository string) (*github.RepositoryRelease, error)

CheckVersionExist returns the provided version release if version exist in repository

func GetAssetsFromRelease

func GetAssetsFromRelease(version, assets, repository string) (*github.ReleaseAsset, error)

GetAssetsFromRelease returns the asset from github release

func GetFlyteManifest

func GetFlyteManifest(version string, target string) error

GetFlyteManifest will write the flyte manifest in a file

func GetLatestVersion

func GetLatestVersion(repository string) (*github.RepositoryRelease, error)

GetLatestVersion returns the latest version of provided repository

func GetUpgradeMessage

func GetUpgradeMessage(latest string, goos platformutil.Platform) (string, error)

GetUpgradeMessage return the upgrade message

Types

This section is empty.

Jump to

Keyboard shortcuts

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