MCPcopy Create free account
hub / github.com/FairwindsOps/pluto / GetDefaultVersionList

Function GetDefaultVersionList

pkg/api/versions.go:355–361  ·  view source on GitHub ↗

GetDefaultVersionList gets the default versions from the versions.yaml file

(versionFileData []byte)

Source from the content-addressed store, hash-verified

353
354// GetDefaultVersionList gets the default versions from the versions.yaml file
355func GetDefaultVersionList(versionFileData []byte) ([]Version, map[string]string, error) {
356 defaultVersions, defaultTargetVersions, err := UnMarshalVersions(versionFileData)
357 if err != nil {
358 return nil, nil, err
359 }
360 return defaultVersions, defaultTargetVersions, nil
361}
362
363// CombineAdditionalVersions adds additional versions into the defaults. If the additional versions
364// contain any that already exist in the defaults, return an error

Callers 2

root.goFile · 0.92

Calls 1

UnMarshalVersionsFunction · 0.85

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…