Add machine index client

This commit is contained in:
sophia 2021-08-02 11:29:31 -05:00 committed by Paul Hinze
parent 293af5de29
commit c124a583d7
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -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