Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for Hancic (0.24 sec)

  1. cmd/data-usage_test.go

    	}
    }
    
    // equalAsJSON returns whether the values are equal when encoded as JSON.
    func equalAsJSON(a, b interface{}) bool {
    	aj, err := json.Marshal(a)
    	if err != nil {
    		panic(err)
    	}
    	bj, err := json.Marshal(b)
    	if err != nil {
    		panic(err)
    	}
    	return bytes.Equal(aj, bj)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  2. internal/crypto/metadata_test.go

    		}
    	}
    
    	defer func() {
    		if err := recover(); err == nil || err != logger.ErrCritical {
    			t.Errorf("Expected '%s' panic for invalid seal algorithm but got '%s'", logger.ErrCritical, err)
    		}
    	}()
    	_ = S3.CreateMetadata(nil, "", []byte{}, SealedKey{Algorithm: InsecureSealAlgorithm})
    }
    
    var ssecCreateMetadataTests = []struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 02 00:13:57 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  3. internal/s3select/select.go

    }
    
    func (s3Select *S3Select) outputRecord() sql.Record {
    	switch s3Select.Output.format {
    	case csvFormat:
    		return csv.NewRecord()
    	case jsonFormat:
    		return json.NewRecord(sql.SelectFmtJSON)
    	}
    
    	panic(fmt.Errorf("unknown output format '%v'", s3Select.Output.format))
    }
    
    func (s3Select *S3Select) getProgress() (bytesScanned, bytesProcessed int64) {
    	if s3Select.progressReader != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Nov 06 22:26:08 GMT 2023
    - 21K bytes
    - Viewed (0)
  4. internal/config/identity/openid/openid.go

    // authenticated via policy-claim based OpenID provider.
    var DummyRoleARN = func() arn.ARN {
    	v, err := arn.NewIAMRoleARN("dummy-internal", "")
    	if err != nil {
    		panic("should not happen!")
    	}
    	return v
    }()
    
    // Config - OpenID Config
    type Config struct {
    	Enabled bool
    
    	// map of roleARN to providerCfg's
    	arnProviderCfgsMap map[arn.ARN]*providerCfg
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Nov 16 04:42:31 GMT 2023
    - 16.5K bytes
    - Viewed (0)
  5. cmd/format-erasure.go

    		drives += len(set)
    	}
    	return drives
    }
    
    func (f *formatErasureV3) Clone() *formatErasureV3 {
    	b, err := json.Marshal(f)
    	if err != nil {
    		panic(err)
    	}
    	var dst formatErasureV3
    	if err = json.Unmarshal(b, &dst); err != nil {
    		panic(err)
    	}
    	return &dst
    }
    
    // Returns formatErasure.Erasure.Version
    func newFormatErasureV3(numSets int, setLen int) *formatErasureV3 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  6. internal/s3select/sql/value_test.go

    	},
    	func() *Value {
    		return FromFloat(math.Pi)
    	},
    	func() *Value {
    		return FromInt(0x1337)
    	},
    	func() *Value {
    		t, err := time.Parse(time.RFC3339, "2006-01-02T15:04:05Z")
    		if err != nil {
    			panic(err)
    		}
    		return FromTimestamp(t)
    	},
    	func() *Value {
    		return FromString("string contents")
    	},
    }
    
    // altValueBuilders contains one constructor for each value type.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  7. internal/grid/grid_test.go

    		errFatal(handler.Register(manager, func(ctx context.Context, pp *testRequest, in <-chan *testRequest, out chan<- *testResponse) *RemoteErr {
    			n := 0
    			for i := range in {
    				if n > payloads {
    					panic("too many requests")
    				}
    
    				// t.Log("Got request:", *i)
    				out <- &testResponse{
    					OrgNum:    i.Num + pp.Num,
    					OrgString: pp.String + i.String,
    					Embedded:  *i,
    				}
    				n++
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  8. internal/rest/client.go

    // https://www.awsarchitectureblog.com/2015/03/backoff.html
    func exponentialBackoffWait(r *rand.Rand, unit, cap time.Duration) func(uint) time.Duration {
    	if unit > time.Hour {
    		// Protect against integer overflow
    		panic("unit cannot exceed one hour")
    	}
    	return func(attempt uint) time.Duration {
    		if attempt > 16 {
    			// Protect against integer overflow
    			attempt = 16
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  9. cmd/storage-rest-server.go

    	if !s.IsValid(w, r) {
    		return
    	}
    	rw := streamHTTPResponse(w)
    	defer func() {
    		if r := recover(); r != nil {
    			debug.PrintStack()
    			rw.CloseWithError(fmt.Errorf("panic: %v", r))
    		}
    	}()
    
    	var req ReadMultipleReq
    	mr := msgpNewReader(r.Body)
    	defer readMsgpReaderPoolPut(mr)
    	err := req.DecodeMsg(mr)
    	if err != nil {
    		rw.CloseWithError(err)
    		return
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  10. internal/grid/connection.go

    	if !strings.HasPrefix(o.local, "https://") && !strings.HasPrefix(o.local, "wss://") {
    		c.baseFlags |= FlagCRCxxh3
    	}
    	if o.publisher != nil {
    		c.traceRequests(o.publisher)
    	}
    	if o.local == o.remote {
    		panic("equal hosts")
    	}
    	if c.shouldConnect() {
    		c.side = ws.StateClientSide
    
    		go func() {
    			if o.blockConnect != nil {
    				<-o.blockConnect
    			}
    			c.connect()
    		}()
    	}
    	if debugPrint {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
Back to top