From 737f9fd7941aaf9c6fbe858924d01bc2ccf2f73a Mon Sep 17 00:00:00 2001 From: Jacob Howard Date: Fri, 18 Oct 2024 14:27:30 -0600 Subject: [PATCH 01/10] sidecar: use canonical casing for build stage directives Signed-off-by: Jacob Howard --- images/sidecar/linux/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/sidecar/linux/Dockerfile b/images/sidecar/linux/Dockerfile index f30d2780..400d36ad 100644 --- a/images/sidecar/linux/Dockerfile +++ b/images/sidecar/linux/Dockerfile @@ -37,7 +37,7 @@ ENTRYPOINT ["mutagen-sidecar"] # Define the MIT sidecar image. -FROM base as mit +FROM base AS mit # Copy the MIT agent from the builder and use its installation mechanism to move # it to the correct location. @@ -46,7 +46,7 @@ RUN ["/mutagen-agent", "install"] # Define the SSPL sidecar image. -FROM base as sspl +FROM base AS sspl # Copy the SSPL agent from the builder and use its installation mechanism to # move it to the correct location. From 78a7421e4043d634e259c89bc44f55c36b758d5b Mon Sep 17 00:00:00 2001 From: Jacob Howard Date: Fri, 18 Oct 2024 14:37:20 -0600 Subject: [PATCH 02/10] legal: switch copyright ownership to Docker, Inc. Signed-off-by: Jacob Howard --- LICENSE | 2 +- pkg/mutagen/licenses.go | 2 +- pkg/mutagen/licenses_sspl.go | 2 +- sspl/pkg/compression/zstd/doc.go | 2 +- sspl/pkg/compression/zstd/zstd.go | 2 +- sspl/pkg/filesystem/watching/fanotify/doc.go | 2 +- sspl/pkg/filesystem/watching/fanotify/fanotify.go | 2 +- sspl/pkg/filesystem/watching/fanotify/fanotify_test.go | 2 +- sspl/pkg/filesystem/watching/fanotify/watch.go | 2 +- sspl/pkg/filesystem/watching/fanotify/watch_test.go | 2 +- sspl/pkg/hashing/xxh128/doc.go | 2 +- sspl/pkg/hashing/xxh128/xxh128.go | 2 +- sspl/pkg/platform/linux/capabilities.go | 2 +- sspl/pkg/platform/linux/capabilities_test.go | 2 +- sspl/pkg/platform/linux/doc.go | 2 +- sspl/pkg/platform/linux/version.go | 2 +- sspl/pkg/platform/linux/version_test.go | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/LICENSE b/LICENSE index 2250b8f6..ef9baf90 100644 --- a/LICENSE +++ b/LICENSE @@ -19,7 +19,7 @@ both non-SSPL and SSPL targets, both of which are still currently shipped. MIT License -Copyright (c) 2016-present Mutagen IO, Inc. +Copyright (c) 2016-present Docker, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/pkg/mutagen/licenses.go b/pkg/mutagen/licenses.go index 0ab6262b..51447ca5 100644 --- a/pkg/mutagen/licenses.go +++ b/pkg/mutagen/licenses.go @@ -4,7 +4,7 @@ package mutagen // dependencies. const Licenses = `Mutagen -Copyright (c) 2016-present Mutagen IO, Inc. +Copyright (c) 2016-present Docker, Inc. Licensed under the terms of the MIT License. A copy of this license can be found later in this text or online at https://opensource.org/licenses/MIT. diff --git a/pkg/mutagen/licenses_sspl.go b/pkg/mutagen/licenses_sspl.go index 2024c342..0354b95e 100644 --- a/pkg/mutagen/licenses_sspl.go +++ b/pkg/mutagen/licenses_sspl.go @@ -7,7 +7,7 @@ package mutagen const mutagenSSPLEnhancementsHeader = ` Mutagen SSPL-Licensed Enhancements -Copyright (c) 2020-present Mutagen IO, Inc. +Copyright (c) 2020-present Docker, Inc. This executable contains Mutagen enhancements licensed under the terms of the Server Side Public License, version 1, as published by MongoDB, Inc. A copy of diff --git a/sspl/pkg/compression/zstd/doc.go b/sspl/pkg/compression/zstd/doc.go index 0b10a49f..ef5c3b0c 100644 --- a/sspl/pkg/compression/zstd/doc.go +++ b/sspl/pkg/compression/zstd/doc.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023-present Mutagen IO, Inc. +// Copyright (c) 2023-present Docker, Inc. // // This program is free software: you can redistribute it and/or modify it under // the terms of the Server Side Public License, version 1, as published by diff --git a/sspl/pkg/compression/zstd/zstd.go b/sspl/pkg/compression/zstd/zstd.go index 952a88ed..b37ae523 100644 --- a/sspl/pkg/compression/zstd/zstd.go +++ b/sspl/pkg/compression/zstd/zstd.go @@ -1,6 +1,6 @@ //go:build mutagensspl -// Copyright (c) 2023-present Mutagen IO, Inc. +// Copyright (c) 2023-present Docker, Inc. // // This program is free software: you can redistribute it and/or modify it under // the terms of the Server Side Public License, version 1, as published by diff --git a/sspl/pkg/filesystem/watching/fanotify/doc.go b/sspl/pkg/filesystem/watching/fanotify/doc.go index b8212953..2f6d5da2 100644 --- a/sspl/pkg/filesystem/watching/fanotify/doc.go +++ b/sspl/pkg/filesystem/watching/fanotify/doc.go @@ -1,4 +1,4 @@ -// Copyright (c) 2022-present Mutagen IO, Inc. +// Copyright (c) 2022-present Docker, Inc. // // This program is free software: you can redistribute it and/or modify it under // the terms of the Server Side Public License, version 1, as published by diff --git a/sspl/pkg/filesystem/watching/fanotify/fanotify.go b/sspl/pkg/filesystem/watching/fanotify/fanotify.go index d93c54dd..d58e778a 100644 --- a/sspl/pkg/filesystem/watching/fanotify/fanotify.go +++ b/sspl/pkg/filesystem/watching/fanotify/fanotify.go @@ -1,6 +1,6 @@ //go:build linux && mutagensspl -// Copyright (c) 2020-present Mutagen IO, Inc. +// Copyright (c) 2020-present Docker, Inc. // // This program is free software: you can redistribute it and/or modify it under // the terms of the Server Side Public License, version 1, as published by diff --git a/sspl/pkg/filesystem/watching/fanotify/fanotify_test.go b/sspl/pkg/filesystem/watching/fanotify/fanotify_test.go index 89683a4c..fd9acc1b 100644 --- a/sspl/pkg/filesystem/watching/fanotify/fanotify_test.go +++ b/sspl/pkg/filesystem/watching/fanotify/fanotify_test.go @@ -1,6 +1,6 @@ //go:build linux && mutagensspl -// Copyright (c) 2022-present Mutagen IO, Inc. +// Copyright (c) 2022-present Docker, Inc. // // This program is free software: you can redistribute it and/or modify it under // the terms of the Server Side Public License, version 1, as published by diff --git a/sspl/pkg/filesystem/watching/fanotify/watch.go b/sspl/pkg/filesystem/watching/fanotify/watch.go index a0bc06b1..37caf598 100644 --- a/sspl/pkg/filesystem/watching/fanotify/watch.go +++ b/sspl/pkg/filesystem/watching/fanotify/watch.go @@ -1,6 +1,6 @@ //go:build linux && mutagensspl -// Copyright (c) 2020-present Mutagen IO, Inc. +// Copyright (c) 2020-present Docker, Inc. // // This program is free software: you can redistribute it and/or modify it under // the terms of the Server Side Public License, version 1, as published by diff --git a/sspl/pkg/filesystem/watching/fanotify/watch_test.go b/sspl/pkg/filesystem/watching/fanotify/watch_test.go index 89683a4c..fd9acc1b 100644 --- a/sspl/pkg/filesystem/watching/fanotify/watch_test.go +++ b/sspl/pkg/filesystem/watching/fanotify/watch_test.go @@ -1,6 +1,6 @@ //go:build linux && mutagensspl -// Copyright (c) 2022-present Mutagen IO, Inc. +// Copyright (c) 2022-present Docker, Inc. // // This program is free software: you can redistribute it and/or modify it under // the terms of the Server Side Public License, version 1, as published by diff --git a/sspl/pkg/hashing/xxh128/doc.go b/sspl/pkg/hashing/xxh128/doc.go index 6d11082c..ed18b397 100644 --- a/sspl/pkg/hashing/xxh128/doc.go +++ b/sspl/pkg/hashing/xxh128/doc.go @@ -1,4 +1,4 @@ -// Copyright (c) 2023-present Mutagen IO, Inc. +// Copyright (c) 2023-present Docker, Inc. // // This program is free software: you can redistribute it and/or modify it under // the terms of the Server Side Public License, version 1, as published by diff --git a/sspl/pkg/hashing/xxh128/xxh128.go b/sspl/pkg/hashing/xxh128/xxh128.go index be46bb70..58a5f979 100644 --- a/sspl/pkg/hashing/xxh128/xxh128.go +++ b/sspl/pkg/hashing/xxh128/xxh128.go @@ -1,6 +1,6 @@ //go:build mutagensspl -// Copyright (c) 2023-present Mutagen IO, Inc. +// Copyright (c) 2023-present Docker, Inc. // // This program is free software: you can redistribute it and/or modify it under // the terms of the Server Side Public License, version 1, as published by diff --git a/sspl/pkg/platform/linux/capabilities.go b/sspl/pkg/platform/linux/capabilities.go index ed9e9181..136cc081 100644 --- a/sspl/pkg/platform/linux/capabilities.go +++ b/sspl/pkg/platform/linux/capabilities.go @@ -1,6 +1,6 @@ //go:build linux && mutagensspl -// Copyright (c) 2020-present Mutagen IO, Inc. +// Copyright (c) 2020-present Docker, Inc. // // This program is free software: you can redistribute it and/or modify it under // the terms of the Server Side Public License, version 1, as published by diff --git a/sspl/pkg/platform/linux/capabilities_test.go b/sspl/pkg/platform/linux/capabilities_test.go index 6b292826..58292bbe 100644 --- a/sspl/pkg/platform/linux/capabilities_test.go +++ b/sspl/pkg/platform/linux/capabilities_test.go @@ -1,6 +1,6 @@ //go:build linux && mutagensspl -// Copyright (c) 2020-present Mutagen IO, Inc. +// Copyright (c) 2020-present Docker, Inc. // // This program is free software: you can redistribute it and/or modify it under // the terms of the Server Side Public License, version 1, as published by diff --git a/sspl/pkg/platform/linux/doc.go b/sspl/pkg/platform/linux/doc.go index 65782961..9fdba7ec 100644 --- a/sspl/pkg/platform/linux/doc.go +++ b/sspl/pkg/platform/linux/doc.go @@ -1,4 +1,4 @@ -// Copyright (c) 2022-present Mutagen IO, Inc. +// Copyright (c) 2022-present Docker, Inc. // // This program is free software: you can redistribute it and/or modify it under // the terms of the Server Side Public License, version 1, as published by diff --git a/sspl/pkg/platform/linux/version.go b/sspl/pkg/platform/linux/version.go index 6e71fee0..809ae6ee 100644 --- a/sspl/pkg/platform/linux/version.go +++ b/sspl/pkg/platform/linux/version.go @@ -1,6 +1,6 @@ //go:build linux && mutagensspl -// Copyright (c) 2020-present Mutagen IO, Inc. +// Copyright (c) 2020-present Docker, Inc. // // This program is free software: you can redistribute it and/or modify it under // the terms of the Server Side Public License, version 1, as published by diff --git a/sspl/pkg/platform/linux/version_test.go b/sspl/pkg/platform/linux/version_test.go index 758c156e..5addda6b 100644 --- a/sspl/pkg/platform/linux/version_test.go +++ b/sspl/pkg/platform/linux/version_test.go @@ -1,6 +1,6 @@ //go:build linux && mutagensspl -// Copyright (c) 2020-present Mutagen IO, Inc. +// Copyright (c) 2020-present Docker, Inc. // // This program is free software: you can redistribute it and/or modify it under // the terms of the Server Side Public License, version 1, as published by From df2b03d0cd8e5608b8bf48122d638adda3500927 Mon Sep 17 00:00:00 2001 From: Jacob Howard Date: Fri, 18 Oct 2024 14:44:03 -0600 Subject: [PATCH 03/10] deps: update github.com/bmatcuk/doublestar/v4 Signed-off-by: Jacob Howard --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index cbd28794..a10e7722 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.22 require ( github.com/Microsoft/go-winio v0.6.2 - github.com/bmatcuk/doublestar/v4 v4.6.1 + github.com/bmatcuk/doublestar/v4 v4.7.1 github.com/dustin/go-humanize v1.0.1 github.com/eknkc/basex v1.0.1 github.com/fatih/color v1.16.0 diff --git a/go.sum b/go.sum index 8301fccd..30d88113 100644 --- a/go.sum +++ b/go.sum @@ -6,8 +6,8 @@ github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb0 github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/bmatcuk/doublestar/v4 v4.6.1 h1:FH9SifrbvJhnlQpztAx++wlkk70QBf0iBWDwNy7PA4I= -github.com/bmatcuk/doublestar/v4 v4.6.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= +github.com/bmatcuk/doublestar/v4 v4.7.1 h1:fdDeAqgT47acgwd9bd9HxJRDmc9UAmPpc+2m0CXv75Q= +github.com/bmatcuk/doublestar/v4 v4.7.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= From 984c4ce224daf036119de5009a39ecbbe6f1f510 Mon Sep 17 00:00:00 2001 From: Jacob Howard Date: Fri, 18 Oct 2024 14:46:40 -0600 Subject: [PATCH 04/10] deps: update github.com/fatih/color Signed-off-by: Jacob Howard --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index a10e7722..79dda668 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/bmatcuk/doublestar/v4 v4.7.1 github.com/dustin/go-humanize v1.0.1 github.com/eknkc/basex v1.0.1 - github.com/fatih/color v1.16.0 + github.com/fatih/color v1.17.0 github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da github.com/google/uuid v1.6.0 github.com/hectane/go-acl v0.0.0-20230122075934-ca0b05cb1adb diff --git a/go.sum b/go.sum index 30d88113..83f98c45 100644 --- a/go.sum +++ b/go.sum @@ -24,8 +24,8 @@ github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= -github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= +github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= +github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= github.com/go-logr/logr v0.4.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= From d6faa461390bdb46b18ba35509a7874ce3b47a80 Mon Sep 17 00:00:00 2001 From: Jacob Howard Date: Fri, 18 Oct 2024 14:49:20 -0600 Subject: [PATCH 05/10] deps: update github.com/klauspost/compress Signed-off-by: Jacob Howard --- go.mod | 2 +- go.sum | 4 ++-- pkg/mutagen/licenses.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 79dda668..5c8a1f97 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da github.com/google/uuid v1.6.0 github.com/hectane/go-acl v0.0.0-20230122075934-ca0b05cb1adb - github.com/klauspost/compress v1.17.8 + github.com/klauspost/compress v1.17.11 github.com/mattn/go-isatty v0.0.20 github.com/mutagen-io/extstat v0.0.0-20210224131814-32fa3f057fa8 github.com/mutagen-io/fsevents v0.0.0-20230629001834-f53e17b91ebc diff --git a/go.sum b/go.sum index 83f98c45..1aafd540 100644 --- a/go.sum +++ b/go.sum @@ -78,8 +78,8 @@ github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCV github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.17.8 h1:YcnTYrq7MikUT7k0Yb5eceMmALQPYBW/Xltxn0NAMnU= -github.com/klauspost/compress v1.17.8/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= +github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IXrJmUc= +github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= github.com/klauspost/cpuid/v2 v2.0.9 h1:lgaqFMSdTdQYdZ04uHyN2d/eKdOMyi2YLSvlQIBFYa4= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= diff --git a/pkg/mutagen/licenses.go b/pkg/mutagen/licenses.go index 51447ca5..18f88106 100644 --- a/pkg/mutagen/licenses.go +++ b/pkg/mutagen/licenses.go @@ -178,7 +178,7 @@ compress http://github.com/klauspost/compress -Copyright (c) 2009-2016 The Go Authors. All rights reserved. +Copyright (c) 2009-2021 The Go Authors. All rights reserved. Copyright (c) 2015-2023 Klaus Post. All rights reserved. Copyright (c) 2024+ Klaus Post. All rights reserved. Copyright 2011 The Snappy-Go Authors. All rights reserved. From 7ca1c3cc38f4f072d969b7f9c31f099d06af0074 Mon Sep 17 00:00:00 2001 From: Jacob Howard Date: Fri, 18 Oct 2024 14:50:31 -0600 Subject: [PATCH 06/10] deps: update github.com/spf13/cobra Signed-off-by: Jacob Howard --- go.mod | 2 +- go.sum | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 5c8a1f97..20b02dfd 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( github.com/mutagen-io/extstat v0.0.0-20210224131814-32fa3f057fa8 github.com/mutagen-io/fsevents v0.0.0-20230629001834-f53e17b91ebc github.com/mutagen-io/gopass v0.0.0-20230214181532-d4b7cdfe054c - github.com/spf13/cobra v1.8.0 + github.com/spf13/cobra v1.8.1 github.com/spf13/pflag v1.0.5 github.com/zeebo/xxh3 v1.0.2 golang.org/x/net v0.24.0 diff --git a/go.sum b/go.sum index 1aafd540..60be3b2d 100644 --- a/go.sum +++ b/go.sum @@ -10,7 +10,7 @@ github.com/bmatcuk/doublestar/v4 v4.7.1 h1:fdDeAqgT47acgwd9bd9HxJRDmc9UAmPpc+2m0 github.com/bmatcuk/doublestar/v4 v4.7.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -123,8 +123,8 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= -github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= +github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= +github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= From ec0af5d725223349303fd049aec808197be52459 Mon Sep 17 00:00:00 2001 From: Jacob Howard Date: Fri, 18 Oct 2024 14:51:35 -0600 Subject: [PATCH 07/10] deps: update net, text, and term subrepositories Signed-off-by: Jacob Howard --- go.mod | 6 +++--- go.sum | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index 20b02dfd..7969d442 100644 --- a/go.mod +++ b/go.mod @@ -19,9 +19,9 @@ require ( github.com/spf13/cobra v1.8.1 github.com/spf13/pflag v1.0.5 github.com/zeebo/xxh3 v1.0.2 - golang.org/x/net v0.24.0 + golang.org/x/net v0.30.0 golang.org/x/sys v0.26.0 - golang.org/x/text v0.14.0 + golang.org/x/text v0.19.0 google.golang.org/grpc v1.63.2 google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0 google.golang.org/protobuf v1.33.0 @@ -34,7 +34,7 @@ require ( github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/klauspost/cpuid/v2 v2.0.9 // indirect github.com/mattn/go-colorable v0.1.13 // indirect - golang.org/x/term v0.19.0 // indirect + golang.org/x/term v0.25.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240429193739-8cf5692501f6 // indirect ) diff --git a/go.sum b/go.sum index 60be3b2d..a8f75366 100644 --- a/go.sum +++ b/go.sum @@ -161,8 +161,8 @@ golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210224082022-3d97a244fca7/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= -golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= +golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= +golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -184,14 +184,14 @@ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.19.0 h1:+ThwsDv+tYfnJFhF4L8jITxu1tdTWRTZpdsWgEgjL6Q= -golang.org/x/term v0.19.0/go.mod h1:2CuTdWZ7KHSQwUzKva0cbMg6q2DMI3Mmxp+gKJbskEk= +golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= +golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -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.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= +golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= From f257e62c9b16b9d6303c4c4927333a6072f4ab6b Mon Sep 17 00:00:00 2001 From: Jacob Howard Date: Fri, 18 Oct 2024 14:55:53 -0600 Subject: [PATCH 08/10] deps: update gRPC, Protocol Buffers, and generator dependencies Signed-off-by: Jacob Howard --- go.mod | 8 ++++---- go.sum | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/go.mod b/go.mod index 7969d442..b41998e6 100644 --- a/go.mod +++ b/go.mod @@ -22,9 +22,9 @@ require ( golang.org/x/net v0.30.0 golang.org/x/sys v0.26.0 golang.org/x/text v0.19.0 - google.golang.org/grpc v1.63.2 - google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0 - google.golang.org/protobuf v1.33.0 + google.golang.org/grpc v1.67.1 + google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1 + google.golang.org/protobuf v1.35.1 gopkg.in/yaml.v2 v2.4.0 k8s.io/apimachinery v0.21.3 ) @@ -35,7 +35,7 @@ require ( github.com/klauspost/cpuid/v2 v2.0.9 // indirect github.com/mattn/go-colorable v0.1.13 // indirect golang.org/x/term v0.25.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240429193739-8cf5692501f6 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect ) replace k8s.io/apimachinery v0.21.3 => github.com/mutagen-io/apimachinery v0.21.3-mutagen1 diff --git a/go.sum b/go.sum index a8f75366..5f08e367 100644 --- a/go.sum +++ b/go.sum @@ -210,15 +210,15 @@ 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240429193739-8cf5692501f6 h1:DujSIu+2tC9Ht0aPNA7jgj23Iq8Ewi5sgkQ++wdvonE= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240429193739-8cf5692501f6/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 h1:X58yt85/IXCx0Y3ZwN6sEIKZzQtDEYaBWrDvErdXrRE= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53/go.mod h1:GX3210XPVPUjJbTUbvwI8f2IpZDMZuPJWDzDuebbviI= 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.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.63.2 h1:MUeiw1B2maTVZthpU5xvASfTh3LDbxHd6IJ6QQVU+xM= -google.golang.org/grpc v1.63.2/go.mod h1:WAX/8DgncnokcFUldAxq7GeB5DXHDbMF+lLvDomNkRA= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0 h1:rNBFJjBCOgVr9pWD7rs/knKL4FRTKgpZmsRfV214zcA= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0/go.mod h1:Dk1tviKTvMCz5tvh7t+fh94dhmQVHuCt2OzJB3CTW9Y= +google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= +google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1 h1:F29+wU6Ee6qgu9TddPgooOdaqsxTMunOoj8KA5yuS5A= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1/go.mod h1:5KF+wpkbTSbGcR9zteSqZV6fqFOWBl4Yde8En8MryZA= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -228,8 +228,8 @@ google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2 google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= +google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= From 0fabd6c973ad46cd997cfd1301707a8061935a4b Mon Sep 17 00:00:00 2001 From: Jacob Howard Date: Fri, 18 Oct 2024 14:58:33 -0600 Subject: [PATCH 09/10] all: regenerate Protocol Buffers and gRPC code Signed-off-by: Jacob Howard --- pkg/filesystem/behavior/probe_mode.pb.go | 6 +- pkg/forwarding/configuration.pb.go | 30 +- pkg/forwarding/endpoint/remote/protocol.pb.go | 52 +-- pkg/forwarding/session.pb.go | 30 +- pkg/forwarding/socket_overwrite_mode.pb.go | 6 +- pkg/forwarding/state.pb.go | 52 +-- pkg/forwarding/version.pb.go | 6 +- pkg/selection/selection.pb.go | 30 +- pkg/service/daemon/daemon.pb.go | 96 +---- pkg/service/daemon/daemon_grpc.pb.go | 42 ++- pkg/service/forwarding/forwarding.pb.go | 250 +++---------- pkg/service/forwarding/forwarding_grpc.pb.go | 64 +++- pkg/service/prompting/prompting.pb.go | 96 +---- pkg/service/prompting/prompting_grpc.pb.go | 102 +++--- .../synchronization/synchronization.pb.go | 338 ++++-------------- .../synchronization_grpc.pb.go | 76 ++-- .../compression/algorithm.pb.go | 6 +- pkg/synchronization/configuration.pb.go | 30 +- pkg/synchronization/core/archive.pb.go | 30 +- pkg/synchronization/core/cache.pb.go | 52 +-- pkg/synchronization/core/change.pb.go | 30 +- pkg/synchronization/core/conflict.pb.go | 30 +- pkg/synchronization/core/entry.pb.go | 30 +- .../core/ignore/ignore_vcs_mode.pb.go | 6 +- pkg/synchronization/core/ignore/syntax.pb.go | 6 +- pkg/synchronization/core/mode.pb.go | 6 +- .../core/permissions_mode.pb.go | 6 +- pkg/synchronization/core/problem.pb.go | 30 +- pkg/synchronization/core/snapshot.pb.go | 30 +- .../core/symbolic_link_mode.pb.go | 6 +- .../endpoint/remote/protocol.pb.go | 338 ++++-------------- pkg/synchronization/hashing/algorithm.pb.go | 6 +- pkg/synchronization/rsync/engine.pb.go | 74 +--- pkg/synchronization/rsync/receive.pb.go | 30 +- pkg/synchronization/rsync/transmission.pb.go | 30 +- pkg/synchronization/scan_mode.pb.go | 6 +- pkg/synchronization/session.pb.go | 30 +- pkg/synchronization/stage_mode.pb.go | 6 +- pkg/synchronization/state.pb.go | 52 +-- pkg/synchronization/version.pb.go | 6 +- pkg/synchronization/watch_mode.pb.go | 6 +- pkg/url/url.pb.go | 30 +- 42 files changed, 583 insertions(+), 1605 deletions(-) diff --git a/pkg/filesystem/behavior/probe_mode.pb.go b/pkg/filesystem/behavior/probe_mode.pb.go index 2f87a599..2d76c392 100644 --- a/pkg/filesystem/behavior/probe_mode.pb.go +++ b/pkg/filesystem/behavior/probe_mode.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: filesystem/behavior/probe_mode.proto package behavior @@ -110,7 +110,7 @@ func file_filesystem_behavior_probe_mode_proto_rawDescGZIP() []byte { } var file_filesystem_behavior_probe_mode_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_filesystem_behavior_probe_mode_proto_goTypes = []interface{}{ +var file_filesystem_behavior_probe_mode_proto_goTypes = []any{ (ProbeMode)(0), // 0: behavior.ProbeMode } var file_filesystem_behavior_probe_mode_proto_depIdxs = []int32{ diff --git a/pkg/forwarding/configuration.pb.go b/pkg/forwarding/configuration.pb.go index d85acff5..b3505e79 100644 --- a/pkg/forwarding/configuration.pb.go +++ b/pkg/forwarding/configuration.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: forwarding/configuration.proto package forwarding @@ -45,11 +45,9 @@ type Configuration struct { func (x *Configuration) Reset() { *x = Configuration{} - if protoimpl.UnsafeEnabled { - mi := &file_forwarding_configuration_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_forwarding_configuration_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Configuration) String() string { @@ -60,7 +58,7 @@ func (*Configuration) ProtoMessage() {} func (x *Configuration) ProtoReflect() protoreflect.Message { mi := &file_forwarding_configuration_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -144,7 +142,7 @@ func file_forwarding_configuration_proto_rawDescGZIP() []byte { } var file_forwarding_configuration_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_forwarding_configuration_proto_goTypes = []interface{}{ +var file_forwarding_configuration_proto_goTypes = []any{ (*Configuration)(nil), // 0: forwarding.Configuration (SocketOverwriteMode)(0), // 1: forwarding.SocketOverwriteMode } @@ -163,20 +161,6 @@ func file_forwarding_configuration_proto_init() { return } file_forwarding_socket_overwrite_mode_proto_init() - if !protoimpl.UnsafeEnabled { - file_forwarding_configuration_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Configuration); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/forwarding/endpoint/remote/protocol.pb.go b/pkg/forwarding/endpoint/remote/protocol.pb.go index f7174438..8bf1cd7c 100644 --- a/pkg/forwarding/endpoint/remote/protocol.pb.go +++ b/pkg/forwarding/endpoint/remote/protocol.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: forwarding/endpoint/remote/protocol.proto package remote @@ -44,11 +44,9 @@ type InitializeForwardingRequest struct { func (x *InitializeForwardingRequest) Reset() { *x = InitializeForwardingRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_forwarding_endpoint_remote_protocol_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_forwarding_endpoint_remote_protocol_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InitializeForwardingRequest) String() string { @@ -59,7 +57,7 @@ func (*InitializeForwardingRequest) ProtoMessage() {} func (x *InitializeForwardingRequest) ProtoReflect() protoreflect.Message { mi := &file_forwarding_endpoint_remote_protocol_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -122,11 +120,9 @@ type InitializeForwardingResponse struct { func (x *InitializeForwardingResponse) Reset() { *x = InitializeForwardingResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_forwarding_endpoint_remote_protocol_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_forwarding_endpoint_remote_protocol_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InitializeForwardingResponse) String() string { @@ -137,7 +133,7 @@ func (*InitializeForwardingResponse) ProtoMessage() {} func (x *InitializeForwardingResponse) ProtoReflect() protoreflect.Message { mi := &file_forwarding_endpoint_remote_protocol_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -206,7 +202,7 @@ func file_forwarding_endpoint_remote_protocol_proto_rawDescGZIP() []byte { } var file_forwarding_endpoint_remote_protocol_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_forwarding_endpoint_remote_protocol_proto_goTypes = []interface{}{ +var file_forwarding_endpoint_remote_protocol_proto_goTypes = []any{ (*InitializeForwardingRequest)(nil), // 0: remote.InitializeForwardingRequest (*InitializeForwardingResponse)(nil), // 1: remote.InitializeForwardingResponse (forwarding.Version)(0), // 2: forwarding.Version @@ -227,32 +223,6 @@ func file_forwarding_endpoint_remote_protocol_proto_init() { if File_forwarding_endpoint_remote_protocol_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_forwarding_endpoint_remote_protocol_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitializeForwardingRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_forwarding_endpoint_remote_protocol_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitializeForwardingResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/forwarding/session.pb.go b/pkg/forwarding/session.pb.go index 3104c09d..8789102d 100644 --- a/pkg/forwarding/session.pb.go +++ b/pkg/forwarding/session.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: forwarding/session.proto package forwarding @@ -74,11 +74,9 @@ type Session struct { func (x *Session) Reset() { *x = Session{} - if protoimpl.UnsafeEnabled { - mi := &file_forwarding_session_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_forwarding_session_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Session) String() string { @@ -89,7 +87,7 @@ func (*Session) ProtoMessage() {} func (x *Session) ProtoReflect() protoreflect.Message { mi := &file_forwarding_session_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -282,7 +280,7 @@ func file_forwarding_session_proto_rawDescGZIP() []byte { } var file_forwarding_session_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_forwarding_session_proto_goTypes = []interface{}{ +var file_forwarding_session_proto_goTypes = []any{ (*Session)(nil), // 0: forwarding.Session nil, // 1: forwarding.Session.LabelsEntry (Version)(0), // 2: forwarding.Version @@ -313,20 +311,6 @@ func file_forwarding_session_proto_init() { } file_forwarding_configuration_proto_init() file_forwarding_version_proto_init() - if !protoimpl.UnsafeEnabled { - file_forwarding_session_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Session); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/forwarding/socket_overwrite_mode.pb.go b/pkg/forwarding/socket_overwrite_mode.pb.go index 344a6a3e..0917f876 100644 --- a/pkg/forwarding/socket_overwrite_mode.pb.go +++ b/pkg/forwarding/socket_overwrite_mode.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: forwarding/socket_overwrite_mode.proto package forwarding @@ -113,7 +113,7 @@ func file_forwarding_socket_overwrite_mode_proto_rawDescGZIP() []byte { } var file_forwarding_socket_overwrite_mode_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_forwarding_socket_overwrite_mode_proto_goTypes = []interface{}{ +var file_forwarding_socket_overwrite_mode_proto_goTypes = []any{ (SocketOverwriteMode)(0), // 0: forwarding.SocketOverwriteMode } var file_forwarding_socket_overwrite_mode_proto_depIdxs = []int32{ diff --git a/pkg/forwarding/state.pb.go b/pkg/forwarding/state.pb.go index 4f2b0a8d..70bec79d 100644 --- a/pkg/forwarding/state.pb.go +++ b/pkg/forwarding/state.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: forwarding/state.proto package forwarding @@ -96,11 +96,9 @@ type EndpointState struct { func (x *EndpointState) Reset() { *x = EndpointState{} - if protoimpl.UnsafeEnabled { - mi := &file_forwarding_state_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_forwarding_state_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EndpointState) String() string { @@ -111,7 +109,7 @@ func (*EndpointState) ProtoMessage() {} func (x *EndpointState) ProtoReflect() protoreflect.Message { mi := &file_forwarding_state_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -170,11 +168,9 @@ type State struct { func (x *State) Reset() { *x = State{} - if protoimpl.UnsafeEnabled { - mi := &file_forwarding_state_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_forwarding_state_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *State) String() string { @@ -185,7 +181,7 @@ func (*State) ProtoMessage() {} func (x *State) ProtoReflect() protoreflect.Message { mi := &file_forwarding_state_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -327,7 +323,7 @@ func file_forwarding_state_proto_rawDescGZIP() []byte { var file_forwarding_state_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_forwarding_state_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_forwarding_state_proto_goTypes = []interface{}{ +var file_forwarding_state_proto_goTypes = []any{ (Status)(0), // 0: forwarding.Status (*EndpointState)(nil), // 1: forwarding.EndpointState (*State)(nil), // 2: forwarding.State @@ -351,32 +347,6 @@ func file_forwarding_state_proto_init() { return } file_forwarding_session_proto_init() - if !protoimpl.UnsafeEnabled { - file_forwarding_state_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EndpointState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_forwarding_state_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*State); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/forwarding/version.pb.go b/pkg/forwarding/version.pb.go index 967f13c6..bedb8633 100644 --- a/pkg/forwarding/version.pb.go +++ b/pkg/forwarding/version.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: forwarding/version.proto package forwarding @@ -99,7 +99,7 @@ func file_forwarding_version_proto_rawDescGZIP() []byte { } var file_forwarding_version_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_forwarding_version_proto_goTypes = []interface{}{ +var file_forwarding_version_proto_goTypes = []any{ (Version)(0), // 0: forwarding.Version } var file_forwarding_version_proto_depIdxs = []int32{ diff --git a/pkg/selection/selection.pb.go b/pkg/selection/selection.pb.go index b6579d70..dae8f508 100644 --- a/pkg/selection/selection.pb.go +++ b/pkg/selection/selection.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: selection/selection.proto package selection @@ -40,11 +40,9 @@ type Selection struct { func (x *Selection) Reset() { *x = Selection{} - if protoimpl.UnsafeEnabled { - mi := &file_selection_selection_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_selection_selection_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Selection) String() string { @@ -55,7 +53,7 @@ func (*Selection) ProtoMessage() {} func (x *Selection) ProtoReflect() protoreflect.Message { mi := &file_selection_selection_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -122,7 +120,7 @@ func file_selection_selection_proto_rawDescGZIP() []byte { } var file_selection_selection_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_selection_selection_proto_goTypes = []interface{}{ +var file_selection_selection_proto_goTypes = []any{ (*Selection)(nil), // 0: selection.Selection } var file_selection_selection_proto_depIdxs = []int32{ @@ -138,20 +136,6 @@ func file_selection_selection_proto_init() { if File_selection_selection_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_selection_selection_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Selection); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/service/daemon/daemon.pb.go b/pkg/service/daemon/daemon.pb.go index 511ada38..9e251672 100644 --- a/pkg/service/daemon/daemon.pb.go +++ b/pkg/service/daemon/daemon.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: service/daemon/daemon.proto package daemon @@ -28,11 +28,9 @@ type VersionRequest struct { func (x *VersionRequest) Reset() { *x = VersionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_daemon_daemon_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_daemon_daemon_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *VersionRequest) String() string { @@ -43,7 +41,7 @@ func (*VersionRequest) ProtoMessage() {} func (x *VersionRequest) ProtoReflect() protoreflect.Message { mi := &file_service_daemon_daemon_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -73,11 +71,9 @@ type VersionResponse struct { func (x *VersionResponse) Reset() { *x = VersionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_daemon_daemon_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_daemon_daemon_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *VersionResponse) String() string { @@ -88,7 +84,7 @@ func (*VersionResponse) ProtoMessage() {} func (x *VersionResponse) ProtoReflect() protoreflect.Message { mi := &file_service_daemon_daemon_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -139,11 +135,9 @@ type TerminateRequest struct { func (x *TerminateRequest) Reset() { *x = TerminateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_daemon_daemon_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_daemon_daemon_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TerminateRequest) String() string { @@ -154,7 +148,7 @@ func (*TerminateRequest) ProtoMessage() {} func (x *TerminateRequest) ProtoReflect() protoreflect.Message { mi := &file_service_daemon_daemon_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -177,11 +171,9 @@ type TerminateResponse struct { func (x *TerminateResponse) Reset() { *x = TerminateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_daemon_daemon_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_daemon_daemon_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TerminateResponse) String() string { @@ -192,7 +184,7 @@ func (*TerminateResponse) ProtoMessage() {} func (x *TerminateResponse) ProtoReflect() protoreflect.Message { mi := &file_service_daemon_daemon_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -250,7 +242,7 @@ func file_service_daemon_daemon_proto_rawDescGZIP() []byte { } var file_service_daemon_daemon_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_service_daemon_daemon_proto_goTypes = []interface{}{ +var file_service_daemon_daemon_proto_goTypes = []any{ (*VersionRequest)(nil), // 0: daemon.VersionRequest (*VersionResponse)(nil), // 1: daemon.VersionResponse (*TerminateRequest)(nil), // 2: daemon.TerminateRequest @@ -273,56 +265,6 @@ func file_service_daemon_daemon_proto_init() { if File_service_daemon_daemon_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_service_daemon_daemon_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VersionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_daemon_daemon_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VersionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_daemon_daemon_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TerminateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_daemon_daemon_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TerminateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/service/daemon/daemon_grpc.pb.go b/pkg/service/daemon/daemon_grpc.pb.go index d9207c4c..51f83bf5 100644 --- a/pkg/service/daemon/daemon_grpc.pb.go +++ b/pkg/service/daemon/daemon_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v5.26.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.28.2 // source: service/daemon/daemon.proto package daemon @@ -15,8 +15,13 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Daemon_Version_FullMethodName = "/daemon.Daemon/Version" + Daemon_Terminate_FullMethodName = "/daemon.Daemon/Terminate" +) // DaemonClient is the client API for Daemon service. // @@ -35,8 +40,9 @@ func NewDaemonClient(cc grpc.ClientConnInterface) DaemonClient { } func (c *daemonClient) Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(VersionResponse) - err := c.cc.Invoke(ctx, "/daemon.Daemon/Version", in, out, opts...) + err := c.cc.Invoke(ctx, Daemon_Version_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -44,8 +50,9 @@ func (c *daemonClient) Version(ctx context.Context, in *VersionRequest, opts ... } func (c *daemonClient) Terminate(ctx context.Context, in *TerminateRequest, opts ...grpc.CallOption) (*TerminateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TerminateResponse) - err := c.cc.Invoke(ctx, "/daemon.Daemon/Terminate", in, out, opts...) + err := c.cc.Invoke(ctx, Daemon_Terminate_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -54,16 +61,19 @@ func (c *daemonClient) Terminate(ctx context.Context, in *TerminateRequest, opts // DaemonServer is the server API for Daemon service. // All implementations must embed UnimplementedDaemonServer -// for forward compatibility +// for forward compatibility. type DaemonServer interface { Version(context.Context, *VersionRequest) (*VersionResponse, error) Terminate(context.Context, *TerminateRequest) (*TerminateResponse, error) mustEmbedUnimplementedDaemonServer() } -// UnimplementedDaemonServer must be embedded to have forward compatible implementations. -type UnimplementedDaemonServer struct { -} +// UnimplementedDaemonServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDaemonServer struct{} func (UnimplementedDaemonServer) Version(context.Context, *VersionRequest) (*VersionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") @@ -72,6 +82,7 @@ func (UnimplementedDaemonServer) Terminate(context.Context, *TerminateRequest) ( return nil, status.Errorf(codes.Unimplemented, "method Terminate not implemented") } func (UnimplementedDaemonServer) mustEmbedUnimplementedDaemonServer() {} +func (UnimplementedDaemonServer) testEmbeddedByValue() {} // UnsafeDaemonServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DaemonServer will @@ -81,6 +92,13 @@ type UnsafeDaemonServer interface { } func RegisterDaemonServer(s grpc.ServiceRegistrar, srv DaemonServer) { + // If the following call pancis, it indicates UnimplementedDaemonServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Daemon_ServiceDesc, srv) } @@ -94,7 +112,7 @@ func _Daemon_Version_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/daemon.Daemon/Version", + FullMethod: Daemon_Version_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DaemonServer).Version(ctx, req.(*VersionRequest)) @@ -112,7 +130,7 @@ func _Daemon_Terminate_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/daemon.Daemon/Terminate", + FullMethod: Daemon_Terminate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DaemonServer).Terminate(ctx, req.(*TerminateRequest)) diff --git a/pkg/service/forwarding/forwarding.pb.go b/pkg/service/forwarding/forwarding.pb.go index e6329b29..f5cdc7f4 100644 --- a/pkg/service/forwarding/forwarding.pb.go +++ b/pkg/service/forwarding/forwarding.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: service/forwarding/forwarding.proto package forwarding @@ -55,11 +55,9 @@ type CreationSpecification struct { func (x *CreationSpecification) Reset() { *x = CreationSpecification{} - if protoimpl.UnsafeEnabled { - mi := &file_service_forwarding_forwarding_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_forwarding_forwarding_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreationSpecification) String() string { @@ -70,7 +68,7 @@ func (*CreationSpecification) ProtoMessage() {} func (x *CreationSpecification) ProtoReflect() protoreflect.Message { mi := &file_service_forwarding_forwarding_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -155,11 +153,9 @@ type CreateRequest struct { func (x *CreateRequest) Reset() { *x = CreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_forwarding_forwarding_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_forwarding_forwarding_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateRequest) String() string { @@ -170,7 +166,7 @@ func (*CreateRequest) ProtoMessage() {} func (x *CreateRequest) ProtoReflect() protoreflect.Message { mi := &file_service_forwarding_forwarding_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -211,11 +207,9 @@ type CreateResponse struct { func (x *CreateResponse) Reset() { *x = CreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_forwarding_forwarding_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_forwarding_forwarding_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateResponse) String() string { @@ -226,7 +220,7 @@ func (*CreateResponse) ProtoMessage() {} func (x *CreateResponse) ProtoReflect() protoreflect.Message { mi := &file_service_forwarding_forwarding_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -263,11 +257,9 @@ type ListRequest struct { func (x *ListRequest) Reset() { *x = ListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_forwarding_forwarding_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_forwarding_forwarding_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListRequest) String() string { @@ -278,7 +270,7 @@ func (*ListRequest) ProtoMessage() {} func (x *ListRequest) ProtoReflect() protoreflect.Message { mi := &file_service_forwarding_forwarding_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -321,11 +313,9 @@ type ListResponse struct { func (x *ListResponse) Reset() { *x = ListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_forwarding_forwarding_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_forwarding_forwarding_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListResponse) String() string { @@ -336,7 +326,7 @@ func (*ListResponse) ProtoMessage() {} func (x *ListResponse) ProtoReflect() protoreflect.Message { mi := &file_service_forwarding_forwarding_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -379,11 +369,9 @@ type PauseRequest struct { func (x *PauseRequest) Reset() { *x = PauseRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_forwarding_forwarding_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_forwarding_forwarding_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PauseRequest) String() string { @@ -394,7 +382,7 @@ func (*PauseRequest) ProtoMessage() {} func (x *PauseRequest) ProtoReflect() protoreflect.Message { mi := &file_service_forwarding_forwarding_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -432,11 +420,9 @@ type PauseResponse struct { func (x *PauseResponse) Reset() { *x = PauseResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_forwarding_forwarding_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_forwarding_forwarding_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PauseResponse) String() string { @@ -447,7 +433,7 @@ func (*PauseResponse) ProtoMessage() {} func (x *PauseResponse) ProtoReflect() protoreflect.Message { mi := &file_service_forwarding_forwarding_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -476,11 +462,9 @@ type ResumeRequest struct { func (x *ResumeRequest) Reset() { *x = ResumeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_forwarding_forwarding_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_forwarding_forwarding_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResumeRequest) String() string { @@ -491,7 +475,7 @@ func (*ResumeRequest) ProtoMessage() {} func (x *ResumeRequest) ProtoReflect() protoreflect.Message { mi := &file_service_forwarding_forwarding_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -529,11 +513,9 @@ type ResumeResponse struct { func (x *ResumeResponse) Reset() { *x = ResumeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_forwarding_forwarding_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_forwarding_forwarding_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResumeResponse) String() string { @@ -544,7 +526,7 @@ func (*ResumeResponse) ProtoMessage() {} func (x *ResumeResponse) ProtoReflect() protoreflect.Message { mi := &file_service_forwarding_forwarding_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -573,11 +555,9 @@ type TerminateRequest struct { func (x *TerminateRequest) Reset() { *x = TerminateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_forwarding_forwarding_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_forwarding_forwarding_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TerminateRequest) String() string { @@ -588,7 +568,7 @@ func (*TerminateRequest) ProtoMessage() {} func (x *TerminateRequest) ProtoReflect() protoreflect.Message { mi := &file_service_forwarding_forwarding_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -626,11 +606,9 @@ type TerminateResponse struct { func (x *TerminateResponse) Reset() { *x = TerminateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_forwarding_forwarding_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_forwarding_forwarding_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TerminateResponse) String() string { @@ -641,7 +619,7 @@ func (*TerminateResponse) ProtoMessage() {} func (x *TerminateResponse) ProtoReflect() protoreflect.Message { mi := &file_service_forwarding_forwarding_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -787,7 +765,7 @@ func file_service_forwarding_forwarding_proto_rawDescGZIP() []byte { } var file_service_forwarding_forwarding_proto_msgTypes = make([]protoimpl.MessageInfo, 12) -var file_service_forwarding_forwarding_proto_goTypes = []interface{}{ +var file_service_forwarding_forwarding_proto_goTypes = []any{ (*CreationSpecification)(nil), // 0: forwarding.CreationSpecification (*CreateRequest)(nil), // 1: forwarding.CreateRequest (*CreateResponse)(nil), // 2: forwarding.CreateResponse @@ -840,140 +818,6 @@ func file_service_forwarding_forwarding_proto_init() { if File_service_forwarding_forwarding_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_service_forwarding_forwarding_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreationSpecification); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_forwarding_forwarding_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_forwarding_forwarding_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_forwarding_forwarding_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_forwarding_forwarding_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_forwarding_forwarding_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PauseRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_forwarding_forwarding_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PauseResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_forwarding_forwarding_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResumeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_forwarding_forwarding_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResumeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_forwarding_forwarding_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TerminateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_forwarding_forwarding_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TerminateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/service/forwarding/forwarding_grpc.pb.go b/pkg/service/forwarding/forwarding_grpc.pb.go index d38ad335..1a010a0c 100644 --- a/pkg/service/forwarding/forwarding_grpc.pb.go +++ b/pkg/service/forwarding/forwarding_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v5.26.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.28.2 // source: service/forwarding/forwarding.proto package forwarding @@ -15,12 +15,22 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Forwarding_Create_FullMethodName = "/forwarding.Forwarding/Create" + Forwarding_List_FullMethodName = "/forwarding.Forwarding/List" + Forwarding_Pause_FullMethodName = "/forwarding.Forwarding/Pause" + Forwarding_Resume_FullMethodName = "/forwarding.Forwarding/Resume" + Forwarding_Terminate_FullMethodName = "/forwarding.Forwarding/Terminate" +) // ForwardingClient is the client API for Forwarding service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// Forwarding manages the lifecycle of forwarding sessions. type ForwardingClient interface { // Create creates a new session. Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) @@ -43,8 +53,9 @@ func NewForwardingClient(cc grpc.ClientConnInterface) ForwardingClient { } func (c *forwardingClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateResponse) - err := c.cc.Invoke(ctx, "/forwarding.Forwarding/Create", in, out, opts...) + err := c.cc.Invoke(ctx, Forwarding_Create_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -52,8 +63,9 @@ func (c *forwardingClient) Create(ctx context.Context, in *CreateRequest, opts . } func (c *forwardingClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListResponse) - err := c.cc.Invoke(ctx, "/forwarding.Forwarding/List", in, out, opts...) + err := c.cc.Invoke(ctx, Forwarding_List_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -61,8 +73,9 @@ func (c *forwardingClient) List(ctx context.Context, in *ListRequest, opts ...gr } func (c *forwardingClient) Pause(ctx context.Context, in *PauseRequest, opts ...grpc.CallOption) (*PauseResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PauseResponse) - err := c.cc.Invoke(ctx, "/forwarding.Forwarding/Pause", in, out, opts...) + err := c.cc.Invoke(ctx, Forwarding_Pause_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,8 +83,9 @@ func (c *forwardingClient) Pause(ctx context.Context, in *PauseRequest, opts ... } func (c *forwardingClient) Resume(ctx context.Context, in *ResumeRequest, opts ...grpc.CallOption) (*ResumeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ResumeResponse) - err := c.cc.Invoke(ctx, "/forwarding.Forwarding/Resume", in, out, opts...) + err := c.cc.Invoke(ctx, Forwarding_Resume_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -79,8 +93,9 @@ func (c *forwardingClient) Resume(ctx context.Context, in *ResumeRequest, opts . } func (c *forwardingClient) Terminate(ctx context.Context, in *TerminateRequest, opts ...grpc.CallOption) (*TerminateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TerminateResponse) - err := c.cc.Invoke(ctx, "/forwarding.Forwarding/Terminate", in, out, opts...) + err := c.cc.Invoke(ctx, Forwarding_Terminate_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -89,7 +104,9 @@ func (c *forwardingClient) Terminate(ctx context.Context, in *TerminateRequest, // ForwardingServer is the server API for Forwarding service. // All implementations must embed UnimplementedForwardingServer -// for forward compatibility +// for forward compatibility. +// +// Forwarding manages the lifecycle of forwarding sessions. type ForwardingServer interface { // Create creates a new session. Create(context.Context, *CreateRequest) (*CreateResponse, error) @@ -104,9 +121,12 @@ type ForwardingServer interface { mustEmbedUnimplementedForwardingServer() } -// UnimplementedForwardingServer must be embedded to have forward compatible implementations. -type UnimplementedForwardingServer struct { -} +// UnimplementedForwardingServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedForwardingServer struct{} func (UnimplementedForwardingServer) Create(context.Context, *CreateRequest) (*CreateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") @@ -124,6 +144,7 @@ func (UnimplementedForwardingServer) Terminate(context.Context, *TerminateReques return nil, status.Errorf(codes.Unimplemented, "method Terminate not implemented") } func (UnimplementedForwardingServer) mustEmbedUnimplementedForwardingServer() {} +func (UnimplementedForwardingServer) testEmbeddedByValue() {} // UnsafeForwardingServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ForwardingServer will @@ -133,6 +154,13 @@ type UnsafeForwardingServer interface { } func RegisterForwardingServer(s grpc.ServiceRegistrar, srv ForwardingServer) { + // If the following call pancis, it indicates UnimplementedForwardingServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Forwarding_ServiceDesc, srv) } @@ -146,7 +174,7 @@ func _Forwarding_Create_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/forwarding.Forwarding/Create", + FullMethod: Forwarding_Create_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ForwardingServer).Create(ctx, req.(*CreateRequest)) @@ -164,7 +192,7 @@ func _Forwarding_List_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/forwarding.Forwarding/List", + FullMethod: Forwarding_List_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ForwardingServer).List(ctx, req.(*ListRequest)) @@ -182,7 +210,7 @@ func _Forwarding_Pause_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/forwarding.Forwarding/Pause", + FullMethod: Forwarding_Pause_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ForwardingServer).Pause(ctx, req.(*PauseRequest)) @@ -200,7 +228,7 @@ func _Forwarding_Resume_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/forwarding.Forwarding/Resume", + FullMethod: Forwarding_Resume_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ForwardingServer).Resume(ctx, req.(*ResumeRequest)) @@ -218,7 +246,7 @@ func _Forwarding_Terminate_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/forwarding.Forwarding/Terminate", + FullMethod: Forwarding_Terminate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ForwardingServer).Terminate(ctx, req.(*TerminateRequest)) diff --git a/pkg/service/prompting/prompting.pb.go b/pkg/service/prompting/prompting.pb.go index 703f634b..78706e81 100644 --- a/pkg/service/prompting/prompting.pb.go +++ b/pkg/service/prompting/prompting.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: service/prompting/prompting.proto package prompting @@ -39,11 +39,9 @@ type HostRequest struct { func (x *HostRequest) Reset() { *x = HostRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_prompting_prompting_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_prompting_prompting_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HostRequest) String() string { @@ -54,7 +52,7 @@ func (*HostRequest) ProtoMessage() {} func (x *HostRequest) ProtoReflect() protoreflect.Message { mi := &file_service_prompting_prompting_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -102,11 +100,9 @@ type HostResponse struct { func (x *HostResponse) Reset() { *x = HostResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_prompting_prompting_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_prompting_prompting_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HostResponse) String() string { @@ -117,7 +113,7 @@ func (*HostResponse) ProtoMessage() {} func (x *HostResponse) ProtoReflect() protoreflect.Message { mi := &file_service_prompting_prompting_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -167,11 +163,9 @@ type PromptRequest struct { func (x *PromptRequest) Reset() { *x = PromptRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_prompting_prompting_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_prompting_prompting_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PromptRequest) String() string { @@ -182,7 +176,7 @@ func (*PromptRequest) ProtoMessage() {} func (x *PromptRequest) ProtoReflect() protoreflect.Message { mi := &file_service_prompting_prompting_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -223,11 +217,9 @@ type PromptResponse struct { func (x *PromptResponse) Reset() { *x = PromptResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_prompting_prompting_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_prompting_prompting_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PromptResponse) String() string { @@ -238,7 +230,7 @@ func (*PromptResponse) ProtoMessage() {} func (x *PromptResponse) ProtoReflect() protoreflect.Message { mi := &file_service_prompting_prompting_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -313,7 +305,7 @@ func file_service_prompting_prompting_proto_rawDescGZIP() []byte { } var file_service_prompting_prompting_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_service_prompting_prompting_proto_goTypes = []interface{}{ +var file_service_prompting_prompting_proto_goTypes = []any{ (*HostRequest)(nil), // 0: prompting.HostRequest (*HostResponse)(nil), // 1: prompting.HostResponse (*PromptRequest)(nil), // 2: prompting.PromptRequest @@ -336,56 +328,6 @@ func file_service_prompting_prompting_proto_init() { if File_service_prompting_prompting_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_service_prompting_prompting_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HostRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_prompting_prompting_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HostResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_prompting_prompting_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PromptRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_prompting_prompting_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PromptResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/service/prompting/prompting_grpc.pb.go b/pkg/service/prompting/prompting_grpc.pb.go index 70412371..558cf9ff 100644 --- a/pkg/service/prompting/prompting_grpc.pb.go +++ b/pkg/service/prompting/prompting_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v5.26.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.28.2 // source: service/prompting/prompting.proto package prompting @@ -15,15 +15,22 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Prompting_Host_FullMethodName = "/prompting.Prompting/Host" + Prompting_Prompt_FullMethodName = "/prompting.Prompting/Prompt" +) // PromptingClient is the client API for Prompting service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// Prompting allows clients to host and request prompting. type PromptingClient interface { // Host allows clients to perform prompt hosting. - Host(ctx context.Context, opts ...grpc.CallOption) (Prompting_HostClient, error) + Host(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[HostRequest, HostResponse], error) // Prompt performs prompting using a specific prompter. Prompt(ctx context.Context, in *PromptRequest, opts ...grpc.CallOption) (*PromptResponse, error) } @@ -36,40 +43,23 @@ func NewPromptingClient(cc grpc.ClientConnInterface) PromptingClient { return &promptingClient{cc} } -func (c *promptingClient) Host(ctx context.Context, opts ...grpc.CallOption) (Prompting_HostClient, error) { - stream, err := c.cc.NewStream(ctx, &Prompting_ServiceDesc.Streams[0], "/prompting.Prompting/Host", opts...) +func (c *promptingClient) Host(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[HostRequest, HostResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &Prompting_ServiceDesc.Streams[0], Prompting_Host_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &promptingHostClient{stream} + x := &grpc.GenericClientStream[HostRequest, HostResponse]{ClientStream: stream} return x, nil } -type Prompting_HostClient interface { - Send(*HostRequest) error - Recv() (*HostResponse, error) - grpc.ClientStream -} - -type promptingHostClient struct { - grpc.ClientStream -} - -func (x *promptingHostClient) Send(m *HostRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *promptingHostClient) Recv() (*HostResponse, error) { - m := new(HostResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Prompting_HostClient = grpc.BidiStreamingClient[HostRequest, HostResponse] func (c *promptingClient) Prompt(ctx context.Context, in *PromptRequest, opts ...grpc.CallOption) (*PromptResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PromptResponse) - err := c.cc.Invoke(ctx, "/prompting.Prompting/Prompt", in, out, opts...) + err := c.cc.Invoke(ctx, Prompting_Prompt_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -78,26 +68,32 @@ func (c *promptingClient) Prompt(ctx context.Context, in *PromptRequest, opts .. // PromptingServer is the server API for Prompting service. // All implementations must embed UnimplementedPromptingServer -// for forward compatibility +// for forward compatibility. +// +// Prompting allows clients to host and request prompting. type PromptingServer interface { // Host allows clients to perform prompt hosting. - Host(Prompting_HostServer) error + Host(grpc.BidiStreamingServer[HostRequest, HostResponse]) error // Prompt performs prompting using a specific prompter. Prompt(context.Context, *PromptRequest) (*PromptResponse, error) mustEmbedUnimplementedPromptingServer() } -// UnimplementedPromptingServer must be embedded to have forward compatible implementations. -type UnimplementedPromptingServer struct { -} +// UnimplementedPromptingServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedPromptingServer struct{} -func (UnimplementedPromptingServer) Host(Prompting_HostServer) error { +func (UnimplementedPromptingServer) Host(grpc.BidiStreamingServer[HostRequest, HostResponse]) error { return status.Errorf(codes.Unimplemented, "method Host not implemented") } func (UnimplementedPromptingServer) Prompt(context.Context, *PromptRequest) (*PromptResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Prompt not implemented") } func (UnimplementedPromptingServer) mustEmbedUnimplementedPromptingServer() {} +func (UnimplementedPromptingServer) testEmbeddedByValue() {} // UnsafePromptingServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to PromptingServer will @@ -107,34 +103,22 @@ type UnsafePromptingServer interface { } func RegisterPromptingServer(s grpc.ServiceRegistrar, srv PromptingServer) { + // If the following call pancis, it indicates UnimplementedPromptingServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Prompting_ServiceDesc, srv) } func _Prompting_Host_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(PromptingServer).Host(&promptingHostServer{stream}) -} - -type Prompting_HostServer interface { - Send(*HostResponse) error - Recv() (*HostRequest, error) - grpc.ServerStream -} - -type promptingHostServer struct { - grpc.ServerStream -} - -func (x *promptingHostServer) Send(m *HostResponse) error { - return x.ServerStream.SendMsg(m) + return srv.(PromptingServer).Host(&grpc.GenericServerStream[HostRequest, HostResponse]{ServerStream: stream}) } -func (x *promptingHostServer) Recv() (*HostRequest, error) { - m := new(HostRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Prompting_HostServer = grpc.BidiStreamingServer[HostRequest, HostResponse] func _Prompting_Prompt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PromptRequest) @@ -146,7 +130,7 @@ func _Prompting_Prompt_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/prompting.Prompting/Prompt", + FullMethod: Prompting_Prompt_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PromptingServer).Prompt(ctx, req.(*PromptRequest)) diff --git a/pkg/service/synchronization/synchronization.pb.go b/pkg/service/synchronization/synchronization.pb.go index 6d1b543f..aefe82ed 100644 --- a/pkg/service/synchronization/synchronization.pb.go +++ b/pkg/service/synchronization/synchronization.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: service/synchronization/synchronization.proto package synchronization @@ -54,11 +54,9 @@ type CreationSpecification struct { func (x *CreationSpecification) Reset() { *x = CreationSpecification{} - if protoimpl.UnsafeEnabled { - mi := &file_service_synchronization_synchronization_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_synchronization_synchronization_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreationSpecification) String() string { @@ -69,7 +67,7 @@ func (*CreationSpecification) ProtoMessage() {} func (x *CreationSpecification) ProtoReflect() protoreflect.Message { mi := &file_service_synchronization_synchronization_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -154,11 +152,9 @@ type CreateRequest struct { func (x *CreateRequest) Reset() { *x = CreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_synchronization_synchronization_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_synchronization_synchronization_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateRequest) String() string { @@ -169,7 +165,7 @@ func (*CreateRequest) ProtoMessage() {} func (x *CreateRequest) ProtoReflect() protoreflect.Message { mi := &file_service_synchronization_synchronization_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -210,11 +206,9 @@ type CreateResponse struct { func (x *CreateResponse) Reset() { *x = CreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_synchronization_synchronization_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_synchronization_synchronization_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateResponse) String() string { @@ -225,7 +219,7 @@ func (*CreateResponse) ProtoMessage() {} func (x *CreateResponse) ProtoReflect() protoreflect.Message { mi := &file_service_synchronization_synchronization_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -262,11 +256,9 @@ type ListRequest struct { func (x *ListRequest) Reset() { *x = ListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_synchronization_synchronization_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_synchronization_synchronization_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListRequest) String() string { @@ -277,7 +269,7 @@ func (*ListRequest) ProtoMessage() {} func (x *ListRequest) ProtoReflect() protoreflect.Message { mi := &file_service_synchronization_synchronization_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -320,11 +312,9 @@ type ListResponse struct { func (x *ListResponse) Reset() { *x = ListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_synchronization_synchronization_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_synchronization_synchronization_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListResponse) String() string { @@ -335,7 +325,7 @@ func (*ListResponse) ProtoMessage() {} func (x *ListResponse) ProtoReflect() protoreflect.Message { mi := &file_service_synchronization_synchronization_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -380,11 +370,9 @@ type FlushRequest struct { func (x *FlushRequest) Reset() { *x = FlushRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_synchronization_synchronization_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_synchronization_synchronization_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FlushRequest) String() string { @@ -395,7 +383,7 @@ func (*FlushRequest) ProtoMessage() {} func (x *FlushRequest) ProtoReflect() protoreflect.Message { mi := &file_service_synchronization_synchronization_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -440,11 +428,9 @@ type FlushResponse struct { func (x *FlushResponse) Reset() { *x = FlushResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_synchronization_synchronization_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_synchronization_synchronization_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FlushResponse) String() string { @@ -455,7 +441,7 @@ func (*FlushResponse) ProtoMessage() {} func (x *FlushResponse) ProtoReflect() protoreflect.Message { mi := &file_service_synchronization_synchronization_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -484,11 +470,9 @@ type PauseRequest struct { func (x *PauseRequest) Reset() { *x = PauseRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_synchronization_synchronization_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_synchronization_synchronization_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PauseRequest) String() string { @@ -499,7 +483,7 @@ func (*PauseRequest) ProtoMessage() {} func (x *PauseRequest) ProtoReflect() protoreflect.Message { mi := &file_service_synchronization_synchronization_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -537,11 +521,9 @@ type PauseResponse struct { func (x *PauseResponse) Reset() { *x = PauseResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_synchronization_synchronization_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_synchronization_synchronization_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PauseResponse) String() string { @@ -552,7 +534,7 @@ func (*PauseResponse) ProtoMessage() {} func (x *PauseResponse) ProtoReflect() protoreflect.Message { mi := &file_service_synchronization_synchronization_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -581,11 +563,9 @@ type ResumeRequest struct { func (x *ResumeRequest) Reset() { *x = ResumeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_synchronization_synchronization_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_synchronization_synchronization_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResumeRequest) String() string { @@ -596,7 +576,7 @@ func (*ResumeRequest) ProtoMessage() {} func (x *ResumeRequest) ProtoReflect() protoreflect.Message { mi := &file_service_synchronization_synchronization_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -634,11 +614,9 @@ type ResumeResponse struct { func (x *ResumeResponse) Reset() { *x = ResumeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_synchronization_synchronization_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_synchronization_synchronization_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResumeResponse) String() string { @@ -649,7 +627,7 @@ func (*ResumeResponse) ProtoMessage() {} func (x *ResumeResponse) ProtoReflect() protoreflect.Message { mi := &file_service_synchronization_synchronization_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -678,11 +656,9 @@ type ResetRequest struct { func (x *ResetRequest) Reset() { *x = ResetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_synchronization_synchronization_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_synchronization_synchronization_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResetRequest) String() string { @@ -693,7 +669,7 @@ func (*ResetRequest) ProtoMessage() {} func (x *ResetRequest) ProtoReflect() protoreflect.Message { mi := &file_service_synchronization_synchronization_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -731,11 +707,9 @@ type ResetResponse struct { func (x *ResetResponse) Reset() { *x = ResetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_synchronization_synchronization_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_synchronization_synchronization_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResetResponse) String() string { @@ -746,7 +720,7 @@ func (*ResetResponse) ProtoMessage() {} func (x *ResetResponse) ProtoReflect() protoreflect.Message { mi := &file_service_synchronization_synchronization_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -775,11 +749,9 @@ type TerminateRequest struct { func (x *TerminateRequest) Reset() { *x = TerminateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_synchronization_synchronization_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_synchronization_synchronization_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TerminateRequest) String() string { @@ -790,7 +762,7 @@ func (*TerminateRequest) ProtoMessage() {} func (x *TerminateRequest) ProtoReflect() protoreflect.Message { mi := &file_service_synchronization_synchronization_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -828,11 +800,9 @@ type TerminateResponse struct { func (x *TerminateResponse) Reset() { *x = TerminateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_synchronization_synchronization_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_service_synchronization_synchronization_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TerminateResponse) String() string { @@ -843,7 +813,7 @@ func (*TerminateResponse) ProtoMessage() {} func (x *TerminateResponse) ProtoReflect() protoreflect.Message { mi := &file_service_synchronization_synchronization_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1019,7 +989,7 @@ func file_service_synchronization_synchronization_proto_rawDescGZIP() []byte { } var file_service_synchronization_synchronization_proto_msgTypes = make([]protoimpl.MessageInfo, 16) -var file_service_synchronization_synchronization_proto_goTypes = []interface{}{ +var file_service_synchronization_synchronization_proto_goTypes = []any{ (*CreationSpecification)(nil), // 0: synchronization.CreationSpecification (*CreateRequest)(nil), // 1: synchronization.CreateRequest (*CreateResponse)(nil), // 2: synchronization.CreateResponse @@ -1082,188 +1052,6 @@ func file_service_synchronization_synchronization_proto_init() { if File_service_synchronization_synchronization_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_service_synchronization_synchronization_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreationSpecification); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_synchronization_synchronization_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_synchronization_synchronization_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_synchronization_synchronization_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_synchronization_synchronization_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_synchronization_synchronization_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FlushRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_synchronization_synchronization_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FlushResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_synchronization_synchronization_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PauseRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_synchronization_synchronization_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PauseResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_synchronization_synchronization_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResumeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_synchronization_synchronization_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResumeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_synchronization_synchronization_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_synchronization_synchronization_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_synchronization_synchronization_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TerminateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_synchronization_synchronization_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TerminateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/service/synchronization/synchronization_grpc.pb.go b/pkg/service/synchronization/synchronization_grpc.pb.go index 215e94e4..4a0d7ef7 100644 --- a/pkg/service/synchronization/synchronization_grpc.pb.go +++ b/pkg/service/synchronization/synchronization_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v5.26.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.28.2 // source: service/synchronization/synchronization.proto package synchronization @@ -15,12 +15,24 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Synchronization_Create_FullMethodName = "/synchronization.Synchronization/Create" + Synchronization_List_FullMethodName = "/synchronization.Synchronization/List" + Synchronization_Flush_FullMethodName = "/synchronization.Synchronization/Flush" + Synchronization_Pause_FullMethodName = "/synchronization.Synchronization/Pause" + Synchronization_Resume_FullMethodName = "/synchronization.Synchronization/Resume" + Synchronization_Reset_FullMethodName = "/synchronization.Synchronization/Reset" + Synchronization_Terminate_FullMethodName = "/synchronization.Synchronization/Terminate" +) // SynchronizationClient is the client API for Synchronization service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// Synchronization manages the lifecycle of synchronization sessions. type SynchronizationClient interface { // Create creates a new session. Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) @@ -47,8 +59,9 @@ func NewSynchronizationClient(cc grpc.ClientConnInterface) SynchronizationClient } func (c *synchronizationClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateResponse) - err := c.cc.Invoke(ctx, "/synchronization.Synchronization/Create", in, out, opts...) + err := c.cc.Invoke(ctx, Synchronization_Create_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -56,8 +69,9 @@ func (c *synchronizationClient) Create(ctx context.Context, in *CreateRequest, o } func (c *synchronizationClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListResponse) - err := c.cc.Invoke(ctx, "/synchronization.Synchronization/List", in, out, opts...) + err := c.cc.Invoke(ctx, Synchronization_List_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -65,8 +79,9 @@ func (c *synchronizationClient) List(ctx context.Context, in *ListRequest, opts } func (c *synchronizationClient) Flush(ctx context.Context, in *FlushRequest, opts ...grpc.CallOption) (*FlushResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FlushResponse) - err := c.cc.Invoke(ctx, "/synchronization.Synchronization/Flush", in, out, opts...) + err := c.cc.Invoke(ctx, Synchronization_Flush_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -74,8 +89,9 @@ func (c *synchronizationClient) Flush(ctx context.Context, in *FlushRequest, opt } func (c *synchronizationClient) Pause(ctx context.Context, in *PauseRequest, opts ...grpc.CallOption) (*PauseResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PauseResponse) - err := c.cc.Invoke(ctx, "/synchronization.Synchronization/Pause", in, out, opts...) + err := c.cc.Invoke(ctx, Synchronization_Pause_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -83,8 +99,9 @@ func (c *synchronizationClient) Pause(ctx context.Context, in *PauseRequest, opt } func (c *synchronizationClient) Resume(ctx context.Context, in *ResumeRequest, opts ...grpc.CallOption) (*ResumeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ResumeResponse) - err := c.cc.Invoke(ctx, "/synchronization.Synchronization/Resume", in, out, opts...) + err := c.cc.Invoke(ctx, Synchronization_Resume_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -92,8 +109,9 @@ func (c *synchronizationClient) Resume(ctx context.Context, in *ResumeRequest, o } func (c *synchronizationClient) Reset(ctx context.Context, in *ResetRequest, opts ...grpc.CallOption) (*ResetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ResetResponse) - err := c.cc.Invoke(ctx, "/synchronization.Synchronization/Reset", in, out, opts...) + err := c.cc.Invoke(ctx, Synchronization_Reset_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -101,8 +119,9 @@ func (c *synchronizationClient) Reset(ctx context.Context, in *ResetRequest, opt } func (c *synchronizationClient) Terminate(ctx context.Context, in *TerminateRequest, opts ...grpc.CallOption) (*TerminateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TerminateResponse) - err := c.cc.Invoke(ctx, "/synchronization.Synchronization/Terminate", in, out, opts...) + err := c.cc.Invoke(ctx, Synchronization_Terminate_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -111,7 +130,9 @@ func (c *synchronizationClient) Terminate(ctx context.Context, in *TerminateRequ // SynchronizationServer is the server API for Synchronization service. // All implementations must embed UnimplementedSynchronizationServer -// for forward compatibility +// for forward compatibility. +// +// Synchronization manages the lifecycle of synchronization sessions. type SynchronizationServer interface { // Create creates a new session. Create(context.Context, *CreateRequest) (*CreateResponse, error) @@ -130,9 +151,12 @@ type SynchronizationServer interface { mustEmbedUnimplementedSynchronizationServer() } -// UnimplementedSynchronizationServer must be embedded to have forward compatible implementations. -type UnimplementedSynchronizationServer struct { -} +// UnimplementedSynchronizationServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedSynchronizationServer struct{} func (UnimplementedSynchronizationServer) Create(context.Context, *CreateRequest) (*CreateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") @@ -156,6 +180,7 @@ func (UnimplementedSynchronizationServer) Terminate(context.Context, *TerminateR return nil, status.Errorf(codes.Unimplemented, "method Terminate not implemented") } func (UnimplementedSynchronizationServer) mustEmbedUnimplementedSynchronizationServer() {} +func (UnimplementedSynchronizationServer) testEmbeddedByValue() {} // UnsafeSynchronizationServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to SynchronizationServer will @@ -165,6 +190,13 @@ type UnsafeSynchronizationServer interface { } func RegisterSynchronizationServer(s grpc.ServiceRegistrar, srv SynchronizationServer) { + // If the following call pancis, it indicates UnimplementedSynchronizationServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Synchronization_ServiceDesc, srv) } @@ -178,7 +210,7 @@ func _Synchronization_Create_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/synchronization.Synchronization/Create", + FullMethod: Synchronization_Create_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SynchronizationServer).Create(ctx, req.(*CreateRequest)) @@ -196,7 +228,7 @@ func _Synchronization_List_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/synchronization.Synchronization/List", + FullMethod: Synchronization_List_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SynchronizationServer).List(ctx, req.(*ListRequest)) @@ -214,7 +246,7 @@ func _Synchronization_Flush_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/synchronization.Synchronization/Flush", + FullMethod: Synchronization_Flush_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SynchronizationServer).Flush(ctx, req.(*FlushRequest)) @@ -232,7 +264,7 @@ func _Synchronization_Pause_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/synchronization.Synchronization/Pause", + FullMethod: Synchronization_Pause_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SynchronizationServer).Pause(ctx, req.(*PauseRequest)) @@ -250,7 +282,7 @@ func _Synchronization_Resume_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/synchronization.Synchronization/Resume", + FullMethod: Synchronization_Resume_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SynchronizationServer).Resume(ctx, req.(*ResumeRequest)) @@ -268,7 +300,7 @@ func _Synchronization_Reset_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/synchronization.Synchronization/Reset", + FullMethod: Synchronization_Reset_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SynchronizationServer).Reset(ctx, req.(*ResetRequest)) @@ -286,7 +318,7 @@ func _Synchronization_Terminate_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/synchronization.Synchronization/Terminate", + FullMethod: Synchronization_Terminate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SynchronizationServer).Terminate(ctx, req.(*TerminateRequest)) diff --git a/pkg/synchronization/compression/algorithm.pb.go b/pkg/synchronization/compression/algorithm.pb.go index 07655012..d886da2b 100644 --- a/pkg/synchronization/compression/algorithm.pb.go +++ b/pkg/synchronization/compression/algorithm.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/compression/algorithm.proto package compression @@ -114,7 +114,7 @@ func file_synchronization_compression_algorithm_proto_rawDescGZIP() []byte { } var file_synchronization_compression_algorithm_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_synchronization_compression_algorithm_proto_goTypes = []interface{}{ +var file_synchronization_compression_algorithm_proto_goTypes = []any{ (Algorithm)(0), // 0: compression.Algorithm } var file_synchronization_compression_algorithm_proto_depIdxs = []int32{ diff --git a/pkg/synchronization/configuration.pb.go b/pkg/synchronization/configuration.pb.go index bf06962c..0d1f78a6 100644 --- a/pkg/synchronization/configuration.pb.go +++ b/pkg/synchronization/configuration.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/configuration.proto package synchronization @@ -100,11 +100,9 @@ type Configuration struct { func (x *Configuration) Reset() { *x = Configuration{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_configuration_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_configuration_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Configuration) String() string { @@ -115,7 +113,7 @@ func (*Configuration) ProtoMessage() {} func (x *Configuration) ProtoReflect() protoreflect.Message { mi := &file_synchronization_configuration_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -391,7 +389,7 @@ func file_synchronization_configuration_proto_rawDescGZIP() []byte { } var file_synchronization_configuration_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_synchronization_configuration_proto_goTypes = []interface{}{ +var file_synchronization_configuration_proto_goTypes = []any{ (*Configuration)(nil), // 0: synchronization.Configuration (core.SynchronizationMode)(0), // 1: core.SynchronizationMode (hashing.Algorithm)(0), // 2: hashing.Algorithm @@ -432,20 +430,6 @@ func file_synchronization_configuration_proto_init() { file_synchronization_scan_mode_proto_init() file_synchronization_stage_mode_proto_init() file_synchronization_watch_mode_proto_init() - if !protoimpl.UnsafeEnabled { - file_synchronization_configuration_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Configuration); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/synchronization/core/archive.pb.go b/pkg/synchronization/core/archive.pb.go index 730f7a73..2e50d891 100644 --- a/pkg/synchronization/core/archive.pb.go +++ b/pkg/synchronization/core/archive.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/core/archive.proto package core @@ -38,11 +38,9 @@ type Archive struct { func (x *Archive) Reset() { *x = Archive{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_core_archive_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_core_archive_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Archive) String() string { @@ -53,7 +51,7 @@ func (*Archive) ProtoMessage() {} func (x *Archive) ProtoReflect() protoreflect.Message { mi := &file_synchronization_core_archive_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -105,7 +103,7 @@ func file_synchronization_core_archive_proto_rawDescGZIP() []byte { } var file_synchronization_core_archive_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_synchronization_core_archive_proto_goTypes = []interface{}{ +var file_synchronization_core_archive_proto_goTypes = []any{ (*Archive)(nil), // 0: core.Archive (*Entry)(nil), // 1: core.Entry } @@ -124,20 +122,6 @@ func file_synchronization_core_archive_proto_init() { return } file_synchronization_core_entry_proto_init() - if !protoimpl.UnsafeEnabled { - file_synchronization_core_archive_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Archive); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/synchronization/core/cache.pb.go b/pkg/synchronization/core/cache.pb.go index 94bd6977..fd20d03a 100644 --- a/pkg/synchronization/core/cache.pb.go +++ b/pkg/synchronization/core/cache.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/core/cache.proto package core @@ -45,11 +45,9 @@ type CacheEntry struct { func (x *CacheEntry) Reset() { *x = CacheEntry{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_core_cache_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_core_cache_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CacheEntry) String() string { @@ -60,7 +58,7 @@ func (*CacheEntry) ProtoMessage() {} func (x *CacheEntry) ProtoReflect() protoreflect.Message { mi := &file_synchronization_core_cache_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -123,11 +121,9 @@ type Cache struct { func (x *Cache) Reset() { *x = Cache{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_core_cache_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_core_cache_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Cache) String() string { @@ -138,7 +134,7 @@ func (*Cache) ProtoMessage() {} func (x *Cache) ProtoReflect() protoreflect.Message { mi := &file_synchronization_core_cache_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -207,7 +203,7 @@ func file_synchronization_core_cache_proto_rawDescGZIP() []byte { } var file_synchronization_core_cache_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_synchronization_core_cache_proto_goTypes = []interface{}{ +var file_synchronization_core_cache_proto_goTypes = []any{ (*CacheEntry)(nil), // 0: core.CacheEntry (*Cache)(nil), // 1: core.Cache nil, // 2: core.Cache.EntriesEntry @@ -229,32 +225,6 @@ func file_synchronization_core_cache_proto_init() { if File_synchronization_core_cache_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_synchronization_core_cache_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CacheEntry); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_synchronization_core_cache_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Cache); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/synchronization/core/change.pb.go b/pkg/synchronization/core/change.pb.go index df3828df..ffacfa2b 100644 --- a/pkg/synchronization/core/change.pb.go +++ b/pkg/synchronization/core/change.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/core/change.proto package core @@ -40,11 +40,9 @@ type Change struct { func (x *Change) Reset() { *x = Change{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_core_change_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_core_change_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Change) String() string { @@ -55,7 +53,7 @@ func (*Change) ProtoMessage() {} func (x *Change) ProtoReflect() protoreflect.Message { mi := &file_synchronization_core_change_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -124,7 +122,7 @@ func file_synchronization_core_change_proto_rawDescGZIP() []byte { } var file_synchronization_core_change_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_synchronization_core_change_proto_goTypes = []interface{}{ +var file_synchronization_core_change_proto_goTypes = []any{ (*Change)(nil), // 0: core.Change (*Entry)(nil), // 1: core.Entry } @@ -144,20 +142,6 @@ func file_synchronization_core_change_proto_init() { return } file_synchronization_core_entry_proto_init() - if !protoimpl.UnsafeEnabled { - file_synchronization_core_change_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Change); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/synchronization/core/conflict.pb.go b/pkg/synchronization/core/conflict.pb.go index 922ca130..07fa566c 100644 --- a/pkg/synchronization/core/conflict.pb.go +++ b/pkg/synchronization/core/conflict.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/core/conflict.proto package core @@ -44,11 +44,9 @@ type Conflict struct { func (x *Conflict) Reset() { *x = Conflict{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_core_conflict_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_core_conflict_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Conflict) String() string { @@ -59,7 +57,7 @@ func (*Conflict) ProtoMessage() {} func (x *Conflict) ProtoReflect() protoreflect.Message { mi := &file_synchronization_core_conflict_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -131,7 +129,7 @@ func file_synchronization_core_conflict_proto_rawDescGZIP() []byte { } var file_synchronization_core_conflict_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_synchronization_core_conflict_proto_goTypes = []interface{}{ +var file_synchronization_core_conflict_proto_goTypes = []any{ (*Conflict)(nil), // 0: core.Conflict (*Change)(nil), // 1: core.Change } @@ -151,20 +149,6 @@ func file_synchronization_core_conflict_proto_init() { return } file_synchronization_core_change_proto_init() - if !protoimpl.UnsafeEnabled { - file_synchronization_core_conflict_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Conflict); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/synchronization/core/entry.pb.go b/pkg/synchronization/core/entry.pb.go index 6dd04a98..c39a115e 100644 --- a/pkg/synchronization/core/entry.pb.go +++ b/pkg/synchronization/core/entry.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/core/entry.proto package core @@ -135,11 +135,9 @@ type Entry struct { func (x *Entry) Reset() { *x = Entry{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_core_entry_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_core_entry_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Entry) String() string { @@ -150,7 +148,7 @@ func (*Entry) ProtoMessage() {} func (x *Entry) ProtoReflect() protoreflect.Message { mi := &file_synchronization_core_entry_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -258,7 +256,7 @@ func file_synchronization_core_entry_proto_rawDescGZIP() []byte { var file_synchronization_core_entry_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_synchronization_core_entry_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_synchronization_core_entry_proto_goTypes = []interface{}{ +var file_synchronization_core_entry_proto_goTypes = []any{ (EntryKind)(0), // 0: core.EntryKind (*Entry)(nil), // 1: core.Entry nil, // 2: core.Entry.ContentsEntry @@ -279,20 +277,6 @@ func file_synchronization_core_entry_proto_init() { if File_synchronization_core_entry_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_synchronization_core_entry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Entry); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/synchronization/core/ignore/ignore_vcs_mode.pb.go b/pkg/synchronization/core/ignore/ignore_vcs_mode.pb.go index 796bb32d..ccabcd54 100644 --- a/pkg/synchronization/core/ignore/ignore_vcs_mode.pb.go +++ b/pkg/synchronization/core/ignore/ignore_vcs_mode.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/core/ignore/ignore_vcs_mode.proto package ignore @@ -110,7 +110,7 @@ func file_synchronization_core_ignore_ignore_vcs_mode_proto_rawDescGZIP() []byte } var file_synchronization_core_ignore_ignore_vcs_mode_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_synchronization_core_ignore_ignore_vcs_mode_proto_goTypes = []interface{}{ +var file_synchronization_core_ignore_ignore_vcs_mode_proto_goTypes = []any{ (IgnoreVCSMode)(0), // 0: ignore.IgnoreVCSMode } var file_synchronization_core_ignore_ignore_vcs_mode_proto_depIdxs = []int32{ diff --git a/pkg/synchronization/core/ignore/syntax.pb.go b/pkg/synchronization/core/ignore/syntax.pb.go index 4b309d4f..fa07ef5e 100644 --- a/pkg/synchronization/core/ignore/syntax.pb.go +++ b/pkg/synchronization/core/ignore/syntax.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/core/ignore/syntax.proto package ignore @@ -107,7 +107,7 @@ func file_synchronization_core_ignore_syntax_proto_rawDescGZIP() []byte { } var file_synchronization_core_ignore_syntax_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_synchronization_core_ignore_syntax_proto_goTypes = []interface{}{ +var file_synchronization_core_ignore_syntax_proto_goTypes = []any{ (Syntax)(0), // 0: ignore.Syntax } var file_synchronization_core_ignore_syntax_proto_depIdxs = []int32{ diff --git a/pkg/synchronization/core/mode.pb.go b/pkg/synchronization/core/mode.pb.go index fa2d847c..7b4fcd53 100644 --- a/pkg/synchronization/core/mode.pb.go +++ b/pkg/synchronization/core/mode.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/core/mode.proto package core @@ -138,7 +138,7 @@ func file_synchronization_core_mode_proto_rawDescGZIP() []byte { } var file_synchronization_core_mode_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_synchronization_core_mode_proto_goTypes = []interface{}{ +var file_synchronization_core_mode_proto_goTypes = []any{ (SynchronizationMode)(0), // 0: core.SynchronizationMode } var file_synchronization_core_mode_proto_depIdxs = []int32{ diff --git a/pkg/synchronization/core/permissions_mode.pb.go b/pkg/synchronization/core/permissions_mode.pb.go index 2ef696c6..d96b58fe 100644 --- a/pkg/synchronization/core/permissions_mode.pb.go +++ b/pkg/synchronization/core/permissions_mode.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/core/permissions_mode.proto package core @@ -113,7 +113,7 @@ func file_synchronization_core_permissions_mode_proto_rawDescGZIP() []byte { } var file_synchronization_core_permissions_mode_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_synchronization_core_permissions_mode_proto_goTypes = []interface{}{ +var file_synchronization_core_permissions_mode_proto_goTypes = []any{ (PermissionsMode)(0), // 0: core.PermissionsMode } var file_synchronization_core_permissions_mode_proto_depIdxs = []int32{ diff --git a/pkg/synchronization/core/problem.pb.go b/pkg/synchronization/core/problem.pb.go index 1145e5b4..c37f41af 100644 --- a/pkg/synchronization/core/problem.pb.go +++ b/pkg/synchronization/core/problem.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/core/problem.proto package core @@ -37,11 +37,9 @@ type Problem struct { func (x *Problem) Reset() { *x = Problem{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_core_problem_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_core_problem_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Problem) String() string { @@ -52,7 +50,7 @@ func (*Problem) ProtoMessage() {} func (x *Problem) ProtoReflect() protoreflect.Message { mi := &file_synchronization_core_problem_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -110,7 +108,7 @@ func file_synchronization_core_problem_proto_rawDescGZIP() []byte { } var file_synchronization_core_problem_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_synchronization_core_problem_proto_goTypes = []interface{}{ +var file_synchronization_core_problem_proto_goTypes = []any{ (*Problem)(nil), // 0: core.Problem } var file_synchronization_core_problem_proto_depIdxs = []int32{ @@ -126,20 +124,6 @@ func file_synchronization_core_problem_proto_init() { if File_synchronization_core_problem_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_synchronization_core_problem_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Problem); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/synchronization/core/snapshot.pb.go b/pkg/synchronization/core/snapshot.pb.go index 26304e4b..6a387544 100644 --- a/pkg/synchronization/core/snapshot.pb.go +++ b/pkg/synchronization/core/snapshot.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/core/snapshot.proto package core @@ -52,11 +52,9 @@ type Snapshot struct { func (x *Snapshot) Reset() { *x = Snapshot{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_core_snapshot_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_core_snapshot_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Snapshot) String() string { @@ -67,7 +65,7 @@ func (*Snapshot) ProtoMessage() {} func (x *Snapshot) ProtoReflect() protoreflect.Message { mi := &file_synchronization_core_snapshot_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -176,7 +174,7 @@ func file_synchronization_core_snapshot_proto_rawDescGZIP() []byte { } var file_synchronization_core_snapshot_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_synchronization_core_snapshot_proto_goTypes = []interface{}{ +var file_synchronization_core_snapshot_proto_goTypes = []any{ (*Snapshot)(nil), // 0: core.Snapshot (*Entry)(nil), // 1: core.Entry } @@ -195,20 +193,6 @@ func file_synchronization_core_snapshot_proto_init() { return } file_synchronization_core_entry_proto_init() - if !protoimpl.UnsafeEnabled { - file_synchronization_core_snapshot_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Snapshot); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/synchronization/core/symbolic_link_mode.pb.go b/pkg/synchronization/core/symbolic_link_mode.pb.go index 2bcab1f4..48ccf8ae 100644 --- a/pkg/synchronization/core/symbolic_link_mode.pb.go +++ b/pkg/synchronization/core/symbolic_link_mode.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/core/symbolic_link_mode.proto package core @@ -121,7 +121,7 @@ func file_synchronization_core_symbolic_link_mode_proto_rawDescGZIP() []byte { } var file_synchronization_core_symbolic_link_mode_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_synchronization_core_symbolic_link_mode_proto_goTypes = []interface{}{ +var file_synchronization_core_symbolic_link_mode_proto_goTypes = []any{ (SymbolicLinkMode)(0), // 0: core.SymbolicLinkMode } var file_synchronization_core_symbolic_link_mode_proto_depIdxs = []int32{ diff --git a/pkg/synchronization/endpoint/remote/protocol.pb.go b/pkg/synchronization/endpoint/remote/protocol.pb.go index 6e83adb8..1cb1ad2e 100644 --- a/pkg/synchronization/endpoint/remote/protocol.pb.go +++ b/pkg/synchronization/endpoint/remote/protocol.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/endpoint/remote/protocol.proto package remote @@ -45,11 +45,9 @@ type InitializeSynchronizationRequest struct { func (x *InitializeSynchronizationRequest) Reset() { *x = InitializeSynchronizationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InitializeSynchronizationRequest) String() string { @@ -60,7 +58,7 @@ func (*InitializeSynchronizationRequest) ProtoMessage() {} func (x *InitializeSynchronizationRequest) ProtoReflect() protoreflect.Message { mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -122,11 +120,9 @@ type InitializeSynchronizationResponse struct { func (x *InitializeSynchronizationResponse) Reset() { *x = InitializeSynchronizationResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InitializeSynchronizationResponse) String() string { @@ -137,7 +133,7 @@ func (*InitializeSynchronizationResponse) ProtoMessage() {} func (x *InitializeSynchronizationResponse) ProtoReflect() protoreflect.Message { mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -168,11 +164,9 @@ type PollRequest struct { func (x *PollRequest) Reset() { *x = PollRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PollRequest) String() string { @@ -183,7 +177,7 @@ func (*PollRequest) ProtoMessage() {} func (x *PollRequest) ProtoReflect() protoreflect.Message { mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -208,11 +202,9 @@ type PollCompletionRequest struct { func (x *PollCompletionRequest) Reset() { *x = PollCompletionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PollCompletionRequest) String() string { @@ -223,7 +215,7 @@ func (*PollCompletionRequest) ProtoMessage() {} func (x *PollCompletionRequest) ProtoReflect() protoreflect.Message { mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -250,11 +242,9 @@ type PollResponse struct { func (x *PollResponse) Reset() { *x = PollResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PollResponse) String() string { @@ -265,7 +255,7 @@ func (*PollResponse) ProtoMessage() {} func (x *PollResponse) ProtoReflect() protoreflect.Message { mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -303,11 +293,9 @@ type ScanRequest struct { func (x *ScanRequest) Reset() { *x = ScanRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ScanRequest) String() string { @@ -318,7 +306,7 @@ func (*ScanRequest) ProtoMessage() {} func (x *ScanRequest) ProtoReflect() protoreflect.Message { mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -357,11 +345,9 @@ type ScanCompletionRequest struct { func (x *ScanCompletionRequest) Reset() { *x = ScanCompletionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ScanCompletionRequest) String() string { @@ -372,7 +358,7 @@ func (*ScanCompletionRequest) ProtoMessage() {} func (x *ScanCompletionRequest) ProtoReflect() protoreflect.Message { mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -404,11 +390,9 @@ type ScanResponse struct { func (x *ScanResponse) Reset() { *x = ScanResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ScanResponse) String() string { @@ -419,7 +403,7 @@ func (*ScanResponse) ProtoMessage() {} func (x *ScanResponse) ProtoReflect() protoreflect.Message { mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -470,11 +454,9 @@ type StageRequest struct { func (x *StageRequest) Reset() { *x = StageRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StageRequest) String() string { @@ -485,7 +467,7 @@ func (*StageRequest) ProtoMessage() {} func (x *StageRequest) ProtoReflect() protoreflect.Message { mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -534,11 +516,9 @@ type StageResponse struct { func (x *StageResponse) Reset() { *x = StageResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StageResponse) String() string { @@ -549,7 +529,7 @@ func (*StageResponse) ProtoMessage() {} func (x *StageResponse) ProtoReflect() protoreflect.Message { mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -599,11 +579,9 @@ type SupplyRequest struct { func (x *SupplyRequest) Reset() { *x = SupplyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SupplyRequest) String() string { @@ -614,7 +592,7 @@ func (*SupplyRequest) ProtoMessage() {} func (x *SupplyRequest) ProtoReflect() protoreflect.Message { mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -655,11 +633,9 @@ type TransitionRequest struct { func (x *TransitionRequest) Reset() { *x = TransitionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransitionRequest) String() string { @@ -670,7 +646,7 @@ func (*TransitionRequest) ProtoMessage() {} func (x *TransitionRequest) ProtoReflect() protoreflect.Message { mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -702,11 +678,9 @@ type TransitionCompletionRequest struct { func (x *TransitionCompletionRequest) Reset() { *x = TransitionCompletionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransitionCompletionRequest) String() string { @@ -717,7 +691,7 @@ func (*TransitionCompletionRequest) ProtoMessage() {} func (x *TransitionCompletionRequest) ProtoReflect() protoreflect.Message { mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -761,11 +735,9 @@ type TransitionResponse struct { func (x *TransitionResponse) Reset() { *x = TransitionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransitionResponse) String() string { @@ -776,7 +748,7 @@ func (*TransitionResponse) ProtoMessage() {} func (x *TransitionResponse) ProtoReflect() protoreflect.Message { mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -842,11 +814,9 @@ type EndpointRequest struct { func (x *EndpointRequest) Reset() { *x = EndpointRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EndpointRequest) String() string { @@ -857,7 +827,7 @@ func (*EndpointRequest) ProtoMessage() {} func (x *EndpointRequest) ProtoReflect() protoreflect.Message { mi := &file_synchronization_endpoint_remote_protocol_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1036,7 +1006,7 @@ func file_synchronization_endpoint_remote_protocol_proto_rawDescGZIP() []byte { } var file_synchronization_endpoint_remote_protocol_proto_msgTypes = make([]protoimpl.MessageInfo, 15) -var file_synchronization_endpoint_remote_protocol_proto_goTypes = []interface{}{ +var file_synchronization_endpoint_remote_protocol_proto_goTypes = []any{ (*InitializeSynchronizationRequest)(nil), // 0: remote.InitializeSynchronizationRequest (*InitializeSynchronizationResponse)(nil), // 1: remote.InitializeSynchronizationResponse (*PollRequest)(nil), // 2: remote.PollRequest @@ -1087,188 +1057,6 @@ func file_synchronization_endpoint_remote_protocol_proto_init() { if File_synchronization_endpoint_remote_protocol_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_synchronization_endpoint_remote_protocol_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitializeSynchronizationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_synchronization_endpoint_remote_protocol_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitializeSynchronizationResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_synchronization_endpoint_remote_protocol_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PollRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_synchronization_endpoint_remote_protocol_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PollCompletionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_synchronization_endpoint_remote_protocol_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PollResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_synchronization_endpoint_remote_protocol_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ScanRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_synchronization_endpoint_remote_protocol_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ScanCompletionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_synchronization_endpoint_remote_protocol_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ScanResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_synchronization_endpoint_remote_protocol_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StageRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_synchronization_endpoint_remote_protocol_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StageResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_synchronization_endpoint_remote_protocol_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SupplyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_synchronization_endpoint_remote_protocol_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransitionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_synchronization_endpoint_remote_protocol_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransitionCompletionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_synchronization_endpoint_remote_protocol_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransitionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_synchronization_endpoint_remote_protocol_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EndpointRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/synchronization/hashing/algorithm.pb.go b/pkg/synchronization/hashing/algorithm.pb.go index 28691ead..979648d8 100644 --- a/pkg/synchronization/hashing/algorithm.pb.go +++ b/pkg/synchronization/hashing/algorithm.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/hashing/algorithm.proto package hashing @@ -111,7 +111,7 @@ func file_synchronization_hashing_algorithm_proto_rawDescGZIP() []byte { } var file_synchronization_hashing_algorithm_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_synchronization_hashing_algorithm_proto_goTypes = []interface{}{ +var file_synchronization_hashing_algorithm_proto_goTypes = []any{ (Algorithm)(0), // 0: hashing.Algorithm } var file_synchronization_hashing_algorithm_proto_depIdxs = []int32{ diff --git a/pkg/synchronization/rsync/engine.pb.go b/pkg/synchronization/rsync/engine.pb.go index 0205a893..015131a3 100644 --- a/pkg/synchronization/rsync/engine.pb.go +++ b/pkg/synchronization/rsync/engine.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/rsync/engine.proto package rsync @@ -34,11 +34,9 @@ type BlockHash struct { func (x *BlockHash) Reset() { *x = BlockHash{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_rsync_engine_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_rsync_engine_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockHash) String() string { @@ -49,7 +47,7 @@ func (*BlockHash) ProtoMessage() {} func (x *BlockHash) ProtoReflect() protoreflect.Message { mi := &file_synchronization_rsync_engine_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -96,11 +94,9 @@ type Signature struct { func (x *Signature) Reset() { *x = Signature{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_rsync_engine_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_rsync_engine_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Signature) String() string { @@ -111,7 +107,7 @@ func (*Signature) ProtoMessage() {} func (x *Signature) ProtoReflect() protoreflect.Message { mi := &file_synchronization_rsync_engine_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -168,11 +164,9 @@ type Operation struct { func (x *Operation) Reset() { *x = Operation{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_rsync_engine_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_rsync_engine_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Operation) String() string { @@ -183,7 +177,7 @@ func (*Operation) ProtoMessage() {} func (x *Operation) ProtoReflect() protoreflect.Message { mi := &file_synchronization_rsync_engine_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -260,7 +254,7 @@ func file_synchronization_rsync_engine_proto_rawDescGZIP() []byte { } var file_synchronization_rsync_engine_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_synchronization_rsync_engine_proto_goTypes = []interface{}{ +var file_synchronization_rsync_engine_proto_goTypes = []any{ (*BlockHash)(nil), // 0: rsync.BlockHash (*Signature)(nil), // 1: rsync.Signature (*Operation)(nil), // 2: rsync.Operation @@ -279,44 +273,6 @@ func file_synchronization_rsync_engine_proto_init() { if File_synchronization_rsync_engine_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_synchronization_rsync_engine_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockHash); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_synchronization_rsync_engine_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Signature); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_synchronization_rsync_engine_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Operation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/synchronization/rsync/receive.pb.go b/pkg/synchronization/rsync/receive.pb.go index c43f701f..6e77e5e0 100644 --- a/pkg/synchronization/rsync/receive.pb.go +++ b/pkg/synchronization/rsync/receive.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/rsync/receive.proto package rsync @@ -45,11 +45,9 @@ type ReceiverState struct { func (x *ReceiverState) Reset() { *x = ReceiverState{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_rsync_receive_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_rsync_receive_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReceiverState) String() string { @@ -60,7 +58,7 @@ func (*ReceiverState) ProtoMessage() {} func (x *ReceiverState) ProtoReflect() protoreflect.Message { mi := &file_synchronization_rsync_receive_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -157,7 +155,7 @@ func file_synchronization_rsync_receive_proto_rawDescGZIP() []byte { } var file_synchronization_rsync_receive_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_synchronization_rsync_receive_proto_goTypes = []interface{}{ +var file_synchronization_rsync_receive_proto_goTypes = []any{ (*ReceiverState)(nil), // 0: rsync.ReceiverState } var file_synchronization_rsync_receive_proto_depIdxs = []int32{ @@ -173,20 +171,6 @@ func file_synchronization_rsync_receive_proto_init() { if File_synchronization_rsync_receive_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_synchronization_rsync_receive_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReceiverState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/synchronization/rsync/transmission.pb.go b/pkg/synchronization/rsync/transmission.pb.go index a7e43655..9182076c 100644 --- a/pkg/synchronization/rsync/transmission.pb.go +++ b/pkg/synchronization/rsync/transmission.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/rsync/transmission.proto package rsync @@ -48,11 +48,9 @@ type Transmission struct { func (x *Transmission) Reset() { *x = Transmission{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_rsync_transmission_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_rsync_transmission_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Transmission) String() string { @@ -63,7 +61,7 @@ func (*Transmission) ProtoMessage() {} func (x *Transmission) ProtoReflect() protoreflect.Message { mi := &file_synchronization_rsync_transmission_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -143,7 +141,7 @@ func file_synchronization_rsync_transmission_proto_rawDescGZIP() []byte { } var file_synchronization_rsync_transmission_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_synchronization_rsync_transmission_proto_goTypes = []interface{}{ +var file_synchronization_rsync_transmission_proto_goTypes = []any{ (*Transmission)(nil), // 0: rsync.Transmission (*Operation)(nil), // 1: rsync.Operation } @@ -162,20 +160,6 @@ func file_synchronization_rsync_transmission_proto_init() { return } file_synchronization_rsync_engine_proto_init() - if !protoimpl.UnsafeEnabled { - file_synchronization_rsync_transmission_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Transmission); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/synchronization/scan_mode.pb.go b/pkg/synchronization/scan_mode.pb.go index d2f7eff0..47f15249 100644 --- a/pkg/synchronization/scan_mode.pb.go +++ b/pkg/synchronization/scan_mode.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/scan_mode.proto package synchronization @@ -107,7 +107,7 @@ func file_synchronization_scan_mode_proto_rawDescGZIP() []byte { } var file_synchronization_scan_mode_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_synchronization_scan_mode_proto_goTypes = []interface{}{ +var file_synchronization_scan_mode_proto_goTypes = []any{ (ScanMode)(0), // 0: synchronization.ScanMode } var file_synchronization_scan_mode_proto_depIdxs = []int32{ diff --git a/pkg/synchronization/session.pb.go b/pkg/synchronization/session.pb.go index 53f583b4..2aa04329 100644 --- a/pkg/synchronization/session.pb.go +++ b/pkg/synchronization/session.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/session.proto package synchronization @@ -78,11 +78,9 @@ type Session struct { func (x *Session) Reset() { *x = Session{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_session_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_session_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Session) String() string { @@ -93,7 +91,7 @@ func (*Session) ProtoMessage() {} func (x *Session) ProtoReflect() protoreflect.Message { mi := &file_synchronization_session_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -287,7 +285,7 @@ func file_synchronization_session_proto_rawDescGZIP() []byte { } var file_synchronization_session_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_synchronization_session_proto_goTypes = []interface{}{ +var file_synchronization_session_proto_goTypes = []any{ (*Session)(nil), // 0: synchronization.Session nil, // 1: synchronization.Session.LabelsEntry (Version)(0), // 2: synchronization.Version @@ -318,20 +316,6 @@ func file_synchronization_session_proto_init() { } file_synchronization_configuration_proto_init() file_synchronization_version_proto_init() - if !protoimpl.UnsafeEnabled { - file_synchronization_session_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Session); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/synchronization/stage_mode.pb.go b/pkg/synchronization/stage_mode.pb.go index bfe19bf5..543cb621 100644 --- a/pkg/synchronization/stage_mode.pb.go +++ b/pkg/synchronization/stage_mode.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/stage_mode.proto package synchronization @@ -115,7 +115,7 @@ func file_synchronization_stage_mode_proto_rawDescGZIP() []byte { } var file_synchronization_stage_mode_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_synchronization_stage_mode_proto_goTypes = []interface{}{ +var file_synchronization_stage_mode_proto_goTypes = []any{ (StageMode)(0), // 0: synchronization.StageMode } var file_synchronization_stage_mode_proto_depIdxs = []int32{ diff --git a/pkg/synchronization/state.pb.go b/pkg/synchronization/state.pb.go index 88792fa6..b673e008 100644 --- a/pkg/synchronization/state.pb.go +++ b/pkg/synchronization/state.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/state.proto package synchronization @@ -184,11 +184,9 @@ type EndpointState struct { func (x *EndpointState) Reset() { *x = EndpointState{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_state_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_state_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EndpointState) String() string { @@ -199,7 +197,7 @@ func (*EndpointState) ProtoMessage() {} func (x *EndpointState) ProtoReflect() protoreflect.Message { mi := &file_synchronization_state_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -328,11 +326,9 @@ type State struct { func (x *State) Reset() { *x = State{} - if protoimpl.UnsafeEnabled { - mi := &file_synchronization_state_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_synchronization_state_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *State) String() string { @@ -343,7 +339,7 @@ func (*State) ProtoMessage() {} func (x *State) ProtoReflect() protoreflect.Message { mi := &file_synchronization_state_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -523,7 +519,7 @@ func file_synchronization_state_proto_rawDescGZIP() []byte { var file_synchronization_state_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_synchronization_state_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_synchronization_state_proto_goTypes = []interface{}{ +var file_synchronization_state_proto_goTypes = []any{ (Status)(0), // 0: synchronization.Status (*EndpointState)(nil), // 1: synchronization.EndpointState (*State)(nil), // 2: synchronization.State @@ -554,32 +550,6 @@ func file_synchronization_state_proto_init() { return } file_synchronization_session_proto_init() - if !protoimpl.UnsafeEnabled { - file_synchronization_state_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EndpointState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_synchronization_state_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*State); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/synchronization/version.pb.go b/pkg/synchronization/version.pb.go index 06a56b91..640fd558 100644 --- a/pkg/synchronization/version.pb.go +++ b/pkg/synchronization/version.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/version.proto package synchronization @@ -100,7 +100,7 @@ func file_synchronization_version_proto_rawDescGZIP() []byte { } var file_synchronization_version_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_synchronization_version_proto_goTypes = []interface{}{ +var file_synchronization_version_proto_goTypes = []any{ (Version)(0), // 0: synchronization.Version } var file_synchronization_version_proto_depIdxs = []int32{ diff --git a/pkg/synchronization/watch_mode.pb.go b/pkg/synchronization/watch_mode.pb.go index b5b0b9c3..01a3a08d 100644 --- a/pkg/synchronization/watch_mode.pb.go +++ b/pkg/synchronization/watch_mode.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: synchronization/watch_mode.proto package synchronization @@ -118,7 +118,7 @@ func file_synchronization_watch_mode_proto_rawDescGZIP() []byte { } var file_synchronization_watch_mode_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_synchronization_watch_mode_proto_goTypes = []interface{}{ +var file_synchronization_watch_mode_proto_goTypes = []any{ (WatchMode)(0), // 0: synchronization.WatchMode } var file_synchronization_watch_mode_proto_depIdxs = []int32{ diff --git a/pkg/url/url.pb.go b/pkg/url/url.pb.go index 16276c28..45d9c2ff 100644 --- a/pkg/url/url.pb.go +++ b/pkg/url/url.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.28.2 // source: url/url.proto package url @@ -155,11 +155,9 @@ type URL struct { func (x *URL) Reset() { *x = URL{} - if protoimpl.UnsafeEnabled { - mi := &file_url_url_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_url_url_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *URL) String() string { @@ -170,7 +168,7 @@ func (*URL) ProtoMessage() {} func (x *URL) ProtoReflect() protoreflect.Message { mi := &file_url_url_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -296,7 +294,7 @@ func file_url_url_proto_rawDescGZIP() []byte { var file_url_url_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_url_url_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_url_url_proto_goTypes = []interface{}{ +var file_url_url_proto_goTypes = []any{ (Kind)(0), // 0: url.Kind (Protocol)(0), // 1: url.Protocol (*URL)(nil), // 2: url.URL @@ -320,20 +318,6 @@ func file_url_url_proto_init() { if File_url_url_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_url_url_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*URL); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ From 3cb3e53feaf7a76eb23736cde45dec7aeeaafc61 Mon Sep 17 00:00:00 2001 From: Jacob Howard Date: Fri, 18 Oct 2024 15:00:59 -0600 Subject: [PATCH 10/10] deps: update github.com/klauspost/cpuid/v2 Signed-off-by: Jacob Howard --- go.mod | 2 +- go.sum | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index b41998e6..d8b17435 100644 --- a/go.mod +++ b/go.mod @@ -32,7 +32,7 @@ require ( require ( github.com/google/go-cmp v0.6.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/klauspost/cpuid/v2 v2.0.9 // indirect + github.com/klauspost/cpuid/v2 v2.2.8 // indirect github.com/mattn/go-colorable v0.1.13 // indirect golang.org/x/term v0.25.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect diff --git a/go.sum b/go.sum index 5f08e367..7b373432 100644 --- a/go.sum +++ b/go.sum @@ -80,8 +80,8 @@ github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IXrJmUc= github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= -github.com/klauspost/cpuid/v2 v2.0.9 h1:lgaqFMSdTdQYdZ04uHyN2d/eKdOMyi2YLSvlQIBFYa4= -github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= +github.com/klauspost/cpuid/v2 v2.2.8 h1:+StwCXwm9PdpiEkPyzBXIy+M9KUb4ODm0Zarf1kS5BM= +github.com/klauspost/cpuid/v2 v2.2.8/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= @@ -180,6 +180,7 @@ golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210426230700-d19ff857e887/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=