- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for utilrand (0.1 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/names/generate.go
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package names import ( "fmt" utilrand "k8s.io/apimachinery/pkg/util/rand" ) // NameGenerator generates names for objects. Some backends may have more information // available to guide selection of new names and this interface hides those details.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 14 07:03:14 UTC 2022 - 1.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go
func TestUnsafeConversions(t *testing.T) { t.Parallel() // needs to be large to force allocations so we pick a random value between [1024, 2048] size := utilrand.IntnRange(1024, 2048+1) t.Run("toBytes semantics", func(t *testing.T) { t.Parallel() s := utilrand.String(size) b := toBytes(s) if len(b) != size { t.Errorf("unexpected length: %d", len(b)) } if cap(b) != size {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 20.3K bytes - Viewed (0) -
pkg/controller/serviceaccount/tokens_controller_test.go
"gopkg.in/square/go-jose.v2/jwt" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/util/dump" utilrand "k8s.io/apimachinery/pkg/util/rand" "k8s.io/client-go/informers" "k8s.io/client-go/kubernetes/fake" core "k8s.io/client-go/testing" "k8s.io/kubernetes/pkg/controller" "k8s.io/kubernetes/test/utils/ktesting" )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 14 00:05:53 UTC 2023 - 21.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/envelope_test.go
"regexp" "strconv" "strings" "sync" "sync/atomic" "testing" "time" "github.com/gogo/protobuf/proto" "go.opentelemetry.io/otel/sdk/trace" "go.opentelemetry.io/otel/sdk/trace/tracetest" utilrand "k8s.io/apimachinery/pkg/util/rand" "k8s.io/apimachinery/pkg/util/uuid" genericapirequest "k8s.io/apiserver/pkg/endpoints/request" "k8s.io/apiserver/pkg/storage/value"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 25 16:50:20 UTC 2023 - 47.2K bytes - Viewed (0) -
src/internal/trace/gc.go
// window and to the right edge of the window. left := c.bands[bandIdx].integrator right := left time, endTime := c.bandTime(bandIdx) if utilEnd := util[len(util)-1].Time - int64(window); utilEnd < endTime { endTime = utilEnd } acc.resetTime() for { // Advance edges to time and time+window. mu := (right.advance(time+int64(window)) - left.advance(time)).mean(window)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 26K bytes - Viewed (0)