Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 167 for if (0.15 sec)

  1. cmd/metrics-v3-system-memory.go

    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    // GNU Affero General Public License for more details.
    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    )
    
    const (
    	memTotal     = "total"
    	memUsed      = "used"
    	memFree      = "free"
    	memBuffers   = "buffers"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:10:25 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  2. internal/grid/handlers_string.go

    func (i HandlerID) String() string {
    	if i >= HandlerID(len(_HandlerID_index)-1) {
    		return "HandlerID(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return _HandlerID_name[_HandlerID_index[i]:_HandlerID_index[i+1]]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  3. cmd/xl-storage.go

    	fi, err := Lstat(s.formatFile)
    	if err != nil {
    		// If the disk is still not initialized.
    		if osIsNotExist(err) {
    			if err = Access(s.drivePath); err == nil {
    				// Disk is present but missing `format.json`
    				return nil, errUnformattedDisk
    			}
    			if osIsNotExist(err) {
    				return nil, errDiskNotFound
    			} else if osIsPermission(err) {
    				return nil, errDiskAccessDenied
    			}
    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)
  4. cmd/admin-bucket-handlers.go

    	for {
    		select {
    		case entry, ok := <-diffCh:
    			if !ok {
    				return
    			}
    			if err := enc.Encode(entry); err != nil {
    				return
    			}
    			if len(diffCh) == 0 {
    				// Flush if nothing is queued
    				w.(http.Flusher).Flush()
    			}
    		case <-keepAliveTicker.C:
    			if len(diffCh) > 0 {
    				continue
    			}
    			if _, err := w.Write([]byte(" ")); err != nil {
    				return
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  5. cmd/iam-store.go

    	if isGroup {
    		if store.getUsersSysType() == MinIOUsersSysType {
    			g, ok := c.iamGroupsMap[name]
    			if !ok {
    				if err := store.loadGroup(context.Background(), name, c.iamGroupsMap); err != nil {
    					return nil, time.Time{}, err
    				}
    				g, ok = c.iamGroupsMap[name]
    				if !ok {
    					return nil, time.Time{}, errNoSuchGroup
    				}
    			}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  6. cmd/common-main.go

    	if dir == "" {
    		dir = getDefaultDir()
    	}
    
    	if dir == "" {
    		if !dirSet {
    			return nil, fmt.Errorf("missing option must be provided")
    		}
    		return nil, fmt.Errorf("provided option cannot be empty")
    	}
    
    	// Disallow relative paths, figure out absolute paths.
    	dirAbs, err := filepath.Abs(dir)
    	if err != nil {
    		return nil, err
    	}
    	err = mkdirAllIgnorePerm(dirAbs)
    	if err != nil {
    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)
  7. internal/event/target/postgresql.go

    }
    
    // Validate PostgreSQLArgs fields
    func (p PostgreSQLArgs) Validate() error {
    	if !p.Enable {
    		return nil
    	}
    	if p.Table == "" {
    		return fmt.Errorf("empty table name")
    	}
    	if err := validatePsqlTableName(p.Table); err != nil {
    		return err
    	}
    
    	if p.Format != "" {
    		f := strings.ToLower(p.Format)
    		if f != event.NamespaceFormat && f != event.AccessFormat {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:51:07 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool-decom.go

    				if err != nil {
    					return err
    				}
    
    				// Check if the current bucket has a configured lifecycle policy
    				lc, err = globalLifecycleSys.Get(bi.Name)
    				if err != nil && !errors.Is(err, BucketLifecycleNotFound{Bucket: bi.Name}) {
    					return err
    				}
    
    				// Check if bucket is object locked.
    				lr, err = globalBucketObjectLockSys.Get(bi.Name)
    				if err != nil {
    					return err
    				}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 41.5K bytes
    - Viewed (1)
  9. cmd/bucket-object-lock.go

    	config, _, err := globalBucketMetadataSys.GetObjectLockConfig(bucketName)
    	if err != nil {
    		if errors.Is(err, BucketObjectLockConfigNotFound{Bucket: bucketName}) {
    			return r, nil
    		}
    		if errors.Is(err, errInvalidArgument) {
    			return r, err
    		}
    		return r, err
    	}
    	return config.ToRetention(), nil
    }
    
    // enforceRetentionForDeletion checks if it is appropriate to remove an
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  10. cmd/config-current.go

    		if _, err := browser.LookupConfig(s[config.BrowserSubSys][config.Default]); err != nil {
    			return err
    		}
    	default:
    		if config.LoggerSubSystems.Contains(subSys) {
    			if err := logger.ValidateSubSysConfig(ctx, s, subSys); err != nil {
    				return err
    			}
    		}
    	}
    
    	if config.NotifySubSystems.Contains(subSys) {
    		if err := notify.TestSubSysNotificationTargets(ctx, s, subSys, NewHTTPTransport()); err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 30.8K bytes
    - Viewed (0)
Back to top