Skip to main content

dinio_sdk/ops/
mod.rs

1//! Name-based operations composed from `api` calls: addressing a record value by
2//! (name, type, data), geo bans by area name, client identities and sinkhole lists by
3//! name, sinkhole rules by pattern, certificates by a name they cover, zone members by
4//! email, the zone of a host name, owner names zone-file style.
5//!
6//! Functions that touch several resources are not atomic: Core has no transactions across
7//! calls. Each function says what is left behind if it fails midway.
8
9mod certificates;
10mod geo;
11mod geo_bans;
12mod members;
13mod names;
14mod rdata;
15mod records;
16mod sinkhole;
17mod zones;
18
19pub use certificates::find_certificate;
20pub use geo::{GeoArea, GeoLevel, KnownArea};
21pub use geo_bans::{AddedGeoBans, GeoBanSelector, add_geo_bans, remove_geo_bans, select_geo_bans};
22pub use members::{find_member, match_member};
23pub use names::{qualify_name, relative_name};
24pub use rdata::same_data;
25pub use records::{
26    AddValue, Added, DEFAULT_TTL, ValueSelector, add_value, check_group_removable, find_group,
27    find_value, find_value_with_geo_bans, group_values, remove_group, remove_value, update_value,
28};
29pub use sinkhole::{
30    SinkholeRoleSelector, find_client_identity, find_sinkhole_list, infer_client_identity_type,
31    infer_sinkhole_role_type, match_client_identity, match_sinkhole_list, select_sinkhole_roles,
32};
33pub use zones::{find_zone_for_host, zone_for_host};