Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 193 for clone (0.39 sec)

  1. cmd/data-usage-cache.go

    	return hashPath(d.Info.Name)
    }
    
    // clone returns a copy of the cache with no references to the existing.
    func (d *dataUsageCache) clone() dataUsageCache {
    	clone := dataUsageCache{
    		Info:  d.Info,
    		Cache: make(map[string]dataUsageEntry, len(d.Cache)),
    	}
    	for k, v := range d.Cache {
    		clone.Cache[k] = v.clone()
    	}
    	return clone
    }
    
    // merge root of other into d.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  2. cmd/format-erasure_test.go

    		}
    	}
    
    	format := newFormatErasureV3(1, 8)
    	format.Erasure.DistributionAlgo = formatErasureVersionV2DistributionAlgoV1
    	formats := make([]*formatErasureV3, 8)
    
    	for j := 0; j < 8; j++ {
    		newFormat := format.Clone()
    		newFormat.Erasure.This = format.Erasure.Sets[0][j]
    		formats[j] = newFormat
    	}
    
    	formats[1] = nil
    	expThis := formats[2].Erasure.This
    	formats[2].Erasure.This = ""
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelResolver.java

        /**
         * Clones this resolver for usage in a forked resolution process. In general, implementors need not provide a deep
         * clone. The only requirement is that invocations of {@link #addRepository(Session, Repository)} on the clone do not affect
         * the state of the original resolver and vice versa.
         *
         * @return The cloned resolver, never {@code null}.
         */
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6K bytes
    - Viewed (0)
  4. cmd/admin-handlers-idp-config.go

    		return
    	}
    
    	var cfgList []madmin.IDPListItem
    	var err error
    	switch idpCfgType {
    	case madmin.OpenidIDPCfg:
    		cfg := globalServerConfig.Clone()
    		cfgList, err = globalIAMSys.OpenIDConfig.GetConfigList(cfg)
    	case madmin.LDAPIDPCfg:
    		cfg := globalServerConfig.Clone()
    		cfgList, err = globalIAMSys.LDAPConfig.GetConfigList(cfg)
    
    	default:
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrNotImplemented), r.URL)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  5. .github/workflows/contributor-pr.yml

      GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true
    
    permissions:
      contents: read
    
    jobs:
      build:
        name: "Compile All"
        runs-on: ubuntu-latest
        steps:
          - name: git clone
            uses: actions/checkout@v4
          - id: setup-matrix
            run: echo "matrix=$(jq -c -f .github/workflows/extract-unit-test-split.jq .teamcity/subprojects.json)" >> $GITHUB_OUTPUT
          - name: setup java
    Others
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Apr 25 08:50:27 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  6. internal/config/identity/ldap/config.go

    }
    
    // Enabled returns if LDAP is enabled.
    func (l *Config) Enabled() bool {
    	return l.LDAP.Enabled
    }
    
    // Clone returns a cloned copy of LDAP config.
    func (l *Config) Clone() Config {
    	if l == nil {
    		return Config{}
    	}
    	cfg := Config{
    		LDAP:              l.LDAP.Clone(),
    		stsExpiryDuration: l.stsExpiryDuration,
    	}
    	return cfg
    }
    
    // LDAP keys and envs.
    const (
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 7.9K bytes
    - Viewed (2)
  7. api/maven-api-metadata/src/main/mdo/metadata.mdo

      <defaults>
        <default>
          <key>package</key>
          <value>org.apache.maven.artifact.repository.metadata</value>
        </default>
      </defaults>
      <classes>
        <class rootElement="true" xml.tagName="metadata" java.clone="deep">
          <name>Metadata</name>
          <version>1.0.0+</version>
          <fields>
            <field xml.attribute="true" xml.tagName="modelVersion">
              <name>modelVersion</name>
              <version>1.1.0+</version>
    XML
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 11 14:06:34 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/api/services/model/ModelInterpolator.java

    public interface ModelInterpolator {
    
        /**
         * Interpolates expressions in the specified model. Note that implementations are free to either interpolate the
         * provided model directly or to create a clone of the model and interpolate the clone. Callers should always use
         * the returned model and must not rely on the input model being updated.
         *
         * @param model The model to interpolate, must not be {@code null}.
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  9. internal/config/heal/heal.go

    //
    // >0 interval duration between cycles
    func (opts Config) BitrotScanCycle() (d time.Duration) {
    	configMutex.RLock()
    	defer configMutex.RUnlock()
    	return opts.cache.bitrotCycle
    }
    
    // Clone safely the heal configuration
    func (opts Config) Clone() (int, time.Duration, string) {
    	configMutex.RLock()
    	defer configMutex.RUnlock()
    	return opts.IOCount, opts.Sleep, opts.Bitrot
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool-decom.go

    	Decommission *PoolDecommissionInfo `json:"decommissionInfo,omitempty" msg:"dec"`
    }
    
    // Clone returns a copy of PoolStatus
    func (ps PoolStatus) Clone() PoolStatus {
    	return PoolStatus{
    		ID:           ps.ID,
    		CmdLine:      ps.CmdLine,
    		LastUpdate:   ps.LastUpdate,
    		Decommission: ps.Decommission.Clone(),
    	}
    }
    
    //go:generate msgp -file $GOFILE -unexported
    type poolMeta struct {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.3K bytes
    - Viewed (1)
Back to top