From 899ab31fff9b34bc125faf75b79a89e390deb2cf Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 1 Sep 2017 09:00:27 -0400 Subject: Implement experimental REST API endpoints for plugins (#7279) * Implement experimental REST API endpoints for plugins * Updates per feedback and rebase * Update tests * Further updates * Update extraction of plugins * Use OS temp dir for plugins instead of search path * Fail extraction on paths that attempt to traverse upward * Update pluginenv ActivePlugins() --- plugin/bundle_info.go | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 plugin/bundle_info.go (limited to 'plugin/bundle_info.go') diff --git a/plugin/bundle_info.go b/plugin/bundle_info.go deleted file mode 100644 index 9dc47ceea..000000000 --- a/plugin/bundle_info.go +++ /dev/null @@ -1,20 +0,0 @@ -package plugin - -type BundleInfo struct { - Path string - - Manifest *Manifest - ManifestPath string - ManifestError error -} - -// Returns bundle info for the given path. The return value is never nil. -func BundleInfoForPath(path string) *BundleInfo { - m, mpath, err := FindManifest(path) - return &BundleInfo{ - Path: path, - Manifest: m, - ManifestPath: mpath, - ManifestError: err, - } -} -- cgit v1.2.3-1-g7c22