environment

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

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"
)

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