Versions in this module Expand all Collapse all v1 v1.0.0 Oct 8, 2020 Changes in this version + const TypeBase64 + const TypeDefault + const TypeJson + var ErrUndefinedType = errors.New("undefined key type") + var ErrUnsupportedFormat = errors.New("unsupported format") + func FileEncode(filename string, kv KVList) error + func IsAllowedExtension(filename string) bool + type ConsulMigrate struct + func CreateConsulMigrate(addr string) (*ConsulMigrate, error) + func NewConsulMigrate(cli *api.Client) *ConsulMigrate + func (m *ConsulMigrate) Dump() (KVList, error) + func (m *ConsulMigrate) DumpToFile(filename string) error + func (m *ConsulMigrate) Migrate(kv KVList) error + func (m *ConsulMigrate) MigrateFromDir(path string) error + func (m *ConsulMigrate) MigrateFromFile(filename string) error + type KVItem struct + Key string + Type string + Value string + func (kvi KVItem) DetectType() string + func (kvi KVItem) Validate() error + func (kvi KVItem) ValueBytes() ([]byte, error) + type KVList []KVItem + func DirDecode(path string) (KVList, error) + func FileDecode(filename string) (KVList, error) + func (kvl KVList) Validate() error