Add Box proto message

This commit is contained in:
sophia 2021-11-04 16:56:05 -05:00 committed by Paul Hinze
parent 80e18d0b17
commit ed76183470
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
5 changed files with 2870 additions and 2736 deletions

File diff suppressed because it is too large Load Diff

View File

@ -263,6 +263,29 @@ message Project {
Job.DataSource data_source = 101;
}
message Box {
// The box name. This is the logical name used when adding the box.
string name = 1;
// This is the provider that this box is built for.
string provider = 2;
// The version of this box.
string version = 3;
// This is the directory on disk where this box exists.
string directory = 4;
// TODO: is this <string, string>?
// This is the metadata for the box. This is read from the "metadata.json"
// file that all boxes require.
map<string, string> metadata = 5;
// This is the URL to the version info and other metadata for this
// box.
string metadata_url = 6;
}
message Target {
// Unique resource identifier
string resource_id = 1;
@ -305,6 +328,7 @@ message Target {
// ID of machine as assigned by provider
string id = 1;
// TODO: this should be replaced with `Box`
// Box information for guest
sdk.Args.Target.Machine.Box box = 7;

View File

@ -42,9 +42,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "hashicorp.vagrant.sdk.Args.MetadataSet" do
map :metadata, :string, :string, 1
end
add_message "hashicorp.vagrant.sdk.Args.Folder" do
map :folders, :string, :message, 1, "google.protobuf.Any"
end
add_message "hashicorp.vagrant.sdk.Args.TerminalUI" do
optional :stream_id, :uint32, 1
optional :network, :string, 2
@ -99,12 +96,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :target, :string, 3
end
add_message "hashicorp.vagrant.sdk.Args.Target.Machine.Box" do
optional :name, :string, 1
optional :provider, :string, 2
optional :version, :string, 3
optional :directory, :string, 4
map :metadata, :string, :string, 5
optional :metadata_url, :string, 6
optional :stream_id, :uint32, 1
optional :network, :string, 2
optional :target, :string, 3
end
add_message "hashicorp.vagrant.sdk.Args.Target.Machine.State" do
optional :id, :string, 1
@ -479,11 +473,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "hashicorp.vagrant.sdk.Platform.Capability.Resp" do
optional :result, :message, 1, "google.protobuf.Any"
end
add_message "hashicorp.vagrant.sdk.SyncedFolder" do
end
add_message "hashicorp.vagrant.sdk.SyncedFolder.UsableResp" do
optional :usable, :bool, 1
end
add_message "hashicorp.vagrant.sdk.Ref" do
end
add_message "hashicorp.vagrant.sdk.Ref.Box" do
@ -747,7 +736,6 @@ module Hashicorp
Args::DataDir::Target = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.DataDir.Target").msgclass
Args::DataDir::Component = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.DataDir.Component").msgclass
Args::MetadataSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.MetadataSet").msgclass
Args::Folder = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Folder").msgclass
Args::TerminalUI = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.TerminalUI").msgclass
Args::Logger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.Logger").msgclass
Args::JobInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Args.JobInfo").msgclass
@ -849,8 +837,6 @@ module Hashicorp
Platform::Capability::NamedRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Platform.Capability.NamedRequest").msgclass
Platform::Capability::CheckResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Platform.Capability.CheckResp").msgclass
Platform::Capability::Resp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Platform.Capability.Resp").msgclass
SyncedFolder = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.SyncedFolder").msgclass
SyncedFolder::UsableResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.SyncedFolder.UsableResp").msgclass
Ref = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Ref").msgclass
Ref::Box = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Ref.Box").msgclass
Ref::Basis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.sdk.Ref.Basis").msgclass

View File

@ -298,20 +298,6 @@ module Hashicorp
rpc :ConfigStruct, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::StructResp
rpc :Configure, ::Hashicorp::Vagrant::Sdk::Config::ConfigureRequest, ::Google::Protobuf::Empty
rpc :Documentation, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Config::Documentation
rpc :Usable, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::SyncedFolder::UsableResp
rpc :UsableSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec
rpc :Enable, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Google::Protobuf::Empty
rpc :EnableSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec
rpc :Disable, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Google::Protobuf::Empty
rpc :DisableSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec
rpc :Cleanup, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Google::Protobuf::Empty
rpc :CleanupSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec
rpc :Capability, ::Hashicorp::Vagrant::Sdk::Platform::Capability::NamedRequest, ::Hashicorp::Vagrant::Sdk::Platform::Capability::Resp
rpc :CapabilitySpec, ::Hashicorp::Vagrant::Sdk::Platform::Capability::NamedRequest, ::Hashicorp::Vagrant::Sdk::FuncSpec
rpc :HasCapability, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::Platform::Capability::CheckResp
rpc :HasCapabilitySpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec
rpc :Seed, ::Hashicorp::Vagrant::Sdk::Args::Direct, ::Google::Protobuf::Empty
rpc :Seeds, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::Args::Direct
end
Stub = Service.rpc_stub_class

View File

@ -44,6 +44,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :remote_enabled, :bool, 100
optional :data_source, :message, 101, "hashicorp.vagrant.Job.DataSource"
end
add_message "hashicorp.vagrant.Box" do
optional :name, :string, 1
optional :provider, :string, 2
optional :version, :string, 3
optional :directory, :string, 4
map :metadata, :string, :string, 5
optional :metadata_url, :string, 6
end
add_message "hashicorp.vagrant.Target" do
optional :resource_id, :string, 1
optional :datadir, :message, 2, "hashicorp.vagrant.sdk.Args.DataDir.Target"
@ -860,6 +868,7 @@ module Hashicorp
VersionInfo::ProtocolVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.VersionInfo.ProtocolVersion").msgclass
Basis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Basis").msgclass
Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Project").msgclass
Box = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Box").msgclass
Target = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Target").msgclass
Target::Machine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Target.Machine").msgclass
Vagrantfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Vagrantfile").msgclass