From 47d086111d3794180b088336da4b8a8b14fd6825 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Thu, 7 Dec 2023 22:19:10 +0000 Subject: [PATCH] Add DnsRecord and ApplicationDeploymentRequest (#124) > Note: This has a breaking protobuf change, but that is known and OK, as the previous release has not been deployed externally. ``` message DnsRecord { string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""]; string name = 2 [(gogoproto.moretags) = "json:\"name\" yaml:\"name\""]; string version = 3 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; string resource_type = 4 [(gogoproto.moretags) = "json:\"resourceType\" yaml:\"resourceType\""]; string value = 5 [(gogoproto.moretags) = "json:\"value\" yaml:\"value\""]; string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""]; repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; } message ApplicationDeploymentRequest { string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""]; string name = 2 [(gogoproto.moretags) = "json:\"name\" yaml:\"name\""]; string version = 3 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; string application = 4 [(gogoproto.moretags) = "json:\"application\" yaml:\"application\""]; string dns = 5 [(gogoproto.moretags) = "json:\"dns\" yaml:\"dns\""]; string config = 6 [(gogoproto.moretags) = "json:\"config\" yaml:\"config\""]; repeated string crn = 7 [(gogoproto.moretags) = "json:\"crn\" yaml:\"crn\""]; string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""]; repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; } ``` Also rename WebAppDeploymentRecord to ApplicationDeploymentRecord. Reviewed-on: https://git.vdb.to/cerc-io/laconicd/pulls/124 Co-authored-by: Thomas E Lackey Co-committed-by: Thomas E Lackey --- .../registry/v1beta1/attributes.proto | 29 +- x/registry/keeper/keeper.go | 3 +- x/registry/types/attributes.pb.go | 1437 +++++++++++++++-- x/registry/types/codec.go | 16 +- x/registry/types/types.go | 52 +- 5 files changed, 1402 insertions(+), 135 deletions(-) diff --git a/proto/vulcanize/registry/v1beta1/attributes.proto b/proto/vulcanize/registry/v1beta1/attributes.proto index 49f5106c..d8a5809a 100644 --- a/proto/vulcanize/registry/v1beta1/attributes.proto +++ b/proto/vulcanize/registry/v1beta1/attributes.proto @@ -41,7 +41,7 @@ message ApplicationRecord { string license = 6 [(gogoproto.moretags) = "json:\"license\" yaml:\"license\""]; string author = 7 [(gogoproto.moretags) = "json:\"author\" yaml:\"author\""]; string repository = 8 [(gogoproto.moretags) = "json:\"repository\" yaml:\"repository\""]; - string repository_tag = 9 [(gogoproto.moretags) = "json:\"repositoryTag\" yaml:\"repositoryTag\""]; + string repository_ref = 9 [(gogoproto.moretags) = "json:\"repositoryRef\" yaml:\"repositoryRef\""]; string app_version = 10 [(gogoproto.moretags) = "json:\"appVersion\" yaml:\"appVersion\""]; string app_type = 11 [(gogoproto.moretags) = "json:\"appType\" yaml:\"appType\""]; string engines = 12 [(gogoproto.moretags) = "json:\"engines\" yaml:\"engines\""]; @@ -51,13 +51,37 @@ message ApplicationRecord { repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; } -message WebAppDeploymentRecord { +message DnsRecord { + string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""]; + string name = 2 [(gogoproto.moretags) = "json:\"name\" yaml:\"name\""]; + string version = 3 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; + string resource_type = 4 [(gogoproto.moretags) = "json:\"resourceType\" yaml:\"resourceType\""]; + string value = 5 [(gogoproto.moretags) = "json:\"value\" yaml:\"value\""]; + string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""]; + repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; +} + +message ApplicationDeploymentRequest { + string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""]; + string name = 2 [(gogoproto.moretags) = "json:\"name\" yaml:\"name\""]; + string version = 3 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; + string application = 4 [(gogoproto.moretags) = "json:\"application\" yaml:\"application\""]; + string dns = 5 [(gogoproto.moretags) = "json:\"dns\" yaml:\"dns\""]; + string config = 6 [(gogoproto.moretags) = "json:\"config\" yaml:\"config\""]; + repeated string crn = 7 [(gogoproto.moretags) = "json:\"crn\" yaml:\"crn\""]; + string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""]; + repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; +} + +message ApplicationDeploymentRecord { string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""]; string name = 2 [(gogoproto.moretags) = "json:\"name\" yaml:\"name\""]; string description = 3 [(gogoproto.moretags) = "json:\"description\" yaml:\"description\""]; string version = 4 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; string application = 5 [(gogoproto.moretags) = "json:\"application\" yaml:\"application\""]; string url = 6 [(gogoproto.moretags) = "json:\"url\" yaml:\"url\""]; + string dns = 7 [(gogoproto.moretags) = "json:\"dns\" yaml:\"dns\""]; + string request = 8 [(gogoproto.moretags) = "json:\"request\" yaml:\"request\""]; string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""]; repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; } @@ -72,3 +96,4 @@ message GeneralRecord { string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""]; repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; } + diff --git a/x/registry/keeper/keeper.go b/x/registry/keeper/keeper.go index f3ec26f1..7e257abf 100644 --- a/x/registry/keeper/keeper.go +++ b/x/registry/keeper/keeper.go @@ -344,7 +344,8 @@ func (k Keeper) ProcessAttributes(ctx sdk.Context, record types.RecordType) erro } } } - case "WebsiteRegistrationRecord", "ApplicationRecord", "WebAppDeploymentRecord", "GeneralRecord": + case "WebsiteRegistrationRecord", "ApplicationRecord", "ApplicationDeploymentRequest", + "ApplicationDeploymentRecord", "DnsRecord", "GeneralRecord": { // #nosec G705 for key := range record.Attributes { diff --git a/x/registry/types/attributes.pb.go b/x/registry/types/attributes.pb.go index 32026ec6..3160445c 100644 --- a/x/registry/types/attributes.pb.go +++ b/x/registry/types/attributes.pb.go @@ -276,7 +276,7 @@ type ApplicationRecord struct { License string `protobuf:"bytes,6,opt,name=license,proto3" json:"license,omitempty" json:"license" yaml:"license"` Author string `protobuf:"bytes,7,opt,name=author,proto3" json:"author,omitempty" json:"author" yaml:"author"` Repository string `protobuf:"bytes,8,opt,name=repository,proto3" json:"repository,omitempty" json:"repository" yaml:"repository"` - RepositoryTag string `protobuf:"bytes,9,opt,name=repository_tag,json=repositoryTag,proto3" json:"repository_tag,omitempty" json:"repositoryTag" yaml:"repositoryTag"` + RepositoryRef string `protobuf:"bytes,9,opt,name=repository_ref,json=repositoryRef,proto3" json:"repository_ref,omitempty" json:"repositoryRef" yaml:"repositoryRef"` AppVersion string `protobuf:"bytes,10,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty" json:"appVersion" yaml:"appVersion"` AppType string `protobuf:"bytes,11,opt,name=app_type,json=appType,proto3" json:"app_type,omitempty" json:"appType" yaml:"appType"` Engines string `protobuf:"bytes,12,opt,name=engines,proto3" json:"engines,omitempty" json:"engines" yaml:"engines"` @@ -375,9 +375,9 @@ func (m *ApplicationRecord) GetRepository() string { return "" } -func (m *ApplicationRecord) GetRepositoryTag() string { +func (m *ApplicationRecord) GetRepositoryRef() string { if m != nil { - return m.RepositoryTag + return m.RepositoryRef } return "" } @@ -431,29 +431,28 @@ func (m *ApplicationRecord) GetTags() []string { return nil } -type WebAppDeploymentRecord struct { - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty" json:"type" yaml:"type"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" json:"name" yaml:"name"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" json:"description" yaml:"description"` - Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty" json:"version" yaml:"version"` - Application string `protobuf:"bytes,5,opt,name=application,proto3" json:"application,omitempty" json:"application" yaml:"application"` - Url string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty" json:"url" yaml:"url"` - Meta string `protobuf:"bytes,20,opt,name=meta,proto3" json:"meta,omitempty" json:"meta" yaml:"meta"` - Tags []string `protobuf:"bytes,21,rep,name=tags,proto3" json:"tags,omitempty" json:"tags" yaml:"tags"` +type DnsRecord struct { + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty" json:"type" yaml:"type"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" json:"name" yaml:"name"` + Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty" json:"version" yaml:"version"` + ResourceType string `protobuf:"bytes,4,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty" json:"resourceType" yaml:"resourceType"` + Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty" json:"value" yaml:"value"` + Meta string `protobuf:"bytes,20,opt,name=meta,proto3" json:"meta,omitempty" json:"meta" yaml:"meta"` + Tags []string `protobuf:"bytes,21,rep,name=tags,proto3" json:"tags,omitempty" json:"tags" yaml:"tags"` } -func (m *WebAppDeploymentRecord) Reset() { *m = WebAppDeploymentRecord{} } -func (m *WebAppDeploymentRecord) String() string { return proto.CompactTextString(m) } -func (*WebAppDeploymentRecord) ProtoMessage() {} -func (*WebAppDeploymentRecord) Descriptor() ([]byte, []int) { +func (m *DnsRecord) Reset() { *m = DnsRecord{} } +func (m *DnsRecord) String() string { return proto.CompactTextString(m) } +func (*DnsRecord) ProtoMessage() {} +func (*DnsRecord) Descriptor() ([]byte, []int) { return fileDescriptor_f305abc771332c96, []int{4} } -func (m *WebAppDeploymentRecord) XXX_Unmarshal(b []byte) error { +func (m *DnsRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *WebAppDeploymentRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *DnsRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_WebAppDeploymentRecord.Marshal(b, m, deterministic) + return xxx_messageInfo_DnsRecord.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -463,68 +462,285 @@ func (m *WebAppDeploymentRecord) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *WebAppDeploymentRecord) XXX_Merge(src proto.Message) { - xxx_messageInfo_WebAppDeploymentRecord.Merge(m, src) +func (m *DnsRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_DnsRecord.Merge(m, src) } -func (m *WebAppDeploymentRecord) XXX_Size() int { +func (m *DnsRecord) XXX_Size() int { return m.Size() } -func (m *WebAppDeploymentRecord) XXX_DiscardUnknown() { - xxx_messageInfo_WebAppDeploymentRecord.DiscardUnknown(m) +func (m *DnsRecord) XXX_DiscardUnknown() { + xxx_messageInfo_DnsRecord.DiscardUnknown(m) } -var xxx_messageInfo_WebAppDeploymentRecord proto.InternalMessageInfo +var xxx_messageInfo_DnsRecord proto.InternalMessageInfo -func (m *WebAppDeploymentRecord) GetType() string { +func (m *DnsRecord) GetType() string { if m != nil { return m.Type } return "" } -func (m *WebAppDeploymentRecord) GetName() string { +func (m *DnsRecord) GetName() string { if m != nil { return m.Name } return "" } -func (m *WebAppDeploymentRecord) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -func (m *WebAppDeploymentRecord) GetVersion() string { +func (m *DnsRecord) GetVersion() string { if m != nil { return m.Version } return "" } -func (m *WebAppDeploymentRecord) GetApplication() string { +func (m *DnsRecord) GetResourceType() string { if m != nil { - return m.Application + return m.ResourceType } return "" } -func (m *WebAppDeploymentRecord) GetUrl() string { +func (m *DnsRecord) GetValue() string { if m != nil { - return m.Url + return m.Value } return "" } -func (m *WebAppDeploymentRecord) GetMeta() string { +func (m *DnsRecord) GetMeta() string { if m != nil { return m.Meta } return "" } -func (m *WebAppDeploymentRecord) GetTags() []string { +func (m *DnsRecord) GetTags() []string { + if m != nil { + return m.Tags + } + return nil +} + +type ApplicationDeploymentRequest struct { + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty" json:"type" yaml:"type"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" json:"name" yaml:"name"` + Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty" json:"version" yaml:"version"` + Application string `protobuf:"bytes,4,opt,name=application,proto3" json:"application,omitempty" json:"application" yaml:"application"` + Dns string `protobuf:"bytes,5,opt,name=dns,proto3" json:"dns,omitempty" json:"dns" yaml:"dns"` + Config string `protobuf:"bytes,6,opt,name=config,proto3" json:"config,omitempty" json:"config" yaml:"config"` + Crn []string `protobuf:"bytes,7,rep,name=crn,proto3" json:"crn,omitempty" json:"crn" yaml:"crn"` + Meta string `protobuf:"bytes,20,opt,name=meta,proto3" json:"meta,omitempty" json:"meta" yaml:"meta"` + Tags []string `protobuf:"bytes,21,rep,name=tags,proto3" json:"tags,omitempty" json:"tags" yaml:"tags"` +} + +func (m *ApplicationDeploymentRequest) Reset() { *m = ApplicationDeploymentRequest{} } +func (m *ApplicationDeploymentRequest) String() string { return proto.CompactTextString(m) } +func (*ApplicationDeploymentRequest) ProtoMessage() {} +func (*ApplicationDeploymentRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f305abc771332c96, []int{5} +} +func (m *ApplicationDeploymentRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApplicationDeploymentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ApplicationDeploymentRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ApplicationDeploymentRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplicationDeploymentRequest.Merge(m, src) +} +func (m *ApplicationDeploymentRequest) XXX_Size() int { + return m.Size() +} +func (m *ApplicationDeploymentRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ApplicationDeploymentRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ApplicationDeploymentRequest proto.InternalMessageInfo + +func (m *ApplicationDeploymentRequest) GetType() string { + if m != nil { + return m.Type + } + return "" +} + +func (m *ApplicationDeploymentRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ApplicationDeploymentRequest) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *ApplicationDeploymentRequest) GetApplication() string { + if m != nil { + return m.Application + } + return "" +} + +func (m *ApplicationDeploymentRequest) GetDns() string { + if m != nil { + return m.Dns + } + return "" +} + +func (m *ApplicationDeploymentRequest) GetConfig() string { + if m != nil { + return m.Config + } + return "" +} + +func (m *ApplicationDeploymentRequest) GetCrn() []string { + if m != nil { + return m.Crn + } + return nil +} + +func (m *ApplicationDeploymentRequest) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +func (m *ApplicationDeploymentRequest) GetTags() []string { + if m != nil { + return m.Tags + } + return nil +} + +type ApplicationDeploymentRecord struct { + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty" json:"type" yaml:"type"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" json:"name" yaml:"name"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" json:"description" yaml:"description"` + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty" json:"version" yaml:"version"` + Application string `protobuf:"bytes,5,opt,name=application,proto3" json:"application,omitempty" json:"application" yaml:"application"` + Url string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty" json:"url" yaml:"url"` + Dns string `protobuf:"bytes,7,opt,name=dns,proto3" json:"dns,omitempty" json:"dns" yaml:"dns"` + Request string `protobuf:"bytes,8,opt,name=request,proto3" json:"request,omitempty" json:"request" yaml:"request"` + Meta string `protobuf:"bytes,20,opt,name=meta,proto3" json:"meta,omitempty" json:"meta" yaml:"meta"` + Tags []string `protobuf:"bytes,21,rep,name=tags,proto3" json:"tags,omitempty" json:"tags" yaml:"tags"` +} + +func (m *ApplicationDeploymentRecord) Reset() { *m = ApplicationDeploymentRecord{} } +func (m *ApplicationDeploymentRecord) String() string { return proto.CompactTextString(m) } +func (*ApplicationDeploymentRecord) ProtoMessage() {} +func (*ApplicationDeploymentRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_f305abc771332c96, []int{6} +} +func (m *ApplicationDeploymentRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApplicationDeploymentRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ApplicationDeploymentRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ApplicationDeploymentRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplicationDeploymentRecord.Merge(m, src) +} +func (m *ApplicationDeploymentRecord) XXX_Size() int { + return m.Size() +} +func (m *ApplicationDeploymentRecord) XXX_DiscardUnknown() { + xxx_messageInfo_ApplicationDeploymentRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_ApplicationDeploymentRecord proto.InternalMessageInfo + +func (m *ApplicationDeploymentRecord) GetType() string { + if m != nil { + return m.Type + } + return "" +} + +func (m *ApplicationDeploymentRecord) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ApplicationDeploymentRecord) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *ApplicationDeploymentRecord) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *ApplicationDeploymentRecord) GetApplication() string { + if m != nil { + return m.Application + } + return "" +} + +func (m *ApplicationDeploymentRecord) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} + +func (m *ApplicationDeploymentRecord) GetDns() string { + if m != nil { + return m.Dns + } + return "" +} + +func (m *ApplicationDeploymentRecord) GetRequest() string { + if m != nil { + return m.Request + } + return "" +} + +func (m *ApplicationDeploymentRecord) GetMeta() string { + if m != nil { + return m.Meta + } + return "" +} + +func (m *ApplicationDeploymentRecord) GetTags() []string { if m != nil { return m.Tags } @@ -546,7 +762,7 @@ func (m *GeneralRecord) Reset() { *m = GeneralRecord{} } func (m *GeneralRecord) String() string { return proto.CompactTextString(m) } func (*GeneralRecord) ProtoMessage() {} func (*GeneralRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_f305abc771332c96, []int{5} + return fileDescriptor_f305abc771332c96, []int{7} } func (m *GeneralRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -636,7 +852,9 @@ func init() { proto.RegisterType((*X500)(nil), "vulcanize.registry.v1beta1.X500") proto.RegisterType((*WebsiteRegistrationRecord)(nil), "vulcanize.registry.v1beta1.WebsiteRegistrationRecord") proto.RegisterType((*ApplicationRecord)(nil), "vulcanize.registry.v1beta1.ApplicationRecord") - proto.RegisterType((*WebAppDeploymentRecord)(nil), "vulcanize.registry.v1beta1.WebAppDeploymentRecord") + proto.RegisterType((*DnsRecord)(nil), "vulcanize.registry.v1beta1.DnsRecord") + proto.RegisterType((*ApplicationDeploymentRequest)(nil), "vulcanize.registry.v1beta1.ApplicationDeploymentRequest") + proto.RegisterType((*ApplicationDeploymentRecord)(nil), "vulcanize.registry.v1beta1.ApplicationDeploymentRecord") proto.RegisterType((*GeneralRecord)(nil), "vulcanize.registry.v1beta1.GeneralRecord") } @@ -645,75 +863,84 @@ func init() { } var fileDescriptor_f305abc771332c96 = []byte{ - // 1082 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x57, 0x4f, 0x6f, 0xdc, 0x44, - 0x14, 0xcf, 0x66, 0x37, 0xff, 0x26, 0x49, 0xd5, 0x0e, 0x2d, 0x75, 0x1a, 0xba, 0x4e, 0xb7, 0xaa, - 0x92, 0x2a, 0x74, 0x37, 0x25, 0xaa, 0x40, 0x80, 0x84, 0x92, 0x06, 0x4a, 0x54, 0x84, 0xca, 0x34, - 0x50, 0xc4, 0x65, 0x99, 0xb5, 0x07, 0x67, 0x90, 0xd7, 0x63, 0x8d, 0xc7, 0xab, 0x2e, 0x1f, 0x80, - 0x33, 0x1f, 0x8b, 0x63, 0x05, 0x17, 0x4e, 0x56, 0x95, 0x9c, 0x38, 0x70, 0xf1, 0x27, 0x40, 0xf3, - 0xcf, 0x3b, 0xeb, 0x55, 0x50, 0x39, 0xb4, 0x97, 0xde, 0xde, 0xbf, 0xdf, 0xef, 0x3d, 0xcf, 0x7b, - 0x6f, 0x46, 0x06, 0xbb, 0xa3, 0x3c, 0x0e, 0x70, 0x42, 0x7f, 0x21, 0x3d, 0x4e, 0x22, 0x9a, 0x09, - 0x3e, 0xee, 0x8d, 0xee, 0x0f, 0x88, 0xc0, 0xf7, 0x7b, 0x58, 0x08, 0x4e, 0x07, 0xb9, 0x20, 0x59, - 0x37, 0xe5, 0x4c, 0x30, 0x78, 0xa3, 0x0a, 0xee, 0xda, 0xe0, 0xae, 0x09, 0xbe, 0x71, 0x35, 0x62, - 0x11, 0x53, 0x61, 0x3d, 0x29, 0x69, 0x44, 0xa7, 0x98, 0x07, 0x9b, 0x4f, 0x09, 0x1f, 0xd1, 0x80, - 0x3c, 0xe1, 0x6c, 0x44, 0x43, 0xc2, 0x91, 0x46, 0x62, 0x41, 0x59, 0x02, 0x3f, 0x02, 0x4b, 0x03, - 0x96, 0x84, 0x7d, 0x1a, 0x7a, 0x8d, 0xad, 0xc6, 0xce, 0xca, 0xa1, 0x5f, 0x16, 0xfe, 0xe6, 0xcf, - 0x19, 0x4b, 0x3e, 0xee, 0x48, 0xc7, 0x71, 0xd8, 0x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, 0xbd, 0xda, 0xcc, 0x72, 0x3b, 0x95, 0x38, 0x4e, 0x67, 0x80, 0x2a, 0x13, 0x72, - 0xd1, 0xf6, 0xe9, 0x5b, 0x7c, 0xa5, 0xa7, 0xef, 0xf5, 0xb7, 0xf8, 0xcf, 0x26, 0x58, 0x7f, 0x44, - 0x12, 0xc2, 0x71, 0xfc, 0x76, 0xde, 0xd9, 0x01, 0x16, 0x24, 0x92, 0x57, 0xdf, 0xcc, 0x9d, 0x6d, - 0x3d, 0xd5, 0xe6, 0x59, 0x1d, 0x55, 0x20, 0xb8, 0x0f, 0x16, 0x46, 0x38, 0xce, 0xed, 0x8d, 0x7d, - 0xb3, 0x2c, 0xfc, 0x0d, 0x93, 0x5b, 0x9a, 0xab, 0xcc, 0x4a, 0x41, 0x3a, 0xf6, 0xf5, 0x77, 0xf5, - 0xf0, 0x8b, 0xdf, 0xcf, 0xda, 0x8d, 0x17, 0x67, 0xed, 0xc6, 0xcb, 0xb3, 0x76, 0xe3, 0xb7, 0xf3, - 0xf6, 0xdc, 0x8b, 0xf3, 0xf6, 0xdc, 0x5f, 0xe7, 0xed, 0xb9, 0x1f, 0xde, 0x8f, 0xa8, 0x38, 0xcd, - 0x07, 0xdd, 0x80, 0x0d, 0x7b, 0x01, 0xe1, 0xc1, 0x3d, 0xca, 0x7a, 0xe6, 0x17, 0x23, 0xec, 0x3d, - 0x9f, 0xfc, 0x57, 0xc9, 0xce, 0x66, 0x83, 0x45, 0xf5, 0x67, 0xb4, 0xff, 0x6f, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x7d, 0x6f, 0x20, 0x9d, 0x7a, 0x0d, 0x00, 0x00, + // 1229 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0xaf, 0x63, 0xc7, 0xae, 0x27, 0x49, 0xd5, 0x2e, 0xad, 0xba,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x15, 0xd7, 0xff, 0x6b, 0x05, 0xbb, 0xee, + 0x39, 0xfb, 0xec, 0x0a, 0xf2, 0x1b, 0xf6, 0xc0, 0x4a, 0x48, 0x7d, 0x14, 0x12, 0x3e, 0x55, 0xd9, + 0x55, 0x37, 0xee, 0xe7, 0x99, 0x77, 0x47, 0x0f, 0x88, 0x76, 0xdb, 0x99, 0x67, 0x6c, 0x70, 0xd9, + 0x56, 0xc5, 0xbc, 0x25, 0x1c, 0x71, 0xac, 0xd2, 0x2d, 0x56, 0xe7, 0x4d, 0xfa, 0xec, 0x5c, 0xa5, + 0x01, 0xb6, 0x0b, 0x59, 0xf4, 0xda, 0xa7, 0x69, 0xc4, 0xd9, 0x74, 0xbe, 0xd7, 0xda, 0x51, 0xb6, + 0x47, 0xa9, 0xd0, 0x20, 0xba, 0x7f, 0xd7, 0xc1, 0xea, 0x57, 0x78, 0x98, 0x10, 0x8e, 0x6d, 0x12, + 0x41, 0xec, 0x53, 0x16, 0x38, 0xf7, 0x41, 0x3d, 0x65, 0xa1, 0x6e, 0xfc, 0x6a, 0x9e, 0x79, 0x57, + 0x54, 0xda, 0x94, 0x85, 0x26, 0xa5, 0x10, 0xa1, 0x88, 0x72, 0x7e, 0xac, 0x81, 0xeb, 0x0c, 0xc7, + 0x74, 0xc0, 0xac, 0x44, 0x03, 0x26, 0x33, 0x0d, 0xfc, 0x82, 0x50, 0x1f, 0xe5, 0x99, 0xb7, 0xa5, + 0xd2, 0x88, 0xe8, 0xf9, 0x55, 0x9f, 0xec, 0xee, 0x98, 0xe4, 0x27, 0x07, 0xc0, 0xd5, 0x13, 0x7c, + 0x24, 0x70, 0x10, 0x70, 0x86, 0x29, 0x09, 0x83, 0x01, 0x62, 0x9c, 0x1c, 0x20, 0x9f, 0xcb, 0xd5, + 0xe7, 0x66, 0x41, 0xc6, 0x6c, 0xe9, 0x10, 0x6b, 0xd1, 0x39, 0x3b, 0xbc, 0x38, 0x6b, 0x22, 0x81, + 0xb3, 0x0b, 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0x14, 0xbe, 0x99, 0x4f, 0x37, 0x1f, 0x71, 0x3c, 0x12, 0x2f, + 0xa0, 0xb9, 0xa7, 0x9b, 0xf1, 0x14, 0x44, 0x37, 0x3a, 0x2c, 0x40, 0xe5, 0x4d, 0xd1, 0x7c, 0x9d, + 0x6e, 0x8a, 0xed, 0x8f, 0x7f, 0x39, 0xea, 0xd4, 0x5e, 0x1e, 0x75, 0x6a, 0x7f, 0x1e, 0x75, 0x6a, + 0x3f, 0x1d, 0x77, 0xce, 0xbd, 0x3c, 0xee, 0x9c, 0xfb, 0xe3, 0xb8, 0x73, 0xee, 0x9b, 0xb7, 0x47, + 0x84, 0x1f, 0xa6, 0xc3, 0x9e, 0x4f, 0xc7, 0x7d, 0x1f, 0x33, 0xff, 0x01, 0xa1, 0x7d, 0xfd, 0xa7, + 0x21, 0xe8, 0xbf, 0x28, 0x7f, 0xaf, 0x88, 0xce, 0x26, 0xc3, 0xa6, 0xfc, 0x41, 0xb2, 0xf9, 0x6f, + 0x00, 0x00, 0x00, 0xff, 0xff, 0xf3, 0xa5, 0x5d, 0x1c, 0x81, 0x11, 0x00, 0x00, } func (m *ServiceProviderRegistration) Marshal() (dAtA []byte, err error) { @@ -988,10 +1215,10 @@ func (m *ApplicationRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x52 } - if len(m.RepositoryTag) > 0 { - i -= len(m.RepositoryTag) - copy(dAtA[i:], m.RepositoryTag) - i = encodeVarintAttributes(dAtA, i, uint64(len(m.RepositoryTag))) + if len(m.RepositoryRef) > 0 { + i -= len(m.RepositoryRef) + copy(dAtA[i:], m.RepositoryRef) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.RepositoryRef))) i-- dAtA[i] = 0x4a } @@ -1054,7 +1281,7 @@ func (m *ApplicationRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *WebAppDeploymentRecord) Marshal() (dAtA []byte, err error) { +func (m *DnsRecord) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1064,12 +1291,12 @@ func (m *WebAppDeploymentRecord) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WebAppDeploymentRecord) MarshalTo(dAtA []byte) (int, error) { +func (m *DnsRecord) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *WebAppDeploymentRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *DnsRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1094,6 +1321,192 @@ func (m *WebAppDeploymentRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) i-- dAtA[i] = 0xa2 } + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x2a + } + if len(m.ResourceType) > 0 { + i -= len(m.ResourceType) + copy(dAtA[i:], m.ResourceType) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.ResourceType))) + i-- + dAtA[i] = 0x22 + } + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ApplicationDeploymentRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApplicationDeploymentRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApplicationDeploymentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xaa + } + } + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 + } + if len(m.Crn) > 0 { + for iNdEx := len(m.Crn) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Crn[iNdEx]) + copy(dAtA[i:], m.Crn[iNdEx]) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.Crn[iNdEx]))) + i-- + dAtA[i] = 0x3a + } + } + if len(m.Config) > 0 { + i -= len(m.Config) + copy(dAtA[i:], m.Config) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.Config))) + i-- + dAtA[i] = 0x32 + } + if len(m.Dns) > 0 { + i -= len(m.Dns) + copy(dAtA[i:], m.Dns) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.Dns))) + i-- + dAtA[i] = 0x2a + } + if len(m.Application) > 0 { + i -= len(m.Application) + copy(dAtA[i:], m.Application) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.Application))) + i-- + dAtA[i] = 0x22 + } + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ApplicationDeploymentRecord) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApplicationDeploymentRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApplicationDeploymentRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xaa + } + } + if len(m.Meta) > 0 { + i -= len(m.Meta) + copy(dAtA[i:], m.Meta) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.Meta))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 + } + if len(m.Request) > 0 { + i -= len(m.Request) + copy(dAtA[i:], m.Request) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.Request))) + i-- + dAtA[i] = 0x42 + } + if len(m.Dns) > 0 { + i -= len(m.Dns) + copy(dAtA[i:], m.Dns) + i = encodeVarintAttributes(dAtA, i, uint64(len(m.Dns))) + i-- + dAtA[i] = 0x3a + } if len(m.Url) > 0 { i -= len(m.Url) copy(dAtA[i:], m.Url) @@ -1368,7 +1781,7 @@ func (m *ApplicationRecord) Size() (n int) { if l > 0 { n += 1 + l + sovAttributes(uint64(l)) } - l = len(m.RepositoryTag) + l = len(m.RepositoryRef) if l > 0 { n += 1 + l + sovAttributes(uint64(l)) } @@ -1409,7 +1822,95 @@ func (m *ApplicationRecord) Size() (n int) { return n } -func (m *WebAppDeploymentRecord) Size() (n int) { +func (m *DnsRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + if l > 0 { + n += 1 + l + sovAttributes(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAttributes(uint64(l)) + } + l = len(m.Version) + if l > 0 { + n += 1 + l + sovAttributes(uint64(l)) + } + l = len(m.ResourceType) + if l > 0 { + n += 1 + l + sovAttributes(uint64(l)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovAttributes(uint64(l)) + } + l = len(m.Meta) + if l > 0 { + n += 2 + l + sovAttributes(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 2 + l + sovAttributes(uint64(l)) + } + } + return n +} + +func (m *ApplicationDeploymentRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + if l > 0 { + n += 1 + l + sovAttributes(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAttributes(uint64(l)) + } + l = len(m.Version) + if l > 0 { + n += 1 + l + sovAttributes(uint64(l)) + } + l = len(m.Application) + if l > 0 { + n += 1 + l + sovAttributes(uint64(l)) + } + l = len(m.Dns) + if l > 0 { + n += 1 + l + sovAttributes(uint64(l)) + } + l = len(m.Config) + if l > 0 { + n += 1 + l + sovAttributes(uint64(l)) + } + if len(m.Crn) > 0 { + for _, s := range m.Crn { + l = len(s) + n += 1 + l + sovAttributes(uint64(l)) + } + } + l = len(m.Meta) + if l > 0 { + n += 2 + l + sovAttributes(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 2 + l + sovAttributes(uint64(l)) + } + } + return n +} + +func (m *ApplicationDeploymentRecord) Size() (n int) { if m == nil { return 0 } @@ -1439,6 +1940,14 @@ func (m *WebAppDeploymentRecord) Size() (n int) { if l > 0 { n += 1 + l + sovAttributes(uint64(l)) } + l = len(m.Dns) + if l > 0 { + n += 1 + l + sovAttributes(uint64(l)) + } + l = len(m.Request) + if l > 0 { + n += 1 + l + sovAttributes(uint64(l)) + } l = len(m.Meta) if l > 0 { n += 2 + l + sovAttributes(uint64(l)) @@ -2486,7 +2995,7 @@ func (m *ApplicationRecord) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RepositoryTag", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RepositoryRef", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2514,7 +3023,7 @@ func (m *ApplicationRecord) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RepositoryTag = string(dAtA[iNdEx:postIndex]) + m.RepositoryRef = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 10: if wireType != 2 { @@ -2761,7 +3270,7 @@ func (m *ApplicationRecord) Unmarshal(dAtA []byte) error { } return nil } -func (m *WebAppDeploymentRecord) Unmarshal(dAtA []byte) error { +func (m *DnsRecord) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2784,10 +3293,622 @@ func (m *WebAppDeploymentRecord) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WebAppDeploymentRecord: wiretype end group for non-group") + return fmt.Errorf("proto: DnsRecord: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WebAppDeploymentRecord: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DnsRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 21: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAttributes(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributes + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApplicationDeploymentRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplicationDeploymentRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplicationDeploymentRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Application", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Application = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dns", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Dns = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Config = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Crn", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Crn = append(m.Crn, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Meta = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 21: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAttributes(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributes + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApplicationDeploymentRecord) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApplicationDeploymentRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplicationDeploymentRecord: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2982,6 +4103,70 @@ func (m *WebAppDeploymentRecord) Unmarshal(dAtA []byte) error { } m.Url = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dns", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Dns = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAttributes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Request = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 20: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) diff --git a/x/registry/types/codec.go b/x/registry/types/codec.go index 998bdef7..ef26a4c5 100644 --- a/x/registry/types/codec.go +++ b/x/registry/types/codec.go @@ -58,9 +58,21 @@ func RegisterInterfaces(registry types.InterfaceRegistry) { ) registry.RegisterInterface( - "vulcanize.registry.v1beta1.WebAppDeploymentRecord", + "vulcanize.registry.v1beta1.ApplicationDeploymentRequest", (*Attributes)(nil), - &WebAppDeploymentRecord{}, + &ApplicationDeploymentRequest{}, + ) + + registry.RegisterInterface( + "vulcanize.registry.v1beta1.ApplicationDeploymentRecord", + (*Attributes)(nil), + &ApplicationDeploymentRecord{}, + ) + + registry.RegisterInterface( + "vulcanize.registry.v1beta1.DnsRecord", + (*Attributes)(nil), + &DnsRecord{}, ) registry.RegisterInterface( diff --git a/x/registry/types/types.go b/x/registry/types/types.go index dbd258d9..dd062e0b 100644 --- a/x/registry/types/types.go +++ b/x/registry/types/types.go @@ -77,9 +77,27 @@ func payLoadAttributes(recordPayLoad map[string]interface{}) (*codectypes.Any, e } return codectypes.NewAnyWithValue(&attributes) } - case "WebAppDeploymentRecord": + case "ApplicationDeploymentRequest": { - var attributes WebAppDeploymentRecord + var attributes ApplicationDeploymentRequest + err := json.Unmarshal(bz, &attributes) + if err != nil { + return &codectypes.Any{}, err + } + return codectypes.NewAnyWithValue(&attributes) + } + case "ApplicationDeploymentRecord": + { + var attributes ApplicationDeploymentRecord + err := json.Unmarshal(bz, &attributes) + if err != nil { + return &codectypes.Any{}, err + } + return codectypes.NewAnyWithValue(&attributes) + } + case "DnsRecord": + { + var attributes DnsRecord err := json.Unmarshal(bz, &attributes) if err != nil { return &codectypes.Any{}, err @@ -180,9 +198,35 @@ func GetJSONBytesFromAny(any codectypes.Any) ([]byte, error) { panic("JSON marshal error") } } - case "WebAppDeploymentRecord": + case "ApplicationDeploymentRequest": { - var attributes WebAppDeploymentRecord + var attributes ApplicationDeploymentRequest + err := proto.Unmarshal(any.Value, &attributes) + if err != nil { + panic("Proto unmarshal error") + } + + bz, err = json.Marshal(attributes) + if err != nil { + panic("JSON marshal error") + } + } + case "ApplicationDeploymentRecord": + { + var attributes ApplicationDeploymentRecord + err := proto.Unmarshal(any.Value, &attributes) + if err != nil { + panic("Proto unmarshal error") + } + + bz, err = json.Marshal(attributes) + if err != nil { + panic("JSON marshal error") + } + } + case "DnsRecord": + { + var attributes DnsRecord err := proto.Unmarshal(any.Value, &attributes) if err != nil { panic("Proto unmarshal error")