mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-09 08:55:13 -04: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:
parent
3eb13464ff
commit
7c193f53c8
1 changed files with 19 additions and 0 deletions
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)
|
||||
}
|
||||
Loading…
Reference in a new issue