agent/handlers/v2/credentials_handler.go
func CredentialsHandler(credentialsManager credentials.Manager, auditLogger audit.AuditLogger) func(http.ResponseWriter, *http.Request) {
	return func(w http.ResponseWriter, r *http.Request) {
		credentialsID := getCredentialsID(r)
		errPrefix := fmt.Sprintf("CredentialsV%dRequest: ", apiVersion)
		v1.CredentialsHandlerImpl(w, r, auditLogger, credentialsManager, credentialsID, errPrefix)
	}
}
func CredentialsHandler(credentialsManager credentials.Manager, auditLogger audit.AuditLogger) func(http.ResponseWriter, *http.Request) {
	return func(w http.ResponseWriter, r *http.Request) {
		credentialsID := getCredentialsID(r)
		errPrefix := fmt.Sprintf("CredentialsV%dRequest: ", apiVersion)
		v1.CredentialsHandlerImpl(w, r, auditLogger, credentialsManager, credentialsID, errPrefix)
	}
}
func CredentialsHandler ( credentialsManager credentials . Manager , auditLogger audit . AuditLogger ) func ( http . ResponseWriter , * http . Request ) { return func ( w http . ResponseWriter , r * http . Request ) { credentialsID := getCredentialsID ( r ) errPrefix := fmt . Sprintf ( " " , apiVersion ) v1 . CredentialsHandlerImpl ( w , r , auditLogger , credentialsManager , credentialsID , errPrefix ) } }
// CredentialsHandler creates response for the 'v2/credentials' API.
CredentialsHandler creates response for the v2 / credentials API .