github.com/safedep/dry@v0.0.0-20241016050132-a15651f0548b/apiguard/policy.go (about)

     1  package apiguard
     2  
     3  type PolicyAccess struct {
     4  	ApiID   string
     5  	ApiName string
     6  }
     7  
     8  type Policy struct {
     9  	InternalID string
    10  	ID         string
    11  	Name       string
    12  
    13  	Rate         float64
    14  	RateInterval float64
    15  
    16  	QuotaMax         int64
    17  	QuotaRemaining   int64
    18  	QuotaRenewalRate int64
    19  
    20  	ThrottleInterval   float64
    21  	ThrottleRetryLimit float64
    22  
    23  	AccessRights []PolicyAccess
    24  
    25  	Active bool
    26  	Tags   []string
    27  
    28  	Metadata map[string]interface{}
    29  }