Documentation ¶
Index ¶
- Variables
- func BindProjectIpAndPublicUrl(c *Config) (isExist bool, err error)
- func Generate(config *raiden.Config, projectPath string) error
- func GetConfigFilePath(projectPath string) string
- func IsConfigExist(projectPath string) bool
- func PromptAccessToken(c *Config) error
- func PromptAnonKey(c *Config) error
- func PromptBreakerEnable(c *Config) error
- func PromptCreateNewProjectConfirmation(c *Config) (isCreateNew bool, err error)
- func PromptJob(c *Config) error
- func PromptProjectName(c *Config) error
- func PromptServiceKey(c *Config) error
- func PromptSupabaseApiPath(c *Config) error
- func PromptSupabaseApiUrl(c *Config) error
- func PromptSupabasePublicUrl(c *Config) error
- func PromptTargetDeployment(c *Config) error
- func PromptTraceCollector(c *Config) error
- func PromptTraceCollectorEndpoint(c *Config) error
- func PromptTraceEnable(c *Config) error
- type Config
- type Flags
Constants ¶
This section is empty.
Variables ¶
var ConfigureLogger hclog.Logger = logger.HcLog().Named("configure")
Functions ¶
func BindProjectIpAndPublicUrl ¶
----- Bind Project Id And Public For Cloud Deployment -----
func GetConfigFilePath ¶
func IsConfigExist ¶
func PromptAccessToken ¶
func PromptAnonKey ¶
func PromptBreakerEnable ¶
func PromptProjectName ¶
func PromptServiceKey ¶
func PromptSupabaseApiPath ¶
func PromptSupabaseApiUrl ¶
func PromptSupabasePublicUrl ¶
func PromptTargetDeployment ¶
func PromptTraceCollector ¶
func PromptTraceEnable ¶
Types ¶
type Config ¶
The `Config` struct is embedding the `raiden.Config` struct. This means that the `Config` struct inherits all the fields and methods of the `raiden.Config` struct, making it easier to work with the configuration data. It allows the `Config` struct to have access to all the fields and methods defined in the `raiden.Config` struct without having to redefine them.
func AdvanceConfigure ¶
func Run ¶
The Run function checks if a config file exists and prompts the user to reconfigure if desired, then either performs a simple or advanced configuration based on the provided flags.
func SimpleConfigure ¶
The function `SimpleConfigure` prompts the user for configuration options and returns a `Config` object or an error.
type Flags ¶
type Flags struct {
Advance bool
}
The `Flags` struct is used to store the command line flags that can be passed to the program. In this case, it has a single boolean field `Advance` which represents whether the program should run in advance mode or not. This flag is used to determine the flow of the configuration process.
func (*Flags) Bind ¶
The `Bind` method is used to bind the `Flags` struct to the command line flags of a `cobra.Command` object. It takes a `cobra.Command` object as a parameter and sets up a boolean flag named "advance" with a default value of `false`. The value of this flag will be stored in the `Advance` field of the `Flags` struct. This allows the program to read the value of the "advance" flag from the command line and use it to determine whether to run in advance mode or not.