Documentation
¶
Overview ¶
Home dir is used for reading OCI config file and SSH keys
Index ¶
- Variables
- func CheckError(err error)
- func ConfigFileInit()
- func ConfigFileRead()
- func GenerateID(length int) string
- func HomeDir() string
- func LookUpTenancyID(tenancyName string) (string, error)
- func OciConfig() common.ConfigurationProvider
- func OciProfile() string
- func PrintTenancyMap()
- func SetCompartmentConfig(FlagCompartment *pflag.Flag, compartments map[string]string, ...)
- func SetTenancyConfig(FlagTenancyId *pflag.Flag, ociConfig common.ConfigurationProvider)
- func WriteCompartmentToFile(compartment string, compartments map[string]string)
- type Config
- type OciTenancyEnvironment
Constants ¶
This section is empty.
Variables ¶
View Source
var Blue = color.New(color.FgCyan)
View Source
var ColumnFmt = color.New(color.FgYellow).SprintfFunc()
View Source
var Faint = color.New(color.Faint)
View Source
var Italic = color.New(color.Italic)
View Source
var Logger *slog.Logger
View Source
var Yellow = color.New(color.FgYellow)
Functions ¶
func CheckError ¶
func CheckError(err error)
func ConfigFileRead ¶
func ConfigFileRead()
Load config file into Viper config Note: Only compartment is persisted in config file
func GenerateID ¶ added in v1.4.0
func LookUpTenancyID ¶
func OciConfig ¶
func OciConfig() common.ConfigurationProvider
func OciProfile ¶
func OciProfile() string
func PrintTenancyMap ¶
func PrintTenancyMap()
func SetCompartmentConfig ¶
func SetTenancyConfig ¶
func SetTenancyConfig(FlagTenancyId *pflag.Flag, ociConfig common.ConfigurationProvider)
func WriteCompartmentToFile ¶
Reset config file and wite compartment to file Note: Since we only care about persisting compartment to file, we will not use Viper to write the config, which would persist all Viper configuration
Types ¶
Click to show internal directories.
Click to hide internal directories.