mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-28 14:11:10 +01:00
audit: Document that arguments must not be modified
This commit is contained in:
parent
478a5965ee
commit
a76cd4c58d
@ -8,11 +8,15 @@ import "github.com/hashicorp/vault/logical"
|
|||||||
// or other external services.
|
// or other external services.
|
||||||
type Backend interface {
|
type Backend interface {
|
||||||
// LogRequest is used to syncronously log a request. This is done after the
|
// LogRequest is used to syncronously log a request. This is done after the
|
||||||
// request is authorized but before the request is executed.
|
// request is authorized but before the request is executed. The arguments
|
||||||
|
// MUST not be modified in anyway. They should be deep copied if this is
|
||||||
|
// a possibility.
|
||||||
LogRequest(*logical.Auth, *logical.Request) error
|
LogRequest(*logical.Auth, *logical.Request) error
|
||||||
|
|
||||||
// LogResponse is used to syncronously log a response. This is done after
|
// LogResponse is used to syncronously log a response. This is done after
|
||||||
// the request is processed but before the response is sent.
|
// the request is processed but before the response is sent. The arguments
|
||||||
|
// MUST not be modified in anyway. They should be deep copied if this is
|
||||||
|
// a possibility.
|
||||||
LogResponse(*logical.Auth, *logical.Request, *logical.Response, error) error
|
LogResponse(*logical.Auth, *logical.Request, *logical.Response, error) error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user