configure

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigureLogger hclog.Logger = logger.HcLog().Named("configure")

Functions

func BindProjectIpAndPublicUrl

func BindProjectIpAndPublicUrl(c *Config) (isExist bool, err error)

----- Bind Project Id And Public For Cloud Deployment -----

func Generate

func Generate(config *raiden.Config, projectPath string) error

func GetConfigFilePath

func GetConfigFilePath(projectPath string) string

func IsConfigExist

func IsConfigExist(projectPath string) bool

func PromptAccessToken

func PromptAccessToken(c *Config) error

func PromptAnonKey

func PromptAnonKey(c *Config) error

func PromptBreakerEnable

func PromptBreakerEnable(c *Config) error

func PromptCreateNewProjectConfirmation

func PromptCreateNewProjectConfirmation(c *Config) (isCreateNew bool, err error)

func PromptJob

func PromptJob(c *Config) error

func PromptProjectName

func PromptProjectName(c *Config) error

func PromptServiceKey

func PromptServiceKey(c *Config) error

func PromptSupabaseApiPath

func PromptSupabaseApiPath(c *Config) error

func PromptSupabaseApiUrl

func PromptSupabaseApiUrl(c *Config) error

func PromptSupabasePublicUrl

func PromptSupabasePublicUrl(c *Config) error

func PromptTargetDeployment

func PromptTargetDeployment(c *Config) error

func PromptTraceCollector

func PromptTraceCollector(c *Config) error

func PromptTraceCollectorEndpoint

func PromptTraceCollectorEndpoint(c *Config) error

func PromptTraceEnable

func PromptTraceEnable(c *Config) error

Types

type Config

type Config struct {
	raiden.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 AdvanceConfigure() (*Config, error)

func Run

func Run(f *Flags, projectPath string) (*Config, error)

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

func SimpleConfigure() (*Config, error)

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

func (f *Flags) Bind(cmd *cobra.Command)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL