Documentation ¶
Index ¶
- Constants
- Variables
- func BindPFlags(cmd *cobra.Command, _ []string)
- func InitConfig()
- func LoadApiCredentialsFile()
- func LoadConfigFile(output any, filename string) (bool, error)
- func MarkValidFlagCombinations(cmd *cobra.Command, favoriteFlagCombination []string, ...)
- func OtterizeConfigDirPath() (string, error)
- func RegisterStringArg(cmd *cobra.Command, configKey string, usage string, required bool)
- func RegisterStringArgShorthand(cmd *cobra.Command, configKey string, usage string, required bool, ...)
- func RegisterStringArgShorthandWithDefault(cmd *cobra.Command, configKey string, usage string, required bool, ...)
- func RegisterStringArgWithDefault(cmd *cobra.Command, configKey string, usage string, required bool, ...)
- func SaveConfig(conf Config) error
- func SaveJSONConfig(config any, filename string) error
- func ValidateFlagCombination(cmd *cobra.Command) error
- type Config
- type MissingFlagsError
Constants ¶
View Source
const ApiClientIdKey = "client-id"
View Source
const ApiClientSecretKey = "client-secret"
View Source
const ApiCredentialsFilename = "credentials"
View Source
const ApiSelectedOrganizationId = "org-id"
View Source
const ApiUserTokenExpiryKey = "token-expiry"
View Source
const ApiUserTokenKey = "token"
View Source
const DebugDefault = false
View Source
const DebugKey = "debug"
View Source
const DefaultTimeout = 60 * time.Second
View Source
const EnvPrefix = "OTTERIZE"
View Source
const InteractiveModeKey = "interactive"
View Source
const OtterizeAPIAddressDefault = "https://app.otterize.com/api"
View Source
const OtterizeAPIAddressKey = "api-address"
View Source
const OtterizeConfigDirName = ".otterize"
View Source
const OtterizeConfigFileName = "config"
View Source
const OutputDefault = OutputText
View Source
const OutputJson = "json"
View Source
const OutputKey = "output"
View Source
const OutputText = "text"
View Source
const OutputYaml = "yaml"
View Source
const QuietModeDefault = false
View Source
const QuietModeKey = "quiet"
View Source
const QuietModeShorthand = "q"
Variables ¶
View Source
var CfgFile string // used for flag
Functions ¶
func BindPFlags ¶
func InitConfig ¶ added in v0.1.9
func InitConfig()
func LoadApiCredentialsFile ¶ added in v0.1.9
func LoadApiCredentialsFile()
func LoadConfigFile ¶ added in v0.1.9
func MarkValidFlagCombinations ¶ added in v0.1.9
func OtterizeConfigDirPath ¶ added in v0.1.9
func RegisterStringArg ¶ added in v0.1.9
func RegisterStringArgShorthand ¶ added in v0.1.9
func RegisterStringArgShorthandWithDefault ¶ added in v0.1.9
func RegisterStringArgWithDefault ¶ added in v0.1.9
func SaveConfig ¶ added in v0.1.9
func SaveJSONConfig ¶ added in v0.1.9
func ValidateFlagCombination ¶ added in v0.1.9
Types ¶
type MissingFlagsError ¶ added in v0.1.9
func (MissingFlagsError) Error ¶ added in v0.1.9
func (m MissingFlagsError) Error() string
Click to show internal directories.
Click to hide internal directories.