Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for addData (0.18 sec)

  1. cmd/config-encrypted_test.go

    	for _, test := range tests {
    		t.Run("", func(t *testing.T) {
    			ddata, err := madmin.DecryptData(test.cred.String(), bytes.NewReader(test.edata))
    			if err != nil && test.success {
    				t.Errorf("Expected success, saw failure %v", err)
    			}
    			if err == nil && !test.success {
    				t.Error("Expected failure, saw success")
    			}
    			if test.success {
    				if !bytes.Equal(ddata, data) {
    					t.Errorf("Expected %s, got %s", string(data), string(ddata))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 20 00:53:08 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. cmd/postpolicyform_test.go

    		formValues.Set("X-Amz-Algorithm", tt.XAmzAlgorithm)
    		formValues.Set("X-Amz-Credential", tt.XAmzCredential)
    		if tt.Expired {
    			// Expired already.
    			pp.SetExpires(UTCNow().AddDate(0, 0, -10))
    		} else {
    			// Expires in 10 days.
    			pp.SetExpires(UTCNow().AddDate(0, 0, 10))
    		}
    
    		formValues.Set("Policy", base64.StdEncoding.EncodeToString([]byte(pp.String())))
    		formValues.Set("Success_action_status", tt.SuccessActionStatus)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 8.9K bytes
    - Viewed (0)
  3. src/time/genzabbrs.go

    // for location l.
    func getAbbrs(l *time.Location) (st, dt string) {
    	t := time.Date(time.Now().Year(), 0, 1, 0, 0, 0, 0, l)
    	abbr1, off1 := t.Zone()
    	for i := 0; i < 12; i++ {
    		t = t.AddDate(0, 1, 0)
    		abbr2, off2 := t.Zone()
    		if abbr1 != abbr2 {
    			if off2-off1 < 0 { // southern hemisphere
    				abbr1, abbr2 = abbr2, abbr1
    			}
    			return abbr1, abbr2
    		}
    	}
    	return abbr1, abbr1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. pkg/filewatcher/filewatcher.go

    func (fw *fileWatcher) Add(path string) error {
    	fw.mu.Lock()
    	defer fw.mu.Unlock()
    
    	ws, cleanedPath, _, err := fw.getWorker(path)
    	if err != nil {
    		return err
    	}
    
    	if err = ws.worker.addPath(cleanedPath); err == nil {
    		ws.count++
    	}
    
    	return err
    }
    
    // Stop watching a path
    func (fw *fileWatcher) Remove(path string) error {
    	fw.mu.Lock()
    	defer fw.mu.Unlock()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

        ).isEqualTo(10L)
        assertThat(
          Headers.Builder()
            .add("abc", "def")
            .add("ghi", "jkl")
            .build()
            .byteCount(),
        ).isEqualTo(20L)
      }
    
      @Test fun addDate() {
        val expected = Date(0L)
        val headers =
          Headers.Builder()
            .add("testDate", expected)
            .build()
        assertThat(headers["testDate"]).isEqualTo("Thu, 01 Jan 1970 00:00:00 GMT")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. platforms/software/version-control/src/main/java/org/gradle/vcs/git/internal/GitVersionControlSystem.java

                        if (submodule != null) {
                            Git submoduleGit = Git.wrap(submodule);
                            configureTransport(submoduleGit.fetch()).call();
                            git.submoduleUpdate().addPath(walker.getPath()).call();
                            submoduleGit.reset().setMode(ResetCommand.ResetType.HARD).call();
                            updateSubModules(submoduleGit);
                        }
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 31 14:54:52 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. pkg/filewatcher/worker.go

    func retireTracker(ft *fileTracker) {
    	close(ft.events)
    	close(ft.errors)
    	ft.events = nil
    	ft.errors = nil
    }
    
    func (wk *worker) terminate() {
    	wk.terminateCh <- true
    }
    
    func (wk *worker) addPath(path string) error {
    	wk.mu.Lock()
    
    	ft := wk.watchedFiles[path]
    	if ft != nil {
    		wk.mu.Unlock()
    		return fmt.Errorf("path %s is already being watched", path)
    	}
    
    	ft = &fileTracker{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 12 22:31:06 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. pkg/serviceaccount/legacy.go

    	}, nil
    }
    
    func (v *legacyValidator) patchSecretWithLastUsedDate(ctx context.Context, secret *v1.Secret) {
    	now := time.Now().UTC()
    	today := now.Format("2006-01-02")
    	tomorrow := now.AddDate(0, 0, 1).Format("2006-01-02")
    	lastUsed := secret.Labels[LastUsedLabelKey]
    	if lastUsed != today && lastUsed != tomorrow {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 08:32:23 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  9. src/go/internal/gccgoimporter/testdata/issue29198.gox

     func (d <type 26>) Minutes () <type -10>;
     func (d <type 26>) Hours () <type -10>;
    >;
     func (t <esc:0x12> <type 12>) Add (d <type 26>) <type 12>;
     func (t <esc:0x12> <type 12>) UTC () <type 12>;
     func (t <type 12>) AddDate (years <type -11>, months <type -11>, days <type -11>) <type 12>;
     func (t <esc:0x1> <type 12>) MarshalBinary () (? <type 27 [] <type -20>>, ? <type -19>);
     func (t <esc:0x1> <type 12>) Nanosecond () <type -11>;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 12 23:01:16 UTC 2018
    - 6.4K bytes
    - Viewed (0)
  10. src/go/internal/gccgoimporter/testdata/time.gox

     func (t <type 3>) Nanosecond () <type -11>;
     func (t <type 3>) YearDay () <type -11>;
     func (t <type 3>) Add (d <type 1>) <type 3>;
     func (t <type 3>) Sub (u <type 3>) <type 1>;
     func (t <type 3>) AddDate (years <type -11>, months <type -11>, days <type -11>) <type 3>;
     func (t <type 3>) .time.date (full <type -15>) (year <type -11>, month <type 18>, day <type -11>, yday <type -11>);
     func (t <type 3>) UTC () <type 3>;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 30 21:33:51 UTC 2021
    - 7.3K bytes
    - Viewed (0)
Back to top