environment

package
v0.203.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 4 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AzurePublicCloud = azureEnvironment{
		Name:                      "PUBLIC",
		ServiceManagementEndpoint: "https://management.core.windows.net/",
		ResourceManagerEndpoint:   "https://management.azure.com/",
		ActiveDirectoryEndpoint:   "https://login.microsoftonline.com/",
	}

	AzureUsGovernmentCloud = azureEnvironment{
		Name:                      "USGOVERNMENT",
		ServiceManagementEndpoint: "https://management.core.usgovcloudapi.net/",
		ResourceManagerEndpoint:   "https://management.usgovcloudapi.net/",
		ActiveDirectoryEndpoint:   "https://login.microsoftonline.us/",
	}

	AzureChinaCloud = azureEnvironment{
		Name:                      "CHINA",
		ServiceManagementEndpoint: "https://management.core.chinacloudapi.cn/",
		ResourceManagerEndpoint:   "https://management.chinacloudapi.cn/",
		ActiveDirectoryEndpoint:   "https://login.chinacloudapi.cn/",
	}
)

based on github.com/Azure/go-autorest/autorest/azure/azureEnvironments.go

Functions

This section is empty.

Types

type Cloud

type Cloud string
const (
	CloudAWS     Cloud = "AWS"
	CloudAzure   Cloud = "Azure"
	CloudGCP     Cloud = "GCP"
	CloudUnknown Cloud = ""
)

func (*Cloud) UnmarshalJSON added in v0.117.0

func (c *Cloud) UnmarshalJSON(data []byte) error

UnmarshalJSON automatically normalizes the cloud string when parsing JSON

type DatabricksEnvironment

type DatabricksEnvironment struct {
	Cloud              Cloud
	DnsZone            string
	AzureApplicationID string
	AzureEnvironment   *azureEnvironment
}

func AllEnvironments

func AllEnvironments() []DatabricksEnvironment

func DefaultEnvironment

func DefaultEnvironment() DatabricksEnvironment

we default to AWS Prod environment since this case will be a hit for PVC

func GetEnvironmentForHostname

func GetEnvironmentForHostname(hostname string) DatabricksEnvironment

func (DatabricksEnvironment) AzureActiveDirectoryEndpoint

func (de DatabricksEnvironment) AzureActiveDirectoryEndpoint() string

func (DatabricksEnvironment) AzureResourceManagerEndpoint

func (de DatabricksEnvironment) AzureResourceManagerEndpoint() string

func (DatabricksEnvironment) AzureServiceManagementEndpoint

func (de DatabricksEnvironment) AzureServiceManagementEndpoint() string

func (DatabricksEnvironment) DeploymentURL

func (de DatabricksEnvironment) DeploymentURL(name string) string

Jump to

Keyboard shortcuts

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