mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-26 17:01:04 -06:00
34d90d4be0
This interface is meant to replace the following ones (in use by some providers): - httpclient.UserAgentString() (e.g. AzureRM, Google) - terraform.UserAgentString (e.g. OpenStack, ProfitBricks) - terraform.VersionString (e.g. AWS, AzureStack, DigitalOcean, Kubernetes) This also proposes the initial UA string to be set to HashiCorp Terraform/X.Y.Z (+https://www.terraform.io)
13 lines
238 B
Go
13 lines
238 B
Go
package terraform
|
|
|
|
import (
|
|
"github.com/hashicorp/terraform/httpclient"
|
|
)
|
|
|
|
// Generate a UserAgent string
|
|
//
|
|
// Deprecated: Use httpclient.UserAgent(version) instead
|
|
func UserAgentString() string {
|
|
return httpclient.UserAgentString()
|
|
}
|