All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
as_config.h File Reference
#include <aerospike/as_error.h>
#include <aerospike/as_host.h>
#include <aerospike/as_policy.h>
#include <aerospike/as_password.h>
#include <aerospike/as_vector.h>
+ Include dependency graph for as_config.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  as_addr_map
 
struct  as_cluster_event
 
struct  as_config
 
struct  as_config_lua
 
struct  as_config_tls
 

Macros

#define AS_CONFIG_PATH_MAX_LEN   (AS_CONFIG_PATH_MAX_SIZE - 1)
 
#define AS_CONFIG_PATH_MAX_SIZE   256
 
#define AS_PASSWORD_SIZE   64
 

Typedefs

typedef void(* as_cluster_event_callback )(as_cluster_event *event)
 

Enumerations

enum  as_auth_mode { AS_AUTH_INTERNAL, AS_AUTH_EXTERNAL, AS_AUTH_EXTERNAL_INSECURE, AS_AUTH_PKI }
 
enum  as_cluster_event_type { AS_CLUSTER_ADD_NODE = 0, AS_CLUSTER_REMOVE_NODE = 1, AS_CLUSTER_DISCONNECTED = 2 }
 

Functions

AS_EXTERN bool as_auth_mode_from_string (as_auth_mode *auth, const char *str)
 
AS_EXTERN void as_config_set_string (char **str, const char *value)
 

Macro Definition Documentation

#define AS_CONFIG_PATH_MAX_LEN   (AS_CONFIG_PATH_MAX_SIZE - 1)

The maximum string length of path strings

Definition at line 56 of file as_config.h.

#define AS_CONFIG_PATH_MAX_SIZE   256

The size of path strings

Definition at line 51 of file as_config.h.

#define AS_PASSWORD_SIZE   64

Max clear text password size.

Definition at line 61 of file as_config.h.

Typedef Documentation

typedef void(* as_cluster_event_callback)(as_cluster_event *event)

Cluster event notification callback function. as_cluster_event is placed on the stack before calling. Do not free node_name or node_address.

Definition at line 176 of file as_config.h.

Enumeration Type Documentation

Authentication mode.

Enumerator
AS_AUTH_INTERNAL 

Use internal authentication when user/password defined. Hashed password is stored on the server. Do not send clear password. This is the default.

AS_AUTH_EXTERNAL 

Use external authentication (like LDAP) when user/password defined. Specific external authentication is configured on server. If TLS defined, send clear password on node login via TLS. Return error if TLS is not defined.

AS_AUTH_EXTERNAL_INSECURE 

Use external authentication (like LDAP) when user/password defined. Specific external authentication is configured on server. Send clear password on node login whether or not TLS is defined. This mode should only be used for testing purposes because it is not secure authentication.

AS_AUTH_PKI 

Authentication and authorization based on a certificate. No user name or password needs to be configured. Requires TLS and a client certificate.

Definition at line 91 of file as_config.h.

Cluster event notification type.

Enumerator
AS_CLUSTER_ADD_NODE 

Node was added to cluster.

AS_CLUSTER_REMOVE_NODE 

Node was removed fron cluster.

AS_CLUSTER_DISCONNECTED 

There are no active nodes in the cluster.

Definition at line 125 of file as_config.h.

Function Documentation

AS_EXTERN bool as_auth_mode_from_string ( as_auth_mode auth,
const char *  str 
)

Convert string into as_auth_mode enum.

AS_EXTERN void as_config_set_string ( char **  str,
const char *  value 
)

Free existing string if not null and copy value to string.