core

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExtracter

func GetExtracter(fpath string) archiver.Archiver

GetExtracter The PR hasn't been released into a new version, so we're putting it here https://github.com/mholt/archiver/pull/45/files

func GetLatestRelease

func GetLatestRelease(
	githubClient *github.Client,
	githubOrg string,
	githubProject string,
) (
	latestRelease *github.RepositoryRelease,
	err error,
)

GetLatestRelease - Return the latest release of the repository

func GetOSArchFromFilename

func GetOSArchFromFilename(name string, fileName string) (operatingSystem string, architecture string, valid bool)

GetOSArchFromFilename - Extract the os and arch from the file name Expecting the filename to be of the format `{name}-{os}-{arch}.{tgz|zip}`

func Update

func Update(currentVersion string, noPrompt bool)

Update kombustion with the latest release on Github

Types

This section is empty.

Jump to

Keyboard shortcuts

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