Documentation
¶
Index ¶
- func GetPowerState(states []*armcompute.InstanceViewStatus) string
- func GetResourceGroupsFromDB(ctx context.Context) ([]models.ResourceGroup, error)
- func GetStorageAccountsFromDB(ctx context.Context) ([]models.StorageAccount, error)
- func GetVPCsFromDB(ctx context.Context) ([]models.VPC, error)
- func MaybeSkipRetry(err error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPowerState ¶
func GetPowerState(states []*armcompute.InstanceViewStatus) string
GetPowerState returns the power state of a Virtual Machine by looking up the provided states.
func GetResourceGroupsFromDB ¶
func GetResourceGroupsFromDB(ctx context.Context) ([]models.ResourceGroup, error)
GetResourceGroupsFromDB returns the models.ResourceGroup from the database.
func GetStorageAccountsFromDB ¶
func GetStorageAccountsFromDB(ctx context.Context) ([]models.StorageAccount, error)
GetStorageAccountsFromDB returns the models.StorageAccount from the database.
func GetVPCsFromDB ¶
GetVPCsFromDB returns the models.VPC from the database.
func MaybeSkipRetry ¶
MaybeSkipRetry wraps known "good" Azure errors with asynq.SkipRetry, so that the tasks from which these errors originate from won't be retried.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.