Refactor inventory module

This commit is contained in:
stephb9959
2021-01-23 00:47:49 -08:00
parent 76eaaca81b
commit f3592eb6a9
3 changed files with 6 additions and 2 deletions

View File

@@ -42,6 +42,7 @@
-record( client_info, {
name = <<>> :: binary(),
ca = <<>> :: binary(),
sim_name = <<>> :: binary(),
cap = [] :: [client_role()],
wan_mac0 = <<>> :: binary(), %% MAC is XX:XX:XX:XX:XX:XX lowercase
lan_mac0 = <<>> :: binary(), %% MAC is XX:XX:XX:XX:XX:XX lowercase
@@ -66,6 +67,7 @@
name = <<>> :: binary(),
service = none :: service_role(),
ca = <<>> :: binary(),
sim_name = <<>> :: binary(),
description = <<>> :: binary(),
type = <<>> :: binary(),
version = <<>> :: binary(),

View File

@@ -41,7 +41,7 @@
current_op_pid = none :: none | pid(),
current_op = none :: none | preparing | pushing | starting | pausing | stopping | restarting | cancelling ,
state = created :: created | prepared | pushed | started | paused | stopped | restarted | cancelled ,
start = none :: none | erlang:timestamp(),
start = 0 :: non_neg_integer(),
current_cb = none :: none | notification_cb(),
outstanding_nodes = [] :: [node()],
sim_info :: simulation()

View File

@@ -43,7 +43,9 @@
}).
-type stat_report() :: #stat_report{}.
-type generic_stat_report()::#{atom()=>term()}.
-export_type([stat_report/0,generic_stat_report/0]).
-export_type([stat_report/0]).
-endif.