Esempio n. 1
0
func loadMetaStore(conf *vault.Config) (vault.MetaStore, error) {

	config, e := conf.GetMetaConfig()

	if e != nil {
		return nil, e
	}

	var metaStore vault.MetaStore
	if fs, ok := config.(vault.FileSystemMetaStoreConfig); ok {

		metaStore, e = vault.NewFileSystemMetaStore(fs)
	}

	return metaStore, e
}