- Sort Score
- Result 10 results
- Languages All
Results 421 - 430 of 1,002 for Struct (0.05 sec)
-
cmd/signals.go
"strings" "time" "github.com/coreos/go-systemd/v22/daemon" "github.com/minio/minio/internal/logger" ) func shutdownHealMRFWithTimeout() { const shutdownTimeout = time.Minute finished := make(chan struct{}) go func() { globalMRFState.shutdown() close(finished) }() select { case <-time.After(shutdownTimeout): case <-finished: } } func handleSignals() { // Custom exit function
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Sep 04 17:02:39 UTC 2024 - 3.2K bytes - Viewed (0) -
cmd/os-readdir_test.go
// Check if permission denied. if _, err := readDir(permDir); err == nil { t.Fatalf("expected = an error, got: nil") } } } // Represents data type for all the test results. type result struct { dir string entries []string } // Test to read empty directory. func setupTestReadDirEmpty(t *testing.T) (testResults []result) { // Add empty entry slice for this test directory.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue May 27 15:19:03 UTC 2025 - 7.5K bytes - Viewed (0) -
cmd/copy-part-range_test.go
package cmd import "testing" // Test parseCopyPartRange() func TestParseCopyPartRangeSpec(t *testing.T) { // Test success cases. successCases := []struct { rangeString string offsetBegin int64 offsetEnd int64 }{ {"bytes=2-5", 2, 5}, {"bytes=2-9", 2, 9}, {"bytes=2-2", 2, 2}, {"bytes=0000-0006", 0, 6}, } objectSize := int64(10)
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 2.5K bytes - Viewed (0) -
cmd/kms-router.go
"github.com/minio/mux" ) const ( kmsPathPrefix = minioReservedBucketPath + "/kms" kmsAPIVersion = "v1" kmsAPIVersionPrefix = SlashSeparator + kmsAPIVersion ) type kmsAPIHandlers struct{} // registerKMSRouter - Registers KMS APIs func registerKMSRouter(router *mux.Router) { kmsAPI := kmsAPIHandlers{} kmsRouter := router.PathPrefix(kmsPathPrefix).Subrouter() KMSVersions := []string{
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue May 07 23:55:37 UTC 2024 - 2.7K bytes - Viewed (0) -
cmd/bucket-policy-handlers_test.go
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 32.9K bytes - Viewed (0) -
internal/bucket/lifecycle/lifecycle.go
return true } return a == DeleteVersionAction || a == DeleteAction || a == DeleteAllVersionsAction || a == DelMarkerDeleteAllVersionsAction } // Lifecycle - Configuration for bucket lifecycle. type Lifecycle struct { XMLName xml.Name `xml:"LifecycleConfiguration"` Rules []Rule `xml:"Rule"` ExpiryUpdatedAt *time.Time `xml:"ExpiryUpdatedAt,omitempty"` }Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Apr 03 06:45:06 UTC 2025 - 18.2K bytes - Viewed (0) -
cmd/format-erasure_test.go
// Tests check format xl value. func TestCheckFormatErasureValue(t *testing.T) { testCases := []struct { format *formatErasureV3 success bool }{ // Invalid Erasure format version "2". { &formatErasureV3{ formatMetaV1: formatMetaV1{ Version: "2", Format: "Erasure", }, Erasure: struct { Version string `json:"version"` This string `json:"this"`
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 12.7K bytes - Viewed (0) -
migrator.go
} // AutoMigrate run auto migration for given models func (db *DB) AutoMigrate(dst ...interface{}) error { return db.Migrator().AutoMigrate(dst...) } // ViewOption view option type ViewOption struct { Replace bool // If true, exec `CREATE`. If false, exec `CREATE OR REPLACE` CheckOption string // optional. e.g. `WITH [ CASCADED | LOCAL ] CHECK OPTION` Query *DB // required subquery. }
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Mon Oct 30 09:15:49 UTC 2023 - 3.1K bytes - Viewed (0) -
cmd/utils.go
xnet "github.com/minio/pkg/v3/net" "golang.org/x/oauth2" ) const ( slashSeparator = "/" ) // BucketAccessPolicy - Collection of canned bucket policy at a given prefix. type BucketAccessPolicy struct { Bucket string `json:"bucket"` Prefix string `json:"prefix"` Policy miniogopolicy.BucketPolicy `json:"policy"` } // IsErrIgnored returns whether given error is ignored or not.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 33K bytes - Viewed (0) -
cmd/object-api-options.go
} return opts, valid } func parseObjectAttributes(h http.Header) (attributes map[string]struct{}) { attributes = make(map[string]struct{}) for _, headerVal := range h.Values(xhttp.AmzObjectAttributes) { for v := range strings.SplitSeq(strings.TrimSpace(headerVal), ",") { if v != "" { attributes[v] = struct{}{} } } } return attributes }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 14.3K bytes - Viewed (0)