From c124a583d7b76d97b69a33dd79a17d048674c778 Mon Sep 17 00:00:00 2001 From: sophia Date: Mon, 2 Aug 2021 11:29:31 -0500 Subject: [PATCH] Add machine index client --- .../commands/serve/client/machine_index.rb | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 plugins/commands/serve/client/machine_index.rb diff --git a/plugins/commands/serve/client/machine_index.rb b/plugins/commands/serve/client/machine_index.rb new file mode 100644 index 000000000..3fe84a849 --- /dev/null +++ b/plugins/commands/serve/client/machine_index.rb @@ -0,0 +1,30 @@ +module VagrantPlugins + module CommandServe + module Client + class MachineIndex + + attr_reader :client + + def initialize(conn) + @logger = Log4r::Logger.new("vagrant::command::serve::client::machine") + @logger.debug("connecting to target index service on #{conn}") + if !conn.nil? + @client = SDK::TargetIndexService::Stub.new(conn, :this_channel_is_insecure) + end + end + + def delete(machine) + end + + def get(uuid) + end + + def include?(uuid) + end + + def set(entry) + end + end + end + end +end