Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for runit (0.28 sec)

  1. internal/rest/client.go

    func exponentialBackoffWait(r *rand.Rand, unit, cap time.Duration) func(uint) time.Duration {
    	if unit > time.Hour {
    		// Protect against integer overflow
    		panic("unit cannot exceed one hour")
    	}
    	return func(attempt uint) time.Duration {
    		if attempt > 16 {
    			// Protect against integer overflow
    			attempt = 16
    		}
    		// sleep = random_between(unit, min(cap, base * 2 ** attempt))
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14K bytes
    - Viewed (0)
  2. operator/cmd/mesh/operator-init.go

    )
    
    type operatorInitArgs struct {
    	// inFilenames is the path to the input IstioOperator CR.
    	inFilename string
    
    	// common is shared operator args
    	common operatorCommonArgs
    }
    
    // kubeClients is a unit test override variable for client interfaces creation.
    var kubeClients = KubernetesClients
    
    func addOperatorInitFlags(cmd *cobra.Command, args *operatorInitArgs) {
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  3. cmd/object-api-listobjects_test.go

    func TestListObjects(t *testing.T) {
    	ExecObjectLayerTest(t, testListObjects)
    }
    
    // Unit test for ListObjects on VersionedBucket.
    func testListObjectsOnVersionedBuckets(obj ObjectLayer, instanceType string, t1 TestErrHandler) {
    	_testListObjects(obj, instanceType, t1, true)
    }
    
    // Unit test for ListObjects.
    func testListObjects(obj ObjectLayer, instanceType string, t1 TestErrHandler) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  4. cni/pkg/iptables/iptables.go

    	// and kubelet (skippable) traffic would have the same srcip once they got to the pod, and would be indistinguishable.
    	//
    	// Note that SortedList is used here because the istio sets class has no order guarantees,
    	// and our unit tests will flake if rules have a nondeterministic ordering.
    	// CLI: -t mangle -A ISTIO_PRERT -s 169.254.7.127 -p tcp -m tcp --dport <PROBEPORT> -j ACCEPT
    	//
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  5. cmd/api-response.go

    		return httpsScheme
    	}
    	return httpScheme
    }
    
    // getObjectLocation gets the fully qualified URL of an object.
    func getObjectLocation(r *http.Request, domains []string, bucket, object string) string {
    	// unit tests do not have host set.
    	if r.Host == "" {
    		return path.Clean(r.URL.Path)
    	}
    	proto := handlers.GetSourceScheme(r)
    	if proto == "" {
    		proto = getURLScheme(globalIsTLS)
    	}
    	u := &url.URL{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  6. internal/dsync/utils.go

    package dsync
    
    import (
    	"math/rand"
    	"time"
    )
    
    func backoffWait(min, unit, cap time.Duration) func(*rand.Rand, uint) time.Duration {
    	if unit > time.Hour {
    		// Protect against integer overflow
    		panic("unit cannot exceed one hour")
    	}
    	return func(r *rand.Rand, attempt uint) time.Duration {
    		sleep := min
    		sleep += unit * time.Duration(attempt)
    		if sleep > cap {
    			sleep = cap
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat May 13 15:42:21 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  7. internal/s3select/parquet/reader.go

    				// Only support UTC normalized timestamps.
    				if ts.IsAdjustedToUTC {
    					switch {
    					case ts.Unit.IsSetNANOS():
    						duration = time.Duration(val) * time.Nanosecond
    					case ts.Unit.IsSetMILLIS():
    						duration = time.Duration(val) * time.Millisecond
    					case ts.Unit.IsSetMICROS():
    						duration = time.Duration(val) * time.Microsecond
    					default:
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 14 13:54:47 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  8. cni/pkg/plugin/cnieventclient.go

    	"fmt"
    	"net"
    	"net/http"
    	"time"
    
    	"github.com/containernetworking/cni/pkg/skel"
    	cniv1 "github.com/containernetworking/cni/pkg/types/100"
    
    	"istio.io/istio/cni/pkg/nodeagent"
    )
    
    // newCNIClient is a unit test override variable for mocking.
    var newCNIClient = buildClient
    
    // An udsCore write entries to an UDS server with HTTP Post. Log messages will be encoded into a JSON array.
    type CNIEventClient struct {
    	client *http.Client
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  9. cmd/object-api-deleteobject_test.go

    	"strings"
    	"testing"
    )
    
    // Wrapper for calling DeleteObject tests for both Erasure multiple disks and single node setup.
    func TestDeleteObject(t *testing.T) {
    	ExecObjectLayerTest(t, testDeleteObject)
    }
    
    // Unit test for DeleteObject in general.
    func testDeleteObject(obj ObjectLayer, instanceType string, t TestErrHandler) {
    	type objectUpload struct {
    		name    string
    		content string
    	}
    
    	testCases := []struct {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Dec 23 15:46:00 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  10. cmd/encryption-v1_test.go

    	}{
    		{s1, mkMPObj(s1)},
    		{s2, mkMPObj(s2)},
    		{s3, mkMPObj(s3)},
    	}
    
    	// This function is a reference (re-)implementation of
    	// decrypted range computation, written solely for the purpose
    	// of the unit tests.
    	//
    	// `s` gives the decrypted part sizes, and the other
    	// parameters describe the desired read segment. When
    	// `isFromEnd` is true, `skipLen` argument is ignored.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Sep 24 04:17:08 GMT 2022
    - 19.9K bytes
    - Viewed (0)
Back to top