type QuotaAccessor … type quotaAccessor … // newQuotaAccessor creates an object that conforms to the QuotaAccessor interface to be used to retrieve quota objects. func newQuotaAccessor() (*quotaAccessor, error) { … } func (e *quotaAccessor) UpdateQuotaStatus(newQuota *corev1.ResourceQuota) error { … } var etcdVersioner … // checkCache compares the passed quota against the value in the look-aside cache and returns the newer // if the cache is out of date, it deletes the stale entry. This only works because of etcd resourceVersions // being monotonically increasing integers func (e *quotaAccessor) checkCache(quota *corev1.ResourceQuota) *corev1.ResourceQuota { … } func (e *quotaAccessor) GetQuotas(namespace string) ([]corev1.ResourceQuota, error) { … }