Skip to content

Commit e0f3d4c

Browse files
jhengylizan
authored andcommitted
expose functions for manifest validation (#77)
* expose LocateBuild function for manifest validation Signed-off-by: Hengyuan <[email protected]>
1 parent a442046 commit e0f3d4c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/manifest/locate.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,11 @@ func Locate(key *Key, manifestLocation string) (string, error) {
8787
if err != nil {
8888
return "", err
8989
}
90-
return locateBuild(key, manifest)
90+
return LocateBuild(key, manifest)
9191
}
9292

93-
func locateBuild(key *Key, manifest *api.Manifest) (string, error) {
93+
// LocateBuild returns the downloadLocationURL of the associated envoy binary in the manifest using the input key
94+
func LocateBuild(key *Key, manifest *api.Manifest) (string, error) {
9495
// This is pretty horrible... Not sure there is a nicer way though.
9596
if manifest.Flavors[key.Flavor] != nil && manifest.Flavors[key.Flavor].Versions[key.Version] != nil {
9697
for _, build := range manifest.Flavors[key.Flavor].Versions[key.Version].Builds {

0 commit comments

Comments
 (0)