Documentation ¶
Index ¶
- Constants
- func BuildManifestMap(log *logrus.Logger, name string, repoName string) (map[string]map[string]Manifest, error)
- func FilterPluginForOsArch(plugin *Manifest) bool
- func GetDefaultSource() string
- func GetFilteredPlugins(pluginDir string, skipPlugins []string, logger *logrus.Logger) ([]transform.Plugin, error)
- func GetPlugins(dir string, logger *logrus.Logger) ([]transform.Plugin, error)
- func GetYamlFromUrl(URL string) (map[string]interface{}, error)
- func IsExecAny(mode os.FileMode) bool
- func IsUrl(URL string) (bool, string)
- func LocateBinaryInPluginDir(pluginDir string, name string, files []os.FileInfo) ([]string, error)
- type Binary
- type Manifest
- type Version
Constants ¶
View Source
const ( DEFAULT_REPO = "default" DEFAULT_REPO_URL = "DEFAULT_REPO_URL" DEFAULT_URL = "https://raw.githubusercontent.com/konveyor/crane-plugins/crane-cli/index.yml" MANAGED_DIR = "managed" )
Variables ¶
This section is empty.
Functions ¶
func BuildManifestMap ¶ added in v0.0.2
func BuildManifestMap(log *logrus.Logger, name string, repoName string) (map[string]map[string]Manifest, error)
returns map containing the manifests with the key as name-version. Takes name and repo as input to filter accordingly
func FilterPluginForOsArch ¶ added in v0.0.2
takes manifest as input and filters manifest for current os/arch
func GetDefaultSource ¶ added in v0.0.2
func GetDefaultSource() string
overrides the default plugin dir url
func GetFilteredPlugins ¶
func GetYamlFromUrl ¶ added in v0.0.2
takes url as input and returns index.yml for plugin repository
Types ¶
type Manifest ¶ added in v0.0.2
type Manifest struct { Name string `json:"name"` ShortDescription string `json:"shortDescription"` Description string `json:"description"` Version Version `json:"version"` Binaries []Binary `json:"binaries"` OptionalFields []transform.OptionalFields `json:"optionalFields"` }
func YamlToManifest ¶ added in v0.0.2
takes url as input and fetches the manifest of a plugin
Click to show internal directories.
Click to hide internal directories.