vmsscheck

package
v4.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

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

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsVMSSUnsafeError

func IsVMSSUnsafeError(err error) bool

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL