mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Copy LogInput from audit package, add OptMarshaler interface (#6735)
Adds Type field and makes Request and Response interface{}.
Add OptMarshaler interface for doing JSON marshaling with options.
This commit is contained in:
19
sdk/logical/audit.go
Normal file
19
sdk/logical/audit.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package logical
|
||||
|
||||
type LogInput struct {
|
||||
Type string
|
||||
Auth *Auth
|
||||
Request interface{}
|
||||
Response interface{}
|
||||
OuterErr error
|
||||
NonHMACReqDataKeys []string
|
||||
NonHMACRespDataKeys []string
|
||||
}
|
||||
|
||||
type MarshalOptions struct {
|
||||
ValueHasher func(string) string
|
||||
}
|
||||
|
||||
type OptMarshaler interface {
|
||||
MarshalJSONWithOptions(*MarshalOptions) ([]byte, error)
|
||||
}
|
||||
Reference in New Issue
Block a user