github

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// REPO_OWNER is the username of the owner of the plugins Github repo.
	REPO_OWNER = "konveyor"
	// REPO_NAME is the name of the plugins Github repo.
	REPO_NAME = "cli"
	// REPO_BRANCH is the branch of the plugins Github repo where the metadata for the plugins are stored.
	REPO_BRANCH = "main"
	// REPO_PLUGINS_DIR is the directory on the Github repo where the metadata for the plugins are stored.
	REPO_PLUGINS_DIR = "plugins"
)

Variables

This section is empty.

Functions

func Download

func Download(url string, outputPath string, checkSum string) error

Download downloads the given url and saves it at the given path.

func ExtractTarGz

func ExtractTarGz(path string) error

ExtractTarGz expands a gzip compressed tar archive.

func GetFileFromGithub

func GetFileFromGithub(path string) ([]byte, error)

GetFileFromGithub gets the contents of a file from the Github repo.

func GetPluginYamlFromGithub

func GetPluginYamlFromGithub(name string) ([]byte, error)

GetPluginYamlFromGithub gets the plugin yaml from the Github repo.

func GetPluginsListFromGithub

func GetPluginsListFromGithub() ([]string, error)

GetPluginsListFromGithub returns the list of plugins from the Github repo.

Types

This section is empty.

Jump to

Keyboard shortcuts

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