Documentation ¶
Index ¶
- type APIMutex
- func (m *APIMutex) Bucket(method, endPoint string) string
- func (m *APIMutex) Class(method, endPoint string) string
- func (m *APIMutex) HasCapacity(method, endPoint string) bool
- func (m *APIMutex) Status(method, endPoint string) *APIStatus
- func (m *APIMutex) Update(method, endPoint string, limit, remaining int, reset int64)
- type APIStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIMutex ¶
type APIMutex struct {
// contains filtered or unexported fields
}
APIMutex synchronizes keeping account of current known rate limit values from Okta management endpoints. See: https://developer.okta.com/docs/reference/rl-global-mgmt/
The Okta Terraform Provider can not account for other clients consumption of API limits but it can account for its own usage and attempt to preemptively react appropriately.
func NewAPIMutex ¶
NewAPIMutex returns a new api mutex object that represents untilized capacity under the specified capacity percentage.
func (*APIMutex) HasCapacity ¶
HasCapacity approximates if there is capacity below the api mutex's maximum capacity threshold.
type APIStatus ¶
type APIStatus struct {
// contains filtered or unexported fields
}
APIStatus is used to hold rate limit information from Okta's API, see: https://developer.okta.com/docs/reference/rl-best-practices/