Versions in this module Expand all Collapse all v1 v1.0.1 Oct 7, 2025 Changes in this version + func GetDefaultConfigPath() (string, error) + func ReadConfig(cmd *cobra.Command, expectedProfileType ProfileType, isLastStep ...bool) (*ResolvedProfile, *URLs, error) + func SetAPIEndpoint(endpoint string) error + type ActiveConfig struct + Profile string + type BaseConfig struct + Endpoint string + Output OutputFormat + type Config struct + Active ActiveConfig + ConfigPath string + Default BaseConfig + Profile map[string]*Profile + URLs *URLs + func LoadConfig() (*Config, error) + func NewConfig() *Config + func (c *Config) CreateProfile(name string, profileType ProfileType, endpoint, apiKey string) error + func (c *Config) DeleteProfile(name string) error + func (c *Config) GetActiveProfile() string + func (c *Config) GetProfileWithUrls(profileName string) (*ResolvedProfile, *URLs, error) + func (c *Config) ListProfiles() []string + func (c *Config) LoadURL(filePath string, envName string) (*URLs, error) + func (c *Config) ResolveProfile(profileName string) (*ResolvedProfile, error) + func (c *Config) ResolveProfileAndURLs(cmd *cobra.Command, expectedProfileType ProfileType) (*ResolvedProfile, *URLs, error) + func (c *Config) ResolveURLs(profileName string) (*URLs, error) + func (c *Config) SaveConfig() error + func (c *Config) SetActiveProfile(profileName string) error + func (c *Config) UpdateAPIKey(name, apiKey string) error + func (c *Config) UpdateProfile(name, refreshToken string) error + func (c *Config) ValidateProfile(profileName string) error + type OutputFormat string + const OutputHuman + const OutputJSON + const OutputXML + const OutputYAML + type Profile struct + APIKey string + Endpoint string + Inherits string + Output OutputFormat + Type ProfileType + UpdatedAt time.Time + type ProfileType string + const ProfileTypeComposer + const ProfileTypeConsole + type ResolvedProfile struct + APIKey string + Endpoint string + Name string + Output OutputFormat + Type ProfileType + UpdatedAt time.Time + type URLs struct + BaseURL string + ChURL string + DashURL string + IamURL string + func ConfigureAPIServerURL(endpoint string) (*URLs, error) v1.0.1-alpha Jan 22, 2026