* first pass at pulling in VMSS data * infer vmss set id and external name from vmss data as none of these items are present by default * updated scale set name formatting to align with azure portal and json outputs * Update plugin/plugin.go Updated following code review Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> * Update plugin/plugin.go Updated following code review Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> * complete refactoring of initial implementation following code review, taking into accounts comments and common sense updates * updated README.md to reflect changes to support VMSS * fixed typo in README.md * WIP: initial updates following code review * refactored resource functions * removed instrumentation statements * resolve ifname comments * address formatting issues in accordance with style recommendations --------- Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
34 lines
1.1 KiB
Go
34 lines
1.1 KiB
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package plugin
|
|
|
|
const (
|
|
// Azure service constants
|
|
constMsComputeService = "Microsoft.Compute"
|
|
constMsNetworkService = "Microsoft.Network"
|
|
constSubscriptions = "subscriptions"
|
|
constResourceGroups = "resourceGroups"
|
|
constProviders = "providers"
|
|
|
|
// Resource type constants
|
|
constVirtualMachinesResource = "virtualMachines"
|
|
constVirtualMachineScaleSetsResource = "virtualMachineScaleSets"
|
|
constNetworkInterfacesResource = "networkInterfaces"
|
|
constPublicIpAddressesResource = "publicIPAddresses"
|
|
|
|
// Field constants
|
|
constFilter = "filter"
|
|
constSecretId = "secret_id"
|
|
constSecretValue = "secret_value"
|
|
constCredsLastRotatedTime = "creds_last_rotated_time"
|
|
constDisableCredentialRotation = "disable_credential_rotation"
|
|
constSubscriptionId = "subscription_id"
|
|
constTenantId = "tenant_id"
|
|
constClientId = "client_id"
|
|
constBaseUrl = "base_url"
|
|
|
|
// Worker pool configuration
|
|
constDefaultWorkers = 1000
|
|
)
|