MCPcopy Create free account
hub / github.com/bytebase/bytebase / redactExportResponse

Function redactExportResponse

backend/api/v1/audit.go:547–554  ·  view source on GitHub ↗

redactExportResponse drops the exported file content but keeps the applied access grant so audit logs record which grant authorized the export.

(r *v1pb.ExportResponse)

Source from the content-addressed store, hash-verified

545// redactExportResponse drops the exported file content but keeps the applied
546// access grant so audit logs record which grant authorized the export.
547func redactExportResponse(r *v1pb.ExportResponse) *v1pb.ExportResponse {
548 if r == nil || r.AppliedAccessGrant == "" {
549 return nil
550 }
551 return &v1pb.ExportResponse{
552 AppliedAccessGrant: r.AppliedAccessGrant,
553 }
554}
555
556func redactLoginRequest(r *v1pb.LoginRequest) *v1pb.LoginRequest {
557 if r == nil {

Callers 1

getResponseStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected