iceberg-cpp
Loading...
Searching...
No Matches
Classes | Typedefs
auth_managers.h File Reference

Factory for creating authentication managers. More...

#include <functional>
#include <memory>
#include <string>
#include <string_view>
#include <unordered_map>
#include "iceberg/catalog/rest/auth/auth_manager.h"
#include "iceberg/catalog/rest/iceberg_rest_export.h"
#include "iceberg/result.h"

Go to the source code of this file.

Classes

class  iceberg::rest::auth::AuthManagers
 Registry-backed factory for AuthManager implementations. More...
 

Typedefs

using iceberg::rest::auth::AuthManagerFactory = std::function< Result< std::unique_ptr< AuthManager > >(std::string_view name, const std::unordered_map< std::string, std::string > &properties)>
 Function that creates an AuthManager from its name.
 

Detailed Description

Factory for creating authentication managers.

Typedef Documentation

◆ AuthManagerFactory

using iceberg::rest::auth::AuthManagerFactory = typedef std::function<Result<std::unique_ptr<AuthManager> >( std::string_view name, const std::unordered_map<std::string, std::string>& properties)>

Function that creates an AuthManager from its name.

Parameters
nameName of the auth manager.
propertiesProperties required by the auth manager.
Returns
Newly created manager instance or an error if creation fails.