- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 824 for Func (0.02 sec)
-
cmd/notification-summary.go
import ( "github.com/minio/madmin-go/v3" ) // GetTotalCapacity gets the total capacity in the cluster. func GetTotalCapacity(diskInfo []madmin.Disk) (capacity uint64) { for _, disk := range diskInfo { capacity += disk.TotalSpace } return } // GetTotalUsableCapacity gets the total usable capacity in the cluster. func GetTotalUsableCapacity(diskInfo []madmin.Disk, s StorageInfo) (capacity uint64) { for _, disk := range diskInfo {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Tue Jun 20 00:53:08 UTC 2023 - 2.2K bytes - Viewed (0) -
cmd/url_test.go
b.ResetTimer() if err := req.ParseForm(); err != nil { b.Fatal(err) } b.RunParallel(func(pb *testing.PB) { for pb.Next() { req.Form.Get("uploadId") } }) // Benchmark ends here. Stop timer. b.StopTimer() } // BenchmarkURLQuery - benchmark URL memory allocations func BenchmarkURLQuery(b *testing.B) {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Tue Nov 16 17:28:29 UTC 2021 - 2K bytes - Viewed (0) -
src/archive/zip/example_test.go
} func ExampleWriter_RegisterCompressor() { // Override the default Deflate compressor with a higher compression level. // Create a buffer to write our archive to. buf := new(bytes.Buffer) // Create a new zip archive. w := zip.NewWriter(buf) // Register a custom Deflate compressor. w.RegisterCompressor(zip.Deflate, func(out io.Writer) (io.WriteCloser, error) {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Jan 27 00:22:03 UTC 2016 - 2K bytes - Viewed (0) -
cmd/endpoint.go
} // Type - returns type of endpoint. func (endpoint Endpoint) Type() EndpointType { if endpoint.Host == "" { return PathEndpointType } return URLEndpointType } // HTTPS - returns true if secure for URLEndpointType. func (endpoint Endpoint) HTTPS() bool { return endpoint.Scheme == "https" } // GridHost returns the host to be used for grid connections. func (endpoint Endpoint) GridHost() string {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 34.4K bytes - Viewed (0) -
cmd/prepare-storage.go
"github.com/dustin/go-humanize" xhttp "github.com/minio/minio/internal/http" "github.com/minio/minio/internal/logger" ) var printEndpointError = func() func(Endpoint, error, bool) { var mutex sync.Mutex printOnce := make(map[Endpoint]map[string]int) return func(endpoint Endpoint, err error, once bool) { reqInfo := (&logger.ReqInfo{}).AppendTags("endpoint", endpoint.String()) ctx := logger.SetReqInfo(GlobalContext, reqInfo)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Jul 12 20:51:54 UTC 2024 - 11.1K bytes - Viewed (1) -
cmd/iam-store.go
r = append(r, v) } } sort.Slice(r, func(i, j int) bool { return r[i].User < r[j].User }) return r } // Assumes store is locked by caller. If groups is empty, returns all group mappings. func (store *IAMStoreSys) listGroupPolicyMappings(cache *iamCache, groupsSet set.StringSet, groupPredicate func(string) bool, decodeFunc func(string) string, ) []madmin.GroupPolicyEntities {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 86.7K bytes - Viewed (0) -
src/bytes/iter_test.go
package bytes_test import ( . "bytes" "testing" ) func BenchmarkSplitSeqEmptySeparator(b *testing.B) { for range b.N { for range SplitSeq(benchInputHard, nil) { } } } func BenchmarkSplitSeqSingleByteSeparator(b *testing.B) { sep := []byte("/") for range b.N { for range SplitSeq(benchInputHard, sep) { } } } func BenchmarkSplitSeqMultiByteSeparator(b *testing.B) { sep := []byte("hello")
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue May 06 02:08:23 UTC 2025 - 1.1K bytes - Viewed (0) -
cmd/data-usage-cache_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "fmt" "testing" "github.com/dustin/go-humanize" ) func TestSizeHistogramToMap(t *testing.T) { tests := []struct { sizes []int64 want map[string]uint64 }{ { sizes: []int64{100, 1000, 72_000, 100_000}, want: map[string]uint64{
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sat Jan 13 07:51:08 UTC 2024 - 2.6K bytes - Viewed (0) -
api/go1.19.txt
pkg go/doc, func Synopsis //deprecated #51082 pkg go/doc, func ToHTML //deprecated #51082 pkg go/doc, func ToText //deprecated #51082 pkg io/ioutil, func NopCloser //deprecated #42026 pkg io/ioutil, func ReadAll //deprecated #42026 pkg io/ioutil, func ReadDir //deprecated #42026 pkg io/ioutil, func ReadFile //deprecated #42026 pkg io/ioutil, func TempDir //deprecated #42026
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Dec 02 16:29:41 UTC 2022 - 17.9K bytes - Viewed (0) -
src/bufio/example_test.go
package bufio_test import ( "bufio" "bytes" "fmt" "os" "strconv" "strings" ) func ExampleWriter() { w := bufio.NewWriter(os.Stdout) fmt.Fprint(w, "Hello, ") fmt.Fprint(w, "world!") w.Flush() // Don't forget to flush! // Output: Hello, world! } func ExampleWriter_AvailableBuffer() { w := bufio.NewWriter(os.Stdout) for _, i := range []int64{1, 2, 3, 4} {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Nov 01 21:52:12 UTC 2024 - 5.5K bytes - Viewed (0)