From 6dbab2eac5a86b8d15e447916f37be0fb4f81537 Mon Sep 17 00:00:00 2001 From: Konstantin Khlebnikov Date: Thu, 14 Nov 2024 15:49:39 +0100 Subject: [PATCH 1/2] Upgrade dependencies --- go.mod | 78 +-- go.sum | 175 ++++--- pkg/components/suite_test.go | 3 +- pkg/components/tablet_node_test.go | 3 +- pkg/mock/declaration.go | 2 +- pkg/mock/mock_ytsaurus_client.go | 762 ++++++++++++++++++----------- 6 files changed, 593 insertions(+), 430 deletions(-) diff --git a/go.mod b/go.mod index c7033003..2dfab931 100644 --- a/go.mod +++ b/go.mod @@ -1,34 +1,34 @@ module github.com/ytsaurus/ytsaurus-k8s-operator -go 1.22.2 +go 1.22.7 require ( - github.com/BurntSushi/toml v1.3.2 - github.com/go-logr/logr v1.4.1 - github.com/golang/mock v1.6.0 + github.com/BurntSushi/toml v1.4.0 + github.com/go-logr/logr v1.4.2 github.com/google/go-cmp v0.6.0 - github.com/google/uuid v1.3.0 - github.com/onsi/ginkgo/v2 v2.15.0 - github.com/onsi/gomega v1.31.0 - github.com/pmezard/go-difflib v1.0.0 - github.com/stretchr/testify v1.8.4 - go.uber.org/zap v1.25.0 - go.ytsaurus.tech/yt/go v0.0.16 - golang.org/x/exp v0.0.0-20230905200255-921286631fa9 - k8s.io/api v0.28.3 - k8s.io/apimachinery v0.30.2 - k8s.io/client-go v0.28.3 + github.com/google/uuid v1.6.0 + github.com/onsi/ginkgo/v2 v2.21.0 + github.com/onsi/gomega v1.35.1 + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 + github.com/stretchr/testify v1.9.0 + go.uber.org/mock v0.5.0 + go.uber.org/zap v1.27.0 + go.ytsaurus.tech/yt/go v0.0.24 + golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 + k8s.io/api v0.28.15 + k8s.io/apimachinery v0.30.6 + k8s.io/client-go v0.28.15 k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0 - sigs.k8s.io/controller-runtime v0.16.5 - sigs.k8s.io/yaml v1.3.0 + sigs.k8s.io/controller-runtime v0.16.6 + sigs.k8s.io/yaml v1.4.0 ) require ( - github.com/andybalholm/brotli v1.0.4 // indirect + github.com/andybalholm/brotli v1.1.0 // indirect github.com/beorn7/perks v1.0.1 // indirect - github.com/cenkalti/backoff/v4 v4.2.1 // indirect + github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/emicklei/go-restful/v3 v3.11.0 // indirect github.com/evanphx/json-patch v5.6.0+incompatible // indirect github.com/evanphx/json-patch/v5 v5.6.0 // indirect @@ -37,7 +37,7 @@ require ( github.com/go-openapi/jsonpointer v0.19.6 // indirect github.com/go-openapi/jsonreference v0.20.2 // indirect github.com/go-openapi/swag v0.22.3 // indirect - github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect + github.com/go-task/slim-sprig/v3 v3.0.0 // indirect github.com/gofrs/uuid v4.2.0+incompatible // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect @@ -45,12 +45,12 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/google/gnostic-models v0.6.8 // indirect github.com/google/gofuzz v1.2.0 // indirect - github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect + github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db // indirect github.com/google/tink/go v1.7.0 // indirect github.com/imdario/mergo v0.3.12 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/klauspost/compress v1.16.7 // indirect + github.com/klauspost/compress v1.17.9 // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect @@ -68,29 +68,29 @@ require ( github.com/spf13/pflag v1.0.6-0.20201009195203-85dd5c8bc61c // indirect go.uber.org/atomic v1.11.0 // indirect go.uber.org/multierr v1.11.0 // indirect - go.ytsaurus.tech/library/go/blockcodecs v0.0.2 // indirect - go.ytsaurus.tech/library/go/core/log v0.0.3 // indirect - go.ytsaurus.tech/library/go/core/xerrors v0.0.3 // indirect - go.ytsaurus.tech/library/go/ptr v0.0.1 // indirect - go.ytsaurus.tech/library/go/x/xreflect v0.0.2 // indirect - go.ytsaurus.tech/library/go/x/xruntime v0.0.3 // indirect - golang.org/x/crypto v0.21.0 // indirect - golang.org/x/net v0.23.0 // indirect + go.ytsaurus.tech/library/go/blockcodecs v0.0.3 // indirect + go.ytsaurus.tech/library/go/core/log v0.0.4 // indirect + go.ytsaurus.tech/library/go/core/xerrors v0.0.4 // indirect + go.ytsaurus.tech/library/go/ptr v0.0.2 // indirect + go.ytsaurus.tech/library/go/x/xreflect v0.0.3 // indirect + go.ytsaurus.tech/library/go/x/xruntime v0.0.4 // indirect + golang.org/x/crypto v0.28.0 // indirect + golang.org/x/net v0.30.0 // indirect golang.org/x/oauth2 v0.8.0 // indirect - golang.org/x/sys v0.18.0 // indirect - golang.org/x/term v0.18.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/sys v0.26.0 // indirect + golang.org/x/term v0.25.0 // indirect + golang.org/x/text v0.19.0 // indirect golang.org/x/time v0.3.0 // indirect - golang.org/x/tools v0.18.0 // indirect - golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect + golang.org/x/tools v0.26.0 // indirect + golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/protobuf v1.33.0 // indirect + google.golang.org/protobuf v1.35.1 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - k8s.io/apiextensions-apiserver v0.28.3 // indirect - k8s.io/component-base v0.28.3 // indirect + k8s.io/apiextensions-apiserver v0.28.9 // indirect + k8s.io/component-base v0.28.9 // indirect k8s.io/klog/v2 v2.120.1 // indirect k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect diff --git a/go.sum b/go.sum index 32636cd9..18e5d88c 100644 --- a/go.sum +++ b/go.sum @@ -1,36 +1,32 @@ -github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8= -github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= -github.com/andybalholm/brotli v1.0.4 h1:V7DdXeJtZscaqfNuAdSRuRFzuiKlHSC/Zh3zl9qY3JY= -github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= +github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0= +github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= +github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1U3M= +github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= -github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= -github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqylYbM= -github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= +github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= +github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= 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 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxERmMY4rD+g= github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= github.com/evanphx/json-patch v5.6.0+incompatible h1:jBYDEEiFBPxA0v50tFdvOzQQTCvpL6mnFh5mB2/l16U= github.com/evanphx/json-patch v5.6.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch/v5 v5.6.0 h1:b91NhWfaz02IuVxO9faSllyAtNXHMPkC5J8sJCLunww= github.com/evanphx/json-patch/v5 v5.6.0/go.mod h1:G79N1coSVB93tBe7j6PhzjmR3/2VvlbKOFpnXhI9Bw4= -github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= -github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= +github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= +github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= -github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= +github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/zapr v1.2.4 h1:QHVo+6stLbfJmYGkQ7uGHUCu5hnAFAj6mDe6Ea0SeOo= github.com/go-logr/zapr v1.2.4/go.mod h1:FyHWQIzQORZ0QVE1BtVHv3cKtNLuXsbNLtpuhNapBOA= github.com/go-openapi/jsonpointer v0.19.6 h1:eCs3fxoIi3Wh6vtgmLTOjdhSpiqphQ+DaPn38N2ZdrE= @@ -39,16 +35,14 @@ github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2Kv github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k= github.com/go-openapi/swag v0.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/g= github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= +github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= +github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= github.com/gofrs/uuid v4.2.0+incompatible h1:yyYWMnhkhrKwwr8gAOcOCYxOOscHgDS9yZgBrnJfGa0= github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= -github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= @@ -63,13 +57,12 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 h1:K6RDEckDVWvDI9JAJYCmNdQXq6neHJOYx3V6jnqNEec= -github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db h1:097atOisP2aRj7vFgYQBbFN4U4JNXUNYpxael3UzMyo= +github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144= github.com/google/tink/go v1.7.0 h1:6Eox8zONGebBFcCBqkVmt60LaWZa6xg1cl/DwAh/J1w= github.com/google/tink/go v1.7.0/go.mod h1:GAUOd+QE3pgj9q8VKIGTCP33c/B7eb4NhxLcgTJZStM= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU= github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= @@ -79,8 +72,8 @@ github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnr github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= 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.16.7 h1:2mk3MPGNzKyxErAw8YaohYh69+pa4sIQSC0fPGCFR9I= -github.com/klauspost/compress v1.16.7/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA= +github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -104,10 +97,10 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/onsi/ginkgo/v2 v2.15.0 h1:79HwNRBAZHOEwrczrgSOPy+eFTTlIGELKy5as+ClttY= -github.com/onsi/ginkgo/v2 v2.15.0/go.mod h1:HlxMHtYF57y6Dpf+mc5529KKmSq9h2FpCF+/ZkwUxKM= -github.com/onsi/gomega v1.31.0 h1:54UJxxj6cPInHS3a35wm6BK/F9nHYueZ1NVujHDrnXE= -github.com/onsi/gomega v1.31.0/go.mod h1:DW9aCi7U6Yi40wNVAvT6kzFnEVEI5n3DloYBiKiT6zk= +github.com/onsi/ginkgo/v2 v2.21.0 h1:7rg/4f3rB88pb5obDgNZrNHrQ4e6WpjonchcpuBRnZM= +github.com/onsi/ginkgo/v2 v2.21.0/go.mod h1:7Du3c42kxCUegi0IImZ1wUQzMBVecgIHjR1C+NkhLQo= +github.com/onsi/gomega v1.35.1 h1:Cwbd75ZBPxFSuZ6T+rN/WCb/gOc6YgFBXLlZLhC7Ds4= +github.com/onsi/gomega v1.35.1/go.mod h1:PvZbdDc8J6XJEpDK4HCuRBm8a6Fzp9/DmhC9C7yFlog= github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= github.com/pierrec/lz4 v2.6.1+incompatible h1:9UY3+iC23yxF0UfGaYrGplQ+79Rg+h/q9FV9ix19jjM= @@ -115,8 +108,9 @@ github.com/pierrec/lz4 v2.6.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_golang v1.16.0 h1:yk/hx9hDbrGHovbci4BY+pRMfSuuat626eFsHb7tmT8= github.com/prometheus/client_golang v1.16.0/go.mod h1:Zsulrv/L9oM40tJ7T815tM89lFEugiJ9HzIqaAx4LKc= github.com/prometheus/client_model v0.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw= @@ -125,21 +119,20 @@ github.com/prometheus/common v0.44.0 h1:+5BrQJwiBB9xsMygAB3TNvpQKOwlkc25LbISbrdO github.com/prometheus/common v0.44.0/go.mod h1:ofAIvZbQ1e/nugmZGz4/qCb9Ap1VoSTIO7x0VV9VvuY= github.com/prometheus/procfs v0.10.1 h1:kYK1Va/YMlutzCGazswoHKo//tZVlFpKYh+PymziUAg= github.com/prometheus/procfs v0.10.1/go.mod h1:nwNm2aOCAYw8uTR/9bWRREkZFxAUcWzPHWJq+XBB/FM= -github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= -github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= +github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= +github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= github.com/spf13/pflag v1.0.6-0.20201009195203-85dd5c8bc61c h1:zqmyTlQyufRC65JnImJ6H1Sf7BDj8bG31EV919NVEQc= github.com/spf13/pflag v1.0.6-0.20201009195203-85dd5c8bc61c/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= @@ -147,37 +140,39 @@ go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A= -go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +go.uber.org/mock v0.5.0 h1:KAMbZvZPyBPWgD14IrIQ38QCyjwpvVVV6K/bHl1IwQU= +go.uber.org/mock v0.5.0/go.mod h1:ge71pBPLYDk7QIi1LupWxdAykm7KIEFchiOqd6z7qMM= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= -go.uber.org/zap v1.25.0 h1:4Hvk6GtkucQ790dqmj7l1eEnRdKm3k3ZUrUMS2d5+5c= -go.uber.org/zap v1.25.0/go.mod h1:JIAUzQIH94IC4fOJQm7gMmBJP5k7wQfdcnYdPoEXJYk= -go.ytsaurus.tech/library/go/blockcodecs v0.0.2 h1:i5rnrhhMBtBZZk0jEa/Urh+n7dBTaL33Zsdoy3CGqfQ= -go.ytsaurus.tech/library/go/blockcodecs v0.0.2/go.mod h1:foVTVRMNgz8S5Hzibrs8zzVfC8J0WXl9fElJOgdbSgU= -go.ytsaurus.tech/library/go/core/log v0.0.3 h1:GHVTfUkJlUTomz1rMdWWQ68VyWgqGUKrvz9UjCA1f1A= -go.ytsaurus.tech/library/go/core/log v0.0.3/go.mod h1:42VUSaeJyAHqHsENQJDI9+tDGhBrVvsCVNojsrorCSQ= -go.ytsaurus.tech/library/go/core/xerrors v0.0.3 h1:RLr4bByQ4V4n77eeCdgqM4tBUNe4QDGDSTMqTj/nZn0= -go.ytsaurus.tech/library/go/core/xerrors v0.0.3/go.mod h1:8u4Vm+WwEJceSGO3+D1m70vdQBc6E+q8cTfXMxKHAPs= -go.ytsaurus.tech/library/go/ptr v0.0.1 h1:TXR35NUQREmcifYt4qic7eYGIFgdc0cn+KNqkwpnsBU= -go.ytsaurus.tech/library/go/ptr v0.0.1/go.mod h1:3HhS2x1phVP+4agBp7QZ7ywdOL7Jo1aYRYEyrxFbKSA= -go.ytsaurus.tech/library/go/test/testhelpers v0.0.1 h1:X2y+zhLgd2y0DxF4V6HJyZwIp7rpewFKXlb+XZWGjio= -go.ytsaurus.tech/library/go/test/testhelpers v0.0.1/go.mod h1:kDwN91Sg68g0gYeYhLTA1sVlLJHdAtxZq6xWYj32TLI= -go.ytsaurus.tech/library/go/x/xreflect v0.0.2 h1:S+lfg3G+WrfiBfTYz8droZeyiYYvT4mxLxEbQcNXQFs= -go.ytsaurus.tech/library/go/x/xreflect v0.0.2/go.mod h1:FJB6bzAVFQxi99CZjUqDSAMu5puEjswFW9Qwj41Yyy8= -go.ytsaurus.tech/library/go/x/xruntime v0.0.3 h1:/km3v+CPSuID5FsPKvE2LcwmYJPS8TcxeBMGH1MjtVs= -go.ytsaurus.tech/library/go/x/xruntime v0.0.3/go.mod h1:b+ypj9bGoFpoupNQW2rLJRSrT8rLA0NcUfyBYQwHc68= -go.ytsaurus.tech/yt/go v0.0.16 h1:TqxJc4vzOJJr+nD5gZcbiCAEpw+GAwpmSy8aS4canzE= -go.ytsaurus.tech/yt/go v0.0.16/go.mod h1:Dfp5isPP1XPL+UFWqvnFHauNzrlUt83K+9HrGF7O64Q= +go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= +go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= +go.ytsaurus.tech/library/go/blockcodecs v0.0.3 h1:JXCfuzDx4yoJgV0eWA+3zLAT0Mex3Y1Rh2bkUhdd5Hg= +go.ytsaurus.tech/library/go/blockcodecs v0.0.3/go.mod h1:CtkA8XKuqwax4aPBEorIpz84gW3ijEHsnzlkODYERfU= +go.ytsaurus.tech/library/go/core/log v0.0.4 h1:HQqRd2cw6TdbD0iMCmHxE+hLEES5LUFaj2Mc6rePAuc= +go.ytsaurus.tech/library/go/core/log v0.0.4/go.mod h1:CmXfXw+wMmxr2NYdHWRLYww7WiVYdcJx0RRkt14Dmc8= +go.ytsaurus.tech/library/go/core/xerrors v0.0.4 h1:KDZdCGiS/Lg641TIA3s8JCg7ZgxAvtFITTeG3Kb+SoE= +go.ytsaurus.tech/library/go/core/xerrors v0.0.4/go.mod h1:yvvvhXFbVLe1FwrgH3RY031EjKmvykQuOw+E9x1eZ5Q= +go.ytsaurus.tech/library/go/ptr v0.0.2 h1:F2lr3y0XuMweTKjBMibcV/FBsEyvNw293FAc+flNXZ4= +go.ytsaurus.tech/library/go/ptr v0.0.2/go.mod h1:odjQyXyWpalatk+n531jccD3On2JvxURA6ns4/GbBYI= +go.ytsaurus.tech/library/go/test/testhelpers v0.0.2 h1:/nQfk7pxzhBquqAYL9JC6YEXa3Nar//nopujuZd6HZU= +go.ytsaurus.tech/library/go/test/testhelpers v0.0.2/go.mod h1:rbrp2Msak/g6XfEYjdQjwFpg9yF9ZztLuYyDkkSIdfc= +go.ytsaurus.tech/library/go/x/xreflect v0.0.3 h1:LCOjVDGKjKMTaFtn+iudhPAdvcjeJSXxvfvDigzdgs0= +go.ytsaurus.tech/library/go/x/xreflect v0.0.3/go.mod h1:D57na+z+EjaRuBo+nxgq6KPw5wfdHtO50MdcwBAzhq0= +go.ytsaurus.tech/library/go/x/xruntime v0.0.4 h1:VNstd2dkPZEN6nsJ3C+q/fVc4b2hajQ6ZYBS7+k7aBg= +go.ytsaurus.tech/library/go/x/xruntime v0.0.4/go.mod h1:fS4AUByc8QIHG06qxEjXYYs8B41eDh+yo2Q1Pk+msoA= +go.ytsaurus.tech/yt/go v0.0.24 h1:/Sw88iEjFQXwIiGEz5UcAV1xN8cgPvHkeJ0oYIAy8Bo= +go.ytsaurus.tech/yt/go v0.0.24/go.mod h1:pEJol7jWR8p/44q2OlPgGF/x1YbcJaUEkZV5SN17LFE= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= -golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= -golang.org/x/exp v0.0.0-20230905200255-921286631fa9 h1:GoHiUyI/Tp2nVkLI2mCxVkOjsbSXD66ic0XW0js0R9g= -golang.org/x/exp v0.0.0-20230905200255-921286631fa9/go.mod h1:S2oDrQGGwySpoQPVqRShND87VCbxmc6bL1Yd2oYrm6k= +golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= +golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 h1:vr/HnozRka3pE4EsMEg1lgkXJkTFJCVUX+S/ZT6wYzM= +golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842/go.mod h1:XtvwrStGgqGPLc4cjQfWqZHG1YFdYs6swckp8vpsjnc= golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= @@ -189,8 +184,8 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs= -golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= +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.8.0 h1:6dkIjl3j3LtZ/O3sTgZTMsLKSftL/B8Zgq4huOIIUu8= golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -200,22 +195,21 @@ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= -golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.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.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8= -golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58= +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.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/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4= golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -223,22 +217,21 @@ golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3 golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.18.0 h1:k8NLag8AGHnn+PHbl7g43CtqZAwG60vZkLqgyZgIHgQ= -golang.org/x/tools v0.18.0/go.mod h1:GL7B4CwcLLeo59yx/9UWWuNOW1n3VZ4f5axWfML7Lcg= +golang.org/x/tools v0.26.0 h1:v/60pFQmzmT9ExmjDv2gGIfi3OqfKoEP6I5+umXlbnQ= +golang.org/x/tools v0.26.0/go.mod h1:TPVVj70c7JJ3WCazhD8OdXcZg/og+b9+tH/KxylGwH0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= -golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 h1:+cNy6SZtPcJQH3LJVLOSmiC7MMxXNOb3PU/VUEz+EhU= +golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= gomodules.xyz/jsonpatch/v2 v2.4.0 h1:Ci3iUJyx9UeRx7CeFN8ARgGbkESwJK+KB9lLcWxY/Zw= gomodules.xyz/jsonpatch/v2 v2.4.0/go.mod h1:AH3dM2RI6uoBZxn3LVrfvJ3E0/9dG4cSrbuBJT4moAY= google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -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-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= @@ -252,27 +245,27 @@ gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -k8s.io/api v0.28.3 h1:Gj1HtbSdB4P08C8rs9AR94MfSGpRhJgsS+GF9V26xMM= -k8s.io/api v0.28.3/go.mod h1:MRCV/jr1dW87/qJnZ57U5Pak65LGmQVkKTzf3AtKFHc= -k8s.io/apiextensions-apiserver v0.28.3 h1:Od7DEnhXHnHPZG+W9I97/fSQkVpVPQx2diy+2EtmY08= -k8s.io/apiextensions-apiserver v0.28.3/go.mod h1:NE1XJZ4On0hS11aWWJUTNkmVB03j9LM7gJSisbRt8Lc= -k8s.io/apimachinery v0.30.2 h1:fEMcnBj6qkzzPGSVsAZtQThU62SmQ4ZymlXRC5yFSCg= -k8s.io/apimachinery v0.30.2/go.mod h1:iexa2somDaxdnj7bha06bhb43Zpa6eWH8N8dbqVjTUc= -k8s.io/client-go v0.28.3 h1:2OqNb72ZuTZPKCl+4gTKvqao0AMOl9f3o2ijbAj3LI4= -k8s.io/client-go v0.28.3/go.mod h1:LTykbBp9gsA7SwqirlCXBWtK0guzfhpoW4qSm7i9dxo= -k8s.io/component-base v0.28.3 h1:rDy68eHKxq/80RiMb2Ld/tbH8uAE75JdCqJyi6lXMzI= -k8s.io/component-base v0.28.3/go.mod h1:fDJ6vpVNSk6cRo5wmDa6eKIG7UlIQkaFmZN2fYgIUD8= +k8s.io/api v0.28.15 h1:u+Sze8gI+DayQxndS0htiJf8yVooHyUx/H4jEehtmNs= +k8s.io/api v0.28.15/go.mod h1:SJuOJTphYG05iJC9UKnUTNkY84Mvveu1P7adCgWqjCg= +k8s.io/apiextensions-apiserver v0.28.9 h1:yzPHp+4IASHeu7XIPkAKJrY4UjWdjiAjOcQMd6oNKj0= +k8s.io/apiextensions-apiserver v0.28.9/go.mod h1:Rjhvq5y3JESdZgV2UOByldyefCfRrUguVpBLYOAIbVs= +k8s.io/apimachinery v0.30.6 h1:dlplzGrUL/DiPOVVVjDcT9ZoQBOwYeB6hcFy90veggs= +k8s.io/apimachinery v0.30.6/go.mod h1:iexa2somDaxdnj7bha06bhb43Zpa6eWH8N8dbqVjTUc= +k8s.io/client-go v0.28.15 h1:+g6Ub+i6tacV3tYJaoyK6bizpinPkamcEwsiKyHcIxc= +k8s.io/client-go v0.28.15/go.mod h1:/4upIpTbhWQVSXKDqTznjcAegj2Bx73mW/i0aennJrY= +k8s.io/component-base v0.28.9 h1:ySM2PR8Z/xaUSG1Akd3yM6dqUezTltI7S5aV41MMuuc= +k8s.io/component-base v0.28.9/go.mod h1:QtWzscEhCKRfHV24/S+11BwWjVxhC6fd3RYoEgZcWFU= k8s.io/klog/v2 v2.120.1 h1:QXU6cPEOIslTGvZaXvFWiP9VKyeet3sawzTOvdXb4Vw= k8s.io/klog/v2 v2.120.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 h1:BZqlfIlq5YbRMFko6/PM7FjZpUb45WallggurYhKGag= k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340/go.mod h1:yD4MZYeKMBwQKVht279WycxKyM84kkAx2DPrTXaeb98= k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0 h1:jgGTlFYnhF1PM1Ax/lAlxUPE+KfCIXHaathvJg1C3ak= k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -sigs.k8s.io/controller-runtime v0.16.5 h1:yr1cEJbX08xsTW6XEIzT13KHHmIyX8Umvme2cULvFZw= -sigs.k8s.io/controller-runtime v0.16.5/go.mod h1:j7bialYoSn142nv9sCOJmQgDXQXxnroFU4VnX/brVJ0= +sigs.k8s.io/controller-runtime v0.16.6 h1:FiXwTuFF5ZJKmozfP2Z0j7dh6kmxP4Ou1KLfxgKKC3I= +sigs.k8s.io/controller-runtime v0.16.6/go.mod h1:+dQzkZxnylD0u49e0a+7AR+vlibEBaThmPca7lTyUsI= sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo= sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4= sigs.k8s.io/structured-merge-diff/v4 v4.4.1/go.mod h1:N8hJocpFajUSSeSJ9bOZ77VzejKZaXsTtZo4/u7Io08= -sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= -sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= +sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= +sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= diff --git a/pkg/components/suite_test.go b/pkg/components/suite_test.go index c0e6bd6b..7132bc86 100644 --- a/pkg/components/suite_test.go +++ b/pkg/components/suite_test.go @@ -5,7 +5,8 @@ import ( "os" "testing" - "github.com/golang/mock/gomock" + "go.uber.org/mock/gomock" + . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "go.ytsaurus.tech/yt/go/yt" diff --git a/pkg/components/tablet_node_test.go b/pkg/components/tablet_node_test.go index 3169b681..6cae50ce 100644 --- a/pkg/components/tablet_node_test.go +++ b/pkg/components/tablet_node_test.go @@ -5,7 +5,8 @@ import ( "fmt" "net" - "github.com/golang/mock/gomock" + "go.uber.org/mock/gomock" + . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "go.ytsaurus.tech/yt/go/guid" diff --git a/pkg/mock/declaration.go b/pkg/mock/declaration.go index 193111d7..c2dee406 100644 --- a/pkg/mock/declaration.go +++ b/pkg/mock/declaration.go @@ -1,3 +1,3 @@ package mock_yt -//go:generate mockgen -destination=mock_ytsaurus_client.go -package=mock_yt go.ytsaurus.tech/yt/go/yt Client +//go:generate go run go.uber.org/mock/mockgen@v0.5.0 -destination=mock_ytsaurus_client.go -package=mock_yt go.ytsaurus.tech/yt/go/yt Client diff --git a/pkg/mock/mock_ytsaurus_client.go b/pkg/mock/mock_ytsaurus_client.go index 8f106450..1c811d94 100644 --- a/pkg/mock/mock_ytsaurus_client.go +++ b/pkg/mock/mock_ytsaurus_client.go @@ -1,5 +1,10 @@ // Code generated by MockGen. DO NOT EDIT. // Source: go.ytsaurus.tech/yt/go/yt (interfaces: Client) +// +// Generated by this command: +// +// mockgen -destination=mock_ytsaurus_client.go -package=mock_yt go.ytsaurus.tech/yt/go/yt Client +// // Package mock_yt is a generated GoMock package. package mock_yt @@ -9,7 +14,7 @@ import ( io "io" reflect "reflect" - gomock "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" guid "go.ytsaurus.tech/yt/go/guid" ypath "go.ytsaurus.tech/yt/go/ypath" yt "go.ytsaurus.tech/yt/go/yt" @@ -19,6 +24,7 @@ import ( type MockClient struct { ctrl *gomock.Controller recorder *MockClientMockRecorder + isgomock struct{} } // MockClientMockRecorder is the mock recorder for MockClient. @@ -39,659 +45,734 @@ func (m *MockClient) EXPECT() *MockClientMockRecorder { } // AbortOperation mocks base method. -func (m *MockClient) AbortOperation(arg0 context.Context, arg1 yt.OperationID, arg2 *yt.AbortOperationOptions) error { +func (m *MockClient) AbortOperation(ctx context.Context, opID yt.OperationID, options *yt.AbortOperationOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AbortOperation", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "AbortOperation", ctx, opID, options) ret0, _ := ret[0].(error) return ret0 } // AbortOperation indicates an expected call of AbortOperation. -func (mr *MockClientMockRecorder) AbortOperation(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) AbortOperation(ctx, opID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AbortOperation", reflect.TypeOf((*MockClient)(nil).AbortOperation), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AbortOperation", reflect.TypeOf((*MockClient)(nil).AbortOperation), ctx, opID, options) } // AbortQuery mocks base method. -func (m *MockClient) AbortQuery(arg0 context.Context, arg1 yt.QueryID, arg2 *yt.AbortQueryOptions) error { +func (m *MockClient) AbortQuery(ctx context.Context, id yt.QueryID, options *yt.AbortQueryOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AbortQuery", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "AbortQuery", ctx, id, options) ret0, _ := ret[0].(error) return ret0 } // AbortQuery indicates an expected call of AbortQuery. -func (mr *MockClientMockRecorder) AbortQuery(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) AbortQuery(ctx, id, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AbortQuery", reflect.TypeOf((*MockClient)(nil).AbortQuery), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AbortQuery", reflect.TypeOf((*MockClient)(nil).AbortQuery), ctx, id, options) } // AbortTx mocks base method. -func (m *MockClient) AbortTx(arg0 context.Context, arg1 yt.TxID, arg2 *yt.AbortTxOptions) error { +func (m *MockClient) AbortTx(ctx context.Context, id yt.TxID, options *yt.AbortTxOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AbortTx", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "AbortTx", ctx, id, options) ret0, _ := ret[0].(error) return ret0 } // AbortTx indicates an expected call of AbortTx. -func (mr *MockClientMockRecorder) AbortTx(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) AbortTx(ctx, id, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AbortTx", reflect.TypeOf((*MockClient)(nil).AbortTx), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AbortTx", reflect.TypeOf((*MockClient)(nil).AbortTx), ctx, id, options) } // AddMaintenance mocks base method. -func (m *MockClient) AddMaintenance(arg0 context.Context, arg1 yt.MaintenanceComponent, arg2 string, arg3 yt.MaintenanceType, arg4 string, arg5 *yt.AddMaintenanceOptions) (*yt.AddMaintenanceResponse, error) { +func (m *MockClient) AddMaintenance(ctx context.Context, component yt.MaintenanceComponent, address string, maintenanceType yt.MaintenanceType, comment string, options *yt.AddMaintenanceOptions) (*yt.AddMaintenanceResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AddMaintenance", arg0, arg1, arg2, arg3, arg4, arg5) + ret := m.ctrl.Call(m, "AddMaintenance", ctx, component, address, maintenanceType, comment, options) ret0, _ := ret[0].(*yt.AddMaintenanceResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // AddMaintenance indicates an expected call of AddMaintenance. -func (mr *MockClientMockRecorder) AddMaintenance(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) AddMaintenance(ctx, component, address, maintenanceType, comment, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMaintenance", reflect.TypeOf((*MockClient)(nil).AddMaintenance), arg0, arg1, arg2, arg3, arg4, arg5) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMaintenance", reflect.TypeOf((*MockClient)(nil).AddMaintenance), ctx, component, address, maintenanceType, comment, options) } // AddMember mocks base method. -func (m *MockClient) AddMember(arg0 context.Context, arg1, arg2 string, arg3 *yt.AddMemberOptions) error { +func (m *MockClient) AddMember(ctx context.Context, group, member string, options *yt.AddMemberOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AddMember", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "AddMember", ctx, group, member, options) ret0, _ := ret[0].(error) return ret0 } // AddMember indicates an expected call of AddMember. -func (mr *MockClientMockRecorder) AddMember(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) AddMember(ctx, group, member, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMember", reflect.TypeOf((*MockClient)(nil).AddMember), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMember", reflect.TypeOf((*MockClient)(nil).AddMember), ctx, group, member, options) } // AlterQuery mocks base method. -func (m *MockClient) AlterQuery(arg0 context.Context, arg1 yt.QueryID, arg2 *yt.AlterQueryOptions) error { +func (m *MockClient) AlterQuery(ctx context.Context, id yt.QueryID, options *yt.AlterQueryOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AlterQuery", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "AlterQuery", ctx, id, options) ret0, _ := ret[0].(error) return ret0 } // AlterQuery indicates an expected call of AlterQuery. -func (mr *MockClientMockRecorder) AlterQuery(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) AlterQuery(ctx, id, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AlterQuery", reflect.TypeOf((*MockClient)(nil).AlterQuery), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AlterQuery", reflect.TypeOf((*MockClient)(nil).AlterQuery), ctx, id, options) } // AlterTable mocks base method. -func (m *MockClient) AlterTable(arg0 context.Context, arg1 ypath.Path, arg2 *yt.AlterTableOptions) error { +func (m *MockClient) AlterTable(ctx context.Context, path ypath.Path, options *yt.AlterTableOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AlterTable", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "AlterTable", ctx, path, options) ret0, _ := ret[0].(error) return ret0 } // AlterTable indicates an expected call of AlterTable. -func (mr *MockClientMockRecorder) AlterTable(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) AlterTable(ctx, path, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AlterTable", reflect.TypeOf((*MockClient)(nil).AlterTable), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AlterTable", reflect.TypeOf((*MockClient)(nil).AlterTable), ctx, path, options) } // AlterTableReplica mocks base method. -func (m *MockClient) AlterTableReplica(arg0 context.Context, arg1 yt.NodeID, arg2 *yt.AlterTableReplicaOptions) error { +func (m *MockClient) AlterTableReplica(ctx context.Context, id yt.NodeID, options *yt.AlterTableReplicaOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AlterTableReplica", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "AlterTableReplica", ctx, id, options) ret0, _ := ret[0].(error) return ret0 } // AlterTableReplica indicates an expected call of AlterTableReplica. -func (mr *MockClientMockRecorder) AlterTableReplica(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) AlterTableReplica(ctx, id, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AlterTableReplica", reflect.TypeOf((*MockClient)(nil).AlterTableReplica), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AlterTableReplica", reflect.TypeOf((*MockClient)(nil).AlterTableReplica), ctx, id, options) +} + +// AttachTx mocks base method. +func (m *MockClient) AttachTx(ctx context.Context, txID yt.TxID, options *yt.AttachTxOptions) (yt.Tx, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AttachTx", ctx, txID, options) + ret0, _ := ret[0].(yt.Tx) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AttachTx indicates an expected call of AttachTx. +func (mr *MockClientMockRecorder) AttachTx(ctx, txID, options any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachTx", reflect.TypeOf((*MockClient)(nil).AttachTx), ctx, txID, options) } // BeginTabletTx mocks base method. -func (m *MockClient) BeginTabletTx(arg0 context.Context, arg1 *yt.StartTabletTxOptions) (yt.TabletTx, error) { +func (m *MockClient) BeginTabletTx(ctx context.Context, options *yt.StartTabletTxOptions) (yt.TabletTx, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "BeginTabletTx", arg0, arg1) + ret := m.ctrl.Call(m, "BeginTabletTx", ctx, options) ret0, _ := ret[0].(yt.TabletTx) ret1, _ := ret[1].(error) return ret0, ret1 } // BeginTabletTx indicates an expected call of BeginTabletTx. -func (mr *MockClientMockRecorder) BeginTabletTx(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) BeginTabletTx(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeginTabletTx", reflect.TypeOf((*MockClient)(nil).BeginTabletTx), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeginTabletTx", reflect.TypeOf((*MockClient)(nil).BeginTabletTx), ctx, options) } // BeginTx mocks base method. -func (m *MockClient) BeginTx(arg0 context.Context, arg1 *yt.StartTxOptions) (yt.Tx, error) { +func (m *MockClient) BeginTx(ctx context.Context, options *yt.StartTxOptions) (yt.Tx, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "BeginTx", arg0, arg1) + ret := m.ctrl.Call(m, "BeginTx", ctx, options) ret0, _ := ret[0].(yt.Tx) ret1, _ := ret[1].(error) return ret0, ret1 } // BeginTx indicates an expected call of BeginTx. -func (mr *MockClientMockRecorder) BeginTx(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) BeginTx(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeginTx", reflect.TypeOf((*MockClient)(nil).BeginTx), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeginTx", reflect.TypeOf((*MockClient)(nil).BeginTx), ctx, options) } // BuildMasterSnapshots mocks base method. -func (m *MockClient) BuildMasterSnapshots(arg0 context.Context, arg1 *yt.BuildMasterSnapshotsOptions) (*[]yt.BuildMasterSnapshot, error) { +func (m *MockClient) BuildMasterSnapshots(ctx context.Context, options *yt.BuildMasterSnapshotsOptions) (*[]yt.BuildMasterSnapshot, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "BuildMasterSnapshots", arg0, arg1) + ret := m.ctrl.Call(m, "BuildMasterSnapshots", ctx, options) ret0, _ := ret[0].(*[]yt.BuildMasterSnapshot) ret1, _ := ret[1].(error) return ret0, ret1 } // BuildMasterSnapshots indicates an expected call of BuildMasterSnapshots. -func (mr *MockClientMockRecorder) BuildMasterSnapshots(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) BuildMasterSnapshots(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BuildMasterSnapshots", reflect.TypeOf((*MockClient)(nil).BuildMasterSnapshots), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BuildMasterSnapshots", reflect.TypeOf((*MockClient)(nil).BuildMasterSnapshots), ctx, options) } // BuildSnapshot mocks base method. -func (m *MockClient) BuildSnapshot(arg0 context.Context, arg1 *yt.BuildSnapshotOptions) (*yt.BuildSnapshotResponse, error) { +func (m *MockClient) BuildSnapshot(ctx context.Context, options *yt.BuildSnapshotOptions) (*yt.BuildSnapshotResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "BuildSnapshot", arg0, arg1) + ret := m.ctrl.Call(m, "BuildSnapshot", ctx, options) ret0, _ := ret[0].(*yt.BuildSnapshotResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // BuildSnapshot indicates an expected call of BuildSnapshot. -func (mr *MockClientMockRecorder) BuildSnapshot(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) BuildSnapshot(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BuildSnapshot", reflect.TypeOf((*MockClient)(nil).BuildSnapshot), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BuildSnapshot", reflect.TypeOf((*MockClient)(nil).BuildSnapshot), ctx, options) } // CheckPermission mocks base method. -func (m *MockClient) CheckPermission(arg0 context.Context, arg1, arg2 string, arg3 ypath.YPath, arg4 *yt.CheckPermissionOptions) (*yt.CheckPermissionResponse, error) { +func (m *MockClient) CheckPermission(ctx context.Context, user, permission string, path ypath.YPath, options *yt.CheckPermissionOptions) (*yt.CheckPermissionResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CheckPermission", arg0, arg1, arg2, arg3, arg4) + ret := m.ctrl.Call(m, "CheckPermission", ctx, user, permission, path, options) ret0, _ := ret[0].(*yt.CheckPermissionResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // CheckPermission indicates an expected call of CheckPermission. -func (mr *MockClientMockRecorder) CheckPermission(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) CheckPermission(ctx, user, permission, path, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckPermission", reflect.TypeOf((*MockClient)(nil).CheckPermission), arg0, arg1, arg2, arg3, arg4) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckPermission", reflect.TypeOf((*MockClient)(nil).CheckPermission), ctx, user, permission, path, options) +} + +// CheckPermissionByACL mocks base method. +func (m *MockClient) CheckPermissionByACL(ctx context.Context, user, permission string, ACL []yt.ACE, options *yt.CheckPermissionByACLOptions) (*yt.CheckPermissionResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CheckPermissionByACL", ctx, user, permission, ACL, options) + ret0, _ := ret[0].(*yt.CheckPermissionResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CheckPermissionByACL indicates an expected call of CheckPermissionByACL. +func (mr *MockClientMockRecorder) CheckPermissionByACL(ctx, user, permission, ACL, options any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckPermissionByACL", reflect.TypeOf((*MockClient)(nil).CheckPermissionByACL), ctx, user, permission, ACL, options) } // CommitTx mocks base method. -func (m *MockClient) CommitTx(arg0 context.Context, arg1 yt.TxID, arg2 *yt.CommitTxOptions) error { +func (m *MockClient) CommitTx(ctx context.Context, id yt.TxID, options *yt.CommitTxOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CommitTx", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "CommitTx", ctx, id, options) ret0, _ := ret[0].(error) return ret0 } // CommitTx indicates an expected call of CommitTx. -func (mr *MockClientMockRecorder) CommitTx(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) CommitTx(ctx, id, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitTx", reflect.TypeOf((*MockClient)(nil).CommitTx), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitTx", reflect.TypeOf((*MockClient)(nil).CommitTx), ctx, id, options) } // CompleteOperation mocks base method. -func (m *MockClient) CompleteOperation(arg0 context.Context, arg1 yt.OperationID, arg2 *yt.CompleteOperationOptions) error { +func (m *MockClient) CompleteOperation(ctx context.Context, opID yt.OperationID, options *yt.CompleteOperationOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CompleteOperation", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "CompleteOperation", ctx, opID, options) ret0, _ := ret[0].(error) return ret0 } // CompleteOperation indicates an expected call of CompleteOperation. -func (mr *MockClientMockRecorder) CompleteOperation(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) CompleteOperation(ctx, opID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompleteOperation", reflect.TypeOf((*MockClient)(nil).CompleteOperation), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompleteOperation", reflect.TypeOf((*MockClient)(nil).CompleteOperation), ctx, opID, options) } // CopyNode mocks base method. -func (m *MockClient) CopyNode(arg0 context.Context, arg1, arg2 ypath.YPath, arg3 *yt.CopyNodeOptions) (yt.NodeID, error) { +func (m *MockClient) CopyNode(ctx context.Context, src, dst ypath.YPath, options *yt.CopyNodeOptions) (yt.NodeID, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CopyNode", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "CopyNode", ctx, src, dst, options) ret0, _ := ret[0].(yt.NodeID) ret1, _ := ret[1].(error) return ret0, ret1 } // CopyNode indicates an expected call of CopyNode. -func (mr *MockClientMockRecorder) CopyNode(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) CopyNode(ctx, src, dst, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CopyNode", reflect.TypeOf((*MockClient)(nil).CopyNode), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CopyNode", reflect.TypeOf((*MockClient)(nil).CopyNode), ctx, src, dst, options) } // CreateNode mocks base method. -func (m *MockClient) CreateNode(arg0 context.Context, arg1 ypath.YPath, arg2 yt.NodeType, arg3 *yt.CreateNodeOptions) (yt.NodeID, error) { +func (m *MockClient) CreateNode(ctx context.Context, path ypath.YPath, typ yt.NodeType, options *yt.CreateNodeOptions) (yt.NodeID, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateNode", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "CreateNode", ctx, path, typ, options) ret0, _ := ret[0].(yt.NodeID) ret1, _ := ret[1].(error) return ret0, ret1 } // CreateNode indicates an expected call of CreateNode. -func (mr *MockClientMockRecorder) CreateNode(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) CreateNode(ctx, path, typ, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNode", reflect.TypeOf((*MockClient)(nil).CreateNode), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNode", reflect.TypeOf((*MockClient)(nil).CreateNode), ctx, path, typ, options) } // CreateObject mocks base method. -func (m *MockClient) CreateObject(arg0 context.Context, arg1 yt.NodeType, arg2 *yt.CreateObjectOptions) (yt.NodeID, error) { +func (m *MockClient) CreateObject(ctx context.Context, typ yt.NodeType, options *yt.CreateObjectOptions) (yt.NodeID, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateObject", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "CreateObject", ctx, typ, options) ret0, _ := ret[0].(yt.NodeID) ret1, _ := ret[1].(error) return ret0, ret1 } // CreateObject indicates an expected call of CreateObject. -func (mr *MockClientMockRecorder) CreateObject(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) CreateObject(ctx, typ, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateObject", reflect.TypeOf((*MockClient)(nil).CreateObject), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateObject", reflect.TypeOf((*MockClient)(nil).CreateObject), ctx, typ, options) +} + +// CreateQueueProducerSession mocks base method. +func (m *MockClient) CreateQueueProducerSession(ctx context.Context, producerPath, queuePath ypath.Path, sessionID string, options *yt.CreateQueueProducerSessionOptions) (*yt.CreateQueueProducerSessionResult, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateQueueProducerSession", ctx, producerPath, queuePath, sessionID, options) + ret0, _ := ret[0].(*yt.CreateQueueProducerSessionResult) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateQueueProducerSession indicates an expected call of CreateQueueProducerSession. +func (mr *MockClientMockRecorder) CreateQueueProducerSession(ctx, producerPath, queuePath, sessionID, options any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateQueueProducerSession", reflect.TypeOf((*MockClient)(nil).CreateQueueProducerSession), ctx, producerPath, queuePath, sessionID, options) } // CreateTableBackup mocks base method. -func (m *MockClient) CreateTableBackup(arg0 context.Context, arg1 yt.BackupManifest, arg2 *yt.CreateTableBackupOptions) error { +func (m *MockClient) CreateTableBackup(ctx context.Context, manifest yt.BackupManifest, options *yt.CreateTableBackupOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateTableBackup", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "CreateTableBackup", ctx, manifest, options) ret0, _ := ret[0].(error) return ret0 } // CreateTableBackup indicates an expected call of CreateTableBackup. -func (mr *MockClientMockRecorder) CreateTableBackup(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) CreateTableBackup(ctx, manifest, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTableBackup", reflect.TypeOf((*MockClient)(nil).CreateTableBackup), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTableBackup", reflect.TypeOf((*MockClient)(nil).CreateTableBackup), ctx, manifest, options) } // DeleteRows mocks base method. -func (m *MockClient) DeleteRows(arg0 context.Context, arg1 ypath.Path, arg2 []interface{}, arg3 *yt.DeleteRowsOptions) error { +func (m *MockClient) DeleteRows(ctx context.Context, path ypath.Path, keys []any, options *yt.DeleteRowsOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteRows", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "DeleteRows", ctx, path, keys, options) ret0, _ := ret[0].(error) return ret0 } // DeleteRows indicates an expected call of DeleteRows. -func (mr *MockClientMockRecorder) DeleteRows(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) DeleteRows(ctx, path, keys, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRows", reflect.TypeOf((*MockClient)(nil).DeleteRows), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRows", reflect.TypeOf((*MockClient)(nil).DeleteRows), ctx, path, keys, options) } // DestroyChunkLocations mocks base method. -func (m *MockClient) DestroyChunkLocations(arg0 context.Context, arg1 string, arg2 bool, arg3 []guid.GUID, arg4 *yt.DestroyChunkLocationsOptions) (*yt.DestroyChunkLocationsResponse, error) { +func (m *MockClient) DestroyChunkLocations(ctx context.Context, nodeAddress string, recoverUnlinkedDisks bool, locationUUIDs []guid.GUID, options *yt.DestroyChunkLocationsOptions) (*yt.DestroyChunkLocationsResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DestroyChunkLocations", arg0, arg1, arg2, arg3, arg4) + ret := m.ctrl.Call(m, "DestroyChunkLocations", ctx, nodeAddress, recoverUnlinkedDisks, locationUUIDs, options) ret0, _ := ret[0].(*yt.DestroyChunkLocationsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // DestroyChunkLocations indicates an expected call of DestroyChunkLocations. -func (mr *MockClientMockRecorder) DestroyChunkLocations(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) DestroyChunkLocations(ctx, nodeAddress, recoverUnlinkedDisks, locationUUIDs, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DestroyChunkLocations", reflect.TypeOf((*MockClient)(nil).DestroyChunkLocations), arg0, arg1, arg2, arg3, arg4) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DestroyChunkLocations", reflect.TypeOf((*MockClient)(nil).DestroyChunkLocations), ctx, nodeAddress, recoverUnlinkedDisks, locationUUIDs, options) } // DisableChunkLocations mocks base method. -func (m *MockClient) DisableChunkLocations(arg0 context.Context, arg1 string, arg2 []guid.GUID, arg3 *yt.DisableChunkLocationsOptions) (*yt.DisableChunkLocationsResponse, error) { +func (m *MockClient) DisableChunkLocations(ctx context.Context, nodeAddress string, locationUUIDs []guid.GUID, options *yt.DisableChunkLocationsOptions) (*yt.DisableChunkLocationsResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DisableChunkLocations", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "DisableChunkLocations", ctx, nodeAddress, locationUUIDs, options) ret0, _ := ret[0].(*yt.DisableChunkLocationsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // DisableChunkLocations indicates an expected call of DisableChunkLocations. -func (mr *MockClientMockRecorder) DisableChunkLocations(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) DisableChunkLocations(ctx, nodeAddress, locationUUIDs, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableChunkLocations", reflect.TypeOf((*MockClient)(nil).DisableChunkLocations), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableChunkLocations", reflect.TypeOf((*MockClient)(nil).DisableChunkLocations), ctx, nodeAddress, locationUUIDs, options) } // FreezeTable mocks base method. -func (m *MockClient) FreezeTable(arg0 context.Context, arg1 ypath.Path, arg2 *yt.FreezeTableOptions) error { +func (m *MockClient) FreezeTable(ctx context.Context, path ypath.Path, options *yt.FreezeTableOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FreezeTable", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "FreezeTable", ctx, path, options) ret0, _ := ret[0].(error) return ret0 } // FreezeTable indicates an expected call of FreezeTable. -func (mr *MockClientMockRecorder) FreezeTable(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) FreezeTable(ctx, path, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FreezeTable", reflect.TypeOf((*MockClient)(nil).FreezeTable), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FreezeTable", reflect.TypeOf((*MockClient)(nil).FreezeTable), ctx, path, options) } // GenerateTimestamp mocks base method. -func (m *MockClient) GenerateTimestamp(arg0 context.Context, arg1 *yt.GenerateTimestampOptions) (yt.Timestamp, error) { +func (m *MockClient) GenerateTimestamp(ctx context.Context, options *yt.GenerateTimestampOptions) (yt.Timestamp, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GenerateTimestamp", arg0, arg1) + ret := m.ctrl.Call(m, "GenerateTimestamp", ctx, options) ret0, _ := ret[0].(yt.Timestamp) ret1, _ := ret[1].(error) return ret0, ret1 } // GenerateTimestamp indicates an expected call of GenerateTimestamp. -func (mr *MockClientMockRecorder) GenerateTimestamp(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) GenerateTimestamp(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateTimestamp", reflect.TypeOf((*MockClient)(nil).GenerateTimestamp), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateTimestamp", reflect.TypeOf((*MockClient)(nil).GenerateTimestamp), ctx, options) } // GetFileFromCache mocks base method. -func (m *MockClient) GetFileFromCache(arg0 context.Context, arg1 string, arg2 *yt.GetFileFromCacheOptions) (ypath.YPath, error) { +func (m *MockClient) GetFileFromCache(ctx context.Context, md5 string, options *yt.GetFileFromCacheOptions) (ypath.YPath, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetFileFromCache", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "GetFileFromCache", ctx, md5, options) ret0, _ := ret[0].(ypath.YPath) ret1, _ := ret[1].(error) return ret0, ret1 } // GetFileFromCache indicates an expected call of GetFileFromCache. -func (mr *MockClientMockRecorder) GetFileFromCache(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) GetFileFromCache(ctx, md5, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFileFromCache", reflect.TypeOf((*MockClient)(nil).GetFileFromCache), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFileFromCache", reflect.TypeOf((*MockClient)(nil).GetFileFromCache), ctx, md5, options) } // GetInSyncReplicas mocks base method. -func (m *MockClient) GetInSyncReplicas(arg0 context.Context, arg1 ypath.Path, arg2 yt.Timestamp, arg3 []interface{}, arg4 *yt.GetInSyncReplicasOptions) ([]yt.NodeID, error) { +func (m *MockClient) GetInSyncReplicas(ctx context.Context, path ypath.Path, ts yt.Timestamp, keys []any, options *yt.GetInSyncReplicasOptions) ([]yt.NodeID, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetInSyncReplicas", arg0, arg1, arg2, arg3, arg4) + ret := m.ctrl.Call(m, "GetInSyncReplicas", ctx, path, ts, keys, options) ret0, _ := ret[0].([]yt.NodeID) ret1, _ := ret[1].(error) return ret0, ret1 } // GetInSyncReplicas indicates an expected call of GetInSyncReplicas. -func (mr *MockClientMockRecorder) GetInSyncReplicas(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) GetInSyncReplicas(ctx, path, ts, keys, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInSyncReplicas", reflect.TypeOf((*MockClient)(nil).GetInSyncReplicas), arg0, arg1, arg2, arg3, arg4) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInSyncReplicas", reflect.TypeOf((*MockClient)(nil).GetInSyncReplicas), ctx, path, ts, keys, options) } // GetJobStderr mocks base method. -func (m *MockClient) GetJobStderr(arg0 context.Context, arg1 yt.OperationID, arg2 yt.JobID, arg3 *yt.GetJobStderrOptions) ([]byte, error) { +func (m *MockClient) GetJobStderr(ctx context.Context, opID yt.OperationID, jobID yt.JobID, options *yt.GetJobStderrOptions) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetJobStderr", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "GetJobStderr", ctx, opID, jobID, options) ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } // GetJobStderr indicates an expected call of GetJobStderr. -func (mr *MockClientMockRecorder) GetJobStderr(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) GetJobStderr(ctx, opID, jobID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobStderr", reflect.TypeOf((*MockClient)(nil).GetJobStderr), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobStderr", reflect.TypeOf((*MockClient)(nil).GetJobStderr), ctx, opID, jobID, options) } // GetNode mocks base method. -func (m *MockClient) GetNode(arg0 context.Context, arg1 ypath.YPath, arg2 interface{}, arg3 *yt.GetNodeOptions) error { +func (m *MockClient) GetNode(ctx context.Context, path ypath.YPath, result any, options *yt.GetNodeOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetNode", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "GetNode", ctx, path, result, options) ret0, _ := ret[0].(error) return ret0 } // GetNode indicates an expected call of GetNode. -func (mr *MockClientMockRecorder) GetNode(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) GetNode(ctx, path, result, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNode", reflect.TypeOf((*MockClient)(nil).GetNode), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNode", reflect.TypeOf((*MockClient)(nil).GetNode), ctx, path, result, options) } // GetOperation mocks base method. -func (m *MockClient) GetOperation(arg0 context.Context, arg1 yt.OperationID, arg2 *yt.GetOperationOptions) (*yt.OperationStatus, error) { +func (m *MockClient) GetOperation(ctx context.Context, opID yt.OperationID, options *yt.GetOperationOptions) (*yt.OperationStatus, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetOperation", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "GetOperation", ctx, opID, options) ret0, _ := ret[0].(*yt.OperationStatus) ret1, _ := ret[1].(error) return ret0, ret1 } // GetOperation indicates an expected call of GetOperation. -func (mr *MockClientMockRecorder) GetOperation(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) GetOperation(ctx, opID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperation", reflect.TypeOf((*MockClient)(nil).GetOperation), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperation", reflect.TypeOf((*MockClient)(nil).GetOperation), ctx, opID, options) } // GetOperationByAlias mocks base method. -func (m *MockClient) GetOperationByAlias(arg0 context.Context, arg1 string, arg2 *yt.GetOperationOptions) (*yt.OperationStatus, error) { +func (m *MockClient) GetOperationByAlias(ctx context.Context, alias string, options *yt.GetOperationOptions) (*yt.OperationStatus, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetOperationByAlias", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "GetOperationByAlias", ctx, alias, options) ret0, _ := ret[0].(*yt.OperationStatus) ret1, _ := ret[1].(error) return ret0, ret1 } // GetOperationByAlias indicates an expected call of GetOperationByAlias. -func (mr *MockClientMockRecorder) GetOperationByAlias(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) GetOperationByAlias(ctx, alias, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperationByAlias", reflect.TypeOf((*MockClient)(nil).GetOperationByAlias), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperationByAlias", reflect.TypeOf((*MockClient)(nil).GetOperationByAlias), ctx, alias, options) } // GetQuery mocks base method. -func (m *MockClient) GetQuery(arg0 context.Context, arg1 yt.QueryID, arg2 *yt.GetQueryOptions) (*yt.Query, error) { +func (m *MockClient) GetQuery(ctx context.Context, id yt.QueryID, options *yt.GetQueryOptions) (*yt.Query, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetQuery", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "GetQuery", ctx, id, options) ret0, _ := ret[0].(*yt.Query) ret1, _ := ret[1].(error) return ret0, ret1 } // GetQuery indicates an expected call of GetQuery. -func (mr *MockClientMockRecorder) GetQuery(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) GetQuery(ctx, id, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQuery", reflect.TypeOf((*MockClient)(nil).GetQuery), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQuery", reflect.TypeOf((*MockClient)(nil).GetQuery), ctx, id, options) } // GetQueryResult mocks base method. -func (m *MockClient) GetQueryResult(arg0 context.Context, arg1 yt.QueryID, arg2 int64, arg3 *yt.GetQueryResultOptions) (*yt.QueryResult, error) { +func (m *MockClient) GetQueryResult(ctx context.Context, id yt.QueryID, resultIndex int64, options *yt.GetQueryResultOptions) (*yt.QueryResult, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetQueryResult", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "GetQueryResult", ctx, id, resultIndex, options) ret0, _ := ret[0].(*yt.QueryResult) ret1, _ := ret[1].(error) return ret0, ret1 } // GetQueryResult indicates an expected call of GetQueryResult. -func (mr *MockClientMockRecorder) GetQueryResult(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) GetQueryResult(ctx, id, resultIndex, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueryResult", reflect.TypeOf((*MockClient)(nil).GetQueryResult), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueryResult", reflect.TypeOf((*MockClient)(nil).GetQueryResult), ctx, id, resultIndex, options) } // InsertRowBatch mocks base method. -func (m *MockClient) InsertRowBatch(arg0 context.Context, arg1 ypath.Path, arg2 yt.RowBatch, arg3 *yt.InsertRowsOptions) error { +func (m *MockClient) InsertRowBatch(ctx context.Context, path ypath.Path, rowBatch yt.RowBatch, options *yt.InsertRowsOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "InsertRowBatch", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "InsertRowBatch", ctx, path, rowBatch, options) ret0, _ := ret[0].(error) return ret0 } // InsertRowBatch indicates an expected call of InsertRowBatch. -func (mr *MockClientMockRecorder) InsertRowBatch(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) InsertRowBatch(ctx, path, rowBatch, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertRowBatch", reflect.TypeOf((*MockClient)(nil).InsertRowBatch), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertRowBatch", reflect.TypeOf((*MockClient)(nil).InsertRowBatch), ctx, path, rowBatch, options) } // InsertRows mocks base method. -func (m *MockClient) InsertRows(arg0 context.Context, arg1 ypath.Path, arg2 []interface{}, arg3 *yt.InsertRowsOptions) error { +func (m *MockClient) InsertRows(ctx context.Context, path ypath.Path, rows []any, options *yt.InsertRowsOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "InsertRows", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "InsertRows", ctx, path, rows, options) ret0, _ := ret[0].(error) return ret0 } // InsertRows indicates an expected call of InsertRows. -func (mr *MockClientMockRecorder) InsertRows(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) InsertRows(ctx, path, rows, options any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertRows", reflect.TypeOf((*MockClient)(nil).InsertRows), ctx, path, rows, options) +} + +// IssueToken mocks base method. +func (m *MockClient) IssueToken(ctx context.Context, user, password string, options *yt.IssueTokenOptions) (string, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "IssueToken", ctx, user, password, options) + ret0, _ := ret[0].(string) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// IssueToken indicates an expected call of IssueToken. +func (mr *MockClientMockRecorder) IssueToken(ctx, user, password, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertRows", reflect.TypeOf((*MockClient)(nil).InsertRows), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IssueToken", reflect.TypeOf((*MockClient)(nil).IssueToken), ctx, user, password, options) } // LinkNode mocks base method. -func (m *MockClient) LinkNode(arg0 context.Context, arg1, arg2 ypath.YPath, arg3 *yt.LinkNodeOptions) (yt.NodeID, error) { +func (m *MockClient) LinkNode(ctx context.Context, target, link ypath.YPath, options *yt.LinkNodeOptions) (yt.NodeID, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "LinkNode", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "LinkNode", ctx, target, link, options) ret0, _ := ret[0].(yt.NodeID) ret1, _ := ret[1].(error) return ret0, ret1 } // LinkNode indicates an expected call of LinkNode. -func (mr *MockClientMockRecorder) LinkNode(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) LinkNode(ctx, target, link, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LinkNode", reflect.TypeOf((*MockClient)(nil).LinkNode), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LinkNode", reflect.TypeOf((*MockClient)(nil).LinkNode), ctx, target, link, options) } // ListJobs mocks base method. -func (m *MockClient) ListJobs(arg0 context.Context, arg1 yt.OperationID, arg2 *yt.ListJobsOptions) (*yt.ListJobsResult, error) { +func (m *MockClient) ListJobs(ctx context.Context, opID yt.OperationID, options *yt.ListJobsOptions) (*yt.ListJobsResult, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ListJobs", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "ListJobs", ctx, opID, options) ret0, _ := ret[0].(*yt.ListJobsResult) ret1, _ := ret[1].(error) return ret0, ret1 } // ListJobs indicates an expected call of ListJobs. -func (mr *MockClientMockRecorder) ListJobs(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) ListJobs(ctx, opID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListJobs", reflect.TypeOf((*MockClient)(nil).ListJobs), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListJobs", reflect.TypeOf((*MockClient)(nil).ListJobs), ctx, opID, options) } // ListNode mocks base method. -func (m *MockClient) ListNode(arg0 context.Context, arg1 ypath.YPath, arg2 interface{}, arg3 *yt.ListNodeOptions) error { +func (m *MockClient) ListNode(ctx context.Context, path ypath.YPath, result any, options *yt.ListNodeOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ListNode", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "ListNode", ctx, path, result, options) ret0, _ := ret[0].(error) return ret0 } // ListNode indicates an expected call of ListNode. -func (mr *MockClientMockRecorder) ListNode(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) ListNode(ctx, path, result, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNode", reflect.TypeOf((*MockClient)(nil).ListNode), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNode", reflect.TypeOf((*MockClient)(nil).ListNode), ctx, path, result, options) } // ListOperations mocks base method. -func (m *MockClient) ListOperations(arg0 context.Context, arg1 *yt.ListOperationsOptions) (*yt.ListOperationsResult, error) { +func (m *MockClient) ListOperations(ctx context.Context, options *yt.ListOperationsOptions) (*yt.ListOperationsResult, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ListOperations", arg0, arg1) + ret := m.ctrl.Call(m, "ListOperations", ctx, options) ret0, _ := ret[0].(*yt.ListOperationsResult) ret1, _ := ret[1].(error) return ret0, ret1 } // ListOperations indicates an expected call of ListOperations. -func (mr *MockClientMockRecorder) ListOperations(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) ListOperations(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOperations", reflect.TypeOf((*MockClient)(nil).ListOperations), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOperations", reflect.TypeOf((*MockClient)(nil).ListOperations), ctx, options) } // ListQueries mocks base method. -func (m *MockClient) ListQueries(arg0 context.Context, arg1 *yt.ListQueriesOptions) (*yt.ListQueriesResult, error) { +func (m *MockClient) ListQueries(ctx context.Context, options *yt.ListQueriesOptions) (*yt.ListQueriesResult, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ListQueries", arg0, arg1) + ret := m.ctrl.Call(m, "ListQueries", ctx, options) ret0, _ := ret[0].(*yt.ListQueriesResult) ret1, _ := ret[1].(error) return ret0, ret1 } // ListQueries indicates an expected call of ListQueries. -func (mr *MockClientMockRecorder) ListQueries(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) ListQueries(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListQueries", reflect.TypeOf((*MockClient)(nil).ListQueries), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListQueries", reflect.TypeOf((*MockClient)(nil).ListQueries), ctx, options) +} + +// ListUserTokens mocks base method. +func (m *MockClient) ListUserTokens(ctx context.Context, user, password string, options *yt.ListUserTokensOptions) ([]string, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserTokens", ctx, user, password, options) + ret0, _ := ret[0].([]string) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUserTokens indicates an expected call of ListUserTokens. +func (mr *MockClientMockRecorder) ListUserTokens(ctx, user, password, options any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserTokens", reflect.TypeOf((*MockClient)(nil).ListUserTokens), ctx, user, password, options) } // LocateSkynetShare mocks base method. -func (m *MockClient) LocateSkynetShare(arg0 context.Context, arg1 ypath.YPath, arg2 *yt.LocateSkynetShareOptions) (yt.ShareLocation, error) { +func (m *MockClient) LocateSkynetShare(ctx context.Context, path ypath.YPath, options *yt.LocateSkynetShareOptions) (yt.ShareLocation, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "LocateSkynetShare", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "LocateSkynetShare", ctx, path, options) ret0, _ := ret[0].(yt.ShareLocation) ret1, _ := ret[1].(error) return ret0, ret1 } // LocateSkynetShare indicates an expected call of LocateSkynetShare. -func (mr *MockClientMockRecorder) LocateSkynetShare(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) LocateSkynetShare(ctx, path, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LocateSkynetShare", reflect.TypeOf((*MockClient)(nil).LocateSkynetShare), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LocateSkynetShare", reflect.TypeOf((*MockClient)(nil).LocateSkynetShare), ctx, path, options) } // LockRows mocks base method. -func (m *MockClient) LockRows(arg0 context.Context, arg1 ypath.Path, arg2 []string, arg3 yt.LockType, arg4 []interface{}, arg5 *yt.LockRowsOptions) error { +func (m *MockClient) LockRows(ctx context.Context, path ypath.Path, locks []string, lockType yt.LockType, keys []any, options *yt.LockRowsOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "LockRows", arg0, arg1, arg2, arg3, arg4, arg5) + ret := m.ctrl.Call(m, "LockRows", ctx, path, locks, lockType, keys, options) ret0, _ := ret[0].(error) return ret0 } // LockRows indicates an expected call of LockRows. -func (mr *MockClientMockRecorder) LockRows(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) LockRows(ctx, path, locks, lockType, keys, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LockRows", reflect.TypeOf((*MockClient)(nil).LockRows), arg0, arg1, arg2, arg3, arg4, arg5) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LockRows", reflect.TypeOf((*MockClient)(nil).LockRows), ctx, path, locks, lockType, keys, options) } // LookupRows mocks base method. -func (m *MockClient) LookupRows(arg0 context.Context, arg1 ypath.Path, arg2 []interface{}, arg3 *yt.LookupRowsOptions) (yt.TableReader, error) { +func (m *MockClient) LookupRows(ctx context.Context, path ypath.Path, keys []any, options *yt.LookupRowsOptions) (yt.TableReader, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "LookupRows", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "LookupRows", ctx, path, keys, options) ret0, _ := ret[0].(yt.TableReader) ret1, _ := ret[1].(error) return ret0, ret1 } // LookupRows indicates an expected call of LookupRows. -func (mr *MockClientMockRecorder) LookupRows(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) LookupRows(ctx, path, keys, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LookupRows", reflect.TypeOf((*MockClient)(nil).LookupRows), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LookupRows", reflect.TypeOf((*MockClient)(nil).LookupRows), ctx, path, keys, options) } // MountTable mocks base method. -func (m *MockClient) MountTable(arg0 context.Context, arg1 ypath.Path, arg2 *yt.MountTableOptions) error { +func (m *MockClient) MountTable(ctx context.Context, path ypath.Path, options *yt.MountTableOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "MountTable", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "MountTable", ctx, path, options) ret0, _ := ret[0].(error) return ret0 } // MountTable indicates an expected call of MountTable. -func (mr *MockClientMockRecorder) MountTable(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) MountTable(ctx, path, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MountTable", reflect.TypeOf((*MockClient)(nil).MountTable), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MountTable", reflect.TypeOf((*MockClient)(nil).MountTable), ctx, path, options) } // MoveNode mocks base method. -func (m *MockClient) MoveNode(arg0 context.Context, arg1, arg2 ypath.YPath, arg3 *yt.MoveNodeOptions) (yt.NodeID, error) { +func (m *MockClient) MoveNode(ctx context.Context, src, dst ypath.YPath, options *yt.MoveNodeOptions) (yt.NodeID, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "MoveNode", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "MoveNode", ctx, src, dst, options) ret0, _ := ret[0].(yt.NodeID) ret1, _ := ret[1].(error) return ret0, ret1 } // MoveNode indicates an expected call of MoveNode. -func (mr *MockClientMockRecorder) MoveNode(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) MoveNode(ctx, src, dst, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MoveNode", reflect.TypeOf((*MockClient)(nil).MoveNode), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MoveNode", reflect.TypeOf((*MockClient)(nil).MoveNode), ctx, src, dst, options) } // MultisetAttributes mocks base method. -func (m *MockClient) MultisetAttributes(arg0 context.Context, arg1 ypath.YPath, arg2 map[string]interface{}, arg3 *yt.MultisetAttributesOptions) error { +func (m *MockClient) MultisetAttributes(ctx context.Context, path ypath.YPath, attributes map[string]any, options *yt.MultisetAttributesOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "MultisetAttributes", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "MultisetAttributes", ctx, path, attributes, options) ret0, _ := ret[0].(error) return ret0 } // MultisetAttributes indicates an expected call of MultisetAttributes. -func (mr *MockClientMockRecorder) MultisetAttributes(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) MultisetAttributes(ctx, path, attributes, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MultisetAttributes", reflect.TypeOf((*MockClient)(nil).MultisetAttributes), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MultisetAttributes", reflect.TypeOf((*MockClient)(nil).MultisetAttributes), ctx, path, attributes, options) } // NewRowBatchWriter mocks base method. @@ -709,309 +790,381 @@ func (mr *MockClientMockRecorder) NewRowBatchWriter() *gomock.Call { } // NodeExists mocks base method. -func (m *MockClient) NodeExists(arg0 context.Context, arg1 ypath.YPath, arg2 *yt.NodeExistsOptions) (bool, error) { +func (m *MockClient) NodeExists(ctx context.Context, path ypath.YPath, options *yt.NodeExistsOptions) (bool, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "NodeExists", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "NodeExists", ctx, path, options) ret0, _ := ret[0].(bool) ret1, _ := ret[1].(error) return ret0, ret1 } // NodeExists indicates an expected call of NodeExists. -func (mr *MockClientMockRecorder) NodeExists(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) NodeExists(ctx, path, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeExists", reflect.TypeOf((*MockClient)(nil).NodeExists), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeExists", reflect.TypeOf((*MockClient)(nil).NodeExists), ctx, path, options) } // PingTx mocks base method. -func (m *MockClient) PingTx(arg0 context.Context, arg1 yt.TxID, arg2 *yt.PingTxOptions) error { +func (m *MockClient) PingTx(ctx context.Context, id yt.TxID, options *yt.PingTxOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PingTx", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "PingTx", ctx, id, options) ret0, _ := ret[0].(error) return ret0 } // PingTx indicates an expected call of PingTx. -func (mr *MockClientMockRecorder) PingTx(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) PingTx(ctx, id, options any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PingTx", reflect.TypeOf((*MockClient)(nil).PingTx), ctx, id, options) +} + +// PushQueueProducer mocks base method. +func (m *MockClient) PushQueueProducer(ctx context.Context, producerPath, queuePath ypath.Path, sessionID string, epoch int64, rows []any, options *yt.PushQueueProducerOptions) (*yt.PushQueueProducerResult, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PushQueueProducer", ctx, producerPath, queuePath, sessionID, epoch, rows, options) + ret0, _ := ret[0].(*yt.PushQueueProducerResult) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PushQueueProducer indicates an expected call of PushQueueProducer. +func (mr *MockClientMockRecorder) PushQueueProducer(ctx, producerPath, queuePath, sessionID, epoch, rows, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PingTx", reflect.TypeOf((*MockClient)(nil).PingTx), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PushQueueProducer", reflect.TypeOf((*MockClient)(nil).PushQueueProducer), ctx, producerPath, queuePath, sessionID, epoch, rows, options) +} + +// PushQueueProducerBatch mocks base method. +func (m *MockClient) PushQueueProducerBatch(ctx context.Context, producerPath, queuePath ypath.Path, sessionID string, epoch int64, rowBatch yt.RowBatch, options *yt.PushQueueProducerOptions) (*yt.PushQueueProducerResult, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PushQueueProducerBatch", ctx, producerPath, queuePath, sessionID, epoch, rowBatch, options) + ret0, _ := ret[0].(*yt.PushQueueProducerResult) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PushQueueProducerBatch indicates an expected call of PushQueueProducerBatch. +func (mr *MockClientMockRecorder) PushQueueProducerBatch(ctx, producerPath, queuePath, sessionID, epoch, rowBatch, options any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PushQueueProducerBatch", reflect.TypeOf((*MockClient)(nil).PushQueueProducerBatch), ctx, producerPath, queuePath, sessionID, epoch, rowBatch, options) } // PutFileToCache mocks base method. -func (m *MockClient) PutFileToCache(arg0 context.Context, arg1 ypath.YPath, arg2 string, arg3 *yt.PutFileToCacheOptions) (ypath.YPath, error) { +func (m *MockClient) PutFileToCache(ctx context.Context, path ypath.YPath, md5 string, options *yt.PutFileToCacheOptions) (ypath.YPath, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PutFileToCache", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "PutFileToCache", ctx, path, md5, options) ret0, _ := ret[0].(ypath.YPath) ret1, _ := ret[1].(error) return ret0, ret1 } // PutFileToCache indicates an expected call of PutFileToCache. -func (mr *MockClientMockRecorder) PutFileToCache(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) PutFileToCache(ctx, path, md5, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutFileToCache", reflect.TypeOf((*MockClient)(nil).PutFileToCache), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutFileToCache", reflect.TypeOf((*MockClient)(nil).PutFileToCache), ctx, path, md5, options) } // ReadFile mocks base method. -func (m *MockClient) ReadFile(arg0 context.Context, arg1 ypath.YPath, arg2 *yt.ReadFileOptions) (io.ReadCloser, error) { +func (m *MockClient) ReadFile(ctx context.Context, path ypath.YPath, options *yt.ReadFileOptions) (io.ReadCloser, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ReadFile", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "ReadFile", ctx, path, options) ret0, _ := ret[0].(io.ReadCloser) ret1, _ := ret[1].(error) return ret0, ret1 } // ReadFile indicates an expected call of ReadFile. -func (mr *MockClientMockRecorder) ReadFile(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) ReadFile(ctx, path, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadFile", reflect.TypeOf((*MockClient)(nil).ReadFile), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadFile", reflect.TypeOf((*MockClient)(nil).ReadFile), ctx, path, options) } // ReadQueryResult mocks base method. -func (m *MockClient) ReadQueryResult(arg0 context.Context, arg1 yt.QueryID, arg2 int64, arg3 *yt.ReadQueryResultOptions) (yt.TableReader, error) { +func (m *MockClient) ReadQueryResult(ctx context.Context, id yt.QueryID, resultIndex int64, options *yt.ReadQueryResultOptions) (yt.TableReader, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ReadQueryResult", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "ReadQueryResult", ctx, id, resultIndex, options) ret0, _ := ret[0].(yt.TableReader) ret1, _ := ret[1].(error) return ret0, ret1 } // ReadQueryResult indicates an expected call of ReadQueryResult. -func (mr *MockClientMockRecorder) ReadQueryResult(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) ReadQueryResult(ctx, id, resultIndex, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadQueryResult", reflect.TypeOf((*MockClient)(nil).ReadQueryResult), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadQueryResult", reflect.TypeOf((*MockClient)(nil).ReadQueryResult), ctx, id, resultIndex, options) } // ReadTable mocks base method. -func (m *MockClient) ReadTable(arg0 context.Context, arg1 ypath.YPath, arg2 *yt.ReadTableOptions) (yt.TableReader, error) { +func (m *MockClient) ReadTable(ctx context.Context, path ypath.YPath, options *yt.ReadTableOptions) (yt.TableReader, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ReadTable", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "ReadTable", ctx, path, options) ret0, _ := ret[0].(yt.TableReader) ret1, _ := ret[1].(error) return ret0, ret1 } // ReadTable indicates an expected call of ReadTable. -func (mr *MockClientMockRecorder) ReadTable(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) ReadTable(ctx, path, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadTable", reflect.TypeOf((*MockClient)(nil).ReadTable), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadTable", reflect.TypeOf((*MockClient)(nil).ReadTable), ctx, path, options) } // RemountTable mocks base method. -func (m *MockClient) RemountTable(arg0 context.Context, arg1 ypath.Path, arg2 *yt.RemountTableOptions) error { +func (m *MockClient) RemountTable(ctx context.Context, path ypath.Path, options *yt.RemountTableOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RemountTable", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "RemountTable", ctx, path, options) ret0, _ := ret[0].(error) return ret0 } // RemountTable indicates an expected call of RemountTable. -func (mr *MockClientMockRecorder) RemountTable(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) RemountTable(ctx, path, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemountTable", reflect.TypeOf((*MockClient)(nil).RemountTable), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemountTable", reflect.TypeOf((*MockClient)(nil).RemountTable), ctx, path, options) } // RemoveMaintenance mocks base method. -func (m *MockClient) RemoveMaintenance(arg0 context.Context, arg1 yt.MaintenanceComponent, arg2 string, arg3 *yt.RemoveMaintenanceOptions) (*yt.RemoveMaintenanceResponse, error) { +func (m *MockClient) RemoveMaintenance(ctx context.Context, component yt.MaintenanceComponent, address string, options *yt.RemoveMaintenanceOptions) (*yt.RemoveMaintenanceResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RemoveMaintenance", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "RemoveMaintenance", ctx, component, address, options) ret0, _ := ret[0].(*yt.RemoveMaintenanceResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // RemoveMaintenance indicates an expected call of RemoveMaintenance. -func (mr *MockClientMockRecorder) RemoveMaintenance(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) RemoveMaintenance(ctx, component, address, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveMaintenance", reflect.TypeOf((*MockClient)(nil).RemoveMaintenance), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveMaintenance", reflect.TypeOf((*MockClient)(nil).RemoveMaintenance), ctx, component, address, options) } // RemoveMember mocks base method. -func (m *MockClient) RemoveMember(arg0 context.Context, arg1, arg2 string, arg3 *yt.RemoveMemberOptions) error { +func (m *MockClient) RemoveMember(ctx context.Context, group, member string, options *yt.RemoveMemberOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RemoveMember", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "RemoveMember", ctx, group, member, options) ret0, _ := ret[0].(error) return ret0 } // RemoveMember indicates an expected call of RemoveMember. -func (mr *MockClientMockRecorder) RemoveMember(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) RemoveMember(ctx, group, member, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveMember", reflect.TypeOf((*MockClient)(nil).RemoveMember), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveMember", reflect.TypeOf((*MockClient)(nil).RemoveMember), ctx, group, member, options) } // RemoveNode mocks base method. -func (m *MockClient) RemoveNode(arg0 context.Context, arg1 ypath.YPath, arg2 *yt.RemoveNodeOptions) error { +func (m *MockClient) RemoveNode(ctx context.Context, path ypath.YPath, options *yt.RemoveNodeOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RemoveNode", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "RemoveNode", ctx, path, options) ret0, _ := ret[0].(error) return ret0 } // RemoveNode indicates an expected call of RemoveNode. -func (mr *MockClientMockRecorder) RemoveNode(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) RemoveNode(ctx, path, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveNode", reflect.TypeOf((*MockClient)(nil).RemoveNode), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveNode", reflect.TypeOf((*MockClient)(nil).RemoveNode), ctx, path, options) +} + +// RemoveQueueProducerSession mocks base method. +func (m *MockClient) RemoveQueueProducerSession(ctx context.Context, producerPath, queuePath ypath.Path, sessionID string, options *yt.RemoveQueueProducerSessionOptions) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RemoveQueueProducerSession", ctx, producerPath, queuePath, sessionID, options) + ret0, _ := ret[0].(error) + return ret0 +} + +// RemoveQueueProducerSession indicates an expected call of RemoveQueueProducerSession. +func (mr *MockClientMockRecorder) RemoveQueueProducerSession(ctx, producerPath, queuePath, sessionID, options any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveQueueProducerSession", reflect.TypeOf((*MockClient)(nil).RemoveQueueProducerSession), ctx, producerPath, queuePath, sessionID, options) } // RequestRestart mocks base method. -func (m *MockClient) RequestRestart(arg0 context.Context, arg1 string, arg2 *yt.RequestRestartOptions) error { +func (m *MockClient) RequestRestart(ctx context.Context, nodeAddress string, options *yt.RequestRestartOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RequestRestart", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "RequestRestart", ctx, nodeAddress, options) ret0, _ := ret[0].(error) return ret0 } // RequestRestart indicates an expected call of RequestRestart. -func (mr *MockClientMockRecorder) RequestRestart(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) RequestRestart(ctx, nodeAddress, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestRestart", reflect.TypeOf((*MockClient)(nil).RequestRestart), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestRestart", reflect.TypeOf((*MockClient)(nil).RequestRestart), ctx, nodeAddress, options) } // ReshardTable mocks base method. -func (m *MockClient) ReshardTable(arg0 context.Context, arg1 ypath.Path, arg2 *yt.ReshardTableOptions) error { +func (m *MockClient) ReshardTable(ctx context.Context, path ypath.Path, options *yt.ReshardTableOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ReshardTable", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "ReshardTable", ctx, path, options) ret0, _ := ret[0].(error) return ret0 } // ReshardTable indicates an expected call of ReshardTable. -func (mr *MockClientMockRecorder) ReshardTable(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) ReshardTable(ctx, path, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReshardTable", reflect.TypeOf((*MockClient)(nil).ReshardTable), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReshardTable", reflect.TypeOf((*MockClient)(nil).ReshardTable), ctx, path, options) } // RestoreTableBackup mocks base method. -func (m *MockClient) RestoreTableBackup(arg0 context.Context, arg1 yt.BackupManifest, arg2 *yt.RestoreTableBackupOptions) error { +func (m *MockClient) RestoreTableBackup(ctx context.Context, manifest yt.BackupManifest, options *yt.RestoreTableBackupOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RestoreTableBackup", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "RestoreTableBackup", ctx, manifest, options) ret0, _ := ret[0].(error) return ret0 } // RestoreTableBackup indicates an expected call of RestoreTableBackup. -func (mr *MockClientMockRecorder) RestoreTableBackup(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) RestoreTableBackup(ctx, manifest, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreTableBackup", reflect.TypeOf((*MockClient)(nil).RestoreTableBackup), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreTableBackup", reflect.TypeOf((*MockClient)(nil).RestoreTableBackup), ctx, manifest, options) } // ResumeOperation mocks base method. -func (m *MockClient) ResumeOperation(arg0 context.Context, arg1 yt.OperationID, arg2 *yt.ResumeOperationOptions) error { +func (m *MockClient) ResumeOperation(ctx context.Context, opID yt.OperationID, options *yt.ResumeOperationOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ResumeOperation", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "ResumeOperation", ctx, opID, options) ret0, _ := ret[0].(error) return ret0 } // ResumeOperation indicates an expected call of ResumeOperation. -func (mr *MockClientMockRecorder) ResumeOperation(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) ResumeOperation(ctx, opID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResumeOperation", reflect.TypeOf((*MockClient)(nil).ResumeOperation), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResumeOperation", reflect.TypeOf((*MockClient)(nil).ResumeOperation), ctx, opID, options) } // ResurrectChunkLocations mocks base method. -func (m *MockClient) ResurrectChunkLocations(arg0 context.Context, arg1 string, arg2 []guid.GUID, arg3 *yt.ResurrectChunkLocationsOptions) (*yt.ResurrectChunkLocationsResponse, error) { +func (m *MockClient) ResurrectChunkLocations(ctx context.Context, nodeAddress string, locationUUIDs []guid.GUID, options *yt.ResurrectChunkLocationsOptions) (*yt.ResurrectChunkLocationsResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ResurrectChunkLocations", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "ResurrectChunkLocations", ctx, nodeAddress, locationUUIDs, options) ret0, _ := ret[0].(*yt.ResurrectChunkLocationsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // ResurrectChunkLocations indicates an expected call of ResurrectChunkLocations. -func (mr *MockClientMockRecorder) ResurrectChunkLocations(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) ResurrectChunkLocations(ctx, nodeAddress, locationUUIDs, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResurrectChunkLocations", reflect.TypeOf((*MockClient)(nil).ResurrectChunkLocations), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResurrectChunkLocations", reflect.TypeOf((*MockClient)(nil).ResurrectChunkLocations), ctx, nodeAddress, locationUUIDs, options) +} + +// RevokeToken mocks base method. +func (m *MockClient) RevokeToken(ctx context.Context, user, password, token string, options *yt.RevokeTokenOptions) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RevokeToken", ctx, user, password, token, options) + ret0, _ := ret[0].(error) + return ret0 +} + +// RevokeToken indicates an expected call of RevokeToken. +func (mr *MockClientMockRecorder) RevokeToken(ctx, user, password, token, options any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeToken", reflect.TypeOf((*MockClient)(nil).RevokeToken), ctx, user, password, token, options) } // SelectRows mocks base method. -func (m *MockClient) SelectRows(arg0 context.Context, arg1 string, arg2 *yt.SelectRowsOptions) (yt.TableReader, error) { +func (m *MockClient) SelectRows(ctx context.Context, query string, options *yt.SelectRowsOptions) (yt.TableReader, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SelectRows", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "SelectRows", ctx, query, options) ret0, _ := ret[0].(yt.TableReader) ret1, _ := ret[1].(error) return ret0, ret1 } // SelectRows indicates an expected call of SelectRows. -func (mr *MockClientMockRecorder) SelectRows(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) SelectRows(ctx, query, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelectRows", reflect.TypeOf((*MockClient)(nil).SelectRows), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelectRows", reflect.TypeOf((*MockClient)(nil).SelectRows), ctx, query, options) } // SetNode mocks base method. -func (m *MockClient) SetNode(arg0 context.Context, arg1 ypath.YPath, arg2 interface{}, arg3 *yt.SetNodeOptions) error { +func (m *MockClient) SetNode(ctx context.Context, path ypath.YPath, value any, options *yt.SetNodeOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SetNode", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "SetNode", ctx, path, value, options) ret0, _ := ret[0].(error) return ret0 } // SetNode indicates an expected call of SetNode. -func (mr *MockClientMockRecorder) SetNode(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) SetNode(ctx, path, value, options any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNode", reflect.TypeOf((*MockClient)(nil).SetNode), ctx, path, value, options) +} + +// SetUserPassword mocks base method. +func (m *MockClient) SetUserPassword(ctx context.Context, user, newPassword, currentPassword string, options *yt.SetUserPasswordOptions) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetUserPassword", ctx, user, newPassword, currentPassword, options) + ret0, _ := ret[0].(error) + return ret0 +} + +// SetUserPassword indicates an expected call of SetUserPassword. +func (mr *MockClientMockRecorder) SetUserPassword(ctx, user, newPassword, currentPassword, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNode", reflect.TypeOf((*MockClient)(nil).SetNode), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUserPassword", reflect.TypeOf((*MockClient)(nil).SetUserPassword), ctx, user, newPassword, currentPassword, options) } // StartOperation mocks base method. -func (m *MockClient) StartOperation(arg0 context.Context, arg1 yt.OperationType, arg2 interface{}, arg3 *yt.StartOperationOptions) (yt.OperationID, error) { +func (m *MockClient) StartOperation(ctx context.Context, opType yt.OperationType, spec any, options *yt.StartOperationOptions) (yt.OperationID, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "StartOperation", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "StartOperation", ctx, opType, spec, options) ret0, _ := ret[0].(yt.OperationID) ret1, _ := ret[1].(error) return ret0, ret1 } // StartOperation indicates an expected call of StartOperation. -func (mr *MockClientMockRecorder) StartOperation(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) StartOperation(ctx, opType, spec, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartOperation", reflect.TypeOf((*MockClient)(nil).StartOperation), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartOperation", reflect.TypeOf((*MockClient)(nil).StartOperation), ctx, opType, spec, options) } // StartQuery mocks base method. -func (m *MockClient) StartQuery(arg0 context.Context, arg1 yt.QueryEngine, arg2 string, arg3 *yt.StartQueryOptions) (yt.QueryID, error) { +func (m *MockClient) StartQuery(ctx context.Context, engine yt.QueryEngine, query string, options *yt.StartQueryOptions) (yt.QueryID, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "StartQuery", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "StartQuery", ctx, engine, query, options) ret0, _ := ret[0].(yt.QueryID) ret1, _ := ret[1].(error) return ret0, ret1 } // StartQuery indicates an expected call of StartQuery. -func (mr *MockClientMockRecorder) StartQuery(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) StartQuery(ctx, engine, query, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartQuery", reflect.TypeOf((*MockClient)(nil).StartQuery), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartQuery", reflect.TypeOf((*MockClient)(nil).StartQuery), ctx, engine, query, options) } // StartTabletTx mocks base method. -func (m *MockClient) StartTabletTx(arg0 context.Context, arg1 *yt.StartTabletTxOptions) (yt.TxID, error) { +func (m *MockClient) StartTabletTx(ctx context.Context, options *yt.StartTabletTxOptions) (yt.TxID, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "StartTabletTx", arg0, arg1) + ret := m.ctrl.Call(m, "StartTabletTx", ctx, options) ret0, _ := ret[0].(yt.TxID) ret1, _ := ret[1].(error) return ret0, ret1 } // StartTabletTx indicates an expected call of StartTabletTx. -func (mr *MockClientMockRecorder) StartTabletTx(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) StartTabletTx(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartTabletTx", reflect.TypeOf((*MockClient)(nil).StartTabletTx), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartTabletTx", reflect.TypeOf((*MockClient)(nil).StartTabletTx), ctx, options) } // StartTx mocks base method. -func (m *MockClient) StartTx(arg0 context.Context, arg1 *yt.StartTxOptions) (yt.TxID, error) { +func (m *MockClient) StartTx(ctx context.Context, options *yt.StartTxOptions) (yt.TxID, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "StartTx", arg0, arg1) + ret := m.ctrl.Call(m, "StartTx", ctx, options) ret0, _ := ret[0].(yt.TxID) ret1, _ := ret[1].(error) return ret0, ret1 } // StartTx indicates an expected call of StartTx. -func (mr *MockClientMockRecorder) StartTx(arg0, arg1 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) StartTx(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartTx", reflect.TypeOf((*MockClient)(nil).StartTx), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartTx", reflect.TypeOf((*MockClient)(nil).StartTx), ctx, options) } // Stop mocks base method. @@ -1027,115 +1180,130 @@ func (mr *MockClientMockRecorder) Stop() *gomock.Call { } // SuspendOperation mocks base method. -func (m *MockClient) SuspendOperation(arg0 context.Context, arg1 yt.OperationID, arg2 *yt.SuspendOperationOptions) error { +func (m *MockClient) SuspendOperation(ctx context.Context, opID yt.OperationID, options *yt.SuspendOperationOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SuspendOperation", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "SuspendOperation", ctx, opID, options) ret0, _ := ret[0].(error) return ret0 } // SuspendOperation indicates an expected call of SuspendOperation. -func (mr *MockClientMockRecorder) SuspendOperation(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) SuspendOperation(ctx, opID, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SuspendOperation", reflect.TypeOf((*MockClient)(nil).SuspendOperation), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SuspendOperation", reflect.TypeOf((*MockClient)(nil).SuspendOperation), ctx, opID, options) } // TransferAccountResources mocks base method. -func (m *MockClient) TransferAccountResources(arg0 context.Context, arg1, arg2 string, arg3 interface{}, arg4 *yt.TransferAccountResourcesOptions) error { +func (m *MockClient) TransferAccountResources(ctx context.Context, srcAccount, dstAccount string, resourceDelta any, options *yt.TransferAccountResourcesOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TransferAccountResources", arg0, arg1, arg2, arg3, arg4) + ret := m.ctrl.Call(m, "TransferAccountResources", ctx, srcAccount, dstAccount, resourceDelta, options) ret0, _ := ret[0].(error) return ret0 } // TransferAccountResources indicates an expected call of TransferAccountResources. -func (mr *MockClientMockRecorder) TransferAccountResources(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) TransferAccountResources(ctx, srcAccount, dstAccount, resourceDelta, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TransferAccountResources", reflect.TypeOf((*MockClient)(nil).TransferAccountResources), arg0, arg1, arg2, arg3, arg4) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TransferAccountResources", reflect.TypeOf((*MockClient)(nil).TransferAccountResources), ctx, srcAccount, dstAccount, resourceDelta, options) } // TransferPoolResources mocks base method. -func (m *MockClient) TransferPoolResources(arg0 context.Context, arg1, arg2, arg3 string, arg4 interface{}, arg5 *yt.TransferPoolResourcesOptions) error { +func (m *MockClient) TransferPoolResources(ctx context.Context, srcPool, dstPool, poolTree string, resourceDelta any, options *yt.TransferPoolResourcesOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TransferPoolResources", arg0, arg1, arg2, arg3, arg4, arg5) + ret := m.ctrl.Call(m, "TransferPoolResources", ctx, srcPool, dstPool, poolTree, resourceDelta, options) ret0, _ := ret[0].(error) return ret0 } // TransferPoolResources indicates an expected call of TransferPoolResources. -func (mr *MockClientMockRecorder) TransferPoolResources(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) TransferPoolResources(ctx, srcPool, dstPool, poolTree, resourceDelta, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TransferPoolResources", reflect.TypeOf((*MockClient)(nil).TransferPoolResources), arg0, arg1, arg2, arg3, arg4, arg5) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TransferPoolResources", reflect.TypeOf((*MockClient)(nil).TransferPoolResources), ctx, srcPool, dstPool, poolTree, resourceDelta, options) } // UnfreezeTable mocks base method. -func (m *MockClient) UnfreezeTable(arg0 context.Context, arg1 ypath.Path, arg2 *yt.UnfreezeTableOptions) error { +func (m *MockClient) UnfreezeTable(ctx context.Context, path ypath.Path, options *yt.UnfreezeTableOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UnfreezeTable", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "UnfreezeTable", ctx, path, options) ret0, _ := ret[0].(error) return ret0 } // UnfreezeTable indicates an expected call of UnfreezeTable. -func (mr *MockClientMockRecorder) UnfreezeTable(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) UnfreezeTable(ctx, path, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnfreezeTable", reflect.TypeOf((*MockClient)(nil).UnfreezeTable), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnfreezeTable", reflect.TypeOf((*MockClient)(nil).UnfreezeTable), ctx, path, options) } // UnmountTable mocks base method. -func (m *MockClient) UnmountTable(arg0 context.Context, arg1 ypath.Path, arg2 *yt.UnmountTableOptions) error { +func (m *MockClient) UnmountTable(ctx context.Context, path ypath.Path, options *yt.UnmountTableOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UnmountTable", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "UnmountTable", ctx, path, options) ret0, _ := ret[0].(error) return ret0 } // UnmountTable indicates an expected call of UnmountTable. -func (mr *MockClientMockRecorder) UnmountTable(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) UnmountTable(ctx, path, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnmountTable", reflect.TypeOf((*MockClient)(nil).UnmountTable), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnmountTable", reflect.TypeOf((*MockClient)(nil).UnmountTable), ctx, path, options) } // UpdateOperationParameters mocks base method. -func (m *MockClient) UpdateOperationParameters(arg0 context.Context, arg1 yt.OperationID, arg2 interface{}, arg3 *yt.UpdateOperationParametersOptions) error { +func (m *MockClient) UpdateOperationParameters(ctx context.Context, opID yt.OperationID, params any, options *yt.UpdateOperationParametersOptions) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateOperationParameters", arg0, arg1, arg2, arg3) + ret := m.ctrl.Call(m, "UpdateOperationParameters", ctx, opID, params, options) ret0, _ := ret[0].(error) return ret0 } // UpdateOperationParameters indicates an expected call of UpdateOperationParameters. -func (mr *MockClientMockRecorder) UpdateOperationParameters(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) UpdateOperationParameters(ctx, opID, params, options any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOperationParameters", reflect.TypeOf((*MockClient)(nil).UpdateOperationParameters), ctx, opID, params, options) +} + +// WhoAmI mocks base method. +func (m *MockClient) WhoAmI(ctx context.Context, options *yt.WhoAmIOptions) (*yt.WhoAmIResult, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WhoAmI", ctx, options) + ret0, _ := ret[0].(*yt.WhoAmIResult) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WhoAmI indicates an expected call of WhoAmI. +func (mr *MockClientMockRecorder) WhoAmI(ctx, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOperationParameters", reflect.TypeOf((*MockClient)(nil).UpdateOperationParameters), arg0, arg1, arg2, arg3) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WhoAmI", reflect.TypeOf((*MockClient)(nil).WhoAmI), ctx, options) } // WriteFile mocks base method. -func (m *MockClient) WriteFile(arg0 context.Context, arg1 ypath.YPath, arg2 *yt.WriteFileOptions) (io.WriteCloser, error) { +func (m *MockClient) WriteFile(ctx context.Context, path ypath.YPath, options *yt.WriteFileOptions) (io.WriteCloser, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WriteFile", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "WriteFile", ctx, path, options) ret0, _ := ret[0].(io.WriteCloser) ret1, _ := ret[1].(error) return ret0, ret1 } // WriteFile indicates an expected call of WriteFile. -func (mr *MockClientMockRecorder) WriteFile(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) WriteFile(ctx, path, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteFile", reflect.TypeOf((*MockClient)(nil).WriteFile), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteFile", reflect.TypeOf((*MockClient)(nil).WriteFile), ctx, path, options) } // WriteTable mocks base method. -func (m *MockClient) WriteTable(arg0 context.Context, arg1 ypath.YPath, arg2 *yt.WriteTableOptions) (yt.TableWriter, error) { +func (m *MockClient) WriteTable(ctx context.Context, path ypath.YPath, options *yt.WriteTableOptions) (yt.TableWriter, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WriteTable", arg0, arg1, arg2) + ret := m.ctrl.Call(m, "WriteTable", ctx, path, options) ret0, _ := ret[0].(yt.TableWriter) ret1, _ := ret[1].(error) return ret0, ret1 } // WriteTable indicates an expected call of WriteTable. -func (mr *MockClientMockRecorder) WriteTable(arg0, arg1, arg2 interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) WriteTable(ctx, path, options any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTable", reflect.TypeOf((*MockClient)(nil).WriteTable), arg0, arg1, arg2) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTable", reflect.TypeOf((*MockClient)(nil).WriteTable), ctx, path, options) } From 4680a88b22cc0529006c605ac025892e7d86598f Mon Sep 17 00:00:00 2001 From: Konstantin Khlebnikov Date: Thu, 14 Nov 2024 16:58:32 +0100 Subject: [PATCH 2/2] Fix RPC proxy test --- test/e2e/ytsaurus_controller_test.go | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/test/e2e/ytsaurus_controller_test.go b/test/e2e/ytsaurus_controller_test.go index d121fd96..75346526 100644 --- a/test/e2e/ytsaurus_controller_test.go +++ b/test/e2e/ytsaurus_controller_test.go @@ -60,6 +60,17 @@ func getYtHTTPClient(g *ytconfig.Generator, namespace string) yt.Client { return ytClient } +func getYtRPCClient(g *ytconfig.Generator, namespace string) yt.Client { + ytClient, err := ytrpc.NewClient(&yt.Config{ + Proxy: getHTTPProxyAddress(g, namespace), + RPCProxy: getRPCProxyAddress(g, namespace), + Token: consts.DefaultAdminPassword, + DisableProxyDiscovery: true, + }) + Expect(err).Should(Succeed()) + return ytClient +} + func getHTTPProxyAddress(g *ytconfig.Generator, namespace string) string { proxy := os.Getenv("E2E_YT_HTTP_PROXY") if proxy != "" { @@ -907,15 +918,22 @@ var _ = Describe("Basic e2e test for Ytsaurus controller", Label("e2e"), func() It("Rpc proxies should require authentication", func(ctx context.Context) { // Just in case, so dirty dev environment wouldn't interfere. Expect(os.Unsetenv("YT_TOKEN")).Should(Succeed()) + + By("Checking RPC proxy without token does not work") cli, err := ytrpc.NewClient(&yt.Config{ - // N.B.: no credentials are passed here. + Proxy: getHTTPProxyAddress(g, namespace), RPCProxy: getRPCProxyAddress(g, namespace), DisableProxyDiscovery: true, }) Expect(err).Should(Succeed()) - _, err = cli.NodeExists(context.Background(), ypath.Path("/"), nil) + _, err = cli.NodeExists(ctx, ypath.Path("/"), nil) Expect(yterrors.ContainsErrorCode(err, yterrors.CodeRPCAuthenticationError)).Should(BeTrue()) + + By("Checking RPC proxy works with token") + cli = getYtRPCClient(g, namespace) + _, err = cli.NodeExists(ctx, ypath.Path("/"), nil) + Expect(err).Should(Succeed()) }) }) // integration rpc-proxy