github.com/wgh-/mattermost-server@v4.8.0-rc2+incompatible/model/bundle_info.go (about) 1 // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. 2 // See License.txt for license information. 3 4 package model 5 6 type BundleInfo struct { 7 Path string 8 9 Manifest *Manifest 10 ManifestPath string 11 ManifestError error 12 } 13 14 // Returns bundle info for the given path. The return value is never nil. 15 func BundleInfoForPath(path string) *BundleInfo { 16 m, mpath, err := FindManifest(path) 17 return &BundleInfo{ 18 Path: path, 19 Manifest: m, 20 ManifestPath: mpath, 21 ManifestError: err, 22 } 23 }