Documentation ¶
Index ¶
- Constants
- func AddPlugins(plugins []types.PluginConfig, new []types.PluginConfig) ([]types.PluginConfig, error)
- func AspectBaseUrl(isProTier bool) string
- func HomeConfigFile() (string, error)
- func HomeConfigFolder() (string, error)
- func IsProTier(tier string) bool
- func IsValidTier(tier string) bool
- func Load(v *viper.Viper, args []string) error
- func LoadConfigFile(f string) (*viper.Viper, error)
- func LoadHomeConfig() (*viper.Viper, error)
- func LoadSystemConfig() (*viper.Viper, error)
- func LoadWorkspaceConfig() (*viper.Viper, error)
- func MarshalPluginConfig(plugins []types.PluginConfig) interface{}
- func MaybeLoadConfigFile(f string) (*viper.Viper, error)
- func SetInHomeConfig(key string, value interface{}) (string, bool, error)
- func SetInWorkspaceConfig(key string, value interface{}) (string, bool, error)
- func SystemConfigFile() string
- func UnmarshalPluginConfig(pluginsConfig interface{}) ([]types.PluginConfig, error)
- func WorkspaceConfigFile() (string, error)
- func WorkspaceConfigFolder() (string, error)
- func Write(v *viper.Viper) error
- type ConfigFlagValues
- type VersionConfig
- type VersionTuple
Constants ¶
View Source
const ( AspectSystemConfigFolder = "/etc/aspect/cli" // for linux & darwin AspectConfigFolder = ".aspect/cli" AspectConfigFile = "config.yaml" )
Variables ¶
This section is empty.
Functions ¶
func AddPlugins ¶ added in v1.502.0
func AddPlugins(plugins []types.PluginConfig, new []types.PluginConfig) ([]types.PluginConfig, error)
func AspectBaseUrl ¶
func HomeConfigFile ¶
func HomeConfigFolder ¶
func IsValidTier ¶
func LoadConfigFile ¶
Load a config file and fail if it is not found
func LoadHomeConfig ¶
func LoadSystemConfig ¶ added in v1.502.0
func LoadWorkspaceConfig ¶
func MarshalPluginConfig ¶ added in v1.502.0
func MarshalPluginConfig(plugins []types.PluginConfig) interface{}
func MaybeLoadConfigFile ¶
Load a config file if it is found
func SetInHomeConfig ¶
Sets a value in the Aspect CLI $HOME configuration. Returns the path of the config file written to & true if the configuration file is newly created.
func SetInWorkspaceConfig ¶
Sets a value in the Aspect CLI $WORKSPACE configuration. Returns the path of the config file written to & true if the configuration file is newly created.
func SystemConfigFile ¶ added in v1.502.0
func SystemConfigFile() string
func UnmarshalPluginConfig ¶ added in v1.502.0
func UnmarshalPluginConfig(pluginsConfig interface{}) ([]types.PluginConfig, error)
func WorkspaceConfigFile ¶
func WorkspaceConfigFolder ¶
Types ¶
type ConfigFlagValues ¶
type ConfigFlagValues struct { UserConfigs []string SystemConfig bool WorkspaceConfig bool HomeConfig bool }
func ParseConfigFlags ¶
func ParseConfigFlags(args []string) (*ConfigFlagValues, error)
type VersionConfig ¶
type VersionConfig struct { VersionTuple Configured bool AutoTier bool BaseUrl string IsProTier bool }
func GetVersionConfig ¶
func GetVersionConfig() (*VersionConfig, error)
type VersionTuple ¶
func ParseConfigVersion ¶
func ParseConfigVersion(version string) (VersionTuple, error)
Click to show internal directories.
Click to hide internal directories.