refact: to use go-dbw CreateItems, DeleteItems (#4974)
* refact: to use go-dbw CreateItems, DeleteItems Latest version of go-dbw updated the signature of CreateItems(...) and DeleteItems(...) on a happy note this latest version of go-dbw actually does batch inserts and updates for this functions. * all: regenerate protos with new protoc-gen-go version
This commit is contained in:
167 files changed
+2254
-2248
No files matched your search
@@ -3,7 +3,7 @@
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.33.0
|
||||
// protoc-gen-go v1.34.2
|
||||
// protoc (unknown)
|
||||
// source: controller/api/resources/targets/v1/target.proto
|
||||
|
||||
@@ -1879,7 +1879,7 @@ func file_controller_api_resources_targets_v1_target_proto_rawDescGZIP() []byte
|
||||
}
|
||||
|
||||
var file_controller_api_resources_targets_v1_target_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
|
||||
var file_controller_api_resources_targets_v1_target_proto_goTypes = []interface{}{
|
||||
var file_controller_api_resources_targets_v1_target_proto_goTypes = []any{
|
||||
(*Alias)(nil), // 0: controller.api.resources.targets.v1.Alias
|
||||
(*TargetAliasAttributes)(nil), // 1: controller.api.resources.targets.v1.TargetAliasAttributes
|
||||
(*AuthorizeSessionArguments)(nil), // 2: controller.api.resources.targets.v1.AuthorizeSessionArguments
|
||||
@@ -1956,7 +1956,7 @@ func file_controller_api_resources_targets_v1_target_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Alias); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -1968,7 +1968,7 @@ func file_controller_api_resources_targets_v1_target_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TargetAliasAttributes); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -1980,7 +1980,7 @@ func file_controller_api_resources_targets_v1_target_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*AuthorizeSessionArguments); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -1992,7 +1992,7 @@ func file_controller_api_resources_targets_v1_target_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*HostSource); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2004,7 +2004,7 @@ func file_controller_api_resources_targets_v1_target_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[4].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*CredentialSource); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2016,7 +2016,7 @@ func file_controller_api_resources_targets_v1_target_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[5].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*SessionSecret); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2028,7 +2028,7 @@ func file_controller_api_resources_targets_v1_target_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[6].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*SessionCredential); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2040,7 +2040,7 @@ func file_controller_api_resources_targets_v1_target_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[7].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Target); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2052,7 +2052,7 @@ func file_controller_api_resources_targets_v1_target_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[8].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TcpTargetAttributes); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2064,7 +2064,7 @@ func file_controller_api_resources_targets_v1_target_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[9].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*SshTargetAttributes); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2076,7 +2076,7 @@ func file_controller_api_resources_targets_v1_target_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[10].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*WorkerInfo); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2088,7 +2088,7 @@ func file_controller_api_resources_targets_v1_target_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[11].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*SessionAuthorizationData); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2100,7 +2100,7 @@ func file_controller_api_resources_targets_v1_target_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[12].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*SessionAuthorization); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2112,7 +2112,7 @@ func file_controller_api_resources_targets_v1_target_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[13].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*UsernamePasswordCredential); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2124,7 +2124,7 @@ func file_controller_api_resources_targets_v1_target_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[14].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*SshPrivateKeyCredential); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -2137,7 +2137,7 @@ func file_controller_api_resources_targets_v1_target_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[7].OneofWrappers = []interface{}{
|
||||
file_controller_api_resources_targets_v1_target_proto_msgTypes[7].OneofWrappers = []any{
|
||||
(*Target_Attributes)(nil),
|
||||
(*Target_TcpTargetAttributes)(nil),
|
||||
(*Target_SshTargetAttributes)(nil),
|
||||
|
||||
Reference in new issue
Block a user