Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstancesAreRunning ¶
func InstancesAreRunning(ctx context.Context, logger micrologger.Logger, rg string, vmssName string) (bool, error)
Find out provisioning state of all VMSS instances and return true if all are Succeeded.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsVMSSUnsafeError ¶
IsVMSSUnsafeError asserts vmssUnsafeError.
Types ¶
type Config ¶
type Config struct { Logger micrologger.Logger NumWorkers int }
type InstanceWatchdog ¶
type InstanceWatchdog interface { GuardVMSS(ctx context.Context, resourceGroupName, vmssName string) DeleteFailedVMSS(ctx context.Context, resourceGroupName, vmssName string) }
func NewInstanceWatchdog ¶
func NewInstanceWatchdog(config Config) (InstanceWatchdog, error)
Click to show internal directories.
Click to hide internal directories.