Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for os (0.45 sec)

  1. internal/logger/logrotate.go

    			return nil, fmt.Errorf("Failed to create log file: %w", err)
    		}
    	}
    
    	go w.listen()
    
    	return w, nil
    }
    
    func newFile(path string) (*os.File, error) {
    	return os.OpenFile(path, os.O_WRONLY|os.O_TRUNC|os.O_CREATE|os.O_SYNC, 0o666)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 11:38:40 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. cmd/common-main.go

    		isprel := globalBrowserConfig.IsHSTSPreload()
    		os.Setenv("CONSOLE_SECURE_STS_SECONDS", strconv.Itoa(hstsSeconds))
    		os.Setenv("CONSOLE_SECURE_STS_INCLUDE_SUB_DOMAINS", isubdom)
    		os.Setenv("CONSOLE_SECURE_STS_PRELOAD", isprel)
    	}
    
    	if valueRefer := globalBrowserConfig.GetReferPolicy(); valueRefer != "" {
    		os.Setenv("CONSOLE_SECURE_REFERRER_POLICY", valueRefer)
    	}
    
    	globalSubnetConfig.ApplyEnv()
    }
    
    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)
  3. cmd/main.go

    		}
    
    		// Override the logger os.Exit()
    		logger.ExitFunc = freeze
    
    		defer func() {
    			if err := recover(); err != nil {
    				fmt.Println("panic:", err)
    				fmt.Println("")
    				fmt.Println(string(debug.Stack()))
    			}
    			freeze(-1)
    		}()
    	}
    
    	// Run the app - exit on error.
    	if err := newApp(appName).Run(args); err != nil {
    		os.Exit(1) //nolint:gocritic
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  4. docs/pt/docs/index.md

    * Clique no botão "Try it out", ele permitirá que você preencha os parâmetros e interaja diretamente com a API:
    
    ![Swagger UI interaction](https://fastapi.tiangolo.com/img/index/index-04-swagger-03.png)
    
    * Então clique no botão "Execute", a interface do usuário irá se comunicar com a API, enviar os parâmetros, pegar os resultados e mostrá-los na tela:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  5. cni/cmd/istio-cni/main.go

    package main
    
    import (
    	"fmt"
    	"os"
    
    	"github.com/containernetworking/cni/pkg/skel"
    	"github.com/containernetworking/cni/pkg/version"
    
    	"istio.io/istio/cni/pkg/plugin"
    	"istio.io/istio/pkg/log"
    	istioversion "istio.io/istio/pkg/version"
    )
    
    func main() {
    	if err := runPlugin(); err != nil {
    		os.Exit(1)
    	}
    }
    
    func runPlugin() error {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 13:56:46 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  6. cmd/build-constants.go

    	CopyrightYear = "0000"
    
    	// MinioReleaseTagTimeLayout - release tag time layout.
    	MinioReleaseTagTimeLayout = "2006-01-02T15-04-05Z"
    
    	// MinioOSARCH - OS and ARCH.
    	minioOSARCH = runtime.GOOS + "-" + runtime.GOARCH
    
    	// MinioReleaseBaseURL - release url without os and arch.
    	MinioReleaseBaseURL = "https://dl.min.io/server/minio/release/"
    
    	// MinioReleaseURL - release URL.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  7. cmd/signals.go

    		}
    
    		// If global profiler is set stop before we exit.
    		globalProfilerMu.Lock()
    		defer globalProfilerMu.Unlock()
    		for _, p := range globalProfiler {
    			p.Stop()
    		}
    
    		if success {
    			os.Exit(0)
    		}
    
    		os.Exit(1)
    	}
    
    	stopProcess := func() bool {
    		// send signal to various go-routines that they need to quit.
    		cancelGlobalContext()
    
    		if httpServer := newHTTPServerFn(); httpServer != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  8. cmd/xl-storage.go

    	if err != nil {
    		return err
    	}
    
    	filePath := pathJoin(volumeDir, path)
    	if err = checkPathLength(filePath); err != nil {
    		return err
    	}
    
    	flags := os.O_CREATE | os.O_WRONLY | os.O_TRUNC
    
    	var w *os.File
    	if sync {
    		// Perform DirectIO along with fdatasync for larger xl.meta, mostly when
    		// xl.meta has "inlined data" we prefer writing O_DIRECT and then doing
    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)
  9. pdm_build.py

    import os
    from typing import Any, Dict, List
    
    from pdm.backend.hooks import Context
    
    TIANGOLO_BUILD_PACKAGE = os.getenv("TIANGOLO_BUILD_PACKAGE", "fastapi")
    
    
    def pdm_build_initialize(context: Context) -> None:
        metadata = context.config.metadata
        # Get custom config for the current package, from the env var
        config: Dict[str, Any] = context.config.data["tool"]["tiangolo"][
            "_internal-slim-build"
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 30 06:38:13 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  10. cni/pkg/cmd/root.go

    		SkipTLSVerify:      viper.GetBool(constants.SkipTLSVerify),
    		K8sServiceProtocol: os.Getenv("KUBERNETES_SERVICE_PROTOCOL"),
    		K8sServiceHost:     os.Getenv("KUBERNETES_SERVICE_HOST"),
    		K8sServicePort:     os.Getenv("KUBERNETES_SERVICE_PORT"),
    		K8sNodeName:        os.Getenv("KUBERNETES_NODE_NAME"),
    
    		CNIBinSourceDir:   constants.CNIBinDir,
    		CNIBinTargetDirs:  []string{constants.HostCNIBinDir},
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.5K bytes
    - Viewed (0)
Back to top