githubutil

package
v0.4.19 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: Apache-2.0 Imports: 16 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 GetGHClient added in v0.2.45

func GetGHClient() *github.Client

GetGHClient will return github client

func GetLatestVersion

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

GetLatestVersion returns the latest version of provided repository

func GetListRelease added in v0.4.16

func GetListRelease(repository string) ([]*github.RepositoryRelease, error)

GetListRelease returns the list of release of provided repository

func GetSHAFromVersion added in v0.2.45

func GetSHAFromVersion(version, repository string) (string, error)

GetSHAFromVersion returns sha commit hash against a release

func GetSandboxImage added in v0.4.18

func GetSandboxImage(version, image string) (string, string, error)

GetSandboxImage Returns the alternate image if specified, else if no version is specified then the Latest release of cr.flyte.org/flyteorg/flyte-sandbox:dind-{SHA} is used else cr.flyte.org/flyteorg/flyte-sandbox:dind-{SHA}, where sha is derived from the version.

func GetSandboxImageSha added in v0.4.18

func GetSandboxImageSha(version string, pre bool) (string, string, error)

GetSandboxImageSha returns the sha as per input

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