cloud

package
v1.23.13 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 3 Imported by: 1 module, 0 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

View Source
const (
	ConfigPath = "cloud"

	AzurePublicName       = "AzureCloud"
	AzureChinaCloudName   = "AzureChinaCloud"
	AzureUSGovernmentName = "AzureUSGovernment"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cloud

type Cloud struct {
	Configuration cloud.Configuration

	// The base URL for the cloud's portal (e.g. https://portal.azure.com for
	// Azure public cloud).
	PortalUrlBase string

	// The suffix for the cloud's storage endpoints (e.g. core.windows.net for
	// Azure public cloud). These are well known values and can be found at:
	// https://<management-endpoint>/metadata/endpoints?api-version=2023-12-01
	StorageEndpointSuffix string

	// The suffix for the cloud's container registry endpoints. These are well
	// known values and can be found at:
	// https://<management-endpoint>/metadata/endpoints?api-version=2023-12-01
	ContainerRegistryEndpointSuffix string

	KeyVaultEndpointSuffix string
}

func AzureChina

func AzureChina() *Cloud

func AzureGovernment

func AzureGovernment() *Cloud

func AzurePublic

func AzurePublic() *Cloud

func NewCloud

func NewCloud(config *Config) (*Cloud, error)

type Config

type Config struct {
	Name string `json:"name,omitempty" yaml:"name,omitempty"`
}

func ParseCloudConfig

func ParseCloudConfig(partialConfig any) (*Config, error)

Jump to

Keyboard shortcuts

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