This commit is contained in:
Craig Everett 2018-05-11 08:19:02 +09:00
parent 72062f80d4
commit 1a661866e5

View File

@ -51,12 +51,16 @@
-type host() :: {string() | inet:ip_address(), inet:port_number()}. -type host() :: {string() | inet:ip_address(), inet:port_number()}.
-type key_id() :: {realm(), key_name()}. -type key_id() :: {realm(), key_name()}.
-type key_name() :: lower0_9(). -type key_name() :: lower0_9().
-type key_data() :: {key_id(), public | private, binary()}. -type key_data() :: {ID :: key_id(),
Public :: binary() | none,
Private :: binary() | none}.
-type user_id() :: {realm(), user_name()}. -type user_id() :: {realm(), user_name()}.
-type user_name() :: label(). -type user_name() :: label().
-type contact_info() :: {Type :: string(), Data :: string()}.
-type user_data() :: {ID :: user_id(), -type user_data() :: {ID :: user_id(),
RealName :: string(), RealName :: string(),
Email :: string()}. Contact :: contact_info(),
KeyData :: [key_data()]}.
-type lower0_9() :: [$a..$z | $0..$9 | $_]. -type lower0_9() :: [$a..$z | $0..$9 | $_].
-type label() :: [$a..$z | $0..$9 | $_ | $- | $.]. -type label() :: [$a..$z | $0..$9 | $_ | $- | $.].
-type package_meta() :: #{package_id := package_id(), -type package_meta() :: #{package_id := package_id(),