- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for Abandon (0.22 sec)
-
src/crypto/internal/boring/fipstls/tls.go
// // Note that this call has an effect even in programs using // standard crypto (that is, even when Enabled = false). func Force() { required.Store(true) } // Abandon allows non-FIPS-approved settings. // If called from a non-test binary, it panics. func Abandon() { // Note: Not using boring.UnreachableExceptTests because we want // this test to happen even when boring.Enabled = false. name := runtime_arg0()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 14:00:54 UTC 2024 - 1.7K bytes - Viewed (0) -
src/crypto/tls/boring_test.go
test(t, "VersionTLS11", VersionTLS11, "") test(t, "VersionTLS12", VersionTLS12, "") test(t, "VersionTLS13", VersionTLS13, "") t.Run("fipstls", func(t *testing.T) { fipstls.Force() defer fipstls.Abandon() test(t, "VersionTLS10", VersionTLS10, "supported versions") test(t, "VersionTLS11", VersionTLS11, "supported versions") test(t, "VersionTLS12", VersionTLS12, "")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:45:37 UTC 2024 - 19.4K bytes - Viewed (0) -
src/os/signal/example_unix_test.go
import ( "context" "fmt" "log" "os" "os/signal" ) var neverReady = make(chan struct{}) // never closed // This example passes a context with a signal to tell a blocking function that // it should abandon its work after a signal is received. func ExampleNotifyContext() { ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt) defer stop() p, err := os.FindProcess(os.Getpid()) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 15:34:56 UTC 2023 - 1.1K bytes - Viewed (0) -
src/context/example_test.go
// Output: // context deadline exceeded } // This example passes a context with a timeout to tell a blocking function that // it should abandon its work after the timeout elapses. func ExampleWithTimeout() { // Pass a context with a timeout to tell a blocking function that it // should abandon its work after the timeout elapses. ctx, cancel := context.WithTimeout(context.Background(), shortDuration) defer cancel() select {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 21 20:24:28 UTC 2023 - 6.7K bytes - Viewed (0) -
pilot/pkg/leaderelection/k8sleaderelection/README.md
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Oct 11 16:58:48 UTC 2021 - 935 bytes - Viewed (0) -
pkg/registry/core/service/storage/transaction.go
type transaction interface { // Commit tells the transaction to finalize any changes it may have // pending. This cannot fail, so errors must be handled internally. Commit() // Revert tells the transaction to abandon or undo any changes it may have // pending. This cannot fail, so errors must be handled internally. Revert() } // metaTransaction is a collection of transactions. type metaTransaction []transaction
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Sep 11 17:49:37 UTC 2021 - 1.6K bytes - Viewed (0) -
src/crypto/x509/boring_test.go
t.Fatal(err) } cert, err := ParseCertificate(der) if err != nil { t.Fatal(err) } // Tell isBoringCertificate to enforce FIPS restrictions for this check. fipstls.Force() defer fipstls.Abandon() fipsOK := mode&boringCertFIPSOK != 0 if boringAllowCert(cert) != fipsOK { t.Errorf("boringAllowCert(cert with %s key) = %v, want %v", desc, !fipsOK, fipsOK) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 17 17:38:47 UTC 2022 - 3.7K bytes - Viewed (0) -
schema/schema.go
} // This unrolling is needed to show to the compiler the exact set of methods // that can be used on the modelType. // Prior to go1.22 any use of MethodByName would cause the linker to // abandon dead code elimination for the entire binary. // As of go1.22 the compiler supports one special case of a string constant // being passed to MethodByName. For enterprise customers or those building
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:52:33 UTC 2024 - 13.7K bytes - Viewed (0) -
cmd/data-usage-cache.go
// By default, empty data usage cache *d = dataUsageCache{} load := func(name string, timeout time.Duration) (bool, error) { // Abandon if more than time.Minute, so we don't hold up scanner. // drive timeout by default is 2 minutes, we do not need to wait longer. ctx, cancel := context.WithTimeout(ctx, timeout) defer cancel()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 10 14:49:50 UTC 2024 - 42.8K bytes - Viewed (0) -
src/text/tabwriter/tabwriter.go
} if !flushed { // The previous line is probably a good indicator // of how many cells the current line will have. // If the current line's capacity is smaller than that, // abandon it and make a new one. if n := len(b.lines); n >= 2 { if prev := len(b.lines[n-2]); prev > cap(b.lines[n-1]) { b.lines[n-1] = make([]cell, 0, prev) } } } } // Reset the current state.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 16:46:34 UTC 2024 - 17.8K bytes - Viewed (0)