Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRegionDomain ¶
GetRegionDomain returns the domain for a region
func IsValidRegion ¶
IsValidRegion checks if a region is supported
func SupportedRegions ¶
func SupportedRegions() []string
SupportedRegions returns list of supported regions
Types ¶
type Config ¶
type Config struct {
IdpURL string
IdpClientID string
IDPProviderName string
IdpProtocol string
DomainName string
AUTHURL string
Region string
RedirectPort int
OutputFile string
NoBrowser bool
CodeChallengeMethod string // "S256" (default) or "plain"
Scope string // OIDC scopes (default: "openid email profile roles groups organization offline_access")
Endpoints *ServiceEndpoints // Service endpoints for the region
}
func (*Config) GetScopes ¶
GetScopes returns the scopes as a space-separated string with + for URL encoding
func (*Config) ReloadEndpoints ¶
ReloadEndpoints reloads endpoints if region changes
func (*Config) ValidateCodeChallengeMethod ¶
ValidateCodeChallengeMethod validates the code challenge method
type RegionConfig ¶
type RegionConfig struct {
Name string
Domain string
IsSwiss bool
IAMPrefix string // Special IAM prefix for some regions
}
RegionConfig holds region-specific configuration
func GetRegionConfig ¶
func GetRegionConfig(region string) (*RegionConfig, error)
GetRegionConfig returns configuration for a specific region
type ServiceEndpoints ¶
type ServiceEndpoints struct {
// Identity and Access Management
IAM string
// Compute Services
ECS string // Elastic Cloud Server
IMS string // Image Management Service
AS string // Auto Scaling
FGS string // FunctionGraph
// Storage Services
EVS string // Elastic Volume Service
OBS string // Object Storage Service
SFS string // Scalable File Service
CBR string // Cloud Backup and Recovery
SDRS string // Storage Disaster Recovery Service
// Network Services
VPC string // Virtual Private Cloud
EIP string // Elastic IP
NAT string // NAT Gateway
VPN string // VPN
ELB string // Elastic Load Balancer
DNS string // Domain Name Service
VPCEP string // VPC Endpoint
// Container Services
CCE string // Cloud Container Engine
SWR string // Software Repository for Container
// Database Services
RDS string // Relational Database Service
DDS string // Document Database Service
GaussDB string // GaussDB Database
DCS string // Distributed Cache Service
DDM string // Distributed Database Middleware
// Application Services
APIG string // API Gateway
DMS string // Distributed Message Service
SMN string // Simple Message Notification
DIS string // Data Ingestion Service
FunctionGraph string
// Security Services
WAF string // Web Application Firewall
AntiDDoS string // Anti-DDoS
CFW string // Cloud Firewall
// Management & Deployment
CTS string // Cloud Trace Service
LTS string // Log Tank Service
AOM string // Application Operations Management
CES string // Cloud Eye Service
TMS string // Tag Management Service
RMS string // Resource Management Service
// Big Data & AI
DWS string // Data Warehouse Service
MRS string // MapReduce Service
DLI string // Data Lake Insight
ModelArts string
// DevOps
CodeArts string
ServiceStage string
// Legacy/Alias
Compute string // Alias for ECS
}
ServiceEndpoints defines all service endpoints for different regions
func GetEndpoints ¶
func GetEndpoints(region string) (*ServiceEndpoints, error)
GetEndpoints returns service endpoints for a given region
Click to show internal directories.
Click to hide internal directories.