sops/publish/publish.go

20 строки
484 B
Go
Исходник Обычный вид История

package publish
import "fmt"
2019-07-09 01:32:33 +03:00
// 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)
}