Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewStore (0.17 sec)

  1. pilot/pkg/config/memory/store.go

    // It is with validation
    func Make(schemas collection.Schemas) model.ConfigStore {
    	return newStore(schemas, false)
    }
    
    // MakeSkipValidation creates an in-memory config store from a config schemas
    // It is without validation
    func MakeSkipValidation(schemas collection.Schemas) model.ConfigStore {
    	return newStore(schemas, true)
    }
    
    func newStore(schemas collection.Schemas, skipValidation bool) model.ConfigStore {
    	out := store{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 26 01:14:27 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  2. pkg/controller/job/backoff_utils.go

    	}
    
    	if ok {
    		err = s.store.Delete(b)
    		if err != nil {
    			return err
    		}
    	}
    
    	return nil
    
    }
    
    func newBackoffStore() *backoffStore {
    	return &backoffStore{
    		store: cache.NewStore(backoffRecordKeyFunc),
    	}
    }
    
    var backoffRecordKeyFunc = func(obj interface{}) (string, error) {
    	if u, ok := obj.(*backoffRecord); ok {
    		return u.key, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 07:46:41 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top