1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-06 15:45:35 +01:00
Files
AJ Bahnken 6910225545 Adds support for sops publish-ing to Vault (#494)
* Add vault/api to vendor/

* Adds support for sops publish-ing to Vault

* Adds support for publishing secrets (unencrypted) to Vault
* Adds a new EmitAsMap for TreeBanches
* Adds documentation about sops publish-ing to Vault
* Initial integration/functional test for publishing to vault
2019-07-16 14:33:59 -07:00

32 lines
511 B
Go

// Licensed under the MIT license, see LICENCE file for details.
// +build go1.12
package quicktest
import (
"fmt"
"reflect"
)
func newMapIter(v reflect.Value) containerIter {
return mapIter{v.MapRange()}
}
// mapIter implements containerIter for maps.
type mapIter struct {
iter *reflect.MapIter
}
func (i mapIter) next() bool {
return i.iter.Next()
}
func (i mapIter) key() string {
return fmt.Sprintf("key %#v", i.iter.Key())
}
func (i mapIter) value() reflect.Value {
return i.iter.Value()
}