mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* begin backend plugin wip * flesh out rpcplugin. everything done except for minor supervisor stubs * done with basic plugin infrastructure * simplify tests * remove unused test lines
21 lines
402 B
Go
21 lines
402 B
Go
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,
|
|
}
|
|
}
|