Aranya
|
A handle to an Aranya Client. More...
#include <aranya-client.h>
Related Symbols | |
(Note that these are not member symbols.) | |
AranyaError | aranya_client_cleanup (struct AranyaClient *ptr) |
Releases any resources associated with ptr . | |
AranyaError | aranya_client_cleanup_ext (struct AranyaClient *ptr, struct AranyaExtError *__ext_err) |
Releases any resources associated with ptr . | |
AranyaError | aranya_client_init (struct AranyaClient *client, const struct AranyaClientConfig *config) |
Initializes a new client instance. | |
AranyaError | aranya_client_init_ext (struct AranyaClient *client, const struct AranyaClientConfig *config, struct AranyaExtError *__ext_err) |
Initializes a new client instance. | |
AranyaError | aranya_get_key_bundle (struct AranyaClient *client, struct AranyaKeyBundle *__output) |
Gets the public key bundle for this device. | |
AranyaError | aranya_get_key_bundle_ext (struct AranyaClient *client, struct AranyaKeyBundle *__output, struct AranyaExtError *__ext_err) |
Gets the public key bundle for this device. | |
AranyaError | aranya_get_device_id (struct AranyaClient *client, struct AranyaDeviceId *__output) |
Gets the public device ID. | |
AranyaError | aranya_get_device_id_ext (struct AranyaClient *client, struct AranyaDeviceId *__output, struct AranyaExtError *__ext_err) |
Gets the public device ID. | |
AranyaError | aranya_create_team (struct AranyaClient *client, struct AranyaTeamId *__output) |
Create a new graph/team with the current device as the owner. | |
AranyaError | aranya_create_team_ext (struct AranyaClient *client, struct AranyaTeamId *__output, struct AranyaExtError *__ext_err) |
Create a new graph/team with the current device as the owner. | |
AranyaError | aranya_add_team (struct AranyaClient *client, const struct AranyaTeamId *team) |
Add a team to the local device store. | |
AranyaError | aranya_add_team_ext (struct AranyaClient *client, const struct AranyaTeamId *team, struct AranyaExtError *__ext_err) |
Add a team to the local device store. | |
AranyaError | aranya_remove_team (struct AranyaClient *client, const struct AranyaTeamId *team) |
Remove a team from the local device store. | |
AranyaError | aranya_remove_team_ext (struct AranyaClient *client, const struct AranyaTeamId *team, struct AranyaExtError *__ext_err) |
Remove a team from the local device store. | |
AranyaError | aranya_add_sync_peer (struct AranyaClient *client, const struct AranyaTeamId *team, AranyaAddr addr, AranyaDuration interval) |
Add the peer for automatic periodic Aranya state syncing. | |
AranyaError | aranya_add_sync_peer_ext (struct AranyaClient *client, const struct AranyaTeamId *team, AranyaAddr addr, AranyaDuration interval, struct AranyaExtError *__ext_err) |
Add the peer for automatic periodic Aranya state syncing. | |
AranyaError | aranya_remove_sync_peer (struct AranyaClient *client, const struct AranyaTeamId *team, AranyaAddr addr) |
Remove the peer from automatic Aranya state syncing. | |
AranyaError | aranya_remove_sync_peer_ext (struct AranyaClient *client, const struct AranyaTeamId *team, AranyaAddr addr, struct AranyaExtError *__ext_err) |
Remove the peer from automatic Aranya state syncing. | |
AranyaError | aranya_close_team (struct AranyaClient *client, const struct AranyaTeamId *team) |
Close the team and stop all operations on the graph. | |
AranyaError | aranya_close_team_ext (struct AranyaClient *client, const struct AranyaTeamId *team, struct AranyaExtError *__ext_err) |
Close the team and stop all operations on the graph. | |
AranyaError | aranya_add_device_to_team (struct AranyaClient *client, const struct AranyaTeamId *team, const struct AranyaKeyBundle *keys) |
Add a device to the team with the default role. | |
AranyaError | aranya_add_device_to_team_ext (struct AranyaClient *client, const struct AranyaTeamId *team, const struct AranyaKeyBundle *keys, struct AranyaExtError *__ext_err) |
Add a device to the team with the default role. | |
AranyaError | aranya_remove_device_from_team (struct AranyaClient *client, const struct AranyaTeamId *team, const struct AranyaDeviceId *device) |
Remove a device from the team. | |
AranyaError | aranya_remove_device_from_team_ext (struct AranyaClient *client, const struct AranyaTeamId *team, const struct AranyaDeviceId *device, struct AranyaExtError *__ext_err) |
Remove a device from the team. | |
AranyaError | aranya_assign_role (struct AranyaClient *client, const struct AranyaTeamId *team, const struct AranyaDeviceId *device, AranyaRole role) |
Assign a role to a device. | |
AranyaError | aranya_assign_role_ext (struct AranyaClient *client, const struct AranyaTeamId *team, const struct AranyaDeviceId *device, AranyaRole role, struct AranyaExtError *__ext_err) |
Assign a role to a device. | |
AranyaError | aranya_revoke_role (struct AranyaClient *client, const struct AranyaTeamId *team, const struct AranyaDeviceId *device, AranyaRole role) |
Revoke a role from a device. | |
AranyaError | aranya_revoke_role_ext (struct AranyaClient *client, const struct AranyaTeamId *team, const struct AranyaDeviceId *device, AranyaRole role, struct AranyaExtError *__ext_err) |
Revoke a role from a device. | |
AranyaError | aranya_assign_net_identifier (struct AranyaClient *client, const struct AranyaTeamId *team, const struct AranyaDeviceId *device, AranyaNetIdentifier net_identifier) |
Associate a network identifier to a device for use with AFC. | |
AranyaError | aranya_assign_net_identifier_ext (struct AranyaClient *client, const struct AranyaTeamId *team, const struct AranyaDeviceId *device, AranyaNetIdentifier net_identifier, struct AranyaExtError *__ext_err) |
Associate a network identifier to a device for use with AFC. | |
AranyaError | aranya_remove_net_identifier (struct AranyaClient *client, const struct AranyaTeamId *team, const struct AranyaDeviceId *device, AranyaNetIdentifier net_identifier) |
Disassociate a network identifier from a device. | |
AranyaError | aranya_remove_net_identifier_ext (struct AranyaClient *client, const struct AranyaTeamId *team, const struct AranyaDeviceId *device, AranyaNetIdentifier net_identifier, struct AranyaExtError *__ext_err) |
Disassociate a network identifier from a device. | |
AranyaError | aranya_create_label (struct AranyaClient *client, const struct AranyaTeamId *team, AranyaLabel label) |
Create an AFC label. | |
AranyaError | aranya_create_label_ext (struct AranyaClient *client, const struct AranyaTeamId *team, AranyaLabel label, struct AranyaExtError *__ext_err) |
Create an AFC label. | |
AranyaError | aranya_delete_label (struct AranyaClient *client, const struct AranyaTeamId *team, AranyaLabel label) |
Delete an AFC label. | |
AranyaError | aranya_delete_label_ext (struct AranyaClient *client, const struct AranyaTeamId *team, AranyaLabel label, struct AranyaExtError *__ext_err) |
Delete an AFC label. | |
AranyaError | aranya_assign_label (struct AranyaClient *client, const struct AranyaTeamId *team, const struct AranyaDeviceId *device, AranyaLabel label) |
Assign an AFC label to a device so that it can be used for an AFC channel. | |
AranyaError | aranya_assign_label_ext (struct AranyaClient *client, const struct AranyaTeamId *team, const struct AranyaDeviceId *device, AranyaLabel label, struct AranyaExtError *__ext_err) |
Assign an AFC label to a device so that it can be used for an AFC channel. | |
AranyaError | aranya_revoke_label (struct AranyaClient *client, const struct AranyaTeamId *team, const struct AranyaDeviceId *device, AranyaLabel label) |
Revoke an AFC label from a device. | |
AranyaError | aranya_revoke_label_ext (struct AranyaClient *client, const struct AranyaTeamId *team, const struct AranyaDeviceId *device, AranyaLabel label, struct AranyaExtError *__ext_err) |
Revoke an AFC label from a device. | |
AranyaError | aranya_create_bidi_channel (struct AranyaClient *client, const struct AranyaTeamId *team, AranyaNetIdentifier peer, AranyaLabel label, struct AranyaChannelId *__output) |
Create an Aranya Fast Channel (AFC). | |
AranyaError | aranya_create_bidi_channel_ext (struct AranyaClient *client, const struct AranyaTeamId *team, AranyaNetIdentifier peer, AranyaLabel label, struct AranyaChannelId *__output, struct AranyaExtError *__ext_err) |
Create an Aranya Fast Channel (AFC). | |
AranyaError | aranya_delete_channel (struct AranyaClient *client, struct AranyaChannelId chan) |
Delete an Aranya Fast Channel (AFC). | |
AranyaError | aranya_delete_channel_ext (struct AranyaClient *client, struct AranyaChannelId chan, struct AranyaExtError *__ext_err) |
Delete an Aranya Fast Channel (AFC). | |
AranyaError | aranya_poll_data (struct AranyaClient *client, AranyaDuration timeout) |
Poll for new Aranya Fast Channels (AFC) data. | |
AranyaError | aranya_poll_data_ext (struct AranyaClient *client, AranyaDuration timeout, struct AranyaExtError *__ext_err) |
Poll for new Aranya Fast Channels (AFC) data. | |
AranyaError | aranya_send_data (struct AranyaClient *client, struct AranyaChannelId chan, const uint8_t *data, size_t data_len) |
Send Aranya Fast Channels (AFC) data. | |
AranyaError | aranya_send_data_ext (struct AranyaClient *client, struct AranyaChannelId chan, const uint8_t *data, size_t data_len, struct AranyaExtError *__ext_err) |
Send Aranya Fast Channels (AFC) data. | |
AranyaError | aranya_recv_data (struct AranyaClient *client, uint8_t *buf, size_t *buf_len, struct AranyaAfcMsgInfo *info) |
Receive Aranya Fast Channels (AFC) data. | |
AranyaError | aranya_recv_data_ext (struct AranyaClient *client, uint8_t *buf, size_t *buf_len, struct AranyaAfcMsgInfo *info, struct AranyaExtError *__ext_err) |
Receive Aranya Fast Channels (AFC) data. | |
A handle to an Aranya Client.
|
related |
Add a device to the team with the default role.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
keys | the device's public key bundle AranyaKeyBundle . |
|
related |
Add a device to the team with the default role.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
keys | the device's public key bundle AranyaKeyBundle . |
|
related |
Add the peer for automatic periodic Aranya state syncing.
If a peer is not reachable on the network, sync errors will appear in the tracing logs and Aranya will be unable to sync state with that peer.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
addr | the peer's Aranya network address AranyaAddr . |
interval | the time AranyaDuration to wait between syncs with peer. |
|
related |
Add the peer for automatic periodic Aranya state syncing.
If a peer is not reachable on the network, sync errors will appear in the tracing logs and Aranya will be unable to sync state with that peer.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
addr | the peer's Aranya network address AranyaAddr . |
interval | the time AranyaDuration to wait between syncs with peer. |
|
related |
Add a team to the local device store.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
|
related |
Add a team to the local device store.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
|
related |
Assign an AFC label to a device so that it can be used for an AFC channel.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
device | the device ID AranyaDeviceId of the device to assign the label to. |
label | the AFC channel label AranyaLabel . |
|
related |
Assign an AFC label to a device so that it can be used for an AFC channel.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
device | the device ID AranyaDeviceId of the device to assign the label to. |
label | the AFC channel label AranyaLabel . |
|
related |
Associate a network identifier to a device for use with AFC.
Permission to perform this operation is checked against the Aranya policy.
If the address already exists for this device, it is replaced with the new address. Capable of resolving addresses via DNS, required to be statically mapped to IPV4. For use with OpenChannel and receiving messages. Can take either DNS name or IPV4.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
device | the device's ID AranyaDeviceId . |
net_identifier | the device's network identifier AranyaNetIdentifier . |
|
related |
Associate a network identifier to a device for use with AFC.
Permission to perform this operation is checked against the Aranya policy.
If the address already exists for this device, it is replaced with the new address. Capable of resolving addresses via DNS, required to be statically mapped to IPV4. For use with OpenChannel and receiving messages. Can take either DNS name or IPV4.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
device | the device's ID AranyaDeviceId . |
net_identifier | the device's network identifier AranyaNetIdentifier . |
|
related |
Assign a role to a device.
This will change the device's current role to the new role assigned.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
device | the device's ID AranyaDeviceId . |
role | the role AranyaRole to assign to the device. |
|
related |
Assign a role to a device.
This will change the device's current role to the new role assigned.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
device | the device's ID AranyaDeviceId . |
role | the role AranyaRole to assign to the device. |
|
related |
Releases any resources associated with ptr
.
ptr
must either be null or initialized by aranya_client_init
.
|
related |
Releases any resources associated with ptr
.
ptr
must either be null or initialized by aranya_client_init
.
|
related |
Initializes a new client instance.
client | the uninitialized Aranya Client AranyaClient . |
config | the client's configuration AranyaClientConfig . |
|
related |
Initializes a new client instance.
client | the uninitialized Aranya Client AranyaClient . |
config | the client's configuration AranyaClientConfig . |
|
related |
Close the team and stop all operations on the graph.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
|
related |
Close the team and stop all operations on the graph.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
|
related |
Create an Aranya Fast Channel (AFC).
Creates a bidirectional AFC channel between the current device and another peer.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
peer | the peer's network identifier AranyaNetIdentifier . |
label | the AFC channel label AranyaLabel to create the channel with. |
__output | the channel's ID AranyaChannelId |
|
related |
Create an Aranya Fast Channel (AFC).
Creates a bidirectional AFC channel between the current device and another peer.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
peer | the peer's network identifier AranyaNetIdentifier . |
label | the AFC channel label AranyaLabel to create the channel with. |
__output | the channel's ID AranyaChannelId |
|
related |
Create an AFC label.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
label | the AFC channel label AranyaLabel to create. |
|
related |
Create an AFC label.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
label | the AFC channel label AranyaLabel to create. |
|
related |
Create a new graph/team with the current device as the owner.
client | the Aranya Client AranyaClient . |
__output | the team's ID AranyaTeamId . |
|
related |
Create a new graph/team with the current device as the owner.
client | the Aranya Client AranyaClient . |
__output | the team's ID AranyaTeamId . |
|
related |
Delete an Aranya Fast Channel (AFC).
client | the Aranya Client AranyaClient . |
chan | the AFC channel ID AranyaChannelId of the channel to delete. |
|
related |
Delete an Aranya Fast Channel (AFC).
client | the Aranya Client AranyaClient . |
chan | the AFC channel ID AranyaChannelId of the channel to delete. |
|
related |
Delete an AFC label.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
label | the AFC channel label AranyaLabel to delete. |
|
related |
Delete an AFC label.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
label | the AFC channel label AranyaLabel to delete. |
|
related |
Gets the public device ID.
client | the Aranya Client AranyaClient . |
__output | the client's device ID AranyaDeviceId . |
|
related |
Gets the public device ID.
client | the Aranya Client AranyaClient . |
__output | the client's device ID AranyaDeviceId . |
|
related |
Gets the public key bundle for this device.
client | the Aranya Client AranyaClient . |
__output | the client's key bundle AranyaKeyBundle . |
|
related |
Gets the public key bundle for this device.
client | the Aranya Client AranyaClient . |
__output | the client's key bundle AranyaKeyBundle . |
|
related |
Poll for new Aranya Fast Channels (AFC) data.
If the operation times out, this will return an ARANYA_ERROR_TIMEOUT
.
client | the Aranya Client AranyaClient . |
timeout | how long to wait before timing out the poll operation AranyaDuration . |
|
related |
Poll for new Aranya Fast Channels (AFC) data.
If the operation times out, this will return an ARANYA_ERROR_TIMEOUT
.
client | the Aranya Client AranyaClient . |
timeout | how long to wait before timing out the poll operation AranyaDuration . |
|
related |
Receive Aranya Fast Channels (AFC) data.
client | the Aranya Client. |
buf | buffer to store message into. |
buf_len | length of buffer. |
info | information about the message AranyaAfcMsgInfo . |
|
related |
Receive Aranya Fast Channels (AFC) data.
client | the Aranya Client. |
buf | buffer to store message into. |
buf_len | length of buffer. |
info | information about the message AranyaAfcMsgInfo . |
|
related |
Remove a device from the team.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
device | the device's ID AranyaDeviceId . |
|
related |
Remove a device from the team.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
device | the device's ID AranyaDeviceId . |
|
related |
Disassociate a network identifier from a device.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
device | the device's ID AranyaDeviceId . |
net_identifier | the device's network identifier AranyaNetIdentifier . |
|
related |
Disassociate a network identifier from a device.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
device | the device's ID AranyaDeviceId . |
net_identifier | the device's network identifier AranyaNetIdentifier . |
|
related |
Remove the peer from automatic Aranya state syncing.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
addr | the peer's Aranya network address AranyaAddr . |
|
related |
Remove the peer from automatic Aranya state syncing.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
addr | the peer's Aranya network address AranyaAddr . |
|
related |
Remove a team from the local device store.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
|
related |
Remove a team from the local device store.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
|
related |
Revoke an AFC label from a device.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
device | the device ID AranyaDeviceId of the device to revoke the label from. |
label | the AFC channel label AranyaLabel . |
|
related |
Revoke an AFC label from a device.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
device | the device ID AranyaDeviceId of the device to revoke the label from. |
label | the AFC channel label AranyaLabel . |
|
related |
Revoke a role from a device.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
device | the device's ID AranyaDeviceId . |
role | the role AranyaRole to revoke from the device. |
|
related |
Revoke a role from a device.
Permission to perform this operation is checked against the Aranya policy.
client | the Aranya Client AranyaClient . |
team | the team's ID AranyaTeamId . |
device | the device's ID AranyaDeviceId . |
role | the role AranyaRole to revoke from the device. |
|
related |
Send Aranya Fast Channels (AFC) data.
client | the Aranya Client AranyaClient . |
chan | the AFC channel's ID AranyaChannelId . |
data | raw bytes of data to send. |
data_len | length of data to send. |
|
related |
Send Aranya Fast Channels (AFC) data.
client | the Aranya Client AranyaClient . |
chan | the AFC channel's ID AranyaChannelId . |
data | raw bytes of data to send. |
data_len | length of data to send. |