Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for interface (0.18 sec)

  1. cmd/object-api-interface.go

    func (o *ObjectOptions) SetEvalRetentionBypassFn(f EvalRetentionBypassFn) {
    	o.EvalRetentionBypassFn = f
    }
    
    // ObjectLayer implements primitives for object API layer.
    type ObjectLayer interface {
    	// Locking operations on object.
    	NewNSLock(bucket string, objects ...string) RWLocker
    
    	// Storage operations.
    	Shutdown(context.Context) error
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 17K bytes
    - Viewed (0)
  2. internal/jwt/parser.go

    }
    
    // Lookup returns the value and if the key is found.
    func (c *MapClaims) Lookup(key string) (value string, ok bool) {
    	if c == nil {
    		return "", false
    	}
    	var vinterface interface{}
    	vinterface, ok = c.MapClaims[key]
    	if ok {
    		value, ok = vinterface.(string)
    	}
    	return
    }
    
    // SetExpiry sets expiry in unix epoch secs
    func (c *MapClaims) SetExpiry(t time.Time) {
    	c.MapClaims["exp"] = t.Unix()
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue May 09 07:53:08 GMT 2023
    - 13.9K bytes
    - Viewed (0)
  3. internal/grid/types.go

    type NoPayload struct{}
    
    // Msgsize returns 0.
    func (p NoPayload) Msgsize() int {
    	return 0
    }
    
    // UnmarshalMsg satisfies the interface, but is a no-op.
    func (NoPayload) UnmarshalMsg(bytes []byte) ([]byte, error) {
    	return bytes, nil
    }
    
    // MarshalMsg satisfies the interface, but is a no-op.
    func (NoPayload) MarshalMsg(bytes []byte) ([]byte, error) {
    	return bytes, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 01 23:42:09 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  4. internal/s3select/select.go

    }
    
    var bufPool = sync.Pool{
    	New: func() interface{} {
    		// make a buffer with a reasonable capacity.
    		return bytes.NewBuffer(make([]byte, 0, maxRecordSize))
    	},
    }
    
    var bufioWriterPool = sync.Pool{
    	New: func() interface{} {
    		// io.Discard is just used to create the writer. Actual destination
    		// writer is set later by Reset() before using it.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Nov 06 22:26:08 GMT 2023
    - 21K bytes
    - Viewed (0)
  5. cmd/auth-handler.go

    // errors - upon errors the returned claims map will be empty.
    func mustGetClaimsFromToken(r *http.Request) map[string]interface{} {
    	claims, _ := getClaimsFromToken(getSessionToken(r))
    	return claims
    }
    
    func getClaimsFromTokenWithSecret(token, secret string) (map[string]interface{}, error) {
    	// JWT token for x-amz-security-token is signed with admin
    	// secret key, temporary credentials become invalid if
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  6. cmd/globals.go

    	JSON, Quiet               bool
    	Anonymous                 bool
    	StrictS3Compat            bool
    	Addr, ConsoleAddr         string
    	ConfigDir, CertsDir       string
    	configDirSet, certsDirSet bool
    	Interface                 string
    
    	RootUser, RootPwd string
    
    	FTP  []string
    	SFTP []string
    
    	UserTimeout             time.Duration
    	ConnReadDeadline        time.Duration
    	ConnWriteDeadline       time.Duration
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  7. docs/debugging/xl-meta/main.go

    						fmt.Println("WriteFile:", err)
    					}
    				})
    				if err != nil {
    					return nil, err
    				}
    			}
    			if ndjson {
    				return buf.Bytes(), nil
    			}
    			var msi map[string]interface{}
    			dec := json.NewDecoder(buf)
    			// Use number to preserve integers.
    			dec.UseNumber()
    			err = dec.Decode(&msi)
    			if err != nil {
    				return nil, err
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  8. cmd/data-usage_test.go

    			t.Errorf("deserialize mismatch, key %v\nwant: %#v\ngot:  %#v", wkey, wval, gotv)
    		}
    	}
    }
    
    // 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)
  9. internal/config/identity/openid/openid.go

    		Enabled:            false,
    		arnProviderCfgsMap: map[arn.ARN]*providerCfg{},
    		ProviderCfgs:       map[string]*providerCfg{},
    		pubKeys: publicKeys{
    			RWMutex: &sync.RWMutex{},
    			pkMap:   map[string]interface{}{},
    		},
    		roleArnPolicyMap: map[arn.ARN]string{},
    		transport:        openIDClientTransport,
    		closeRespFn:      closeRespFn,
    	}
    
    	seenClientIDs := set.NewStringSet()
    
    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)
  10. internal/logger/target/kafka/kafka.go

    	// Sending a value on logCh must hold read lock on logChMu (to avoid closing)
    	logCh   chan interface{}
    	logChMu sync.RWMutex
    
    	// store to persist and replay the logs to the target
    	// to avoid missing events when the target is down.
    	store          store.Store[interface{}]
    	storeCtxCancel context.CancelFunc
    
    	initKafkaOnce      once.Init
    	initQueueStoreOnce once.Init
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 10.1K bytes
    - Viewed (1)
Back to top