feat(core): mirror PublishVersionRequest archive bytes proto change
This commit is contained in:
parent
31e7b72b49
commit
a827cda37a
@ -203,8 +203,6 @@ type Version struct {
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
PluginId string `protobuf:"bytes,2,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"`
|
||||
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
|
||||
GitCommit string `protobuf:"bytes,4,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"`
|
||||
GitTag string `protobuf:"bytes,5,opt,name=git_tag,json=gitTag,proto3" json:"git_tag,omitempty"`
|
||||
PublishedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=published_at,json=publishedAt,proto3" json:"published_at,omitempty"`
|
||||
Yanked bool `protobuf:"varint,7,opt,name=yanked,proto3" json:"yanked,omitempty"`
|
||||
SdkConstraint string `protobuf:"bytes,8,opt,name=sdk_constraint,json=sdkConstraint,proto3" json:"sdk_constraint,omitempty"`
|
||||
@ -265,20 +263,6 @@ func (x *Version) GetVersion() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Version) GetGitCommit() string {
|
||||
if x != nil {
|
||||
return x.GitCommit
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Version) GetGitTag() string {
|
||||
if x != nil {
|
||||
return x.GitTag
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Version) GetPublishedAt() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.PublishedAt
|
||||
@ -709,7 +693,6 @@ func (x *CreatePluginRequest) GetDescription() string {
|
||||
type CreatePluginResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Plugin *Plugin `protobuf:"bytes,1,opt,name=plugin,proto3" json:"plugin,omitempty"`
|
||||
GitRemoteUrl string `protobuf:"bytes,2,opt,name=git_remote_url,json=gitRemoteUrl,proto3" json:"git_remote_url,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@ -751,13 +734,6 @@ func (x *CreatePluginResponse) GetPlugin() *Plugin {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CreatePluginResponse) GetGitRemoteUrl() string {
|
||||
if x != nil {
|
||||
return x.GitRemoteUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type GetPluginRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
ScopeSlug string `protobuf:"bytes,1,opt,name=scope_slug,json=scopeSlug,proto3" json:"scope_slug,omitempty"`
|
||||
@ -1289,10 +1265,11 @@ func (x *ResolveInstallResponse) GetWarnings() []string {
|
||||
type PublishVersionRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
PluginId string `protobuf:"bytes,1,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"`
|
||||
GitRef string `protobuf:"bytes,2,opt,name=git_ref,json=gitRef,proto3" json:"git_ref,omitempty"`
|
||||
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Channel string `protobuf:"bytes,3,opt,name=channel,proto3" json:"channel,omitempty"`
|
||||
ReadmeMd string `protobuf:"bytes,4,opt,name=readme_md,json=readmeMd,proto3" json:"readme_md,omitempty"`
|
||||
ChangelogMd string `protobuf:"bytes,5,opt,name=changelog_md,json=changelogMd,proto3" json:"changelog_md,omitempty"`
|
||||
Archive []byte `protobuf:"bytes,4,opt,name=archive,proto3" json:"archive,omitempty"`
|
||||
ReadmeMd string `protobuf:"bytes,5,opt,name=readme_md,json=readmeMd,proto3" json:"readme_md,omitempty"`
|
||||
ChangelogMd string `protobuf:"bytes,6,opt,name=changelog_md,json=changelogMd,proto3" json:"changelog_md,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@ -1334,9 +1311,9 @@ func (x *PublishVersionRequest) GetPluginId() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *PublishVersionRequest) GetGitRef() string {
|
||||
func (x *PublishVersionRequest) GetVersion() string {
|
||||
if x != nil {
|
||||
return x.GitRef
|
||||
return x.Version
|
||||
}
|
||||
return ""
|
||||
}
|
||||
@ -1348,6 +1325,13 @@ func (x *PublishVersionRequest) GetChannel() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *PublishVersionRequest) GetArchive() []byte {
|
||||
if x != nil {
|
||||
return x.Archive
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *PublishVersionRequest) GetReadmeMd() string {
|
||||
if x != nil {
|
||||
return x.ReadmeMd
|
||||
@ -1840,14 +1824,11 @@ const file_orchestrator_v1_plugin_registry_proto_rawDesc = "" +
|
||||
"categories\x18\b \x03(\tR\n" +
|
||||
"categories\x129\n" +
|
||||
"\n" +
|
||||
"updated_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"\xea\x02\n" +
|
||||
"updated_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"\xb2\x02\n" +
|
||||
"\aVersion\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
|
||||
"\tplugin_id\x18\x02 \x01(\tR\bpluginId\x12\x18\n" +
|
||||
"\aversion\x18\x03 \x01(\tR\aversion\x12\x1d\n" +
|
||||
"\n" +
|
||||
"git_commit\x18\x04 \x01(\tR\tgitCommit\x12\x17\n" +
|
||||
"\agit_tag\x18\x05 \x01(\tR\x06gitTag\x12=\n" +
|
||||
"\aversion\x18\x03 \x01(\tR\aversion\x12=\n" +
|
||||
"\fpublished_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\vpublishedAt\x12\x16\n" +
|
||||
"\x06yanked\x18\a \x01(\bR\x06yanked\x12%\n" +
|
||||
"\x0esdk_constraint\x18\b \x01(\tR\rsdkConstraint\x122\n" +
|
||||
@ -1876,10 +1857,9 @@ const file_orchestrator_v1_plugin_registry_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"scope_slug\x18\x01 \x01(\tR\tscopeSlug\x12\x12\n" +
|
||||
"\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
|
||||
"\vdescription\x18\x03 \x01(\tR\vdescription\"m\n" +
|
||||
"\vdescription\x18\x03 \x01(\tR\vdescription\"G\n" +
|
||||
"\x14CreatePluginResponse\x12/\n" +
|
||||
"\x06plugin\x18\x01 \x01(\v2\x17.orchestrator.v1.PluginR\x06plugin\x12$\n" +
|
||||
"\x0egit_remote_url\x18\x02 \x01(\tR\fgitRemoteUrl\"E\n" +
|
||||
"\x06plugin\x18\x01 \x01(\v2\x17.orchestrator.v1.PluginR\x06plugin\"E\n" +
|
||||
"\x10GetPluginRequest\x12\x1d\n" +
|
||||
"\n" +
|
||||
"scope_slug\x18\x01 \x01(\tR\tscopeSlug\x12\x12\n" +
|
||||
@ -1930,13 +1910,14 @@ const file_orchestrator_v1_plugin_registry_proto_rawDesc = "" +
|
||||
"\brequires\x18\t \x03(\v2\x1c.orchestrator.v1.RequirementR\brequires\x12\x16\n" +
|
||||
"\x06yanked\x18\n" +
|
||||
" \x01(\bR\x06yanked\x12\x1a\n" +
|
||||
"\bwarnings\x18\v \x03(\tR\bwarnings\"\xa7\x01\n" +
|
||||
"\bwarnings\x18\v \x03(\tR\bwarnings\"\xc2\x01\n" +
|
||||
"\x15PublishVersionRequest\x12\x1b\n" +
|
||||
"\tplugin_id\x18\x01 \x01(\tR\bpluginId\x12\x17\n" +
|
||||
"\agit_ref\x18\x02 \x01(\tR\x06gitRef\x12\x18\n" +
|
||||
"\achannel\x18\x03 \x01(\tR\achannel\x12\x1b\n" +
|
||||
"\treadme_md\x18\x04 \x01(\tR\breadmeMd\x12!\n" +
|
||||
"\fchangelog_md\x18\x05 \x01(\tR\vchangelogMd\"\x89\x01\n" +
|
||||
"\tplugin_id\x18\x01 \x01(\tR\bpluginId\x12\x18\n" +
|
||||
"\aversion\x18\x02 \x01(\tR\aversion\x12\x18\n" +
|
||||
"\achannel\x18\x03 \x01(\tR\achannel\x12\x18\n" +
|
||||
"\aarchive\x18\x04 \x01(\fR\aarchive\x12\x1b\n" +
|
||||
"\treadme_md\x18\x05 \x01(\tR\breadmeMd\x12!\n" +
|
||||
"\fchangelog_md\x18\x06 \x01(\tR\vchangelogMd\"\x89\x01\n" +
|
||||
"\x16PublishVersionResponse\x122\n" +
|
||||
"\aversion\x18\x01 \x01(\v2\x18.orchestrator.v1.VersionR\aversion\x12\x1f\n" +
|
||||
"\varchive_url\x18\x02 \x01(\tR\n" +
|
||||
|
||||
@ -60,8 +60,6 @@ message Version {
|
||||
string id = 1;
|
||||
string plugin_id = 2;
|
||||
string version = 3;
|
||||
string git_commit = 4;
|
||||
string git_tag = 5;
|
||||
google.protobuf.Timestamp published_at = 6;
|
||||
bool yanked = 7;
|
||||
string sdk_constraint = 8;
|
||||
@ -93,7 +91,6 @@ message CreatePluginRequest {
|
||||
}
|
||||
message CreatePluginResponse {
|
||||
Plugin plugin = 1;
|
||||
string git_remote_url = 2;
|
||||
}
|
||||
|
||||
message GetPluginRequest { string scope_slug = 1; string name = 2; }
|
||||
@ -145,10 +142,11 @@ message ResolveInstallResponse {
|
||||
|
||||
message PublishVersionRequest {
|
||||
string plugin_id = 1;
|
||||
string git_ref = 2;
|
||||
string version = 2;
|
||||
string channel = 3;
|
||||
string readme_md = 4;
|
||||
string changelog_md = 5;
|
||||
bytes archive = 4;
|
||||
string readme_md = 5;
|
||||
string changelog_md = 6;
|
||||
}
|
||||
message PublishVersionResponse {
|
||||
Version version = 1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user