Documentation
¶
Index ¶
- Variables
- func Execute()
- func GenerateCLionConfig() error
- func GenerateGitignore() error
- func GenerateProgramsHeader(cfg *config.OuroborosConfig) error
- func GenerateVSCodeConfig() error
- func GetOuroboros(cmd *cobra.Command) *core.Ouroboros
- func MustGetOuroboros(cmd *cobra.Command) *core.Ouroboros
- func RunPostProgramAdd(config *config.OuroborosConfig) error
- func SetOuroboros(cmd *cobra.Command, o *core.Ouroboros)
- type TailCallInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "ouroboros", Short: "A management tool for multiple eBPF programs", PersistentPreRun: func(cmd *cobra.Command, args []string) { logLevel, _ := cmd.Flags().GetString("log-level") verbose, _ := cmd.Flags().GetBool("verbose") if verbose { logger.SetVerbose(true) } else if logLevel != "" { logger.SetLogLevelString(logLevel) } _ = MustGetOuroboros(cmd) }, }
Functions ¶
func GenerateCLionConfig ¶
func GenerateCLionConfig() error
func GenerateGitignore ¶
func GenerateGitignore() error
func GenerateProgramsHeader ¶
func GenerateProgramsHeader(cfg *config.OuroborosConfig) error
func GenerateVSCodeConfig ¶
func GenerateVSCodeConfig() error
func GetOuroboros ¶
GetOuroboros retrieves the Ouroboros instance from the command context Returns nil if the instance hasn't been initialized
func MustGetOuroboros ¶
MustGetOuroboros retrieves the Ouroboros instance or creates one if it doesn't exist
func RunPostProgramAdd ¶
func RunPostProgramAdd(config *config.OuroborosConfig) error
Types ¶
Click to show internal directories.
Click to hide internal directories.