Versions in this module Expand all Collapse all v0 v0.6.0 Jul 25, 2023 Changes in this version + var AccountCredentialsDefault = "default" + var InventoryInitWaitDuration = time.Second * 30 + var MaxCloudResourceResponse int64 = 100 + var RuntimeAPIVersion = "runtime.cloud.antrea.io/v1alpha1" + var VirtualMachineRuntimeObjectKind = reflect.TypeOf(runtimev1alpha1.VirtualMachine{}).Name() + type CloudAccountInterface interface + GetNamespacedName func() *types.NamespacedName + GetServiceConfig func() CloudServiceInterface + GetStatus func() *crdv1alpha1.CloudProviderAccountStatus + LockMutex func() + UnlockMutex func() + type CloudCommonHelperInterface interface + GetCloudCredentialsComparatorFunc func() CloudCredentialComparatorFunc + GetCloudServicesCreateFunc func() CloudServiceConfigCreatorFunc + SetAccountCredentialsFunc func() CloudCredentialValidatorFunc + type CloudCommonInterface interface + AddCloudAccount func(client client.Client, account *crdv1alpha1.CloudProviderAccount, ...) error + AddResourceFilters func(namespacedName *types.NamespacedName, ...) error + DoInventoryPoll func(accountNamespacedName *types.NamespacedName) error + GetCloudAccountByAccountId func(accountID *string) (CloudAccountInterface, bool) + GetCloudAccountByName func(namespacedName *types.NamespacedName) (CloudAccountInterface, bool) + GetCloudAccounts func() map[types.NamespacedName]CloudAccountInterface + GetCloudInventory func(accountNamespacedName *types.NamespacedName) (*nephetypes.CloudInventory, error) + GetStatus func(accNamespacedName *types.NamespacedName) (*crdv1alpha1.CloudProviderAccountStatus, error) + RemoveCloudAccount func(namespacedName *types.NamespacedName) + RemoveResourceFilters func(accNamespacedName, selectorNamespacedName *types.NamespacedName) + ResetInventoryCache func(accountNamespacedName *types.NamespacedName) error + func NewCloudCommon(logger func() logging.Logger, commonHelper CloudCommonHelperInterface, ...) CloudCommonInterface + type CloudCredentialComparatorFunc func(accountName string, existing interface{}, new interface{}) bool + type CloudCredentialValidatorFunc func(client client.Client, credentials interface{}) (interface{}, error) + type CloudServiceConfigCreatorFunc func(namespacedName *types.NamespacedName, cloudConvertedCredentials interface{}, ...) (CloudServiceInterface, error) + type CloudServiceInterface interface + AddResourceFilters func(selector *crdv1alpha1.CloudEntitySelector) error + DoResourceInventory func() error + GetCloudInventory func() *nephetypes.CloudInventory + GetInventoryStats func() *CloudServiceStats + RemoveResourceFilters func(selectorNamespacedName *types.NamespacedName) + ResetInventoryCache func() + UpdateServiceConfig func(newServiceConfig CloudServiceInterface) error + type CloudServiceResourcesCache struct + func (cache *CloudServiceResourcesCache) ClearSnapshot() + func (cache *CloudServiceResourcesCache) GetSnapshot() interface{} + func (cache *CloudServiceResourcesCache) UpdateSnapshot(newSnapshot interface{}) + type CloudServiceStats struct + func (s *CloudServiceStats) IsInventoryInitialized() bool + func (s *CloudServiceStats) ResetInventoryPollStats() + func (s *CloudServiceStats) UpdateInventoryPollStats(err error) + type InstanceID string