42#define AS_ROLE_SIZE 64
52typedef enum as_privilege_code_e {
115typedef struct as_privilege_s {
138typedef struct as_role_s {
179typedef struct as_user_s {
252 const char* password,
const char** roles,
int roles_size
293 const char** roles,
int roles_size
303 const char** roles,
int roles_size
324 as_privilege** privileges,
int privileges_size,
const char** whitelist,
int whitelist_size
337 as_privilege** privileges,
int privileges_size,
const char** whitelist,
int whitelist_size,
338 int read_quota,
int write_quota
377 const char** whitelist,
int whitelist_size
387 int read_quota,
int write_quota
461struct as_node_info_s;
470 struct as_cluster_s* cluster,
as_error* err,
struct as_socket_s* sock, uint64_t deadline_ms,
471 struct as_node_info_s* node_info
481 struct as_cluster_s* cluster,
as_error* err,
struct as_socket_s* sock,
struct as_node_s* node,
482 struct as_session_s* session, uint32_t socket_timeout, uint64_t deadline_ms
as_status as_cluster_login(struct as_cluster_s *cluster, as_error *err, struct as_socket_s *sock, uint64_t deadline_ms, struct as_node_info_s *node_info)
uint32_t as_authenticate_set(struct as_cluster_s *cluster, struct as_session_s *session, uint8_t *buffer)
as_status as_authenticate(struct as_cluster_s *cluster, as_error *err, struct as_socket_s *sock, struct as_node_s *node, struct as_session_s *session, uint32_t socket_timeout, uint64_t deadline_ms)
char as_namespace[AS_NAMESPACE_MAX_SIZE]
char as_set[AS_SET_MAX_SIZE]
AS_EXTERN as_status aerospike_drop_user(aerospike *as, as_error *err, const as_policy_admin *policy, const char *user_name)
AS_EXTERN as_status aerospike_create_user(aerospike *as, as_error *err, const as_policy_admin *policy, const char *user_name, const char *password, const char **roles, int roles_size)
AS_EXTERN as_status aerospike_revoke_roles(aerospike *as, as_error *err, const as_policy_admin *policy, const char *user_name, const char **roles, int roles_size)
AS_EXTERN as_status aerospike_create_role(aerospike *as, as_error *err, const as_policy_admin *policy, const char *role, as_privilege **privileges, int privileges_size)
AS_EXTERN as_status aerospike_set_whitelist(aerospike *as, as_error *err, const as_policy_admin *policy, const char *role, const char **whitelist, int whitelist_size)
AS_EXTERN as_status aerospike_query_users(aerospike *as, as_error *err, const as_policy_admin *policy, as_user ***users, int *users_size)
AS_EXTERN void as_role_destroy(as_role *role)
AS_EXTERN as_status aerospike_grant_roles(aerospike *as, as_error *err, const as_policy_admin *policy, const char *user_name, const char **roles, int roles_size)
AS_EXTERN as_status aerospike_set_password(aerospike *as, as_error *err, const as_policy_admin *policy, const char *user_name, const char *password)
AS_EXTERN as_status aerospike_set_quotas(aerospike *as, as_error *err, const as_policy_admin *policy, const char *role, int read_quota, int write_quota)
AS_EXTERN as_status aerospike_query_user(aerospike *as, as_error *err, const as_policy_admin *policy, const char *user_name, as_user **user)
AS_EXTERN as_status aerospike_query_role(aerospike *as, as_error *err, const as_policy_admin *policy, const char *role_name, as_role **role)
AS_EXTERN as_status aerospike_query_roles(aerospike *as, as_error *err, const as_policy_admin *policy, as_role ***roles, int *roles_size)
AS_EXTERN as_status aerospike_change_password(aerospike *as, as_error *err, const as_policy_admin *policy, const char *user_name, const char *password)
AS_EXTERN void as_roles_destroy(as_role **roles, int roles_size)
AS_EXTERN as_status aerospike_revoke_privileges(aerospike *as, as_error *err, const as_policy_admin *policy, const char *role, as_privilege **privileges, int privileges_size)
AS_EXTERN void as_users_destroy(as_user **users, int users_size)
AS_EXTERN as_status aerospike_grant_privileges(aerospike *as, as_error *err, const as_policy_admin *policy, const char *role, as_privilege **privileges, int privileges_size)
AS_EXTERN as_status aerospike_drop_role(aerospike *as, as_error *err, const as_policy_admin *policy, const char *role)
AS_EXTERN as_status aerospike_create_role_whitelist(aerospike *as, as_error *err, const as_policy_admin *policy, const char *role, as_privilege **privileges, int privileges_size, const char **whitelist, int whitelist_size)
AS_EXTERN void as_user_destroy(as_user *user)
AS_EXTERN as_status aerospike_create_role_quotas(aerospike *as, as_error *err, const as_policy_admin *policy, const char *role, as_privilege **privileges, int privileges_size, const char **whitelist, int whitelist_size, int read_quota, int write_quota)
@ AS_PRIVILEGE_SINDEX_ADMIN
@ AS_PRIVILEGE_READ_WRITE_UDF
@ AS_PRIVILEGE_DATA_ADMIN
@ AS_PRIVILEGE_READ_WRITE
@ AS_PRIVILEGE_USER_ADMIN