 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClusterQuotaMapper ¶
func NewClusterQuotaMapper() *clusterQuotaMapper
Types ¶
type ClusterQuotaMapper ¶
type ClusterQuotaMapper interface {
	// GetClusterQuotasFor returns the list of clusterquota names that this namespace matches.  It also
	// returns the selectionFields associated with the namespace for the check so that callers can determine staleness
	GetClusterQuotasFor(namespaceName string) ([]string, SelectionFields)
	// GetNamespacesFor returns the list of namespace names that this cluster quota matches.  It also
	// returns the selector associated with the clusterquota for the check so that callers can determine staleness
	GetNamespacesFor(quotaName string) ([]string, quotaapi.ClusterResourceQuotaSelector)
	AddListener(listener MappingChangeListener)
}
    type ClusterQuotaMappingController ¶
type ClusterQuotaMappingController struct {
	// contains filtered or unexported fields
}
    func NewClusterQuotaMappingController ¶
func NewClusterQuotaMappingController(namespaceInformer shared.NamespaceInformer, quotaInformer shared.ClusterResourceQuotaInformer) *ClusterQuotaMappingController
NewClusterQuotaMappingController builds a mapping between namespaces and clusterresourcequotas
func (*ClusterQuotaMappingController) GetClusterQuotaMapper ¶
func (c *ClusterQuotaMappingController) GetClusterQuotaMapper() ClusterQuotaMapper
func (*ClusterQuotaMappingController) Run ¶
func (c *ClusterQuotaMappingController) Run(workers int, stopCh <-chan struct{})
       Source Files
      ¶
      Source Files
      ¶
    
- clusterquotamapping.go
- mapper.go
 Click to show internal directories. 
   Click to hide internal directories.