mirror of
https://github.com/getsops/sops.git
synced 2026-02-06 15:45:35 +01:00
* 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
32 lines
511 B
Go
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()
|
|
}
|