Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 71 for calling (0.18 sec)

  1. cmd/object_api_suite_test.go

    	data []byte
    }
    
    func (r *testOneByteReadNoEOF) Read(p []byte) (n int, err error) {
    	if r.eof {
    		return 0, io.EOF
    	}
    	n = copy(p, r.data)
    	r.eof = true
    	return n, nil
    }
    
    // Wrapper for calling testMakeBucket for both Erasure and FS.
    func TestMakeBucket(t *testing.T) {
    	ExecObjectLayerTest(t, testMakeBucket)
    }
    
    // Tests validate bucket creation.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 32.3K bytes
    - Viewed (0)
  2. internal/cachevalue/cache.go

    	// The returned value can no longer be modified once returned.
    	// Should be set before calling Get().
    	updateFn func() (T, error)
    
    	// ttl for a cached value.
    	ttl time.Duration
    
    	opts Opts
    
    	// Once can be used to initialize values for lazy initialization.
    	// Should be set before calling Get().
    	Once sync.Once
    
    	// Managed values.
    	valErr atomic.Pointer[struct {
    		v T
    		e error
    	}]
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Mar 01 16:00:42 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  3. cmd/signature-v4-utils_test.go

    	inputHeader.Set("X-Amz-Meta-Name", expectedMetaName)
    	// calling the function being tested.
    	errCode := checkMetaHeaders(signedHeadersMap, r)
    	if errCode != ErrNone {
    		t.Fatalf("Expected the APIErrorCode to be %d, but got %d", ErrNone, errCode)
    	}
    
    	// Add new metadata in inputHeader
    	inputHeader.Set("X-Amz-Meta-Clone", "fail")
    	// calling the function being tested.
    	errCode = checkMetaHeaders(signedHeadersMap, r)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  4. src/bufio/bufio.go

    func (b *Reader) Size() int { return len(b.buf) }
    
    // Reset discards any buffered data, resets all state, and switches
    // the buffered reader to read from r.
    // Calling Reset on the zero value of [Reader] initializes the internal buffer
    // to the default size.
    // Calling b.Reset(b) (that is, resetting a [Reader] to itself) does nothing.
    func (b *Reader) Reset(r io.Reader) {
    	// If a Reader r is passed to NewReader, NewReader will return r.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  5. cmd/bucket-policy-handlers_test.go

    				condition.NewFunctions(),
    			),
    		},
    	}
    }
    
    // Wrapper for calling Create Bucket and ensure we get one and only one success.
    func TestCreateBucket(t *testing.T) {
    	ExecObjectLayerAPITest(t, testCreateBucket, []string{"MakeBucket"})
    }
    
    // testCreateBucket - Test for calling Create Bucket and ensure we get one and only one success.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  6. internal/dsync/drwmutex.go

    		refreshInterval:      drwMutexRefreshInterval,
    		lockRetryMinInterval: lockRetryMinInterval,
    	}
    }
    
    // Lock holds a write lock on dm.
    //
    // If the lock is already in use, the calling go routine
    // blocks until the mutex is available.
    func (dm *DRWMutex) Lock(id, source string) {
    	isReadLock := false
    	dm.lockBlocking(context.Background(), nil, id, source, isReadLock, Options{
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  7. cmd/tier-journal.go

    		jd.file = nil // reset to allow subsequent reopen when file/disk is available.
    	}
    	return err
    }
    
    // Close closes the active journal and renames it to read-only for pending
    // deletes processing. Note: calling Close on a closed journal is a no-op.
    func (jd *tierDiskJournal) Close() error {
    	jd.Lock()
    	defer jd.Unlock()
    	if jd.file == nil { // already closed
    		return nil
    	}
    
    	var (
    		f   *os.File
    Go
    - Registered: Sun Feb 25 19:28:16 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  8. internal/hash/reader.go

    // MD5 checksum of everything it reads as ETag.
    //
    // It also computes the SHA256 checksum of everything it reads
    // if sha256Hex is not the empty string.
    //
    // If size resp. actualSize is unknown at the time of calling
    // NewReader then it should be set to -1.
    // When size is >=0 it *must* match the amount of data provided by r.
    //
    // NewReader may try merge the given size, MD5 and SHA256 values
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.8K bytes
    - Viewed (0)
  9. internal/logger/target/kafka/kafka_scram_client_contrib.go

    // very first conversation step) and attempts to move the authentication
    // conversation forward.  It returns a string to be sent to the server or an
    // error if the server message is invalid.  Calling Step after a conversation
    // completes is also an error.
    func (x *XDGSCRAMClient) Step(challenge string) (response string, err error) {
    	response, err = x.ClientConversation.Step(challenge)
    	return
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Nov 09 04:04:01 GMT 2023
    - 3.3K bytes
    - Viewed (1)
  10. cni/pkg/nodeagent/net.go

    	err = addPodToHostNSIpset(pod, podIPs, &s.hostsideProbeIPSet)
    	if err != nil {
    		log.Errorf("failed to add pod to ipset: %s/%s %v", pod.Namespace, pod.Name, err)
    		return err
    	}
    
    	log.Debug("calling CreateInpodRules")
    	if err := s.netnsRunner(openNetns, func() error {
    		return s.iptablesConfigurator.CreateInpodRules(&HostProbeSNATIP)
    	}); err != nil {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.1K bytes
    - Viewed (1)
Back to top