Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 954 for File (0.17 sec)

  1. internal/ioutil/read_file.go

    	OsOpen = os.Open
    	// OsOpenFile allows overriding default function.
    	OsOpenFile = os.OpenFile
    )
    
    // ReadFileWithFileInfo reads the named file and returns the contents.
    // A successful call returns err == nil, not err == EOF.
    // Because ReadFile reads the whole file, it does not treat an EOF from Read
    // as an error to be reported.
    func ReadFileWithFileInfo(name string) ([]byte, fs.FileInfo, error) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 09 18:17:51 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  2. internal/ioutil/append-file_windows.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package ioutil
    
    import (
    	"io"
    	"os"
    
    	"github.com/minio/minio/internal/lock"
    )
    
    // AppendFile - appends the file "src" to the file "dst"
    func AppendFile(dst string, src string, osync bool) error {
    	appendFile, err := lock.Open(dst, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0o666)
    	if err != nil {
    		return err
    	}
    	defer appendFile.Close()
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  3. internal/ioutil/append-file_nix.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package ioutil
    
    import (
    	"io"
    	"os"
    )
    
    // AppendFile - appends the file "src" to the file "dst"
    func AppendFile(dst string, src string, osync bool) error {
    	flags := os.O_WRONLY | os.O_APPEND | os.O_CREATE
    	if osync {
    		flags |= os.O_SYNC
    	}
    	appendFile, err := os.OpenFile(dst, flags, 0o666)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  4. internal/ioutil/read_file_noatime_notsupported.go

    //go:build windows || darwin || freebsd
    // +build windows darwin freebsd
    
    // Copyright (c) 2015-2021 MinIO, Inc.
    //
    // This file is part of MinIO Object Storage stack
    //
    // This program is free software: you can redistribute it and/or modify
    // it under the terms of the GNU Affero General Public License as published by
    // the Free Software Foundation, either version 3 of the License, or
    // (at your option) any later version.
    //
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 893 bytes
    - Viewed (0)
  5. docs/distributed/distributed-from-config-file.sh

    	echo "Cleaning up instances of MinIO"
    	pkill minio || true
    	pkill -9 minio || true
    	rm -rf /tmp/xl/ || true
    	rm -rf /tmp/minio.configfile.{1,2,3,4} || true
    }
    
    cleanup
    
    unset MINIO_KMS_KES_CERT_FILE
    unset MINIO_KMS_KES_KEY_FILE
    unset MINIO_KMS_KES_ENDPOINT
    unset MINIO_KMS_KES_KEY_NAME
    
    export MINIO_CI_CD=1
    
    if [ ! -f ./mc ]; then
    	os="$(uname -s)"
    	arch="$(uname -m)"
    Shell Script
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  6. internal/ioutil/read_file_noatime_supported.go

    //go:build !windows && !darwin && !freebsd
    // +build !windows,!darwin,!freebsd
    
    // Copyright (c) 2015-2021 MinIO, Inc.
    //
    // This file is part of MinIO Object Storage stack
    //
    // This program is free software: you can redistribute it and/or modify
    // it under the terms of the GNU Affero General Public License as published by
    // the Free Software Foundation, either version 3 of the License, or
    // (at your option) any later version.
    //
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 937 bytes
    - Viewed (0)
  7. internal/lock/lock_windows.go

    		w++
    	}
    	return string(pathbuf[:w])
    }
    
    // Open - perm param is ignored, on windows file perms/NT acls
    // are not octet combinations. Providing access to NT
    // acls is out of scope here.
    func Open(path string, flag int, perm os.FileMode) (*os.File, error) {
    	if path == "" {
    		return nil, syscall.ERROR_FILE_NOT_FOUND
    	}
    
    	pathp, err := syscall.UTF16PtrFromString(fixLongPath(path))
    	if err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  8. docs/debugging/inspect/main.go

    		input := struct {
    			File string `json:"file"`
    			Key  string `json:"key"`
    		}{}
    		got, err := io.ReadAll(os.Stdin)
    		if err != nil {
    			fatalErr(err)
    		}
    		fatalErr(json.Unmarshal(got, &input))
    		inputFileName = input.File
    		*keyHex = input.Key
    	case len(flag.Args()) == 1:
    		inputFileName = flag.Args()[0]
    	default:
    		flag.Usage()
    		fatalIf(true, "Only 1 file can be decrypted")
    		os.Exit(1)
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  9. Dockerfile.release.fips

    ENV MINIO_ACCESS_KEY_FILE=access_key \
        MINIO_SECRET_KEY_FILE=secret_key \
        MINIO_ROOT_USER_FILE=access_key \
        MINIO_ROOT_PASSWORD_FILE=secret_key \
        MINIO_KMS_SECRET_KEY_FILE=kms_master_key \
        MINIO_UPDATE_MINISIGN_PUBKEY="RWTx5Zr1tiHQLwG9keckT0c45M3AGeHD6IvimQHpyRywVWGbP1aVSGav" \
        MINIO_CONFIG_ENV_FILE=config.env
    
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 30 09:41:56 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  10. docs/iam/access-manager-plugin.go

    	"fmt"
    	"io"
    	"log"
    	"net/http"
    	"strings"
    )
    
    var (
    	keyFile  string
    	certFile string
    )
    
    func init() {
    	flag.StringVar(&keyFile, "key-file", "", "Path to TLS cert key file")
    	flag.StringVar(&certFile, "cert-file", "", "Path to TLS cert file")
    }
    
    func writeErrorResponse(w http.ResponseWriter, err error) {
    	w.WriteHeader(http.StatusBadRequest)
    	json.NewEncoder(w).Encode(map[string]string{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 08 17:15:20 GMT 2024
    - 2.7K bytes
    - Viewed (0)
Back to top