cloud

package
v0.0.0-...-6709811 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 3 Imported by: 0

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
}

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