#Is it possible to get a CacheVolume's key

1 messages · Page 1 of 1 (latest)

ember python
#

From what I can find, there appears to be a unique ID for a cache volume, but I can't seem to find a way of access a CacheVolume's key after it's created?

solemn ermine
lucid ingot
#

I think the issue is doing this:

func Build(cache *dagger.CacheVolume) *dagger.Container {
  // How to get the key back out of a cache volume object?
  cacheKey := cache.????()
}

You're right that it's probably not available in the API today @ember python . May I ask what your use case is? If we can avoid exposing low-level details unnecessarily, we tend to prefer that, out of caution - a promise never made is a promis never broken 🙂 But it all depends on the use case.