Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 7,056 for Return (0.05 sec)

  1. cmd/os_windows.go

    		case data.FileAttributes&syscall.FILE_ATTRIBUTE_DIRECTORY != 0:
    			typ = os.ModeDir
    		}
    
    		if err = filter(name, typ); err == errDoneForNow {
    			// filtering requested to return by caller.
    			return nil
    		}
    	}
    
    	return nil
    }
    
    // Return N entries at the directory dirPath.
    func readDirWithOpts(dirPath string, opts readDirOpts) (entries []string, err error) {
    	// Ensure we don't pick up files as directories.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. internal/config/config.go

    // Get - returns the value of a key, if not found returns empty.
    func (kvs KVS) Get(key string) string {
    	v, ok := kvs.Lookup(key)
    	if ok {
    		return v
    	}
    	return ""
    }
    
    // Delete - deletes the key if present from the KV list.
    func (kvs *KVS) Delete(key string) {
    	for i, kv := range *kvs {
    		if kv.Key == key {
    			*kvs = append((*kvs)[:i], (*kvs)[i+1:]...)
    			return
    		}
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 18:23:41 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  3. cmd/auth-handler.go

    		return authTypeStreamingUnsignedTrailer
    	} else if isRequestSignatureV4(r) {
    		return authTypeSigned
    	} else if isRequestPresignedSignatureV4(r) {
    		return authTypePresigned
    	} else if isRequestJWT(r) {
    		return authTypeJWT
    	} else if isRequestPostPolicySignatureV4(r) {
    		return authTypePostPolicy
    	} else if _, ok := r.Form[xhttp.Action]; ok {
    		return authTypeSTS
    	} else if _, ok := r.Header[xhttp.Authorization]; !ok {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 17 16:45:46 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  4. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlQueueService.java

                        return true;
                    }
                }
                for (final UrlQueue<String> urlQueue : waitingQueue) {
                    if (sessionId.equals(urlQueue.getSessionId()) && url.equals(urlQueue.getUrl())) {
                        return true;
                    }
                }
            }
            return ret;
        }
    
        @Override
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. internal/grid/msg_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteTime(z.Time)
    	if err != nil {
    		err = msgp.WrapError(err, "Time")
    		return
    	}
    	// write "Token"
    	err = en.Append(0xa5, 0x54, 0x6f, 0x6b, 0x65, 0x6e)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.Token)
    	if err != nil {
    		err = msgp.WrapError(err, "Token")
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:07:21 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  6. cmd/last-minute.go

    	case sizeLessThan1KiB:
    		return "LESS_THAN_1_KiB"
    	case sizeLessThan1MiB:
    		return "LESS_THAN_1_MiB"
    	case sizeLessThan10MiB:
    		return "LESS_THAN_10_MiB"
    	case sizeLessThan100MiB:
    		return "LESS_THAN_100_MiB"
    	case sizeLessThan1GiB:
    		return "LESS_THAN_1_GiB"
    	case sizeGreaterThan1GiB:
    		return "GREATER_THAN_1_GiB"
    	default:
    		return "unknown"
    	}
    }
    
    // AccElem holds information for calculating an average value
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 05 17:40:45 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvn/MavenOptions.java

        /**
         * Returns the project to resume the build from.
         *
         * @return an {@link Optional} containing the project name to resume from, or empty if not specified
         */
        @Nonnull
        Optional<String> resumeFrom();
    
        /**
         * Returns the list of specified reactor projects to build instead of all projects.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 03 16:03:55 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. cmd/generic-handlers.go

    				if r.TLS != nil {
    					scheme = "https"
    				}
    				return scheme
    			}(),
    		}
    	}
    	return nil
    }
    
    // guessIsHealthCheckReq - returns true if incoming request looks
    // like healthCheck request
    func guessIsHealthCheckReq(req *http.Request) bool {
    	if req == nil {
    		return false
    	}
    	aType := getRequestAuthType(req)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  9. cmd/utils.go

    		// Upon error just return Go-syntax representation of the value
    		return fmt.Sprintf("%#v", req)
    	}
    
    	// Formatted string.
    	return strings.TrimSpace(buffer.String())
    }
    
    // isFile - returns whether given path is a file or not.
    func isFile(path string) bool {
    	if fi, err := os.Stat(path); err == nil {
    		return fi.Mode().IsRegular()
    	}
    
    	return false
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  10. cmd/site-replication-utils_gen.go

    		return
    	}
    	err = en.WriteInt(z.Version)
    	if err != nil {
    		err = msgp.WrapError(err, "Version")
    		return
    	}
    	// write "ss"
    	err = en.Append(0xa2, 0x73, 0x73)
    	if err != nil {
    		return
    	}
    	err = z.Status.EncodeMsg(en)
    	if err != nil {
    		err = msgp.WrapError(err, "Status")
    		return
    	}
    	// write "did"
    	err = en.Append(0xa3, 0x64, 0x69, 0x64)
    	if err != nil {
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Nov 14 15:16:40 UTC 2022
    - 7.2K bytes
    - Viewed (0)
Back to top