MCPcopy
hub / github.com/baetyl/baetyl / makeKey

Function makeKey

engine/utils.go:257–262  ·  view source on GitHub ↗
(kind specv1.Kind, name, ver string)

Source from the content-addressed store, hash-verified

255}
256
257func makeKey(kind specv1.Kind, name, ver string) string {
258 if name == "" || ver == "" {
259 return ""
260 }
261 return string(kind) + "-" + name + "-" + ver
262}
263
264// ensuring apps have same order in report and desire list
265func alignApps(reApps, deApps []specv1.AppInfo) []specv1.AppInfo {

Callers 9

applyAppMethod · 0.70
recycleMethod · 0.70
cleanObjectStorageMethod · 0.70
getDelObjectCfgsFunction · 0.70
TestApplyAppFunction · 0.70
TestReportAndApplyFunction · 0.70
TestRecycleFunction · 0.70
TestGetDelObjectCfgsFunction · 0.70
TestCleanObjectStorageFunction · 0.70

Calls

no outgoing calls

Tested by 5

TestApplyAppFunction · 0.56
TestReportAndApplyFunction · 0.56
TestRecycleFunction · 0.56
TestGetDelObjectCfgsFunction · 0.56
TestCleanObjectStorageFunction · 0.56