Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for osAction (0.16 sec)

  1. cmd/os-instrumented.go

    		Path:      path,
    		Error:     errStr,
    	}
    }
    
    func updateOSMetrics(s osMetric, paths ...string) func(err error) {
    	if globalTrace.NumSubscribers(madmin.TraceOS) == 0 {
    		osAction := globalOSMetrics.time(s)
    		return func(err error) { osAction() }
    	}
    
    	startTime := time.Now()
    	return func(err error) {
    		duration := time.Since(startTime)
    		globalOSMetrics.incTime(s, duration)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 15 01:09:38 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  2. cmd/sftp-server.go

    	chacha20Poly1305ID,
    	"aes128-ctr", "aes192-ctr", "aes256-ctr",
    }
    
    // supportedMACs specifies a default set of MAC algorithms in preference order.
    // This is based on RFC 4253, section 6.4, but with hmac-md5 variants removed
    // because they have reached the end of their useful life.
    // https://cs.opensource.google/go/x/crypto/+/refs/tags/v0.22.0:ssh/common.go;l=85
    var supportedMACs = []string{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  3. cmd/api-router.go

    }
    
    // objectAPIHandler implements and provides http handlers for S3 API.
    type objectAPIHandlers struct {
    	ObjectAPI func() ObjectLayer
    }
    
    // getHost tries its best to return the request host.
    // According to section 14.23 of RFC 2616 the Host header
    // can include the port number if the default value of 80 is not used.
    func getHost(r *http.Request) string {
    	if r.URL.IsAbs() {
    		return r.URL.Host
    	}
    	return r.Host
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  4. cni/pkg/install/cniconfig.go

    		return "", err
    	}
    
    	if cfg.chainedCNIPlugin {
    		if !file.Exists(cniConfigFilepath) {
    			return "", fmt.Errorf("CNI config file %s removed during configuration", cniConfigFilepath)
    		}
    		// This section overwrites an existing plugins list entry for istio-cni
    		existingCNIConfig, err := os.ReadFile(cniConfigFilepath)
    		if err != nil {
    			return "", err
    		}
    		cniConfig, err = insertCNIConfig(cniConfig, existingCNIConfig)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  5. internal/rest/client.go

    // return true if the string includes a port.
    func hasPort(s string) bool { return strings.LastIndex(s, ":") > strings.LastIndex(s, "]") }
    
    // removeEmptyPort strips the empty port in ":port" to ""
    // as mandated by RFC 3986 Section 6.2.3.
    func removeEmptyPort(host string) string {
    	if hasPort(host) {
    		return strings.TrimSuffix(host, ":")
    	}
    	return host
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  6. cmd/storage-rest-server.go

    	}
    
    	rf, err := s.getStorage().ReadXL(context.Background(), volume, filePath, readData)
    	if err != nil {
    		return nil, grid.NewRemoteErr(err)
    	}
    
    	return &rf, nil
    }
    
    // ReadFileHandler - read section of a file.
    func (s *storageRESTServer) ReadFileHandler(w http.ResponseWriter, r *http.Request) {
    	if !s.IsValid(w, r) {
    		return
    	}
    	volume := r.Form.Get(storageRESTVolume)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  7. cmd/storage-rest-client.go

    	respBody, err := client.call(ctx, storageRESTMethodReadFileStream, values, nil, -1)
    	if err != nil {
    		return nil, err
    	}
    	return respBody, nil
    }
    
    // ReadFile - reads section of a file.
    func (client *storageRESTClient) ReadFile(ctx context.Context, volume string, path string, offset int64, buf []byte, verifier *BitrotVerifier) (int64, error) {
    	values := make(url.Values)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  8. cmd/common-main.go

    		os.Setenv("CONSOLE_STS_DURATION", valueSession)
    	}
    
    	os.Setenv("CONSOLE_MINIO_REGION", globalSite.Region)
    	os.Setenv("CONSOLE_CERT_PASSWD", env.Get("MINIO_CERT_PASSWD", ""))
    
    	// This section sets Browser (console) stored config
    	if valueSCP := globalBrowserConfig.GetCSPolicy(); valueSCP != "" {
    		os.Setenv("CONSOLE_SECURE_CONTENT_SECURITY_POLICY", valueSCP)
    	}
    
    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. src/builtin/builtin.go

    //	         if v is nil, len(v) is zero.
    //
    // For some arguments, such as a string literal or a simple array expression, the
    // result can be a constant. See the Go language specification's "Length and
    // capacity" section for details.
    func len(v Type) int
    
    // The cap built-in function returns the capacity of v, according to its type:
    //
    //	Array: the number of elements in v (same as len(v)).
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  10. istioctl/cmd/root.go

    	rootCmd.AddCommand(proxyconfig.ClustersCommand(ctx))
    
    	rootCmd.AddCommand(collateral.CobraCommand(rootCmd, collateral.Metadata{
    		Title:   "Istio Control",
    		Section: "istioctl CLI",
    		Manual:  "Istio Control",
    	}))
    
    	validateCmd := validate.NewValidateCommand(ctx)
    	hideInheritedFlags(validateCmd, "kubeconfig")
    	rootCmd.AddCommand(validateCmd)
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 11 20:51:30 GMT 2024
    - 10K bytes
    - Viewed (0)
Back to top