Search Options

Results per page
Sort
Preferred Languages
Advance

Results 971 - 980 of 1,179 for FUNC (0.11 sec)

  1. cmd/object-handlers_test.go

    func TestAPIGetObjectHandler(t *testing.T) {
    	globalPolicySys = NewPolicySys()
    	defer func() { globalPolicySys = nil }()
    
    	defer DetectTestLeak(t)()
    	ExecExtendedObjectLayerAPITest(t, testAPIGetObjectHandler, []string{"GetObject"})
    }
    
    func testAPIGetObjectHandler(obj ObjectLayer, instanceType, bucketName string, apiRouter http.Handler,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
  2. cmd/bucket-versioning-handler.go

    	maxBucketVersioningConfigSize = 1 * humanize.MiByte
    )
    
    // PutBucketVersioningHandler - PUT Bucket Versioning.
    // ----------
    func (api objectAPIHandlers) PutBucketVersioningHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := newContext(r, w, "PutBucketVersioning")
    
    	defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r))
    
    	vars := mux.Vars(r)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. clause/from_test.go

    package clause_test
    
    import (
    	"fmt"
    	"testing"
    
    	"gorm.io/gorm/clause"
    )
    
    func TestFrom(t *testing.T) {
    	results := []struct {
    		Clauses []clause.Interface
    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}},
    			"SELECT * FROM `users`", nil,
    		},
    		{
    			[]clause.Interface{
    				clause.Select{}, clause.From{
    					Tables: []clause.Table{{Name: "users"}},
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jul 15 02:25:10 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  4. internal/bucket/replication/datatypes.go

    	Failed StatusType = "FAILED"
    
    	// Replica - this is a replica.
    	Replica StatusType = "REPLICA"
    )
    
    // String returns string representation of status
    func (s StatusType) String() string {
    	return string(s)
    }
    
    // Empty returns true if this status is not set
    func (s StatusType) Empty() bool {
    	return string(s) == ""
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 08 19:08:18 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. internal/dsync/locked_rand.go

    	lk  sync.Mutex
    	src rand.Source
    }
    
    // Int63 returns a non-negative pseudo-random 63-bit integer as an int64.
    func (r *lockedRandSource) Int63() (n int64) {
    	r.lk.Lock()
    	n = r.src.Int63()
    	r.lk.Unlock()
    	return
    }
    
    // Seed uses the provided seed value to initialize the generator to a
    // deterministic state.
    func (r *lockedRandSource) Seed(seed int64) {
    	r.lk.Lock()
    	r.src.Seed(seed)
    	r.lk.Unlock()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 18 15:39:59 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  6. internal/config/ilm/help.go

    	// EnvILMExpirationWorkers env variable to configure number of expiration workers
    	EnvILMExpirationWorkers = "MINIO_ILM_EXPIRATION_WORKERS"
    )
    
    var (
    	defaultHelpPostfix = func(key string) string {
    		return config.DefaultHelpPostfix(DefaultKVS, key)
    	}
    
    	// Help holds configuration keys and their default values for the ILM
    	// subsystem
    	Help = config.HelpKVS{
    		config.HelpKV{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 30 08:14:58 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. cmd/signature-v4-parser_test.go

    	"strings"
    	"testing"
    	"time"
    )
    
    // generates credential string from its fields.
    func generateCredentialStr(accessKey, date, region, service, requestVersion string) string {
    	return "Credential=" + joinWithSlash(accessKey, date, region, service, requestVersion)
    }
    
    // joins the argument strings with a '/' and returns it.
    func joinWithSlash(accessKey, date, region, service, requestVersion string) string {
    	return strings.Join([]string{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  8. schema/utils_test.go

    package schema
    
    import (
    	"reflect"
    	"testing"
    )
    
    func TestRemoveSettingFromTag(t *testing.T) {
    	tags := map[string]string{
    		`gorm:"before:value;column:db;after:value" other:"before:value;column:db;after:value"`:  `gorm:"before:value;after:value" other:"before:value;column:db;after:value"`,
    		`gorm:"before:value;column:db;" other:"before:value;column:db;after:value"`:             `gorm:"before:value;" other:"before:value;column:db;after:value"`,
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Jul 31 10:19:25 UTC 2020
    - 1.5K bytes
    - Viewed (0)
  9. internal/config/scanner/scanner.go

    	// Deprecated Oct 2022
    	config.KV{
    		Key:           Cycle,
    		Value:         "",
    		HiddenIfEmpty: true,
    	},
    }
    
    // LookupConfig - lookup config and override with valid environment settings if any.
    func LookupConfig(kvs config.KVS) (cfg Config, err error) {
    	cfg = Config{
    		ExcessVersions: 100,
    		ExcessFolders:  50000,
    		IdleMode:       0, // Default is on
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. tests/update_belongs_to_test.go

    package tests_test
    
    import (
    	"testing"
    
    	"gorm.io/gorm"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestUpdateBelongsTo(t *testing.T) {
    	user := *GetUser("update-belongs-to", Config{})
    
    	if err := DB.Create(&user).Error; err != nil {
    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	user.Company = Company{Name: "company-belongs-to-association"}
    	user.Manager = &User{Name: "manager-belongs-to-association"}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jul 14 06:55:54 UTC 2022
    - 1.6K bytes
    - Viewed (0)
Back to top