Files
scylladb/audit/storage_helper.hh
Andrzej Jackowski f8156702de tree: add missing -present to copyright headers
~2076 files used "Copyright (C) YYYY-present ScyllaDB" while
~88 files used "Copyright (C) YYYY ScyllaDB". This
inconsistency leads to unnecessary code review discussions
and gradual spread of the less common format.

Standardize all ScyllaDB copyright headers to use -present.

Fixes SCYLLADB-1984

Closes scylladb/scylladb#29876
2026-05-21 10:57:42 +02:00

38 lines
1.1 KiB
C++

/*
* Copyright (C) 2017-present ScyllaDB
*/
/*
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.1
*/
#pragma once
#include "audit/audit.hh"
#include "audit/audit_rule.hh"
#include <seastar/core/future.hh>
namespace audit {
class storage_helper {
public:
using ptr_type = std::unique_ptr<storage_helper>;
storage_helper() {}
virtual ~storage_helper() {}
virtual future<> start(const db::config& cfg) = 0;
virtual future<> stop() = 0;
virtual future<> write(audit_sink_set sinks,
const audit_info* audit_info,
socket_address node_ip,
socket_address client_ip,
std::optional<db::consistency_level> cl,
const sstring& username,
bool error) = 0;
virtual future<> write_login(audit_sink_set sinks,
const sstring& username,
socket_address node_ip,
socket_address client_ip,
bool error) = 0;
};
}