Documentation ¶
Index ¶
- type Inventory
- func (inventory *Inventory) BuildVpcCache(discoveredVpcMap map[string]*runtimev1alpha1.Vpc, ...) error
- func (inventory *Inventory) DeleteVpcCache(namespacedName *types.NamespacedName) error
- func (inventory *Inventory) GetAllVpcs() []interface{}
- func (inventory *Inventory) GetVpcsFromIndexer(indexName string, indexedValue string) ([]interface{}, error)
- func (inventory *Inventory) Watch(ctx context.Context, key string, labelSelector labels.Selector, ...) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inventory ¶
type Inventory struct {
// contains filtered or unexported fields
}
func InitInventory ¶
func InitInventory() *Inventory
InitInventory creates an instance of Inventory struct and initializes inventory with cache indexers.
func (*Inventory) BuildVpcCache ¶
func (inventory *Inventory) BuildVpcCache(discoveredVpcMap map[string]*runtimev1alpha1.Vpc, namespacedName *types.NamespacedName) error
BuildVpcCache using vpc list from cloud, update vpc cache(with vpcs applicable for the current cloud account).
func (*Inventory) DeleteVpcCache ¶
func (inventory *Inventory) DeleteVpcCache(namespacedName *types.NamespacedName) error
DeleteVpcCache deletes all entries from vpc cache.
func (*Inventory) GetAllVpcs ¶
func (inventory *Inventory) GetAllVpcs() []interface{}
GetAllVpcs returns all vpcs from the indexer.
Click to show internal directories.
Click to hide internal directories.