github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/libpod/layers/layer.go (about)

     1  package layers
     2  
     3  import cstorage "github.com/containers/storage"
     4  
     5  // FullID gets the full id of a layer given a partial id or name
     6  func FullID(store cstorage.Store, id string) (string, error) {
     7  	layer, err := store.Layer(id)
     8  	if err != nil {
     9  		return "", err
    10  	}
    11  	return layer.ID, nil
    12  }