Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 1,025 for FUNC (0.05 sec)

  1. cmd/data-scanner.go

    // When the returned function is called it will wait.
    func (d *dynamicSleeper) Timer(ctx context.Context) func() {
    	t := time.Now()
    	return func() {
    		doneAt := time.Now()
    		d.Sleep(ctx, doneAt.Sub(t))
    	}
    }
    
    // Sleep sleeps the specified time multiplied by the sleep factor.
    // If the factor is updated the sleep will be done again with the new factor.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  2. internal/event/targetid.go

    	ID   string
    	Name string
    }
    
    // String - returns string representation.
    func (tid TargetID) String() string {
    	return tid.ID + ":" + tid.Name
    }
    
    // ToARN - converts to ARN.
    func (tid TargetID) ToARN(region string) ARN {
    	return ARN{TargetID: tid, region: region}
    }
    
    // MarshalJSON - encodes to JSON data.
    func (tid TargetID) MarshalJSON() ([]byte, error) {
    	return json.Marshal(tid.String())
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  3. internal/event/target/mysql.go

    	quitCh chan struct{}
    }
    
    // ID - returns target ID.
    func (target *MySQLTarget) ID() event.TargetID {
    	return target.id
    }
    
    // Name - returns the Name of the target.
    func (target *MySQLTarget) Name() string {
    	return target.ID().String()
    }
    
    // Store returns any underlying store if set.
    func (target *MySQLTarget) Store() event.TargetStore {
    	return target.store
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. cmd/server-startup-msg.go

    	"github.com/minio/minio/internal/logger"
    )
    
    // generates format string depending on the string length and padding.
    func getFormatStr(strLen int, padding int) string {
    	formatStr := fmt.Sprintf("%ds", strLen+padding)
    	return "%" + formatStr
    }
    
    // Prints the formatted startup message.
    func printStartupMessage(apiEndpoints []string, err error) {
    	banner := strings.Repeat("-", len(MinioBannerName))
    	if globalIsDistErasure {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 23 14:11:35 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. internal/event/target/nats.go

    	quitCh     chan struct{}
    }
    
    // ID - returns target ID.
    func (target *NATSTarget) ID() event.TargetID {
    	return target.id
    }
    
    // Name - returns the Name of the target.
    func (target *NATSTarget) Name() string {
    	return target.ID().String()
    }
    
    // Store returns any underlying store if set.
    func (target *NATSTarget) Store() event.TargetStore {
    	return target.store
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  6. cmd/admin-handlers-users-race_test.go

    			c.Fatalf("Unable to attach policy: %v", err)
    		}
    
    		accessKeys[i] = accessKey
    		secretKeys[i] = secretKey
    	}
    
    	g := errgroup.Group{}
    	for i := 0; i < userCount; i++ {
    		g.Go(func(i int) func() error {
    			return func() error {
    				uClient := s.getUserClient(c, accessKeys[i], secretKeys[i], "")
    				err := s.adm.RemoveUser(ctx, accessKeys[i])
    				if err != nil {
    					return err
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 28 09:06:25 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. cmd/xl-storage-format-v2_string.go

    var _VersionType_index = [...]uint8{0, 18, 28, 38, 48, 63}
    
    func (i VersionType) String() string {
    	if i >= VersionType(len(_VersionType_index)-1) {
    		return "VersionType(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return _VersionType_name[_VersionType_index[i]:_VersionType_index[i+1]]
    }
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Dec 02 19:29:16 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  8. cmd/admin-handlers-users_test.go

    	client   *minio.Client
    }
    
    func newTestSuiteIAM(c TestSuiteCommon, withEtcdBackend bool) *TestSuiteIAM {
    	etcdStr := ""
    	if withEtcdBackend {
    		etcdStr = " (with etcd backend)"
    	}
    	return &TestSuiteIAM{
    		TestSuiteCommon:       c,
    		ServerTypeDescription: fmt.Sprintf("%s%s", c.serverType, etcdStr),
    		withEtcdBackend:       withEtcdBackend,
    	}
    }
    
    func (s *TestSuiteIAM) iamSetup(c *check) {
    	var err error
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  9. cmd/erasure-healing.go

    // in movement, such as decommissioning or rebalance.
    func (fi *FileInfo) SetDataMov() {
    	if fi.Metadata == nil {
    		fi.Metadata = make(map[string]string)
    	}
    	fi.Metadata[xMinIODataMov] = "true"
    }
    
    // DataMov returns true if object is being in movement
    func (fi FileInfo) DataMov() bool {
    	_, ok := fi.Metadata[xMinIODataMov]
    	return ok
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 02 17:50:41 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  10. cmd/endpoint-ellipses.go

    // single set size.
    var setSizes = []uint64{2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}
    
    // getDivisibleSize - returns a greatest common divisor of
    // all the ellipses sizes.
    func getDivisibleSize(totalSizes []uint64) (result uint64) {
    	gcd := func(x, y uint64) uint64 {
    		for y != 0 {
    			x, y = y, x%y
    		}
    		return x
    	}
    	result = totalSizes[0]
    	for i := 1; i < len(totalSizes); i++ {
    		result = gcd(result, totalSizes[i])
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 14.7K bytes
    - Viewed (0)
Back to top