1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-05 12:45:21 +01:00
Files
sops/publish/publish.go
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

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)
}