From 3a40e2298215b70c3031bc071357c43e3e2dd7bd Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Wed, 19 Jun 2024 11:31:55 +0200 Subject: [PATCH] Migrate to buf v2 config and update deps (#35) --- api/duros/v2/durosapiv2.pb.go | 310 +++++++++--------- api/duros/v2/schedule_policy.pb.go | 20 +- api/duros/v2/statisticsapiv2.pb.go | 14 +- .../options/annotations.pb.go | 4 +- .../options/openapiv2.pb.go | 36 +- client.go | 18 +- cmd/cli/cli.go | 2 +- go.mod | 18 +- go.sum | 40 +-- proto/Makefile | 2 +- proto/buf.gen.yaml | 11 +- proto/buf.lock | 10 +- proto/buf.yaml | 15 +- 13 files changed, 242 insertions(+), 258 deletions(-) diff --git a/api/duros/v2/durosapiv2.pb.go b/api/duros/v2/durosapiv2.pb.go index c71eb24..8926d5d 100644 --- a/api/duros/v2/durosapiv2.pb.go +++ b/api/duros/v2/durosapiv2.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: lightbits/api/duros/v2/durosapiv2.proto @@ -15132,7 +15132,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_rawDescGZIP() []byte { var file_lightbits_api_duros_v2_durosapiv2_proto_enumTypes = make([]protoimpl.EnumInfo, 25) var file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes = make([]protoimpl.MessageInfo, 148) -var file_lightbits_api_duros_v2_durosapiv2_proto_goTypes = []interface{}{ +var file_lightbits_api_duros_v2_durosapiv2_proto_goTypes = []any{ (CredsType)(0), // 0: lightbits.api.duros.v2.CredsType (ProtectionStateEnum)(0), // 1: lightbits.api.duros.v2.ProtectionStateEnum (PolicyVisibility)(0), // 2: lightbits.api.duros.v2.PolicyVisibility @@ -15569,7 +15569,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { file_lightbits_api_duros_v2_schedule_policy_proto_init() file_lightbits_api_duros_v2_statisticsapiv2_proto_init() if !protoimpl.UnsafeEnabled { - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*LogRequest); i { case 0: return &v.state @@ -15581,7 +15581,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*AdminEndpoint); i { case 0: return &v.state @@ -15593,7 +15593,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*GetAdminEndpointRequest); i { case 0: return &v.state @@ -15605,7 +15605,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*ListAdminEndpointsResponse); i { case 0: return &v.state @@ -15617,7 +15617,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*ListAdminEndpointsRequest); i { case 0: return &v.state @@ -15629,7 +15629,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*CreateAdminEndpointRequest); i { case 0: return &v.state @@ -15641,7 +15641,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*UpdateAdminEndpointRequest); i { case 0: return &v.state @@ -15653,7 +15653,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*DeleteAdminEndpointRequest); i { case 0: return &v.state @@ -15665,7 +15665,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*DeleteAdminEndpointResponse); i { case 0: return &v.state @@ -15677,7 +15677,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*CreateCredentialRequest); i { case 0: return &v.state @@ -15689,7 +15689,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*Credential); i { case 0: return &v.state @@ -15701,7 +15701,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*DeleteCredentialRequest); i { case 0: return &v.state @@ -15713,7 +15713,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*DeleteCredentialResponse); i { case 0: return &v.state @@ -15725,7 +15725,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*ListCredentialsRequest); i { case 0: return &v.state @@ -15737,7 +15737,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*ListCredentialsResponse); i { case 0: return &v.state @@ -15749,7 +15749,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*GetCredentialRequest); i { case 0: return &v.state @@ -15761,7 +15761,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*DefaultPolicy); i { case 0: return &v.state @@ -15773,7 +15773,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*CreateProjectRequest); i { case 0: return &v.state @@ -15785,7 +15785,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[18].Exporter = func(v any, i int) any { switch v := v.(*Project); i { case 0: return &v.state @@ -15797,7 +15797,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[19].Exporter = func(v any, i int) any { switch v := v.(*DeleteProjectRequest); i { case 0: return &v.state @@ -15809,7 +15809,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[20].Exporter = func(v any, i int) any { switch v := v.(*DeleteProjectResponse); i { case 0: return &v.state @@ -15821,7 +15821,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[21].Exporter = func(v any, i int) any { switch v := v.(*ListProjectsRequest); i { case 0: return &v.state @@ -15833,7 +15833,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[22].Exporter = func(v any, i int) any { switch v := v.(*ListProjectsResponse); i { case 0: return &v.state @@ -15845,7 +15845,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[23].Exporter = func(v any, i int) any { switch v := v.(*GetProjectRequest); i { case 0: return &v.state @@ -15857,7 +15857,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[24].Exporter = func(v any, i int) any { switch v := v.(*StringList); i { case 0: return &v.state @@ -15869,7 +15869,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[25].Exporter = func(v any, i int) any { switch v := v.(*GetVersionRequest); i { case 0: return &v.state @@ -15881,7 +15881,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[26].Exporter = func(v any, i int) any { switch v := v.(*CreateVolumeRequest); i { case 0: return &v.state @@ -15893,7 +15893,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[27].Exporter = func(v any, i int) any { switch v := v.(*DeleteVolumeRequest); i { case 0: return &v.state @@ -15905,7 +15905,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[28].Exporter = func(v any, i int) any { switch v := v.(*DeleteVolumeResponse); i { case 0: return &v.state @@ -15917,7 +15917,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[29].Exporter = func(v any, i int) any { switch v := v.(*EnableServerRequest); i { case 0: return &v.state @@ -15929,7 +15929,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[30].Exporter = func(v any, i int) any { switch v := v.(*DisableServerRequest); i { case 0: return &v.state @@ -15941,7 +15941,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[31].Exporter = func(v any, i int) any { switch v := v.(*DeleteServerRequest); i { case 0: return &v.state @@ -15953,7 +15953,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[32].Exporter = func(v any, i int) any { switch v := v.(*ReplaceNodeRequest); i { case 0: return &v.state @@ -15965,7 +15965,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[33].Exporter = func(v any, i int) any { switch v := v.(*CreateServerRequest); i { case 0: return &v.state @@ -15977,7 +15977,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[34].Exporter = func(v any, i int) any { switch v := v.(*UpdateVolumeRequest); i { case 0: return &v.state @@ -15989,7 +15989,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[35].Exporter = func(v any, i int) any { switch v := v.(*ProxyInfo); i { case 0: return &v.state @@ -16001,7 +16001,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[36].Exporter = func(v any, i int) any { switch v := v.(*UpgradeServerRequest); i { case 0: return &v.state @@ -16013,7 +16013,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[37].Exporter = func(v any, i int) any { switch v := v.(*UpgradeClusterRequest); i { case 0: return &v.state @@ -16025,7 +16025,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[38].Exporter = func(v any, i int) any { switch v := v.(*GetClusterRequest); i { case 0: return &v.state @@ -16037,7 +16037,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[39].Exporter = func(v any, i int) any { switch v := v.(*UpdateNvmeDeviceRequest); i { case 0: return &v.state @@ -16049,7 +16049,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[40].Exporter = func(v any, i int) any { switch v := v.(*AddNvmeDeviceRequest); i { case 0: return &v.state @@ -16061,7 +16061,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[41].Exporter = func(v any, i int) any { switch v := v.(*GetHostRequest); i { case 0: return &v.state @@ -16073,7 +16073,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[42].Exporter = func(v any, i int) any { switch v := v.(*ListHostsRequest); i { case 0: return &v.state @@ -16085,7 +16085,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[43].Exporter = func(v any, i int) any { switch v := v.(*ListHostsResponse); i { case 0: return &v.state @@ -16097,7 +16097,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[44].Exporter = func(v any, i int) any { switch v := v.(*ListNodeRequest); i { case 0: return &v.state @@ -16109,7 +16109,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[45].Exporter = func(v any, i int) any { switch v := v.(*ListEventsRequest); i { case 0: return &v.state @@ -16121,7 +16121,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[46].Exporter = func(v any, i int) any { switch v := v.(*ListEventsResponse); i { case 0: return &v.state @@ -16133,7 +16133,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[47].Exporter = func(v any, i int) any { switch v := v.(*GetVolumeRequest); i { case 0: return &v.state @@ -16145,7 +16145,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[48].Exporter = func(v any, i int) any { switch v := v.(*GetNodeRequest); i { case 0: return &v.state @@ -16157,7 +16157,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[49].Exporter = func(v any, i int) any { switch v := v.(*ListVolumeRequest); i { case 0: return &v.state @@ -16169,7 +16169,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[50].Exporter = func(v any, i int) any { switch v := v.(*ListNvmeDevicesRequest); i { case 0: return &v.state @@ -16181,7 +16181,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[51].Exporter = func(v any, i int) any { switch v := v.(*GetNvmeDeviceRequest); i { case 0: return &v.state @@ -16193,7 +16193,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[52].Exporter = func(v any, i int) any { switch v := v.(*ListNvmeDevicesResponse); i { case 0: return &v.state @@ -16205,7 +16205,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[53].Exporter = func(v any, i int) any { switch v := v.(*ConnectedHost); i { case 0: return &v.state @@ -16217,7 +16217,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[54].Exporter = func(v any, i int) any { switch v := v.(*UserNvmeDevicesResponse); i { case 0: return &v.state @@ -16229,7 +16229,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[55].Exporter = func(v any, i int) any { switch v := v.(*DurosNodeInfo); i { case 0: return &v.state @@ -16241,7 +16241,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[56].Exporter = func(v any, i int) any { switch v := v.(*ListNodesResponse); i { case 0: return &v.state @@ -16253,7 +16253,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[57].Exporter = func(v any, i int) any { switch v := v.(*ListVolumesResponse); i { case 0: return &v.state @@ -16265,7 +16265,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[58].Exporter = func(v any, i int) any { switch v := v.(*UpdateNvmeDeviceResponse); i { case 0: return &v.state @@ -16277,7 +16277,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[59].Exporter = func(v any, i int) any { switch v := v.(*AddNvmeDeviceResponse); i { case 0: return &v.state @@ -16289,7 +16289,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[60].Exporter = func(v any, i int) any { switch v := v.(*UpdateVolumeResponse); i { case 0: return &v.state @@ -16301,7 +16301,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[61].Exporter = func(v any, i int) any { switch v := v.(*UpgradeServerResponse); i { case 0: return &v.state @@ -16313,7 +16313,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[62].Exporter = func(v any, i int) any { switch v := v.(*UpgradeClusterResponse); i { case 0: return &v.state @@ -16325,7 +16325,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[63].Exporter = func(v any, i int) any { switch v := v.(*ReplaceNodeResponse); i { case 0: return &v.state @@ -16337,7 +16337,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[64].Exporter = func(v any, i int) any { switch v := v.(*DeleteServerResponse); i { case 0: return &v.state @@ -16349,7 +16349,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[65].Exporter = func(v any, i int) any { switch v := v.(*DisableServerResponse); i { case 0: return &v.state @@ -16361,7 +16361,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[66].Exporter = func(v any, i int) any { switch v := v.(*ListServersRequest); i { case 0: return &v.state @@ -16373,7 +16373,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[67].Exporter = func(v any, i int) any { switch v := v.(*GetServerRequest); i { case 0: return &v.state @@ -16385,7 +16385,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[68].Exporter = func(v any, i int) any { switch v := v.(*ListServersResponse); i { case 0: return &v.state @@ -16397,7 +16397,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[69].Exporter = func(v any, i int) any { switch v := v.(*ClusterUpgradeStatusResponse); i { case 0: return &v.state @@ -16409,7 +16409,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[70].Exporter = func(v any, i int) any { switch v := v.(*ListUpgradeStatusResponse); i { case 0: return &v.state @@ -16421,7 +16421,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[71].Exporter = func(v any, i int) any { switch v := v.(*Version); i { case 0: return &v.state @@ -16433,7 +16433,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[72].Exporter = func(v any, i int) any { switch v := v.(*ClusterLastUpgrade); i { case 0: return &v.state @@ -16445,7 +16445,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[73].Exporter = func(v any, i int) any { switch v := v.(*ClusterInfo); i { case 0: return &v.state @@ -16457,7 +16457,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[74].Exporter = func(v any, i int) any { switch v := v.(*ClusterInfoV2); i { case 0: return &v.state @@ -16469,7 +16469,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[75].Exporter = func(v any, i int) any { switch v := v.(*ClusterHealth); i { case 0: return &v.state @@ -16481,7 +16481,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[76].Exporter = func(v any, i int) any { switch v := v.(*Volume); i { case 0: return &v.state @@ -16493,7 +16493,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[77].Exporter = func(v any, i int) any { switch v := v.(*ServerEvictionStatus); i { case 0: return &v.state @@ -16505,7 +16505,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[78].Exporter = func(v any, i int) any { switch v := v.(*ServerLastUpgrade); i { case 0: return &v.state @@ -16517,7 +16517,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[79].Exporter = func(v any, i int) any { switch v := v.(*Server); i { case 0: return &v.state @@ -16529,7 +16529,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[80].Exporter = func(v any, i int) any { switch v := v.(*GetRoleRequest); i { case 0: return &v.state @@ -16541,7 +16541,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[81].Exporter = func(v any, i int) any { switch v := v.(*GetRoleResponse); i { case 0: return &v.state @@ -16553,7 +16553,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[82].Exporter = func(v any, i int) any { switch v := v.(*Role); i { case 0: return &v.state @@ -16565,7 +16565,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[83].Exporter = func(v any, i int) any { switch v := v.(*ListRolesRequest); i { case 0: return &v.state @@ -16577,7 +16577,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[84].Exporter = func(v any, i int) any { switch v := v.(*ListRolesResponse); i { case 0: return &v.state @@ -16589,7 +16589,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[85].Exporter = func(v any, i int) any { switch v := v.(*Snapshot); i { case 0: return &v.state @@ -16601,7 +16601,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[86].Exporter = func(v any, i int) any { switch v := v.(*DeleteSnapshotRequest); i { case 0: return &v.state @@ -16613,7 +16613,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[87].Exporter = func(v any, i int) any { switch v := v.(*CreateSnapshotRequest); i { case 0: return &v.state @@ -16625,7 +16625,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[88].Exporter = func(v any, i int) any { switch v := v.(*ListSnapshotsRequest); i { case 0: return &v.state @@ -16637,7 +16637,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[89].Exporter = func(v any, i int) any { switch v := v.(*GetSnapshotRequest); i { case 0: return &v.state @@ -16649,7 +16649,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[90].Exporter = func(v any, i int) any { switch v := v.(*ListSnapshotsResponse); i { case 0: return &v.state @@ -16661,7 +16661,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[91].Exporter = func(v any, i int) any { switch v := v.(*DeleteSnapshotResponse); i { case 0: return &v.state @@ -16673,7 +16673,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[92].Exporter = func(v any, i int) any { switch v := v.(*FeatureFlagStatus); i { case 0: return &v.state @@ -16685,7 +16685,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[93].Exporter = func(v any, i int) any { switch v := v.(*GetFeatureFlagRequest); i { case 0: return &v.state @@ -16697,7 +16697,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[94].Exporter = func(v any, i int) any { switch v := v.(*EnableFeatureFlagRequest); i { case 0: return &v.state @@ -16709,7 +16709,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[95].Exporter = func(v any, i int) any { switch v := v.(*DisableFeatureFlagRequest); i { case 0: return &v.state @@ -16721,7 +16721,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[96].Exporter = func(v any, i int) any { switch v := v.(*SetFeatureFlagResponse); i { case 0: return &v.state @@ -16733,7 +16733,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[97].Exporter = func(v any, i int) any { switch v := v.(*ListFeatureFlagsRequest); i { case 0: return &v.state @@ -16745,7 +16745,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[98].Exporter = func(v any, i int) any { switch v := v.(*ListFeatureFlagsResponse); i { case 0: return &v.state @@ -16757,7 +16757,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[99].Exporter = func(v any, i int) any { switch v := v.(*CreateResourcePolicyRequest); i { case 0: return &v.state @@ -16769,7 +16769,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[100].Exporter = func(v any, i int) any { switch v := v.(*CreatePolicyRequest); i { case 0: return &v.state @@ -16781,7 +16781,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[101].Exporter = func(v any, i int) any { switch v := v.(*UpdatePolicyRequest); i { case 0: return &v.state @@ -16793,7 +16793,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[102].Exporter = func(v any, i int) any { switch v := v.(*UpdatePolicyResponse); i { case 0: return &v.state @@ -16805,7 +16805,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[103].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[103].Exporter = func(v any, i int) any { switch v := v.(*ResourcePolicy); i { case 0: return &v.state @@ -16817,7 +16817,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[104].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[104].Exporter = func(v any, i int) any { switch v := v.(*Policy); i { case 0: return &v.state @@ -16829,7 +16829,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[105].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[105].Exporter = func(v any, i int) any { switch v := v.(*UpdateResourcePolicyRequest); i { case 0: return &v.state @@ -16841,7 +16841,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[106].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[106].Exporter = func(v any, i int) any { switch v := v.(*UpdateResourcePolicyResponse); i { case 0: return &v.state @@ -16853,7 +16853,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[107].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[107].Exporter = func(v any, i int) any { switch v := v.(*ListPoliciesRequest); i { case 0: return &v.state @@ -16865,7 +16865,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[108].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[108].Exporter = func(v any, i int) any { switch v := v.(*ListPoliciesResponse); i { case 0: return &v.state @@ -16877,7 +16877,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[109].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[109].Exporter = func(v any, i int) any { switch v := v.(*ListResourcePoliciesRequest); i { case 0: return &v.state @@ -16889,7 +16889,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[110].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[110].Exporter = func(v any, i int) any { switch v := v.(*ListResourcePoliciesResponse); i { case 0: return &v.state @@ -16901,7 +16901,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[111].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[111].Exporter = func(v any, i int) any { switch v := v.(*GetPolicyRequest); i { case 0: return &v.state @@ -16913,7 +16913,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[112].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[112].Exporter = func(v any, i int) any { switch v := v.(*GetResourcePolicyRequest); i { case 0: return &v.state @@ -16925,7 +16925,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[113].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[113].Exporter = func(v any, i int) any { switch v := v.(*DeleteResourcePolicyRequest); i { case 0: return &v.state @@ -16937,7 +16937,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[114].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[114].Exporter = func(v any, i int) any { switch v := v.(*DeleteResourcePolicyResponse); i { case 0: return &v.state @@ -16949,7 +16949,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[115].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[115].Exporter = func(v any, i int) any { switch v := v.(*DeletePolicyRequest); i { case 0: return &v.state @@ -16961,7 +16961,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[116].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[116].Exporter = func(v any, i int) any { switch v := v.(*DeletePolicyResponse); i { case 0: return &v.state @@ -16973,7 +16973,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[117].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[117].Exporter = func(v any, i int) any { switch v := v.(*GetClusterConfigParamRequest); i { case 0: return &v.state @@ -16985,7 +16985,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[118].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[118].Exporter = func(v any, i int) any { switch v := v.(*ClusterConfigParam); i { case 0: return &v.state @@ -16997,7 +16997,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[119].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[119].Exporter = func(v any, i int) any { switch v := v.(*UpdateClusterConfigParamRequest); i { case 0: return &v.state @@ -17009,7 +17009,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[120].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[120].Exporter = func(v any, i int) any { switch v := v.(*RollbackVolumeRequest); i { case 0: return &v.state @@ -17021,7 +17021,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[121].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[121].Exporter = func(v any, i int) any { switch v := v.(*RollbackVolumeResponse); i { case 0: return &v.state @@ -17033,7 +17033,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[122].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[122].Exporter = func(v any, i int) any { switch v := v.(*UpdateClusterConfigParamResponse); i { case 0: return &v.state @@ -17045,7 +17045,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[123].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[123].Exporter = func(v any, i int) any { switch v := v.(*ListClusterConfigParamsRequest); i { case 0: return &v.state @@ -17057,7 +17057,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[124].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[124].Exporter = func(v any, i int) any { switch v := v.(*ListClusterConfigParamsResponse); i { case 0: return &v.state @@ -17069,7 +17069,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[125].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[125].Exporter = func(v any, i int) any { switch v := v.(*LabelValueKeyPair); i { case 0: return &v.state @@ -17081,7 +17081,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[126].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[126].Exporter = func(v any, i int) any { switch v := v.(*LabelMatchExpression); i { case 0: return &v.state @@ -17093,7 +17093,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[127].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[127].Exporter = func(v any, i int) any { switch v := v.(*ComponentVolumeInfo); i { case 0: return &v.state @@ -17105,7 +17105,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[128].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[128].Exporter = func(v any, i int) any { switch v := v.(*VolumeComponentInfoList); i { case 0: return &v.state @@ -17117,7 +17117,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[129].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[129].Exporter = func(v any, i int) any { switch v := v.(*ComponentVolumesInfo); i { case 0: return &v.state @@ -17129,7 +17129,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[130].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[130].Exporter = func(v any, i int) any { switch v := v.(*ComponentNodeInfo); i { case 0: return &v.state @@ -17141,7 +17141,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[131].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[131].Exporter = func(v any, i int) any { switch v := v.(*ComponentClusterInfo); i { case 0: return &v.state @@ -17153,7 +17153,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[132].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[132].Exporter = func(v any, i int) any { switch v := v.(*ComponentNVMeSSDInfo); i { case 0: return &v.state @@ -17165,7 +17165,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[133].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[133].Exporter = func(v any, i int) any { switch v := v.(*ComponentServerInfo); i { case 0: return &v.state @@ -17177,7 +17177,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[134].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[134].Exporter = func(v any, i int) any { switch v := v.(*ComponentDataIntegrityInfo); i { case 0: return &v.state @@ -17189,7 +17189,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[135].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[135].Exporter = func(v any, i int) any { switch v := v.(*LBARange); i { case 0: return &v.state @@ -17201,7 +17201,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[136].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[136].Exporter = func(v any, i int) any { switch v := v.(*ListChangedBlocksRequest); i { case 0: return &v.state @@ -17213,7 +17213,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[137].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[137].Exporter = func(v any, i int) any { switch v := v.(*ListChangedBlocksResponse); i { case 0: return &v.state @@ -17225,7 +17225,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[138].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[138].Exporter = func(v any, i int) any { switch v := v.(*Event); i { case 0: return &v.state @@ -17237,7 +17237,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[139].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[139].Exporter = func(v any, i int) any { switch v := v.(*QoSRateLimitPolicy); i { case 0: return &v.state @@ -17249,7 +17249,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[140].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[140].Exporter = func(v any, i int) any { switch v := v.(*DefaultGlobalResourcePolicy); i { case 0: return &v.state @@ -17261,7 +17261,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[141].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[141].Exporter = func(v any, i int) any { switch v := v.(*UpdateProjectRequest); i { case 0: return &v.state @@ -17273,7 +17273,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[142].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[142].Exporter = func(v any, i int) any { switch v := v.(*UpdateProjectResponse); i { case 0: return &v.state @@ -17285,7 +17285,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[145].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[145].Exporter = func(v any, i int) any { switch v := v.(*QoSRateLimitPolicy_QoSLimitIOPS); i { case 0: return &v.state @@ -17297,7 +17297,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[146].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[146].Exporter = func(v any, i int) any { switch v := v.(*QoSRateLimitPolicy_QoSLimitBW); i { case 0: return &v.state @@ -17309,7 +17309,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[147].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[147].Exporter = func(v any, i int) any { switch v := v.(*QoSRateLimitPolicy_QoSLimitIOPSPerGB); i { case 0: return &v.state @@ -17322,24 +17322,24 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { } } } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[26].OneofWrappers = []interface{}{ + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[26].OneofWrappers = []any{ (*CreateVolumeRequest_QosPolicyUUID)(nil), (*CreateVolumeRequest_QosPolicyName)(nil), } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[34].OneofWrappers = []interface{}{ + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[34].OneofWrappers = []any{ (*UpdateVolumeRequest_QosPolicyUUID)(nil), (*UpdateVolumeRequest_QosPolicyName)(nil), } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[100].OneofWrappers = []interface{}{ + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[100].OneofWrappers = []any{ (*CreatePolicyRequest_QoSRateLimitPolicy)(nil), } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[101].OneofWrappers = []interface{}{ + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[101].OneofWrappers = []any{ (*UpdatePolicyRequest_QoSRateLimitPolicy)(nil), } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[104].OneofWrappers = []interface{}{ + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[104].OneofWrappers = []any{ (*Policy_QoSRateLimitPolicy)(nil), } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[138].OneofWrappers = []interface{}{ + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[138].OneofWrappers = []any{ (*Event_ComponentVolumesInfo)(nil), (*Event_ComponentNVMeSSDInfo)(nil), (*Event_ComponentNodeInfo)(nil), @@ -17347,7 +17347,7 @@ func file_lightbits_api_duros_v2_durosapiv2_proto_init() { (*Event_ComponentClusterInfo)(nil), (*Event_ComponentDataIntegrityInfo)(nil), } - file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[139].OneofWrappers = []interface{}{ + file_lightbits_api_duros_v2_durosapiv2_proto_msgTypes[139].OneofWrappers = []any{ (*QoSRateLimitPolicy_LimitIOPS)(nil), (*QoSRateLimitPolicy_LimitBw)(nil), (*QoSRateLimitPolicy_LimitIOPSPerGB)(nil), diff --git a/api/duros/v2/schedule_policy.pb.go b/api/duros/v2/schedule_policy.pb.go index ca94400..59785eb 100644 --- a/api/duros/v2/schedule_policy.pb.go +++ b/api/duros/v2/schedule_policy.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: lightbits/api/duros/v2/schedule_policy.proto @@ -564,7 +564,7 @@ func file_lightbits_api_duros_v2_schedule_policy_proto_rawDescGZIP() []byte { var file_lightbits_api_duros_v2_schedule_policy_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_lightbits_api_duros_v2_schedule_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_lightbits_api_duros_v2_schedule_policy_proto_goTypes = []interface{}{ +var file_lightbits_api_duros_v2_schedule_policy_proto_goTypes = []any{ (DayOfWeek)(0), // 0: lightbits.api.duros.v2.DayOfWeek (*HourlySchedule)(nil), // 1: lightbits.api.duros.v2.HourlySchedule (*DailySchedule)(nil), // 2: lightbits.api.duros.v2.DailySchedule @@ -599,7 +599,7 @@ func file_lightbits_api_duros_v2_schedule_policy_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_lightbits_api_duros_v2_schedule_policy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_schedule_policy_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*HourlySchedule); i { case 0: return &v.state @@ -611,7 +611,7 @@ func file_lightbits_api_duros_v2_schedule_policy_proto_init() { return nil } } - file_lightbits_api_duros_v2_schedule_policy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_schedule_policy_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*DailySchedule); i { case 0: return &v.state @@ -623,7 +623,7 @@ func file_lightbits_api_duros_v2_schedule_policy_proto_init() { return nil } } - file_lightbits_api_duros_v2_schedule_policy_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_schedule_policy_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*DayOfWeekEntry); i { case 0: return &v.state @@ -635,7 +635,7 @@ func file_lightbits_api_duros_v2_schedule_policy_proto_init() { return nil } } - file_lightbits_api_duros_v2_schedule_policy_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_schedule_policy_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*WeeklySchedule); i { case 0: return &v.state @@ -647,7 +647,7 @@ func file_lightbits_api_duros_v2_schedule_policy_proto_init() { return nil } } - file_lightbits_api_duros_v2_schedule_policy_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_schedule_policy_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*SnapshotSchedulePolicy); i { case 0: return &v.state @@ -659,7 +659,7 @@ func file_lightbits_api_duros_v2_schedule_policy_proto_init() { return nil } } - file_lightbits_api_duros_v2_schedule_policy_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_schedule_policy_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*SchedulePolicy); i { case 0: return &v.state @@ -672,12 +672,12 @@ func file_lightbits_api_duros_v2_schedule_policy_proto_init() { } } } - file_lightbits_api_duros_v2_schedule_policy_proto_msgTypes[4].OneofWrappers = []interface{}{ + file_lightbits_api_duros_v2_schedule_policy_proto_msgTypes[4].OneofWrappers = []any{ (*SnapshotSchedulePolicy_HourlySchedule)(nil), (*SnapshotSchedulePolicy_DailySchedule)(nil), (*SnapshotSchedulePolicy_WeeklySchedule)(nil), } - file_lightbits_api_duros_v2_schedule_policy_proto_msgTypes[5].OneofWrappers = []interface{}{ + file_lightbits_api_duros_v2_schedule_policy_proto_msgTypes[5].OneofWrappers = []any{ (*SchedulePolicy_SnapshotSchedulePolicy)(nil), } type x struct{} diff --git a/api/duros/v2/statisticsapiv2.pb.go b/api/duros/v2/statisticsapiv2.pb.go index 311a55d..9f6d384 100644 --- a/api/duros/v2/statisticsapiv2.pb.go +++ b/api/duros/v2/statisticsapiv2.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: lightbits/api/duros/v2/statisticsapiv2.proto @@ -851,7 +851,7 @@ func file_lightbits_api_duros_v2_statisticsapiv2_proto_rawDescGZIP() []byte { } var file_lightbits_api_duros_v2_statisticsapiv2_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_lightbits_api_duros_v2_statisticsapiv2_proto_goTypes = []interface{}{ +var file_lightbits_api_duros_v2_statisticsapiv2_proto_goTypes = []any{ (*ClusterStatisticsApi)(nil), // 0: lightbits.api.duros.v2.ClusterStatisticsApi (*NodeStatisticsApi)(nil), // 1: lightbits.api.duros.v2.NodeStatisticsApi (*VolumeStatisticsApi)(nil), // 2: lightbits.api.duros.v2.VolumeStatisticsApi @@ -872,7 +872,7 @@ func file_lightbits_api_duros_v2_statisticsapiv2_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_lightbits_api_duros_v2_statisticsapiv2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_statisticsapiv2_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*ClusterStatisticsApi); i { case 0: return &v.state @@ -884,7 +884,7 @@ func file_lightbits_api_duros_v2_statisticsapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_statisticsapiv2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_statisticsapiv2_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*NodeStatisticsApi); i { case 0: return &v.state @@ -896,7 +896,7 @@ func file_lightbits_api_duros_v2_statisticsapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_statisticsapiv2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_statisticsapiv2_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*VolumeStatisticsApi); i { case 0: return &v.state @@ -908,7 +908,7 @@ func file_lightbits_api_duros_v2_statisticsapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_statisticsapiv2_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_statisticsapiv2_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*SnapshotStatisticsApi); i { case 0: return &v.state @@ -920,7 +920,7 @@ func file_lightbits_api_duros_v2_statisticsapiv2_proto_init() { return nil } } - file_lightbits_api_duros_v2_statisticsapiv2_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_lightbits_api_duros_v2_statisticsapiv2_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*NvmeDeviceStatisticsApi); i { case 0: return &v.state diff --git a/api/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options/annotations.pb.go b/api/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options/annotations.pb.go index 730dad8..d6aaa24 100644 --- a/api/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options/annotations.pb.go +++ b/api/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options/annotations.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: grpc/gateway/protoc_gen_swagger/options/annotations.proto @@ -180,7 +180,7 @@ var file_grpc_gateway_protoc_gen_swagger_options_annotations_proto_rawDesc = []b 0x6f, 0x33, } -var file_grpc_gateway_protoc_gen_swagger_options_annotations_proto_goTypes = []interface{}{ +var file_grpc_gateway_protoc_gen_swagger_options_annotations_proto_goTypes = []any{ (*descriptorpb.FileOptions)(nil), // 0: google.protobuf.FileOptions (*descriptorpb.MethodOptions)(nil), // 1: google.protobuf.MethodOptions (*descriptorpb.MessageOptions)(nil), // 2: google.protobuf.MessageOptions diff --git a/api/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options/openapiv2.pb.go b/api/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options/openapiv2.pb.go index 7a5f7d7..8c6e3f4 100644 --- a/api/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options/openapiv2.pb.go +++ b/api/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options/openapiv2.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: grpc/gateway/protoc_gen_swagger/options/openapiv2.proto @@ -2482,7 +2482,7 @@ func file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_rawDescGZIP() var file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_enumTypes = make([]protoimpl.EnumInfo, 5) var file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes = make([]protoimpl.MessageInfo, 28) -var file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_goTypes = []interface{}{ +var file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_goTypes = []any{ (Swagger_SwaggerScheme)(0), // 0: grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme (JSONSchema_JSONSchemaSimpleTypes)(0), // 1: grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes (SecurityScheme_Type)(0), // 2: grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type @@ -2574,7 +2574,7 @@ func file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Swagger); i { case 0: return &v.state @@ -2586,7 +2586,7 @@ func file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_init() { return nil } } - file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*Operation); i { case 0: return &v.state @@ -2598,7 +2598,7 @@ func file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_init() { return nil } } - file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*Header); i { case 0: return &v.state @@ -2610,7 +2610,7 @@ func file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_init() { return nil } } - file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*Response); i { case 0: return &v.state @@ -2622,7 +2622,7 @@ func file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_init() { return nil } } - file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*Info); i { case 0: return &v.state @@ -2634,7 +2634,7 @@ func file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_init() { return nil } } - file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*Contact); i { case 0: return &v.state @@ -2646,7 +2646,7 @@ func file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_init() { return nil } } - file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*License); i { case 0: return &v.state @@ -2658,7 +2658,7 @@ func file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_init() { return nil } } - file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*ExternalDocumentation); i { case 0: return &v.state @@ -2670,7 +2670,7 @@ func file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_init() { return nil } } - file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*Schema); i { case 0: return &v.state @@ -2682,7 +2682,7 @@ func file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_init() { return nil } } - file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*JSONSchema); i { case 0: return &v.state @@ -2694,7 +2694,7 @@ func file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_init() { return nil } } - file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*Tag); i { case 0: return &v.state @@ -2706,7 +2706,7 @@ func file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_init() { return nil } } - file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*SecurityDefinitions); i { case 0: return &v.state @@ -2718,7 +2718,7 @@ func file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_init() { return nil } } - file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*SecurityScheme); i { case 0: return &v.state @@ -2730,7 +2730,7 @@ func file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_init() { return nil } } - file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*SecurityRequirement); i { case 0: return &v.state @@ -2742,7 +2742,7 @@ func file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_init() { return nil } } - file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*Scopes); i { case 0: return &v.state @@ -2754,7 +2754,7 @@ func file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_init() { return nil } } - file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_grpc_gateway_protoc_gen_swagger_options_openapiv2_proto_msgTypes[25].Exporter = func(v any, i int) any { switch v := v.(*SecurityRequirement_SecurityRequirementValue); i { case 0: return &v.state diff --git a/client.go b/client.go index e643602..7c86c4b 100644 --- a/client.go +++ b/client.go @@ -81,20 +81,8 @@ func init() { hostRegex = regexp.MustCompile(`^([a-zA-Z0-9.\[\]:%-]+)$`) } -// Dial creates a LightOS cluster client. it is a blocking call and will only -// return once the connection to [at least one of the] `targets` has been -// actually established - subject to `ctx` limitations. if `ctx` specified -// timeout or duration - dialling (and only dialling!) timeout will be set -// accordingly. `ctx` can also be used to cancel the dialling process, as per -// usual. -// -// the cluster client will make an effort to transparently reconnect to one of -// the `targets` in case of connection loss. if the process of finding a live -// and responsive target amongst `targets` and establishing the connection takes -// longer than the actual operation context timeout (as opposed to the `ctx` -// passed here) - `DeadlineExceeded` will be returned as usual, and the caller -// can retry the operation. -func Dial(ctx context.Context, config DialConfig) (durosv2.DurosAPIClient, error) { +// Dial creates a LightOS cluster client. +func Dial(config DialConfig) (durosv2.DurosAPIClient, error) { if config.Credentials != nil && config.ByteCredentials != nil { return nil, status.Errorf(codes.InvalidArgument, "if you provide credentials, provide either file or byte credentials but not both") @@ -185,7 +173,7 @@ func Dial(ctx context.Context, config DialConfig) (durosv2.DurosAPIClient, error return nil, fmt.Errorf("unsupported scheme:%v", config.Scheme) } - conn, err := grpc.DialContext(ctx, config.Endpoint, opts...) + conn, err := grpc.NewClient(config.Endpoint, opts...) if err != nil { log.Error("failed to connect", "endpoints", config.Endpoint, "error", err.Error()) return nil, err diff --git a/cmd/cli/cli.go b/cmd/cli/cli.go index c318b41..30fd205 100644 --- a/cmd/cli/cli.go +++ b/cmd/cli/cli.go @@ -83,7 +83,7 @@ func main() { dialConfig.Credentials = creds } - durosClient, err := duros.Dial(ctx, dialConfig) + durosClient, err := duros.Dial(dialConfig) if err != nil { panic(err) } diff --git a/go.mod b/go.mod index 0f971c8..fc76dcc 100644 --- a/go.mod +++ b/go.mod @@ -5,24 +5,24 @@ go 1.22 require ( github.com/golang-jwt/jwt/v4 v4.5.0 github.com/google/uuid v1.6.0 - github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 + github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 github.com/stretchr/testify v1.9.0 - google.golang.org/genproto/googleapis/api v0.0.0-20240304212257-790db918fca8 - google.golang.org/grpc v1.62.0 - google.golang.org/protobuf v1.32.0 + google.golang.org/genproto/googleapis/api v0.0.0-20240617180043-68d350f18fd4 + google.golang.org/grpc v1.64.0 + google.golang.org/protobuf v1.34.2 ) require ( github.com/davecgh/go-spew v1.1.1 // indirect - github.com/golang/protobuf v1.5.3 // indirect + github.com/golang/protobuf v1.5.4 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/stretchr/objx v0.5.2 // indirect - golang.org/x/net v0.22.0 // indirect - golang.org/x/sys v0.18.0 // indirect - golang.org/x/text v0.14.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240304212257-790db918fca8 // indirect + golang.org/x/net v0.26.0 // indirect + golang.org/x/sys v0.21.0 // indirect + golang.org/x/text v0.16.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240617180043-68d350f18fd4 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 36b9e63..cf0b6a0 100644 --- a/go.sum +++ b/go.sum @@ -20,19 +20,17 @@ github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfb github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= -github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 h1:HcUWd006luQPljE73d5sk+/VgYPGUReEVz2y1/qylwY= -github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1/go.mod h1:w9Y7gY31krpLmrVU5ZPG9H7l9fZuRu5/3R3S3FMtVQ4= +github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 h1:pRhl55Yx1eC7BZ1N+BBWwnKaMyD8uC+34TLdndZMAKk= +github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0/go.mod h1:XKMd7iuf/RGPSMJ/U4HP0zS2Z9Fh8Ps9a+6X26m/tmI= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= @@ -66,8 +64,8 @@ golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73r golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.22.0 h1:9sGLhx7iRIHEiX0oAJ3MRZMUCElJgy7Br1nO+AMN3Tc= -golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= +golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= +golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -78,11 +76,11 @@ golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= -golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= +golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= @@ -94,21 +92,19 @@ google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7 google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto/googleapis/api v0.0.0-20240304212257-790db918fca8 h1:8eadJkXbwDEMNwcB5O0s5Y5eCfyuCLdvaiOIaGTrWmQ= -google.golang.org/genproto/googleapis/api v0.0.0-20240304212257-790db918fca8/go.mod h1:O1cOfN1Cy6QEYr7VxtjOyP5AdAuR0aJ/MYZaaof623Y= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240304212257-790db918fca8 h1:IR+hp6ypxjH24bkMfEJ0yHR21+gwPWdV+/IBrPQyn3k= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240304212257-790db918fca8/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= +google.golang.org/genproto/googleapis/api v0.0.0-20240617180043-68d350f18fd4 h1:MuYw1wJzT+ZkybKfaOXKp5hJiZDn2iHaXRw0mRYdHSc= +google.golang.org/genproto/googleapis/api v0.0.0-20240617180043-68d350f18fd4/go.mod h1:px9SlOOZBg1wM1zdnr8jEL4CNGUBZ+ZKYtNPApNQc4c= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240617180043-68d350f18fd4 h1:Di6ANFilr+S60a4S61ZM00vLdw0IrQOSMS2/6mrnOU0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240617180043-68d350f18fd4/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= -google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= -google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= -google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/grpc v1.64.0 h1:KH3VH9y/MgNQg1dE7b3XfVK0GsPSIzJwdF617gUSbvY= +google.golang.org/grpc v1.64.0/go.mod h1:oxjF8E3FBnjp+/gVFYdWacaLDx9na1aqy9oovLpxQYg= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/proto/Makefile b/proto/Makefile index b6c5f67..5c84239 100644 --- a/proto/Makefile +++ b/proto/Makefile @@ -1,5 +1,5 @@ MAKEFLAGS += --no-print-directory -BUF_VERSION := 1.29.0 +BUF_VERSION := 1.32.2 _buf: docker run --rm \ diff --git a/proto/buf.gen.yaml b/proto/buf.gen.yaml index 97a2427..ed93b14 100644 --- a/proto/buf.gen.yaml +++ b/proto/buf.gen.yaml @@ -1,10 +1,7 @@ -version: v1 +version: v2 plugins: - # generate go structs for protocol buffer definition - - plugin: buf.build/protocolbuffers/go:v1.32.0 + - remote: buf.build/protocolbuffers/go:v1.34.2 out: ../api - # generate gRPC stubs in golang - - plugin: buf.build/grpc/go:v1.3.0 + - remote: buf.build/grpc/go:v1.3.0 out: ../api - opt: - - require_unimplemented_servers=false + opt: require_unimplemented_servers=false diff --git a/proto/buf.lock b/proto/buf.lock index 65d8f1f..f04104a 100644 --- a/proto/buf.lock +++ b/proto/buf.lock @@ -1,8 +1,6 @@ # Generated by buf. DO NOT EDIT. -version: v1 +version: v2 deps: - - remote: buf.build - owner: googleapis - repository: googleapis - commit: cc916c31859748a68fd229a3c8d7a2e8 - digest: shake256:469b049d0eb04203d5272062636c078decefc96fec69739159c25d85349c50c34c7706918a8b216c5c27f76939df48452148cff8c5c3ae77fa6ba5c25c1b8bf8 + - name: buf.build/googleapis/googleapis + commit: f0e53af8f2fc4556b94f482688b57223 + digest: b5:24e758f963ee1bb3b5218eb452e0bdfb7a5449d9a77d174b8284b6368ccc1884213689381cdcd79e4231796c281c128ac1ae50825237b1774deb542bdc704b32 diff --git a/proto/buf.yaml b/proto/buf.yaml index f5d8031..74e819c 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -1,11 +1,16 @@ -version: v1 +version: v2 +deps: + - buf.build/googleapis/googleapis lint: use: - MINIMAL except: - # TODO remove these - - SERVICE_SUFFIX + - PACKAGE_NO_IMPORT_CYCLE - RPC_REQUEST_STANDARD_NAME - RPC_RESPONSE_STANDARD_NAME -deps: - - buf.build/googleapis/googleapis \ No newline at end of file + - SERVICE_SUFFIX + disallow_comment_ignores: true +breaking: + except: + - EXTENSION_NO_DELETE + - FIELD_SAME_DEFAULT