Update box proto to use struct for metadata

This commit is contained in:
sophia 2022-02-25 16:58:45 -06:00 committed by Paul Hinze
parent e600d6e4a8
commit 5d348e66a1
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
4 changed files with 2018 additions and 2026 deletions

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.15.8
// protoc v3.19.4
// source: proto/ruby_vagrant/ruby-server.proto
package ruby_vagrant

File diff suppressed because it is too large Load Diff

View File

@ -287,10 +287,9 @@ message Box {
// 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;
google.protobuf.Struct metadata = 5;
// This is the URL to the version info and other metadata for this
// box.

View File

@ -49,7 +49,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
optional :provider, :string, 2
optional :version, :string, 3
optional :directory, :string, 4
map :metadata, :string, :string, 5
optional :metadata, :message, 5, "google.protobuf.Struct"
optional :metadata_url, :string, 6
optional :name, :string, 7
optional :last_update, :message, 8, "google.protobuf.Timestamp"