diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..050cf20 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,172 @@ +name: CI + +on: + push: + branches: [main] + tags: ["v*.*.*"] + pull_request: + branches: [main] + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + quality: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-go@v6 + with: + go-version-file: go.mod + - uses: golangci/golangci-lint-action@v9 + with: + version: v2.12.2 + + dockerfile: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v6 + - uses: hadolint/hadolint-action@v3.3.0 + with: + dockerfile: build/containers/deployment/release.Dockerfile + ignore: DL3026,DL3018,DL3033,DL3007,DL3041 + + vulnerabilities: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: golang/govulncheck-action@v1 + with: + go-version-file: go.mod + + tidy: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-go@v6 + with: + go-version-file: go.mod + - run: | + go mod tidy + go mod vendor + git add -N . + git diff --exit-code + + unit: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-go@v6 + with: + go-version-file: go.mod + - run: make test + + validate-version: + if: startsWith(github.ref, 'refs/tags/v') + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v6 + - run: | + tag_version=${GITHUB_REF_NAME#v} + file_version=$(cat VERSION) + echo "Tag version: ${tag_version}" + echo "File version: ${file_version}" + if [ "${tag_version}" != "${file_version}" ]; then + echo "ERROR: Tag version (${tag_version}) does not match VERSION file (${file_version})" + exit 1 + fi + + build-image: + runs-on: ubuntu-latest + timeout-minutes: 30 + needs: + - quality + - dockerfile + - vulnerabilities + - tidy + - unit + permissions: + contents: read + packages: write + env: + PUSH: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} + steps: + - uses: actions/checkout@v6 + - uses: docker/login-action@v4 + if: env.PUSH == 'true' + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - uses: docker/metadata-action@v6 + id: meta + with: + images: ghcr.io/${{ github.repository }} + tags: | + type=semver,pattern={{raw}} + type=ref,event=branch + type=sha + - uses: docker/build-push-action@v7 + with: + context: . + file: build/containers/deployment/release.Dockerfile + push: ${{ env.PUSH == 'true' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + provenance: false + + release: + if: startsWith(github.ref, 'refs/tags/v') + runs-on: ubuntu-latest + timeout-minutes: 30 + needs: + - quality + - vulnerabilities + - tidy + - unit + - validate-version + permissions: + contents: write + env: + CGO_ENABLED: "0" + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-go@v6 + with: + go-version-file: go.mod + - run: | + build_target() { + os="$1" + arch="$2" + ext="${3:-}" + pkg="s3m-${os}-${arch}" + bin="${pkg}${ext}" + echo "Building ${bin}" + GOOS="${os}" GOARCH="${arch}" GOFLAGS="-mod=vendor" go build -trimpath -o "release/${bin}" ./cmd/main + tar -C release -czf "release/${pkg}.tar.gz" "${bin}" + rm "release/${bin}" + } + mkdir -p release + build_target linux amd64 + build_target linux arm64 + build_target darwin amd64 + build_target darwin arm64 + build_target windows amd64 ".exe" + (cd release && sha256sum *.tar.gz > checksums.sha256.txt) + - env: + GH_TOKEN: ${{ github.token }} + run: | + gh release create "${GITHUB_REF_NAME}" \ + --verify-tag \ + --title "Release ${GITHUB_REF_NAME}" \ + --notes "S3M CLI ${GITHUB_REF_NAME}" \ + release/*.tar.gz release/checksums.sha256.txt diff --git a/.golangci.yml b/.golangci.yml index 11f9e99..6d52ed9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -12,6 +12,12 @@ linters: # Disable the dependency allowlist; we are happy with existing license check mechanisms - depguard + # Deprecated; superseded by gomodguard_v2, which we leave enabled but unconfigured + - gomodguard + + # Repeated strings here are declarative JSON-Schema vocabulary; constants hurt readability + - goconst + # Allow building errors dynamically - err113 diff --git a/vendor/github.com/olcf/s3m-apis/LICENSE-APACHE b/vendor/github.com/olcf/s3m-apis/LICENSE-APACHE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/vendor/github.com/olcf/s3m-apis/LICENSE-APACHE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/vendor/github.com/olcf/s3m-apis/LICENSE-MIT b/vendor/github.com/olcf/s3m-apis/LICENSE-MIT new file mode 100644 index 0000000..abfd83c --- /dev/null +++ b/vendor/github.com/olcf/s3m-apis/LICENSE-MIT @@ -0,0 +1,19 @@ +Copyright (c) 2026 UT-Battelle, LLC + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/github.com/olcf/s3m-apis/common/v1alpha/gerr.pb.go b/vendor/github.com/olcf/s3m-apis/common/v1alpha/gerr.pb.go index 992881e..2506680 100644 --- a/vendor/github.com/olcf/s3m-apis/common/v1alpha/gerr.pb.go +++ b/vendor/github.com/olcf/s3m-apis/common/v1alpha/gerr.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 +// protoc-gen-go v1.36.11 // protoc v6.33.1 // source: proto/common/v1alpha/gerr.proto diff --git a/vendor/github.com/olcf/s3m-apis/common/v1alpha/headers.pb.go b/vendor/github.com/olcf/s3m-apis/common/v1alpha/headers.pb.go index 028af9a..0d8be8f 100644 --- a/vendor/github.com/olcf/s3m-apis/common/v1alpha/headers.pb.go +++ b/vendor/github.com/olcf/s3m-apis/common/v1alpha/headers.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 +// protoc-gen-go v1.36.11 // protoc v6.33.1 // source: proto/common/v1alpha/headers.proto diff --git a/vendor/github.com/olcf/s3m-apis/slurm/v0042/slurm.pb.go b/vendor/github.com/olcf/s3m-apis/slurm/v0042/slurm.pb.go index 29251da..b4218e9 100644 --- a/vendor/github.com/olcf/s3m-apis/slurm/v0042/slurm.pb.go +++ b/vendor/github.com/olcf/s3m-apis/slurm/v0042/slurm.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 +// protoc-gen-go v1.36.11 // protoc v6.33.1 // source: proto/slurm/v0042/slurm.proto diff --git a/vendor/github.com/olcf/s3m-apis/slurm/v0042/slurm.pb.gw.go b/vendor/github.com/olcf/s3m-apis/slurm/v0042/slurm.pb.gw.go index eed51eb..e360d16 100644 --- a/vendor/github.com/olcf/s3m-apis/slurm/v0042/slurm.pb.gw.go +++ b/vendor/github.com/olcf/s3m-apis/slurm/v0042/slurm.pb.gw.go @@ -41,6 +41,9 @@ func request_SlurmIndirect_Ping_0(ctx context.Context, marshaler runtime.Marshal protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.Ping(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -59,6 +62,9 @@ func request_SlurmIndirect_Ping_1(ctx context.Context, marshaler runtime.Marshal protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.Ping(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -77,6 +83,9 @@ func request_SlurmIndirect_GetDiag_0(ctx context.Context, marshaler runtime.Mars protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetDiag(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -95,6 +104,9 @@ func request_SlurmIndirect_GetDiag_1(ctx context.Context, marshaler runtime.Mars protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetDiag(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -114,6 +126,9 @@ func request_SlurmIndirect_GetJob_0(ctx context.Context, marshaler runtime.Marsh metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") @@ -150,6 +165,9 @@ func request_SlurmIndirect_GetJob_1(ctx context.Context, marshaler runtime.Marsh metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") @@ -185,6 +203,9 @@ func request_SlurmIndirect_GetJobs_0(ctx context.Context, marshaler runtime.Mars protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetJobs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -203,6 +224,9 @@ func request_SlurmIndirect_GetJobs_1(ctx context.Context, marshaler runtime.Mars protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetJobs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -224,6 +248,9 @@ func request_SlurmIndirect_PostJobSubmit_0(ctx context.Context, marshaler runtim if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.PostJobSubmit(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -248,6 +275,9 @@ func request_SlurmIndirect_PostJobSubmit_1(ctx context.Context, marshaler runtim if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.PostJobSubmit(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -272,6 +302,9 @@ func request_SlurmIndirect_DeleteJob_0(ctx context.Context, marshaler runtime.Ma metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") @@ -322,6 +355,9 @@ func request_SlurmIndirect_DeleteJob_1(ctx context.Context, marshaler runtime.Ma metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") @@ -369,6 +405,9 @@ func request_SlurmIndirect_GetNodes_0(ctx context.Context, marshaler runtime.Mar protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetNodes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -387,6 +426,9 @@ func request_SlurmIndirect_GetNodes_1(ctx context.Context, marshaler runtime.Mar protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetNodes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -405,6 +447,9 @@ func request_SlurmIndirect_GetPartitions_0(ctx context.Context, marshaler runtim protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetPartitions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -423,6 +468,9 @@ func request_SlurmIndirect_GetPartitions_1(ctx context.Context, marshaler runtim protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetPartitions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -441,6 +489,9 @@ func request_SlurmIndirect_GetReservations_0(ctx context.Context, marshaler runt protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetReservations(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -459,6 +510,9 @@ func request_SlurmIndirect_GetReservations_1(ctx context.Context, marshaler runt protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetReservations(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } diff --git a/vendor/github.com/olcf/s3m-apis/slurm/v0042/slurm_grpc.pb.go b/vendor/github.com/olcf/s3m-apis/slurm/v0042/slurm_grpc.pb.go index c099142..5f0f51a 100644 --- a/vendor/github.com/olcf/s3m-apis/slurm/v0042/slurm_grpc.pb.go +++ b/vendor/github.com/olcf/s3m-apis/slurm/v0042/slurm_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.5.1 +// - protoc-gen-go-grpc v1.6.1 // - protoc v6.33.1 // source: proto/slurm/v0042/slurm.proto @@ -168,31 +168,31 @@ type SlurmIndirectServer interface { type UnimplementedSlurmIndirectServer struct{} func (UnimplementedSlurmIndirectServer) Ping(context.Context, *emptypb.Empty) (*PingResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented") + return nil, status.Error(codes.Unimplemented, "method Ping not implemented") } func (UnimplementedSlurmIndirectServer) GetDiag(context.Context, *emptypb.Empty) (*DiagResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDiag not implemented") + return nil, status.Error(codes.Unimplemented, "method GetDiag not implemented") } func (UnimplementedSlurmIndirectServer) GetJob(context.Context, *JobIdReq) (*JobIdResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetJob not implemented") + return nil, status.Error(codes.Unimplemented, "method GetJob not implemented") } func (UnimplementedSlurmIndirectServer) GetJobs(context.Context, *emptypb.Empty) (*JobsResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetJobs not implemented") + return nil, status.Error(codes.Unimplemented, "method GetJobs not implemented") } func (UnimplementedSlurmIndirectServer) PostJobSubmit(context.Context, *JobSubmitReq) (*JobSubmitResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method PostJobSubmit not implemented") + return nil, status.Error(codes.Unimplemented, "method PostJobSubmit not implemented") } func (UnimplementedSlurmIndirectServer) DeleteJob(context.Context, *DeleteJobReq) (*DeleteJobResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteJob not implemented") + return nil, status.Error(codes.Unimplemented, "method DeleteJob not implemented") } func (UnimplementedSlurmIndirectServer) GetNodes(context.Context, *emptypb.Empty) (*NodesResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNodes not implemented") + return nil, status.Error(codes.Unimplemented, "method GetNodes not implemented") } func (UnimplementedSlurmIndirectServer) GetPartitions(context.Context, *emptypb.Empty) (*PartitionsResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPartitions not implemented") + return nil, status.Error(codes.Unimplemented, "method GetPartitions not implemented") } func (UnimplementedSlurmIndirectServer) GetReservations(context.Context, *emptypb.Empty) (*ReservationsResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetReservations not implemented") + return nil, status.Error(codes.Unimplemented, "method GetReservations not implemented") } func (UnimplementedSlurmIndirectServer) mustEmbedUnimplementedSlurmIndirectServer() {} func (UnimplementedSlurmIndirectServer) testEmbeddedByValue() {} @@ -205,7 +205,7 @@ type UnsafeSlurmIndirectServer interface { } func RegisterSlurmIndirectServer(s grpc.ServiceRegistrar, srv SlurmIndirectServer) { - // If the following call pancis, it indicates UnimplementedSlurmIndirectServer was + // If the following call panics, it indicates UnimplementedSlurmIndirectServer 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. diff --git a/vendor/github.com/olcf/s3m-apis/slurm/v0043/slurm.pb.go b/vendor/github.com/olcf/s3m-apis/slurm/v0043/slurm.pb.go index fbcd1ff..fadeb65 100644 --- a/vendor/github.com/olcf/s3m-apis/slurm/v0043/slurm.pb.go +++ b/vendor/github.com/olcf/s3m-apis/slurm/v0043/slurm.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 +// protoc-gen-go v1.36.11 // protoc v6.33.1 // source: proto/slurm/v0043/slurm.proto diff --git a/vendor/github.com/olcf/s3m-apis/slurm/v0043/slurm.pb.gw.go b/vendor/github.com/olcf/s3m-apis/slurm/v0043/slurm.pb.gw.go index 8bd6f9c..f7e1ed4 100644 --- a/vendor/github.com/olcf/s3m-apis/slurm/v0043/slurm.pb.gw.go +++ b/vendor/github.com/olcf/s3m-apis/slurm/v0043/slurm.pb.gw.go @@ -41,6 +41,9 @@ func request_SlurmIndirect_Ping_0(ctx context.Context, marshaler runtime.Marshal protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.Ping(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -59,6 +62,9 @@ func request_SlurmIndirect_Ping_1(ctx context.Context, marshaler runtime.Marshal protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.Ping(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -77,6 +83,9 @@ func request_SlurmIndirect_GetDiag_0(ctx context.Context, marshaler runtime.Mars protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetDiag(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -95,6 +104,9 @@ func request_SlurmIndirect_GetDiag_1(ctx context.Context, marshaler runtime.Mars protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetDiag(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -114,6 +126,9 @@ func request_SlurmIndirect_GetJob_0(ctx context.Context, marshaler runtime.Marsh metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") @@ -150,6 +165,9 @@ func request_SlurmIndirect_GetJob_1(ctx context.Context, marshaler runtime.Marsh metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") @@ -185,6 +203,9 @@ func request_SlurmIndirect_GetJobs_0(ctx context.Context, marshaler runtime.Mars protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetJobs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -203,6 +224,9 @@ func request_SlurmIndirect_GetJobs_1(ctx context.Context, marshaler runtime.Mars protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetJobs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -224,6 +248,9 @@ func request_SlurmIndirect_PostJobSubmit_0(ctx context.Context, marshaler runtim if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.PostJobSubmit(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -248,6 +275,9 @@ func request_SlurmIndirect_PostJobSubmit_1(ctx context.Context, marshaler runtim if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.PostJobSubmit(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -272,6 +302,9 @@ func request_SlurmIndirect_DeleteJob_0(ctx context.Context, marshaler runtime.Ma metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") @@ -322,6 +355,9 @@ func request_SlurmIndirect_DeleteJob_1(ctx context.Context, marshaler runtime.Ma metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["job_id"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "job_id") @@ -369,6 +405,9 @@ func request_SlurmIndirect_GetNodes_0(ctx context.Context, marshaler runtime.Mar protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetNodes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -387,6 +426,9 @@ func request_SlurmIndirect_GetNodes_1(ctx context.Context, marshaler runtime.Mar protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetNodes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -405,6 +447,9 @@ func request_SlurmIndirect_GetPartitions_0(ctx context.Context, marshaler runtim protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetPartitions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -423,6 +468,9 @@ func request_SlurmIndirect_GetPartitions_1(ctx context.Context, marshaler runtim protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetPartitions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -441,6 +489,9 @@ func request_SlurmIndirect_GetReservations_0(ctx context.Context, marshaler runt protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetReservations(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -459,6 +510,9 @@ func request_SlurmIndirect_GetReservations_1(ctx context.Context, marshaler runt protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetReservations(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } diff --git a/vendor/github.com/olcf/s3m-apis/slurm/v0043/slurm_grpc.pb.go b/vendor/github.com/olcf/s3m-apis/slurm/v0043/slurm_grpc.pb.go index 0a16041..73ecf70 100644 --- a/vendor/github.com/olcf/s3m-apis/slurm/v0043/slurm_grpc.pb.go +++ b/vendor/github.com/olcf/s3m-apis/slurm/v0043/slurm_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.5.1 +// - protoc-gen-go-grpc v1.6.1 // - protoc v6.33.1 // source: proto/slurm/v0043/slurm.proto @@ -168,31 +168,31 @@ type SlurmIndirectServer interface { type UnimplementedSlurmIndirectServer struct{} func (UnimplementedSlurmIndirectServer) Ping(context.Context, *emptypb.Empty) (*PingResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented") + return nil, status.Error(codes.Unimplemented, "method Ping not implemented") } func (UnimplementedSlurmIndirectServer) GetDiag(context.Context, *emptypb.Empty) (*DiagResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDiag not implemented") + return nil, status.Error(codes.Unimplemented, "method GetDiag not implemented") } func (UnimplementedSlurmIndirectServer) GetJob(context.Context, *JobIdReq) (*JobIdResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetJob not implemented") + return nil, status.Error(codes.Unimplemented, "method GetJob not implemented") } func (UnimplementedSlurmIndirectServer) GetJobs(context.Context, *emptypb.Empty) (*JobsResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetJobs not implemented") + return nil, status.Error(codes.Unimplemented, "method GetJobs not implemented") } func (UnimplementedSlurmIndirectServer) PostJobSubmit(context.Context, *JobSubmitReq) (*JobSubmitResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method PostJobSubmit not implemented") + return nil, status.Error(codes.Unimplemented, "method PostJobSubmit not implemented") } func (UnimplementedSlurmIndirectServer) DeleteJob(context.Context, *DeleteJobReq) (*DeleteJobResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteJob not implemented") + return nil, status.Error(codes.Unimplemented, "method DeleteJob not implemented") } func (UnimplementedSlurmIndirectServer) GetNodes(context.Context, *emptypb.Empty) (*NodesResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNodes not implemented") + return nil, status.Error(codes.Unimplemented, "method GetNodes not implemented") } func (UnimplementedSlurmIndirectServer) GetPartitions(context.Context, *emptypb.Empty) (*PartitionsResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPartitions not implemented") + return nil, status.Error(codes.Unimplemented, "method GetPartitions not implemented") } func (UnimplementedSlurmIndirectServer) GetReservations(context.Context, *emptypb.Empty) (*ReservationsResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetReservations not implemented") + return nil, status.Error(codes.Unimplemented, "method GetReservations not implemented") } func (UnimplementedSlurmIndirectServer) mustEmbedUnimplementedSlurmIndirectServer() {} func (UnimplementedSlurmIndirectServer) testEmbeddedByValue() {} @@ -205,7 +205,7 @@ type UnsafeSlurmIndirectServer interface { } func RegisterSlurmIndirectServer(s grpc.ServiceRegistrar, srv SlurmIndirectServer) { - // If the following call pancis, it indicates UnimplementedSlurmIndirectServer was + // If the following call panics, it indicates UnimplementedSlurmIndirectServer 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. diff --git a/vendor/github.com/olcf/s3m-apis/status/v1alpha/status.pb.go b/vendor/github.com/olcf/s3m-apis/status/v1alpha/status.pb.go index ecd8727..b4456d0 100644 --- a/vendor/github.com/olcf/s3m-apis/status/v1alpha/status.pb.go +++ b/vendor/github.com/olcf/s3m-apis/status/v1alpha/status.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 +// protoc-gen-go v1.36.11 // protoc v6.33.1 // source: proto/status/v1alpha/status.proto diff --git a/vendor/github.com/olcf/s3m-apis/status/v1alpha/status.pb.gw.go b/vendor/github.com/olcf/s3m-apis/status/v1alpha/status.pb.gw.go index 233a0b4..6d10ee5 100644 --- a/vendor/github.com/olcf/s3m-apis/status/v1alpha/status.pb.gw.go +++ b/vendor/github.com/olcf/s3m-apis/status/v1alpha/status.pb.gw.go @@ -41,6 +41,9 @@ func request_Status_ListResources_0(ctx context.Context, marshaler runtime.Marsh protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ListResources(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -59,6 +62,9 @@ func request_Status_ListResources_1(ctx context.Context, marshaler runtime.Marsh protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ListResources(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -78,6 +84,9 @@ func request_Status_GetResource_0(ctx context.Context, marshaler runtime.Marshal metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["resource_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_name") @@ -114,6 +123,9 @@ func request_Status_GetResource_1(ctx context.Context, marshaler runtime.Marshal metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["resource_name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_name") @@ -149,6 +161,9 @@ func request_Status_ListDowntimesCurrent_0(ctx context.Context, marshaler runtim protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ListDowntimesCurrent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -167,6 +182,9 @@ func request_Status_ListDowntimesCurrent_1(ctx context.Context, marshaler runtim protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ListDowntimesCurrent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -185,6 +203,9 @@ func request_Status_ListDowntimesUpcoming_0(ctx context.Context, marshaler runti protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ListDowntimesUpcoming(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -203,6 +224,9 @@ func request_Status_ListDowntimesUpcoming_1(ctx context.Context, marshaler runti protoReq emptypb.Empty metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ListDowntimesUpcoming(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } diff --git a/vendor/github.com/olcf/s3m-apis/status/v1alpha/status_grpc.pb.go b/vendor/github.com/olcf/s3m-apis/status/v1alpha/status_grpc.pb.go index c9e1bee..3804a08 100644 --- a/vendor/github.com/olcf/s3m-apis/status/v1alpha/status_grpc.pb.go +++ b/vendor/github.com/olcf/s3m-apis/status/v1alpha/status_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.5.1 +// - protoc-gen-go-grpc v1.6.1 // - protoc v6.33.1 // source: proto/status/v1alpha/status.proto @@ -103,16 +103,16 @@ type StatusServer interface { type UnimplementedStatusServer struct{} func (UnimplementedStatusServer) ListResources(context.Context, *emptypb.Empty) (*Resources, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListResources not implemented") + return nil, status.Error(codes.Unimplemented, "method ListResources not implemented") } func (UnimplementedStatusServer) GetResource(context.Context, *GetResourceRequest) (*Resource, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetResource not implemented") + return nil, status.Error(codes.Unimplemented, "method GetResource not implemented") } func (UnimplementedStatusServer) ListDowntimesCurrent(context.Context, *emptypb.Empty) (*Downtimes, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListDowntimesCurrent not implemented") + return nil, status.Error(codes.Unimplemented, "method ListDowntimesCurrent not implemented") } func (UnimplementedStatusServer) ListDowntimesUpcoming(context.Context, *emptypb.Empty) (*Downtimes, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListDowntimesUpcoming not implemented") + return nil, status.Error(codes.Unimplemented, "method ListDowntimesUpcoming not implemented") } func (UnimplementedStatusServer) mustEmbedUnimplementedStatusServer() {} func (UnimplementedStatusServer) testEmbeddedByValue() {} @@ -125,7 +125,7 @@ type UnsafeStatusServer interface { } func RegisterStatusServer(s grpc.ServiceRegistrar, srv StatusServer) { - // If the following call pancis, it indicates UnimplementedStatusServer was + // If the following call panics, it indicates UnimplementedStatusServer 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. diff --git a/vendor/github.com/olcf/s3m-apis/storage/v1alpha/storage.pb.go b/vendor/github.com/olcf/s3m-apis/storage/v1alpha/storage.pb.go index bb7d635..eff3d8c 100644 --- a/vendor/github.com/olcf/s3m-apis/storage/v1alpha/storage.pb.go +++ b/vendor/github.com/olcf/s3m-apis/storage/v1alpha/storage.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 +// protoc-gen-go v1.36.11 // protoc v6.33.1 // source: proto/storage/v1alpha/storage.proto diff --git a/vendor/github.com/olcf/s3m-apis/storage/v1alpha/storage_grpc.pb.go b/vendor/github.com/olcf/s3m-apis/storage/v1alpha/storage_grpc.pb.go index b9fcf2e..59feed7 100644 --- a/vendor/github.com/olcf/s3m-apis/storage/v1alpha/storage_grpc.pb.go +++ b/vendor/github.com/olcf/s3m-apis/storage/v1alpha/storage_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.5.1 +// - protoc-gen-go-grpc v1.6.1 // - protoc v6.33.1 // source: proto/storage/v1alpha/storage.proto @@ -140,22 +140,22 @@ type BucketGatewayServer interface { type UnimplementedBucketGatewayServer struct{} func (UnimplementedBucketGatewayServer) ReserveDataset(context.Context, *ReserveDatasetRequest) (*ReserveDatasetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReserveDataset not implemented") + return nil, status.Error(codes.Unimplemented, "method ReserveDataset not implemented") } func (UnimplementedBucketGatewayServer) CommitDataset(context.Context, *CommitDatasetRequest) (*CommitDatasetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CommitDataset not implemented") + return nil, status.Error(codes.Unimplemented, "method CommitDataset not implemented") } func (UnimplementedBucketGatewayServer) DeleteDataset(context.Context, *DeleteDatasetRequest) (*DeleteDatasetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteDataset not implemented") + return nil, status.Error(codes.Unimplemented, "method DeleteDataset not implemented") } func (UnimplementedBucketGatewayServer) ListDatasets(context.Context, *ListDatasetsRequest) (*ListDatasetsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListDatasets not implemented") + return nil, status.Error(codes.Unimplemented, "method ListDatasets not implemented") } func (UnimplementedBucketGatewayServer) GetDatasetContents(context.Context, *GetDatasetContentsRequest) (*GetDatasetContentsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDatasetContents not implemented") + return nil, status.Error(codes.Unimplemented, "method GetDatasetContents not implemented") } func (UnimplementedBucketGatewayServer) GetDownloadURLs(context.Context, *GetDownloadURLsRequest) (*GetDownloadURLsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDownloadURLs not implemented") + return nil, status.Error(codes.Unimplemented, "method GetDownloadURLs not implemented") } func (UnimplementedBucketGatewayServer) mustEmbedUnimplementedBucketGatewayServer() {} func (UnimplementedBucketGatewayServer) testEmbeddedByValue() {} @@ -168,7 +168,7 @@ type UnsafeBucketGatewayServer interface { } func RegisterBucketGatewayServer(s grpc.ServiceRegistrar, srv BucketGatewayServer) { - // If the following call pancis, it indicates UnimplementedBucketGatewayServer was + // If the following call panics, it indicates UnimplementedBucketGatewayServer 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. diff --git a/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/common.pb.go b/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/common.pb.go index 1c693fb..596e430 100644 --- a/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/common.pb.go +++ b/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/common.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 +// protoc-gen-go v1.36.11 // protoc v6.33.1 // source: proto/streaming/v1alpha/common.proto diff --git a/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/rabbitmq.pb.go b/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/rabbitmq.pb.go index 7da8ae5..2a8bb35 100644 --- a/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/rabbitmq.pb.go +++ b/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/rabbitmq.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 +// protoc-gen-go v1.36.11 // protoc v6.33.1 // source: proto/streaming/v1alpha/rabbitmq.proto diff --git a/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/redis.pb.go b/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/redis.pb.go index b563a4d..5ba74c6 100644 --- a/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/redis.pb.go +++ b/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/redis.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 +// protoc-gen-go v1.36.11 // protoc v6.33.1 // source: proto/streaming/v1alpha/redis.proto diff --git a/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/streaming.pb.go b/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/streaming.pb.go index 42cbf61..64258e5 100644 --- a/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/streaming.pb.go +++ b/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/streaming.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 +// protoc-gen-go v1.36.11 // protoc v6.33.1 // source: proto/streaming/v1alpha/streaming.proto diff --git a/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/streaming.pb.gw.go b/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/streaming.pb.gw.go index c3157fc..16b2331 100644 --- a/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/streaming.pb.gw.go +++ b/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/streaming.pb.gw.go @@ -40,6 +40,9 @@ func request_Streaming_ListBackends_0(ctx context.Context, marshaler runtime.Mar protoReq ListBackendsRequest metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ListBackends(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -58,6 +61,9 @@ func request_Streaming_ListBackends_1(ctx context.Context, marshaler runtime.Mar protoReq ListBackendsRequest metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ListBackends(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -79,6 +85,9 @@ func request_RabbitMQStreaming_ProvisionRabbitMQCluster_0(ctx context.Context, m if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ProvisionRabbitMQCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -103,6 +112,9 @@ func request_RabbitMQStreaming_ProvisionRabbitMQCluster_1(ctx context.Context, m if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ProvisionRabbitMQCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -124,6 +136,9 @@ func request_RabbitMQStreaming_ListRabbitMQClusters_0(ctx context.Context, marsh protoReq ListRabbitMQClustersRequest metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ListRabbitMQClusters(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -142,6 +157,9 @@ func request_RabbitMQStreaming_ListRabbitMQClusters_1(ctx context.Context, marsh protoReq ListRabbitMQClustersRequest metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ListRabbitMQClusters(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -161,6 +179,9 @@ func request_RabbitMQStreaming_GetRabbitMQCluster_0(ctx context.Context, marshal metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") @@ -197,6 +218,9 @@ func request_RabbitMQStreaming_GetRabbitMQCluster_1(ctx context.Context, marshal metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") @@ -233,6 +257,9 @@ func request_RabbitMQStreaming_DeleteRabbitMQCluster_0(ctx context.Context, mars metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") @@ -269,6 +296,9 @@ func request_RabbitMQStreaming_DeleteRabbitMQCluster_1(ctx context.Context, mars metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") @@ -308,6 +338,9 @@ func request_RabbitMQStreaming_ExtendRabbitMQClusterLife_0(ctx context.Context, if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") @@ -347,6 +380,9 @@ func request_RabbitMQStreaming_ExtendRabbitMQClusterLife_1(ctx context.Context, metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") @@ -385,6 +421,9 @@ func request_RedisStreaming_ProvisionRedisCluster_0(ctx context.Context, marshal if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ProvisionRedisCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -409,6 +448,9 @@ func request_RedisStreaming_ProvisionRedisCluster_1(ctx context.Context, marshal if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ProvisionRedisCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -430,6 +472,9 @@ func request_RedisStreaming_ListRedisClusters_0(ctx context.Context, marshaler r protoReq ListRedisClustersRequest metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ListRedisClusters(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -448,6 +493,9 @@ func request_RedisStreaming_ListRedisClusters_1(ctx context.Context, marshaler r protoReq ListRedisClustersRequest metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ListRedisClusters(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -467,6 +515,9 @@ func request_RedisStreaming_GetRedisCluster_0(ctx context.Context, marshaler run metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") @@ -503,6 +554,9 @@ func request_RedisStreaming_GetRedisCluster_1(ctx context.Context, marshaler run metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") @@ -539,6 +593,9 @@ func request_RedisStreaming_DeleteRedisCluster_0(ctx context.Context, marshaler metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") @@ -575,6 +632,9 @@ func request_RedisStreaming_DeleteRedisCluster_1(ctx context.Context, marshaler metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") @@ -614,6 +674,9 @@ func request_RedisStreaming_ExtendRedisClusterLife_0(ctx context.Context, marsha if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") @@ -653,6 +716,9 @@ func request_RedisStreaming_ExtendRedisClusterLife_1(ctx context.Context, marsha metadata runtime.ServerMetadata err error ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") diff --git a/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/streaming_grpc.pb.go b/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/streaming_grpc.pb.go index eed2a8e..d28c481 100644 --- a/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/streaming_grpc.pb.go +++ b/vendor/github.com/olcf/s3m-apis/streaming/v1alpha/streaming_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.5.1 +// - protoc-gen-go-grpc v1.6.1 // - protoc v6.33.1 // source: proto/streaming/v1alpha/streaming.proto @@ -63,7 +63,7 @@ type StreamingServer interface { type UnimplementedStreamingServer struct{} func (UnimplementedStreamingServer) ListBackends(context.Context, *ListBackendsRequest) (*ListBackendsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListBackends not implemented") + return nil, status.Error(codes.Unimplemented, "method ListBackends not implemented") } func (UnimplementedStreamingServer) mustEmbedUnimplementedStreamingServer() {} func (UnimplementedStreamingServer) testEmbeddedByValue() {} @@ -76,7 +76,7 @@ type UnsafeStreamingServer interface { } func RegisterStreamingServer(s grpc.ServiceRegistrar, srv StreamingServer) { - // If the following call pancis, it indicates UnimplementedStreamingServer was + // If the following call panics, it indicates UnimplementedStreamingServer 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. @@ -217,19 +217,19 @@ type RabbitMQStreamingServer interface { type UnimplementedRabbitMQStreamingServer struct{} func (UnimplementedRabbitMQStreamingServer) ProvisionRabbitMQCluster(context.Context, *ProvisionRabbitMQClusterRequest) (*ProvisionRabbitMQClusterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProvisionRabbitMQCluster not implemented") + return nil, status.Error(codes.Unimplemented, "method ProvisionRabbitMQCluster not implemented") } func (UnimplementedRabbitMQStreamingServer) ListRabbitMQClusters(context.Context, *ListRabbitMQClustersRequest) (*ListRabbitMQClustersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListRabbitMQClusters not implemented") + return nil, status.Error(codes.Unimplemented, "method ListRabbitMQClusters not implemented") } func (UnimplementedRabbitMQStreamingServer) GetRabbitMQCluster(context.Context, *GetRabbitMQClusterRequest) (*GetRabbitMQClusterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRabbitMQCluster not implemented") + return nil, status.Error(codes.Unimplemented, "method GetRabbitMQCluster not implemented") } func (UnimplementedRabbitMQStreamingServer) DeleteRabbitMQCluster(context.Context, *DeleteRabbitMQClusterRequest) (*DeleteRabbitMQClusterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteRabbitMQCluster not implemented") + return nil, status.Error(codes.Unimplemented, "method DeleteRabbitMQCluster not implemented") } func (UnimplementedRabbitMQStreamingServer) ExtendRabbitMQClusterLife(context.Context, *ExtendRabbitMQClusterLifeRequest) (*ExtendRabbitMQClusterLifeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ExtendRabbitMQClusterLife not implemented") + return nil, status.Error(codes.Unimplemented, "method ExtendRabbitMQClusterLife not implemented") } func (UnimplementedRabbitMQStreamingServer) mustEmbedUnimplementedRabbitMQStreamingServer() {} func (UnimplementedRabbitMQStreamingServer) testEmbeddedByValue() {} @@ -242,7 +242,7 @@ type UnsafeRabbitMQStreamingServer interface { } func RegisterRabbitMQStreamingServer(s grpc.ServiceRegistrar, srv RabbitMQStreamingServer) { - // If the following call pancis, it indicates UnimplementedRabbitMQStreamingServer was + // If the following call panics, it indicates UnimplementedRabbitMQStreamingServer 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. @@ -471,19 +471,19 @@ type RedisStreamingServer interface { type UnimplementedRedisStreamingServer struct{} func (UnimplementedRedisStreamingServer) ProvisionRedisCluster(context.Context, *ProvisionRedisClusterRequest) (*ProvisionRedisClusterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProvisionRedisCluster not implemented") + return nil, status.Error(codes.Unimplemented, "method ProvisionRedisCluster not implemented") } func (UnimplementedRedisStreamingServer) ListRedisClusters(context.Context, *ListRedisClustersRequest) (*ListRedisClustersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListRedisClusters not implemented") + return nil, status.Error(codes.Unimplemented, "method ListRedisClusters not implemented") } func (UnimplementedRedisStreamingServer) GetRedisCluster(context.Context, *GetRedisClusterRequest) (*GetRedisClusterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRedisCluster not implemented") + return nil, status.Error(codes.Unimplemented, "method GetRedisCluster not implemented") } func (UnimplementedRedisStreamingServer) DeleteRedisCluster(context.Context, *DeleteRedisClusterRequest) (*DeleteRedisClusterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteRedisCluster not implemented") + return nil, status.Error(codes.Unimplemented, "method DeleteRedisCluster not implemented") } func (UnimplementedRedisStreamingServer) ExtendRedisClusterLife(context.Context, *ExtendRedisClusterLifeRequest) (*ExtendRedisClusterLifeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ExtendRedisClusterLife not implemented") + return nil, status.Error(codes.Unimplemented, "method ExtendRedisClusterLife not implemented") } func (UnimplementedRedisStreamingServer) mustEmbedUnimplementedRedisStreamingServer() {} func (UnimplementedRedisStreamingServer) testEmbeddedByValue() {} @@ -496,7 +496,7 @@ type UnsafeRedisStreamingServer interface { } func RegisterRedisStreamingServer(s grpc.ServiceRegistrar, srv RedisStreamingServer) { - // If the following call pancis, it indicates UnimplementedRedisStreamingServer was + // If the following call panics, it indicates UnimplementedRedisStreamingServer 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. diff --git a/vendor/github.com/olcf/s3m-apis/tms/v1/control.pb.go b/vendor/github.com/olcf/s3m-apis/tms/v1/control.pb.go index 0cee4ca..93261e7 100644 --- a/vendor/github.com/olcf/s3m-apis/tms/v1/control.pb.go +++ b/vendor/github.com/olcf/s3m-apis/tms/v1/control.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 +// protoc-gen-go v1.36.11 // protoc v6.33.1 // source: proto/tms/v1/control.proto diff --git a/vendor/github.com/olcf/s3m-apis/tms/v1/control.pb.gw.go b/vendor/github.com/olcf/s3m-apis/tms/v1/control.pb.gw.go index 3bd7406..8e003fb 100644 --- a/vendor/github.com/olcf/s3m-apis/tms/v1/control.pb.gw.go +++ b/vendor/github.com/olcf/s3m-apis/tms/v1/control.pb.gw.go @@ -42,6 +42,9 @@ func request_TokenControl_IntrospectAuthToken_0(ctx context.Context, marshaler r protoReq IntrospectAuthTokenRequest metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -74,6 +77,9 @@ func request_TokenControl_IntrospectAuthToken_1(ctx context.Context, marshaler r protoReq IntrospectAuthTokenRequest metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -104,6 +110,9 @@ func request_TokenControl_RevokeAuthToken_0(ctx context.Context, marshaler runti protoReq RevokeAuthTokenRequest metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.RevokeAuthToken(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -122,6 +131,9 @@ func request_TokenControl_RevokeAuthToken_1(ctx context.Context, marshaler runti protoReq RevokeAuthTokenRequest metadata runtime.ServerMetadata ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.RevokeAuthToken(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } diff --git a/vendor/github.com/olcf/s3m-apis/tms/v1/control_grpc.pb.go b/vendor/github.com/olcf/s3m-apis/tms/v1/control_grpc.pb.go index b3cf669..6643f2f 100644 --- a/vendor/github.com/olcf/s3m-apis/tms/v1/control_grpc.pb.go +++ b/vendor/github.com/olcf/s3m-apis/tms/v1/control_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.5.1 +// - protoc-gen-go-grpc v1.6.1 // - protoc v6.33.1 // source: proto/tms/v1/control.proto @@ -82,10 +82,10 @@ type TokenControlServer interface { type UnimplementedTokenControlServer struct{} func (UnimplementedTokenControlServer) IntrospectAuthToken(context.Context, *IntrospectAuthTokenRequest) (*IntrospectAuthTokenResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IntrospectAuthToken not implemented") + return nil, status.Error(codes.Unimplemented, "method IntrospectAuthToken not implemented") } func (UnimplementedTokenControlServer) RevokeAuthToken(context.Context, *RevokeAuthTokenRequest) (*RevokeAuthTokenResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RevokeAuthToken not implemented") + return nil, status.Error(codes.Unimplemented, "method RevokeAuthToken not implemented") } func (UnimplementedTokenControlServer) mustEmbedUnimplementedTokenControlServer() {} func (UnimplementedTokenControlServer) testEmbeddedByValue() {} @@ -98,7 +98,7 @@ type UnsafeTokenControlServer interface { } func RegisterTokenControlServer(s grpc.ServiceRegistrar, srv TokenControlServer) { - // If the following call pancis, it indicates UnimplementedTokenControlServer was + // If the following call panics, it indicates UnimplementedTokenControlServer 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.