mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	 8bee54c89d
			
		
	
	8bee54c89d
	
	
	
		
			
			* Refactor audit code into audit package * remove builtin/audit * removed unrequired files
		
			
				
	
	
		
			28 lines
		
	
	
		
			576 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			576 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Copyright (c) HashiCorp, Inc.
 | |
| // SPDX-License-Identifier: BUSL-1.1
 | |
| 
 | |
| //go:build !enterprise
 | |
| 
 | |
| package audit
 | |
| 
 | |
| import "github.com/hashicorp/vault/internal/observability/event"
 | |
| 
 | |
| type backendEnt struct{}
 | |
| 
 | |
| func newBackendEnt(_ map[string]string) *backendEnt {
 | |
| 	return &backendEnt{}
 | |
| }
 | |
| 
 | |
| func (b *backendEnt) IsFallback() bool {
 | |
| 	return false
 | |
| }
 | |
| 
 | |
| // configureFilterNode is a no-op as filters are an Enterprise-only feature.
 | |
| func (b *backend) configureFilterNode(_ string) error {
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (b *backend) getMetricLabeler() event.Labeler {
 | |
| 	return &metricLabelerAuditSink{}
 | |
| }
 |