Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 106 for hasPrefix (0.1 sec)

  1. cmd/batch-rotate.go

    }
    
    // Validate validates input key rotation encryption options.
    func (e BatchJobKeyRotateEncryption) Validate() error {
    	if e.Type != sses3 && e.Type != ssekms {
    		return errInvalidArgument
    	}
    	spaces := strings.HasPrefix(e.Key, " ") || strings.HasSuffix(e.Key, " ")
    	if e.Type == ssekms && spaces {
    		return crypto.ErrInvalidEncryptionKeyID
    	}
    
    	if e.Type == ssekms && GlobalKMS != nil {
    		ctx := kms.Context{}
    		if e.Context != "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. cmd/endpoint_test.go

    		var URLs []*url.URL
    		var localFlags []bool
    		for _, arg := range args {
    			u, _ := url.Parse(arg)
    			URLs = append(URLs, u)
    			localFlags = append(localFlags, strings.HasPrefix(arg, prefix))
    		}
    
    		return URLs, localFlags
    	}
    
    	case1Endpoint1 := "http://" + nonLoopBackIP + "/d1"
    	case1Endpoint2 := "http://" + nonLoopBackIP + "/d2"
    	args := []string{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jan 13 07:53:03 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  3. cmd/batch-handlers.go

    	listResult := madmin.ListBatchJobsResult{}
    	for result := range resultCh {
    		if result.Err != nil {
    			writeErrorResponseJSON(ctx, w, toAPIError(ctx, result.Err), r.URL)
    			return
    		}
    		if strings.HasPrefix(result.Item.Name, batchJobReportsPrefix+slashSeparator) {
    			continue
    		}
    		req := &BatchJobRequest{}
    		if err := req.load(ctx, objectAPI, result.Item.Name); err != nil {
    			if !errors.Is(err, errNoSuchJob) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  4. cmd/metacache-set.go

    				continue
    			}
    			if o.Marker != "" && entry.name < o.Marker {
    				continue
    			}
    			if !strings.HasPrefix(entry.name, o.Prefix) {
    				continue
    			}
    			if !o.Recursive && !entry.isInDir(o.Prefix, o.Separator) {
    				continue
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  5. src/cmd/cgo/ast.go

    func (f *File) saveExport(x interface{}, context astContext) {
    	n, ok := x.(*ast.FuncDecl)
    	if !ok {
    		return
    	}
    
    	if n.Doc == nil {
    		return
    	}
    	for _, c := range n.Doc.List {
    		if !strings.HasPrefix(c.Text, "//export ") {
    			continue
    		}
    
    		name := strings.TrimSpace(c.Text[9:])
    		if name == "" {
    			error_(c.Pos(), "export missing name")
    		}
    
    		if name != n.Name.Name {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Oct 14 15:47:06 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  6. cmd/metrics-v3-types.go

    	if descendant == arg {
    		return true
    	}
    	if len(arg) >= len(descendant) {
    		return false
    	}
    	if !strings.HasSuffix(arg, SlashSeparator) {
    		arg += SlashSeparator
    	}
    	return strings.HasPrefix(descendant, arg)
    }
    
    // MetricType - represents the type of a metric.
    type MetricType int
    
    const (
    	// CounterMT - represents a counter metric.
    	CounterMT MetricType = iota
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 30 22:28:46 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  7. tests/migrate_test.go

    		Int8 Smallint
    	}
    
    	tracer := Tracer{
    		Logger: DB.Config.Logger,
    		Test: func(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error) {
    			sql, _ := fc()
    			if strings.HasPrefix(sql, "ALTER TABLE \"migrate_ints\" ALTER COLUMN \"int8\" TYPE smallint") {
    				t.Fatalf("shouldn't execute ALTER COLUMN TYPE if such type is already existed in DB schema: sql: %s",
    					sql)
    			}
    		},
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
  8. cmd/erasure-metadata.go

    			d.ReplicationStatusInternal = v
    			d.Targets = replicationStatusesMap(v)
    		case equals(k, VersionPurgeStatusKey):
    			d.VersionPurgeStatusInternal = v
    			d.PurgeTargets = versionPurgeStatusesMap(v)
    		case strings.HasPrefix(k, ReservedMetadataPrefixLower+ReplicationReset):
    			arn := strings.TrimPrefix(k, fmt.Sprintf("%s-", ReservedMetadataPrefixLower+ReplicationReset))
    			if d.ResetStatusesMap == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  9. cmd/bucket-replication-utils.go

    	}
    	rs.Targets = replicationStatusesMap(o.ReplicationStatusInternal)
    	rs.PurgeTargets = versionPurgeStatusesMap(o.VersionPurgeStatusInternal)
    	for k, v := range o.UserDefined {
    		if strings.HasPrefix(k, ReservedMetadataPrefixLower+ReplicationReset) {
    			arn := strings.TrimPrefix(k, fmt.Sprintf("%s-", ReservedMetadataPrefixLower+ReplicationReset))
    			rs.ResetStatusesMap[arn] = v
    		}
    	}
    	return rs
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/arch/arch.go

    		return archRISCV64(shared)
    	case "s390x":
    		return archS390x()
    	case "wasm":
    		return archWasm()
    	}
    	return nil
    }
    
    func jumpX86(word string) bool {
    	return word[0] == 'J' || word == "CALL" || strings.HasPrefix(word, "LOOP") || word == "XBEGIN"
    }
    
    func jumpRISCV(word string) bool {
    	switch word {
    	case "BEQ", "BEQZ", "BGE", "BGEU", "BGEZ", "BGT", "BGTU", "BGTZ", "BLE", "BLEU", "BLEZ",
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 24 12:32:56 UTC 2024
    - 21.5K bytes
    - Viewed (0)
Back to top