Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1011 - 1020 of 1,179 for FUNC (0.03 sec)

  1. internal/config/callhome/help.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package callhome
    
    import "github.com/minio/minio/internal/config"
    
    var (
    	defaultHelpPostfix = func(key string) string {
    		return config.DefaultHelpPostfix(DefaultKVS, key)
    	}
    
    	// HelpCallhome - provides help for callhome config
    	HelpCallhome = config.HelpKVS{
    		config.HelpKV{
    			Key:         Enable,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 06 23:14:52 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  2. cmd/is-dir-empty_other.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    // isDirEmpty - returns true if there is no error and no object and prefix inside this directory
    func isDirEmpty(dirname string, _ bool) bool {
    	entries, err := readDirN(dirname, 1)
    	if err != nil {
    		return false
    	}
    	return len(entries) == 0
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 05 15:17:08 UTC 2024
    - 1K bytes
    - Viewed (0)
  3. cmd/os-rename_linux.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"syscall"
    )
    
    // RenameSys is low level call in case of Linux this uses syscall.Rename() directly.
    func RenameSys(src, dst string) (err error) {
    	return syscall.Rename(src, dst)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 15 01:09:38 UTC 2024
    - 999 bytes
    - Viewed (0)
  4. internal/bucket/replication/replication_test.go

    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run(testCase.opts.Name, func(t *testing.T) {
    			result := testCase.c.Replicate(testCase.opts)
    			if result != testCase.expectedResult {
    				t.Errorf("expected: %v, got: %v", testCase.expectedResult, result)
    			}
    		})
    	}
    }
    
    func TestHasActiveRules(t *testing.T) {
    	testCases := []struct {
    		inputConfig    string
    		prefix         string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  5. clause/joins_test.go

    package clause_test
    
    import (
    	"sync"
    	"testing"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/schema"
    	"gorm.io/gorm/utils/tests"
    )
    
    func TestJoin(t *testing.T) {
    	results := []struct {
    		name string
    		join clause.Join
    		sql  string
    	}{
    		{
    			name: "LEFT JOIN",
    			join: clause.Join{
    				Type:  clause.LeftJoin,
    				Table: clause.Table{Name: "user"},
    				ON: clause.Where{
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Nov 03 13:03:13 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  6. internal/logger/message/audit/entry.go

    const Version = "1"
    
    // NewEntry - constructs an audit entry object with some fields filled
    func NewEntry(deploymentID string) audit.Entry {
    	return audit.Entry{
    		Version:      Version,
    		DeploymentID: deploymentID,
    		Time:         time.Now().UTC(),
    	}
    }
    
    // ToEntry - constructs an audit entry from a http request
    func ToEntry(w http.ResponseWriter, r *http.Request, reqClaims map[string]interface{}, deploymentID string) audit.Entry {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. docs/debugging/inspect/main.go

    	export      = flag.Bool("export", false, "export xl.meta")
    	djson       = flag.Bool("djson", false, "expect djson format for xl.meta")
    	genkey      = flag.Bool("genkey", false, "generate key pair")
    )
    
    func main() {
    	flag.Parse()
    
    	if *genkey {
    		generateKeys()
    		os.Exit(0)
    	}
    	var privateKey []byte
    	if *keyHex == "" {
    		if b, err := os.ReadFile(*privKeyPath); err == nil {
    			privateKey = b
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 31 14:49:23 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. buildscripts/heal-manual.go

    // limitations under the License.
    //
    
    package main
    
    import (
    	"context"
    	"encoding/json"
    	"fmt"
    	"log"
    	"os"
    	"time"
    
    	"github.com/minio/madmin-go/v3"
    )
    
    func main() {
    	// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY are
    	// dummy values, please replace them with original values.
    
    	// API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Feb 27 09:47:58 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. internal/s3select/csv/recordtransform.go

    type recordTransform struct {
    	reader io.Reader
    	// recordDelimiter can be up to 2 characters.
    	recordDelimiter []byte
    	oneByte         []byte
    	useOneByte      bool
    }
    
    func (rr *recordTransform) Read(p []byte) (n int, err error) {
    	if rr.useOneByte {
    		p[0] = rr.oneByte[0]
    		rr.useOneByte = false
    		n, err = rr.reader.Read(p[1:])
    		n++
    	} else {
    		n, err = rr.reader.Read(p)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  10. internal/s3select/csv/reader_contrib_test.go

    				t.Errorf("Case %d failed: expected %v results %v", i, c.totalFields, fields)
    			}
    		})
    	}
    }
    
    type errReader struct {
    	err error
    }
    
    func (e errReader) Read(p []byte) (n int, err error) {
    	return 0, e.err
    }
    
    func TestReadFailures(t *testing.T) {
    	customErr := errors.New("unable to read file :(")
    	cases := []struct {
    		file            string
    		recordDelimiter string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 38.5K bytes
    - Viewed (0)
Back to top