func (indexes *Indexes) NameForValue(indexName string, key runtime.Key, value interface{}, codec Codec) string {
	if index, exist := indexes.List[indexName]; exist {
		return index.NameForValue(key, value, codec)
	}
	panic(fmt.Sprintf("trying to access non-existing indexName for key %s: %s", key, indexName))
}
NameForValue returns index value name for specific index, key and value
package store
import (
	"bytes"
	"fmt"
	"reflect"
	"sort"
	"strings"
	"sync"
	"github.com/Aptomi/aptomi/pkg/runtime"
)
var (
	indexCacheMu = &sync.Mutex{}
	indexCache   = map[runtime.Kind]*Indexes{}
)
const LastGenIndex = ""
type Indexes struct {
	List map[string]*Index
}
func (indexes *Indexes) NameForStorable(indexName string, storable runtime.Storable, codec Codec) string {
	if index, exist := indexes.List[indexName]; exist {
		return index.NameForStorable(storable, codec)
	}
	panic(fmt.Sprintf("trying to access non-existing indexName for kind %s: %s", storable.GetKind(), indexName))
}