mirror of
https://github.com/getsops/sops.git
synced 2026-02-05 12:45:21 +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
20 lines
484 B
Go
20 lines
484 B
Go
package publish
|
|
|
|
import "fmt"
|
|
|
|
// Destination represents actions which all destination types
|
|
// must implement in order to be used by SOPS
|
|
type Destination interface {
|
|
Upload(fileContents []byte, fileName string) error
|
|
UploadUnencrypted(data map[string]interface{}, fileName string) error
|
|
Path(fileName string) string
|
|
}
|
|
|
|
type NotImplementedError struct {
|
|
message string
|
|
}
|
|
|
|
func (e *NotImplementedError) Error() string {
|
|
return fmt.Sprintf("NotImplementedError: %s", e.message)
|
|
}
|