Search Options

Results per page
Sort
Preferred Languages
Advance

Results 411 - 420 of 1,179 for _func (0.04 sec)

  1. cmd/iam.go

    // SetUsersSysType - sets the users system type, regular or LDAP.
    func (sys *IAMSys) SetUsersSysType(t UsersSysType) {
    	sys.usersSysType = t
    }
    
    // GetUsersSysType - returns the users system type for this IAM
    func (sys *IAMSys) GetUsersSysType() UsersSysType {
    	return sys.usersSysType
    }
    
    // NewIAMSys - creates new config system object.
    func NewIAMSys() *IAMSys {
    	return &IAMSys{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  2. cmd/bucket-metadata.go

    	}
    
    	return
    }
    
    // Versioning returns true if versioning is enabled
    func (b BucketMetadata) Versioning() bool {
    	return b.LockEnabled || (b.versioningConfig != nil && b.versioningConfig.Enabled()) || (b.objectLockConfig != nil && b.objectLockConfig.Enabled())
    }
    
    // ObjectLocking returns true if object locking is enabled
    func (b BucketMetadata) ObjectLocking() bool {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  3. cmd/format-erasure.go

    		DistributionAlgo string `json:"distributionAlgo"`
    	} `json:"xl"`
    	Info DiskInfo `json:"-"`
    }
    
    func (f *formatErasureV3) Drives() (drives int) {
    	for _, set := range f.Erasure.Sets {
    		drives += len(set)
    	}
    	return drives
    }
    
    func (f *formatErasureV3) Clone() *formatErasureV3 {
    	b, err := json.Marshal(f)
    	if err != nil {
    		panic(err)
    	}
    	var dst formatErasureV3
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  4. internal/s3select/json/reader.go

    	return dstRec, nil
    }
    
    // Close - closes underlying reader.
    func (r *Reader) Close() error {
    	// Close the input.
    	err := r.readCloser.Close()
    	for range r.valueCh {
    		// Drain values so we don't leak a goroutine.
    		// Since we have closed the input, it should fail rather quickly.
    	}
    	return err
    }
    
    // NewReader - creates new JSON reader using readCloser.
    func NewReader(readCloser io.ReadCloser, args *ReaderArgs) *Reader {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. internal/fips/api.go

    // for the DARE object encryption.
    func DARECiphers() []byte {
    	if Enabled {
    		return []byte{sio.AES_256_GCM}
    	}
    	return []byte{sio.AES_256_GCM, sio.CHACHA20_POLY1305}
    }
    
    // TLSCiphers returns a list of supported TLS transport
    // cipher suite IDs.
    //
    // The list contains only ciphers that use AES-GCM or
    // (non-FIPS) CHACHA20-POLY1305 and ellitpic curve key
    // exchange.
    func TLSCiphers() []uint16 {
    	if Enabled {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 23 10:11:25 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. cmd/sftp-server-driver.go

    		Custom: map[string]string{
    			"user":   user,
    			"cmd":    s.Method,
    			"param":  s.Filepath,
    			"source": source,
    		},
    	}
    }
    
    func (m *sftpMetrics) log(s *sftp.Request, user string) func(sz int64, err error) {
    	startTime := time.Now()
    	source := getSource(2)
    	return func(sz int64, err error) {
    		globalTrace.Publish(sftpTrace(s, startTime, source, user, err, sz))
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 05 07:51:13 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. internal/http/response-recorder.go

    // when the request is finished to provide accurate data
    func (lrw *ResponseRecorder) TTFB() time.Duration {
    	if lrw.ttfbBody != 0 {
    		return lrw.ttfbBody
    	}
    	return lrw.ttfbHeader
    }
    
    // NewResponseRecorder - returns a wrapped response writer to trap
    // http status codes for auditing purposes.
    func NewResponseRecorder(w http.ResponseWriter) *ResponseRecorder {
    	rf, _ := w.(io.ReaderFrom)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. cmd/bootstrap-peer-server_gen_test.go

    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after Skip(): %q", len(left), left)
    	}
    }
    
    func BenchmarkMarshalMsgServerSystemConfig(b *testing.B) {
    	v := ServerSystemConfig{}
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.MarshalMsg(nil)
    	}
    }
    
    func BenchmarkAppendMsgServerSystemConfig(b *testing.B) {
    	v := ServerSystemConfig{}
    	bts := make([]byte, 0, v.Msgsize())
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jan 24 21:36:44 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. cmd/bucket-metadata_gen_test.go

    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after Skip(): %q", len(left), left)
    	}
    }
    
    func BenchmarkMarshalMsgBucketMetadata(b *testing.B) {
    	v := BucketMetadata{}
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.MarshalMsg(nil)
    	}
    }
    
    func BenchmarkAppendMsgBucketMetadata(b *testing.B) {
    	v := BucketMetadata{}
    	bts := make([]byte, 0, v.Msgsize())
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  10. cmd/metacache_test.go

    			prefix: "prefix/prefix2/",
    			want:   "prefix/prefix2/",
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if got := baseDirFromPrefix(tt.prefix); got != tt.want {
    				t.Errorf("baseDirFromPrefix() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func Test_metacache_finished(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 08 18:06:45 UTC 2021
    - 6.8K bytes
    - Viewed (0)
Back to top