Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isCreate (0.14 sec)

  1. cmd/iam-etcd-store.go

    						isCreateEvent := event.IsModify() || event.IsCreate()
    						isDeleteEvent := event.Type == etcd.EventTypeDelete
    
    						switch {
    						case isCreateEvent:
    							ch <- iamWatchEvent{
    								isCreated: true,
    								keyPath:   string(event.Kv.Key),
    							}
    						case isDeleteEvent:
    							ch <- iamWatchEvent{
    								isCreated: false,
    								keyPath:   string(event.Kv.Key),
    							}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. cmd/iam-store.go

    		d.Policy = doc.Policy
    		return nil
    	}
    	*d = doc
    	return nil
    }
    
    // key options
    type options struct {
    	ttl int64 // expiry in seconds
    }
    
    type iamWatchEvent struct {
    	isCreated bool // !isCreated implies a delete event.
    	keyPath   string
    }
    
    // iamCache contains in-memory cache of IAM data.
    type iamCache struct {
    	updatedAt time.Time
    
    	// map of policy names to policy definitions
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 75.8K bytes
    - Viewed (0)
Back to top