Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 7,021 for if (0.16 sec)

  1. internal/config/notify/parse.go

    	if !ok {
    		tgts = make(map[string]bool)
    	}
    	for _, target := range targetList {
    		if tgts[target.ID().ID] {
    			// When target set should be online
    			yes, err := target.IsActive()
    			if err == nil && !yes {
    				err = ErrTargetsOffline
    			}
    			if err != nil {
    				return fmt.Errorf("error (%s): %w", target.ID(), err)
    			}
    		} else {
    			// Just for call init.
    Go
    - Registered: 2024-04-21 19:28
    - Last Modified: 2024-04-04 12:04
    - 46.4K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool-decom_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteTime(z.LastUpdate)
    	if err != nil {
    		err = msgp.WrapError(err, "LastUpdate")
    		return
    	}
    	// write "dec"
    	err = en.Append(0xa3, 0x64, 0x65, 0x63)
    	if err != nil {
    		return
    	}
    	if z.Decommission == nil {
    		err = en.WriteNil()
    		if err != nil {
    			return
    		}
    	} else {
    		err = z.Decommission.EncodeMsg(en)
    		if err != nil {
    Go
    - Registered: 2024-04-21 19:28
    - Last Modified: 2022-07-04 21:02
    - 26.7K bytes
    - Viewed (0)
  3. internal/config/cache/remote_gen.go

    		case "IfMatch":
    			z.IfMatch, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "IfMatch")
    				return
    			}
    		case "IfNoneMatch":
    			z.IfNoneMatch, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "IfNoneMatch")
    				return
    			}
    		case "IfModifiedSince":
    			if dc.IsNil() {
    				err = dc.ReadNil()
    				if err != nil {
    					err = msgp.WrapError(err, "IfModifiedSince")
    					return
    Go
    - Registered: 2024-04-21 19:28
    - Last Modified: 2023-11-22 21:46
    - 18.9K bytes
    - Viewed (0)
  4. callbacks/update.go

    	return func(db *gorm.DB) {
    		if db.Error != nil {
    			return
    		}
    
    		if db.Statement.Schema != nil {
    			for _, c := range db.Statement.Schema.UpdateClauses {
    				db.Statement.AddClause(c)
    			}
    		}
    
    		if db.Statement.SQL.Len() == 0 {
    			db.Statement.SQL.Grow(180)
    			db.Statement.AddClauseIfNotExists(clause.Update{})
    			if _, ok := db.Statement.Clauses["SET"]; !ok {
    Go
    - Registered: 2024-04-21 09:35
    - Last Modified: 2024-03-18 05:44
    - 9.4K bytes
    - Viewed (1)
  5. cmd/endpoint.go

    		for _, endpoint := range ep.Endpoints {
    			if endpoint.Type() != URLEndpointType {
    				continue
    			}
    			if endpoint.IsLocal && endpoint.Host != "" {
    				peerSet.Add(endpoint.Host)
    			}
    		}
    	}
    	if peerSet.IsEmpty() {
    		// Local peer can be empty in FS or Erasure coded mode.
    		// If so, return globalMinioHost + globalMinioPort value.
    		if host != "" {
    			return net.JoinHostPort(host, port)
    		}
    Go
    - Registered: 2024-04-21 19:28
    - Last Modified: 2024-04-21 11:43
    - 34.1K bytes
    - Viewed (0)
  6. cmd/batch-rotate_gen.go

    	// write "Type"
    	err = en.Append(0x83, 0xa4, 0x54, 0x79, 0x70, 0x65)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(string(z.Type))
    	if err != nil {
    		err = msgp.WrapError(err, "Type")
    		return
    	}
    	// write "Key"
    	err = en.Append(0xa3, 0x4b, 0x65, 0x79)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.Key)
    	if err != nil {
    		err = msgp.WrapError(err, "Key")
    		return
    	}
    	// write "Context"
    Go
    - Registered: 2024-04-21 19:28
    - Last Modified: 2023-12-02 10:51
    - 27.1K bytes
    - Viewed (0)
  7. cmd/xl-storage-format-v2.go

    		var version xlMetaV2Version
    		if _, err := version.unmarshalV(x.metaV, ver.meta); err != nil {
    			return fi, err
    		}
    		if fi, err = version.ToFileInfo(volume, path, allParts); err != nil {
    			return fi, err
    		}
    		fi.IsLatest = isLatest
    		if succModTime != 0 {
    			fi.SuccessorModTime = time.Unix(0, succModTime)
    		}
    	}
    	if !found {
    		if versionID == "" {
    			if inclFreeVers && nonFreeVersions == 0 {
    Go
    - Registered: 2024-04-21 19:28
    - Last Modified: 2024-04-19 16:43
    - 63.6K bytes
    - Viewed (1)
  8. statement.go

    			write(v.Raw, v.Name)
    		}
    
    		if v.Alias != "" {
    			writer.WriteByte(' ')
    			write(v.Raw, v.Alias)
    		}
    	case clause.Column:
    		if v.Table != "" {
    			if v.Table == clause.CurrentTable {
    				write(v.Raw, stmt.Table)
    			} else {
    				write(v.Raw, v.Table)
    			}
    			writer.WriteByte('.')
    		}
    
    		if v.Name == clause.PrimaryKey {
    			if stmt.Schema == nil {
    				stmt.DB.AddError(ErrModelValueRequired)
    Go
    - Registered: 2024-04-21 09:35
    - Last Modified: 2024-01-12 08:42
    - 19.8K bytes
    - Viewed (0)
  9. cmd/admin-handlers-pools.go

    	if byID {
    		if i, err := strconv.Atoi(v); err == nil && i >= 0 && i < len(globalEndpoints) {
    			idx = i
    		}
    	} else {
    		idx = globalEndpoints.GetPoolIdx(v)
    	}
    
    	if idx == -1 {
    		// We didn't find any matching pools, invalid input
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errInvalidArgument), r.URL)
    		return
    	}
    
    	if !proxyDecommissionRequest(ctx, globalEndpoints[idx].Endpoints[0], w, r) {
    Go
    - Registered: 2024-04-21 19:28
    - Last Modified: 2024-04-04 12:04
    - 10.9K bytes
    - Viewed (0)
  10. internal/bucket/replication/replication.go

    		if _, ok := targetMap[r.Destination.Bucket]; !ok {
    			targetMap[r.Destination.Bucket] = struct{}{}
    		}
    		if err := r.Validate(bucket, sameTarget); err != nil {
    			return err
    		}
    		if _, ok := priorityMap[strconv.Itoa(r.Priority)]; ok {
    			return errReplicationUniquePriority
    		}
    		priorityMap[strconv.Itoa(r.Priority)] = struct{}{}
    
    		if r.Destination.LegacyArn() {
    			legacyArn = true
    		}
    Go
    - Registered: 2024-04-21 19:28
    - Last Modified: 2024-03-28 17:44
    - 8.9K bytes
    - Viewed (0)
Back to top