Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 113 for mktime (0.32 sec)

  1. cmd/xl-storage.go

    		}
    	}
    	return err
    }
    
    // readsMetadata and returns disk mTime information for xl.meta
    func (s *xlStorage) readMetadataWithDMTime(ctx context.Context, itemPath string) ([]byte, time.Time, error) {
    	if contextCanceled(ctx) {
    		return nil, time.Time{}, ctx.Err()
    	}
    
    	if err := checkPathLength(itemPath); err != nil {
    		return nil, time.Time{}, err
    	}
    
    	f, err := OpenFile(itemPath, readMode, 0o666)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  2. cmd/bucket-lifecycle.go

    }
    
    // Expiry returns expiry of restored object and true if restore-object has completed.
    // Otherwise returns zero value of time.Time and false.
    func (r restoreObjStatus) Expiry() (time.Time, bool) {
    	if r.Ongoing() {
    		return time.Time{}, false
    	}
    	return r.expiry, true
    }
    
    // Ongoing returns true if restore-object is ongoing.
    func (r restoreObjStatus) Ongoing() bool {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  3. internal/disk/fdatasync_linux.go

    // unless that metadata is needed in order to allow a subsequent data retrieval
    // to  be  correctly  handled.   For example, changes to st_atime or st_mtime
    // (respectively, time of last access and time of last modification; see inode(7))
    // do not require flushing because they are not necessary for a subsequent data
    // read to be handled correctly. On the other hand, a change to the file size
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 29 23:40:28 GMT 2021
    - 1.8K bytes
    - Viewed (0)
  4. cmd/api-response.go

    // generates CopyObjectResponse from etag and lastModified time.
    func generateCopyObjectResponse(etag string, lastModified time.Time) CopyObjectResponse {
    	return CopyObjectResponse{
    		ETag:         "\"" + etag + "\"",
    		LastModified: amztime.ISO8601Format(lastModified.UTC()),
    	}
    }
    
    // generates CopyObjectPartResponse from etag and lastModified time.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  5. cni/test/install_cni.go

    ) {
    	wd := env.IstioSrc + "/cni/test"
    	testWorkRootDir := getEnv("TEST_WORK_ROOTDIR", "/tmp")
    
    	tempCNIConfDir := mktemp(testWorkRootDir, "cni-conf-", t)
    	defer rmDir(tempCNIConfDir, t)
    	tempCNIBinDir := mktemp(testWorkRootDir, "cni-bin-", t)
    	defer rmDir(tempCNIBinDir, t)
    	tempK8sSvcAcctDir := mktemp(testWorkRootDir, "kube-svcacct-", t)
    	defer rmDir(tempK8sSvcAcctDir, t)
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  6. cmd/erasure-server-pool-decom.go

    						}
    						return
    					}
    					if configRetriableErrors(err) {
    						decomLogIf(ctx, fmt.Errorf("Unable to resume decommission of pools %v: %w: retrying..", pools, err))
    						time.Sleep(time.Second + time.Duration(r.Float64()*float64(5*time.Second)))
    						continue
    					}
    					decomLogIf(ctx, fmt.Errorf("Unable to resume decommission of pool %v: %w", pools, err))
    					return
    				}
    			}
    		}()
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 41.5K bytes
    - Viewed (1)
  7. istioctl/pkg/util/configdump/route.go

    func (w *Wrapper) GetLastUpdatedDynamicRouteTime() (*time.Time, error) {
    	routeDump, err := w.GetRouteConfigDump()
    	if err != nil {
    		return nil, err
    	}
    	drc := routeDump.GetDynamicRouteConfigs()
    
    	lastUpdated := time.Unix(0, 0) // get the oldest possible timestamp
    	for i := range drc {
    		if drc[i].LastUpdated != nil {
    			drLastUpdated := drc[i].LastUpdated.AsTime()
    			if drLastUpdated.After(lastUpdated) {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Nov 03 08:41:32 GMT 2022
    - 3.2K bytes
    - Viewed (0)
  8. cmd/common-main.go

    	}
    
    	if currentReleaseTime.IsZero() {
    		return
    	}
    
    	_, lrTime, err := getLatestReleaseTime(u, 2*time.Second, mode)
    	if err != nil {
    		return
    	}
    
    	var older time.Duration
    	var downloadURL string
    	if lrTime.After(currentReleaseTime) {
    		older = lrTime.Sub(currentReleaseTime)
    		downloadURL = getDownloadURL(releaseTimeToReleaseTag(lrTime))
    	}
    
    	updateMsg := prepareUpdateMessage(downloadURL, older)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  9. cmd/tier.go

    	const tierCfgRefresh = 15 * time.Minute
    	r := rand.New(rand.NewSource(time.Now().UnixNano()))
    	randInterval := func() time.Duration {
    		return time.Duration(r.Float64() * 5 * float64(time.Second))
    	}
    
    	// To avoid all MinIO nodes reading the tier config object at the same
    	// time.
    	t := time.NewTimer(tierCfgRefresh + randInterval())
    	defer t.Stop()
    	for {
    		select {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  10. cmd/erasure-object.go

    		}
    	}
    
    	modTime = UTCNow() // We only preserve modTime if dstOpts.MTime is true.
    	// in all other cases mtime is latest.
    
    	fi.VersionID = versionID // set any new versionID we might have created
    	fi.ModTime = modTime     // set modTime for the new versionID
    	if !dstOpts.MTime.IsZero() {
    		modTime = dstOpts.MTime
    		fi.ModTime = dstOpts.MTime
    	}
    	// check inline before overwriting metadata.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
Back to top