GetActionDescription retrieves the cached action description for the given repo and version. Returns the description and true if a non-empty description is cached, otherwise "" and false.
(repo, version string)
| 510 | // GetActionDescription retrieves the cached action description for the given repo and version. |
| 511 | // Returns the description and true if a non-empty description is cached, otherwise "" and false. |
| 512 | func (c *ActionCache) GetActionDescription(repo, version string) (string, bool) { |
| 513 | key := formatActionCacheKey(repo, version) |
| 514 | entry, exists := c.Entries[key] |
| 515 | if !exists || entry.ActionDescription == "" { |
| 516 | return "", false |
| 517 | } |
| 518 | return entry.ActionDescription, true |
| 519 | } |
| 520 | |
| 521 | // SetActionDescription stores the action description in the cache entry for the given repo and version. |
| 522 | // If no cache entry exists for the key, a new entry is created. |
no test coverage detected