- Sort Score
- Num 10 results
- Language All
Results 271 - 280 of 2,104 for case (0.01 seconds)
-
cmd/user-provider-utils.go
func getUserWithProvider(ctx context.Context, userProvider, user string, validate bool) (string, error) { switch userProvider { case madmin.BuiltinProvider: if validate { if _, ok := globalIAMSys.GetUser(ctx, user); !ok { return "", errNoSuchUser } } return user, nil case madmin.LDAPProvider: if globalIAMSys.GetUsersSysType() != LDAPUsersSysType { return "", errIAMActionNotAllowed }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 4.1K bytes - Click Count (0) -
internal/grid/stream.go
// Send a payload to the remote server. func (s *Stream) Send(b []byte) error { if s.Requests == nil { return errors.New("stream does not accept requests") } select { case s.Requests <- b: return nil case <-s.ctx.Done(): return context.Cause(s.ctx) } } // Results returns the results from the remote server one by one. // If any error is returned by the callback, the stream will be canceled.
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Jun 07 15:51:52 GMT 2024 - 3.1K bytes - Click Count (0) -
cmd/erasure-healing.go
} func objectErrToDriveState(reason error) string { switch { case reason == nil: return madmin.DriveStateOk case IsErr(reason, errDiskNotFound): return madmin.DriveStateOffline case IsErr(reason, errFileNotFound, errFileVersionNotFound, errVolumeNotFound, errPartMissing, errOutdatedXLMeta, errLegacyXLMeta): return madmin.DriveStateMissing case IsErr(reason, errFileCorrupt, errPartCorrupt): return madmin.DriveStateCorrupt
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 34.7K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/DependencyScope.java
* whether the DependencyCoordinates is used in dependency management, in which case it means the scope is not * explicitly managed by this managed dependency, or as a real dependency, in which case, the scope * will default to {@link #COMPILE}. */ UNDEFINED("", false), /** * Compile only. */Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Mar 19 14:33:26 GMT 2025 - 4K bytes - Click Count (0) -
guava/src/com/google/common/graph/UndirectedGraphConnections.java
} static <N, V> UndirectedGraphConnections<N, V> of(ElementOrder<N> incidentEdgeOrder) { switch (incidentEdgeOrder.type()) { case UNORDERED: return new UndirectedGraphConnections<>( new HashMap<N, V>(INNER_CAPACITY, INNER_LOAD_FACTOR)); case STABLE: return new UndirectedGraphConnections<>( new LinkedHashMap<N, V>(INNER_CAPACITY, INNER_LOAD_FACTOR)); default:
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.3K bytes - Click Count (0) -
guava/src/com/google/common/util/concurrent/ExecutionSequencer.java
* called only once, just as it has its Executor.execute override called only once.) * * - if we return immediately from `execute` (in which case we never get here) * * - in the "reentrant submit" case of `execute` (in which case we must have started running a * user task -- which means that we already got past this code (or else we exited early * above)) */Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 01:35:55 GMT 2025 - 22.1K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/logging/impl/MavenSimpleConfiguration.java
@Override public void setRootLoggerLevel(Level level) { String value = switch (level) { case DEBUG -> "debug"; case INFO -> "info"; case ERROR -> "error"; }; String current = System.setProperty(Constants.MAVEN_LOGGER_DEFAULT_LOG_LEVEL, value);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Oct 08 21:10:33 GMT 2025 - 2.2K bytes - Click Count (0) -
guava/src/com/google/common/base/AbstractIterator.java
* or implied. See the License for the specific language governing permissions and limitations under * the License. */ package com.google.common.base; import static com.google.common.base.NullnessCasts.uncheckedCastNullableTToT; import static com.google.common.base.Preconditions.checkState; import com.google.common.annotations.GwtCompatible; import com.google.errorprone.annotations.CanIgnoreReturnValue;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 2.4K bytes - Click Count (0) -
cmd/sftp-server-driver.go
_ = w.w.CloseWithError(err) _ = w.r.CloseWithError(err) w.err = err } func (w *writerAt) Close() (err error) { switch { case len(w.buffer) > 0: err = errors.New("some file segments were not flushed from the queue") _ = w.w.CloseWithError(err) case w.err != nil: // No need to close here since both pipes were // closing inside TransferError() err = w.err default: err = w.w.Close() }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Feb 10 16:35:49 GMT 2025 - 11.6K bytes - Click Count (0) -
cmd/consolelogger.go
if cnt > 0 { for i := range last { entry := lastN[(cnt+i)%last] if (entry == log.Info{}) { continue } select { case subCh <- entry: case <-doneCh: return nil } } } return sys.pubsub.Subscribe(madmin.LogMaskAll, subCh, doneCh, filter) } // Init if HTTPConsoleLoggerSys is valid, always returns nil right now
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 5.4K bytes - Click Count (0)