Add ApplicationDeploymentRemovalRequests (#130)
Some checks failed
Pull Request Labeler / triage (push) Successful in 24s
Lint / Run flake8 on python integration tests (push) Failing after 30s
CodeQL / Analyze (go) (push) Failing after 57s
Tests / cleanup-runs (push) Has been skipped
Lint / Run golangci-lint (push) Successful in 5m11s
Run Gosec / Gosec (push) Failing after 7m1s
Tests / test-unit-cover (push) Failing after 7m1s
Tests / sdk_tests (push) Failing after 2m6s
Tests / test-rpc (push) Failing after 4m24s
Tests / test-importer (push) Successful in 8m39s
Some checks failed
Pull Request Labeler / triage (push) Successful in 24s
Lint / Run flake8 on python integration tests (push) Failing after 30s
CodeQL / Analyze (go) (push) Failing after 57s
Tests / cleanup-runs (push) Has been skipped
Lint / Run golangci-lint (push) Successful in 5m11s
Run Gosec / Gosec (push) Failing after 7m1s
Tests / test-unit-cover (push) Failing after 7m1s
Tests / sdk_tests (push) Failing after 2m6s
Tests / test-rpc (push) Failing after 4m24s
Tests / test-importer (push) Successful in 8m39s
``` message ApplicationDeploymentRemovalRequest { string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""]; string version = 2 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; string deployment = 3 [(gogoproto.moretags) = "json:\"deployment\" yaml:\"deployment\""]; string request = 4 [(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\""]; } message ApplicationDeploymentRemovalRecord { string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""]; string version = 2 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; string deployment = 3 [(gogoproto.moretags) = "json:\"deployment\" yaml:\"deployment\""]; string request = 4 [(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\""]; } ``` Reviewed-on: cerc-io/laconicd#130 Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com> Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
This commit is contained in:
parent
ae07fc0147
commit
ed81bba3ed
@ -101,6 +101,24 @@ message ApplicationDeploymentRecord {
|
|||||||
repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""];
|
repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message ApplicationDeploymentRemovalRequest {
|
||||||
|
string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""];
|
||||||
|
string version = 2 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""];
|
||||||
|
string deployment = 3 [(gogoproto.moretags) = "json:\"deployment\" yaml:\"deployment\""];
|
||||||
|
string request = 4 [(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\""];
|
||||||
|
}
|
||||||
|
|
||||||
|
message ApplicationDeploymentRemovalRecord {
|
||||||
|
string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""];
|
||||||
|
string version = 2 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""];
|
||||||
|
string deployment = 3 [(gogoproto.moretags) = "json:\"deployment\" yaml:\"deployment\""];
|
||||||
|
string request = 4 [(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\""];
|
||||||
|
}
|
||||||
|
|
||||||
message GeneralRecord {
|
message GeneralRecord {
|
||||||
string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""];
|
string type = 1 [(gogoproto.moretags) = "json:\"type\" yaml:\"type\""];
|
||||||
string name = 2 [(gogoproto.moretags) = "json:\"name\" yaml:\"name\""];
|
string name = 2 [(gogoproto.moretags) = "json:\"name\" yaml:\"name\""];
|
||||||
|
@ -346,7 +346,8 @@ func (k Keeper) ProcessAttributes(ctx sdk.Context, record types.RecordType) erro
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
case "WebsiteRegistrationRecord", "ApplicationRecord", "ApplicationDeploymentRequest",
|
case "WebsiteRegistrationRecord", "ApplicationRecord", "ApplicationDeploymentRequest",
|
||||||
"ApplicationDeploymentRecord", "ApplicationArtifact", "DnsRecord", "GeneralRecord":
|
"ApplicationDeploymentRecord", "ApplicationArtifact", "ApplicationDeploymentRemovalRequest",
|
||||||
|
"ApplicationDeploymentRemovalRecord", "DnsRecord", "GeneralRecord":
|
||||||
{
|
{
|
||||||
// #nosec G705
|
// #nosec G705
|
||||||
for key := range record.Attributes {
|
for key := range record.Attributes {
|
||||||
|
1039
x/registry/types/attributes.pb.go
generated
1039
x/registry/types/attributes.pb.go
generated
File diff suppressed because it is too large
Load Diff
@ -75,6 +75,18 @@ func RegisterInterfaces(registry types.InterfaceRegistry) {
|
|||||||
&ApplicationArtifact{},
|
&ApplicationArtifact{},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
registry.RegisterInterface(
|
||||||
|
"vulcanize.registry.v1beta1.ApplicationDeploymentRemovalRequest",
|
||||||
|
(*Attributes)(nil),
|
||||||
|
&ApplicationDeploymentRemovalRequest{},
|
||||||
|
)
|
||||||
|
|
||||||
|
registry.RegisterInterface(
|
||||||
|
"vulcanize.registry.v1beta1.ApplicationDeploymentRemovalRecord",
|
||||||
|
(*Attributes)(nil),
|
||||||
|
&ApplicationDeploymentRemovalRecord{},
|
||||||
|
)
|
||||||
|
|
||||||
registry.RegisterInterface(
|
registry.RegisterInterface(
|
||||||
"vulcanize.registry.v1beta1.DnsRecord",
|
"vulcanize.registry.v1beta1.DnsRecord",
|
||||||
(*Attributes)(nil),
|
(*Attributes)(nil),
|
||||||
|
@ -95,6 +95,24 @@ func payLoadAttributes(recordPayLoad map[string]interface{}) (*codectypes.Any, e
|
|||||||
}
|
}
|
||||||
return codectypes.NewAnyWithValue(&attributes)
|
return codectypes.NewAnyWithValue(&attributes)
|
||||||
}
|
}
|
||||||
|
case "ApplicationDeploymentRemovalRequest":
|
||||||
|
{
|
||||||
|
var attributes ApplicationDeploymentRemovalRequest
|
||||||
|
err := json.Unmarshal(bz, &attributes)
|
||||||
|
if err != nil {
|
||||||
|
return &codectypes.Any{}, err
|
||||||
|
}
|
||||||
|
return codectypes.NewAnyWithValue(&attributes)
|
||||||
|
}
|
||||||
|
case "ApplicationDeploymentRemovalRecord":
|
||||||
|
{
|
||||||
|
var attributes ApplicationDeploymentRemovalRecord
|
||||||
|
err := json.Unmarshal(bz, &attributes)
|
||||||
|
if err != nil {
|
||||||
|
return &codectypes.Any{}, err
|
||||||
|
}
|
||||||
|
return codectypes.NewAnyWithValue(&attributes)
|
||||||
|
}
|
||||||
case "ApplicationArtifact":
|
case "ApplicationArtifact":
|
||||||
{
|
{
|
||||||
var attributes ApplicationArtifact
|
var attributes ApplicationArtifact
|
||||||
@ -228,6 +246,32 @@ func GetJSONBytesFromAny(any codectypes.Any) ([]byte, error) {
|
|||||||
panic("Proto unmarshal error")
|
panic("Proto unmarshal error")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bz, err = json.Marshal(attributes)
|
||||||
|
if err != nil {
|
||||||
|
panic("JSON marshal error")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case "ApplicationDeploymentRemovalRequest":
|
||||||
|
{
|
||||||
|
var attributes ApplicationDeploymentRemovalRequest
|
||||||
|
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 "ApplicationDeploymentRemovalRecord":
|
||||||
|
{
|
||||||
|
var attributes ApplicationDeploymentRemovalRecord
|
||||||
|
err := proto.Unmarshal(any.Value, &attributes)
|
||||||
|
if err != nil {
|
||||||
|
panic("Proto unmarshal error")
|
||||||
|
}
|
||||||
|
|
||||||
bz, err = json.Marshal(attributes)
|
bz, err = json.Marshal(attributes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic("JSON marshal error")
|
panic("JSON marshal error")
|
||||||
|
Loading…
Reference in New Issue
Block a user