Documentation
¶
Index ¶
- Variables
- func Execute()
- func GenerateCLionConfig() error
- func GenerateGitignore() error
- func GenerateMapsHeader(config *OuroborosConfig) error
- func GenerateProgramsHeader(config *OuroborosConfig) error
- func GenerateVSCodeConfig() error
- func RunPostProgramAdd(config *OuroborosConfig) error
- func WriteConfig(config *OuroborosConfig) error
- type OuroborosConfig
- type Program
- type ProgramMetadata
- type SharedMapConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{
Use: "ouroboros",
Short: "A management tool for multiple eBPF programs",
}
Functions ¶
func GenerateCLionConfig ¶
func GenerateCLionConfig() error
func GenerateGitignore ¶
func GenerateGitignore() error
func GenerateMapsHeader ¶
func GenerateMapsHeader(config *OuroborosConfig) error
func GenerateProgramsHeader ¶
func GenerateProgramsHeader(config *OuroborosConfig) error
func GenerateVSCodeConfig ¶
func GenerateVSCodeConfig() error
func RunPostProgramAdd ¶
func RunPostProgramAdd(config *OuroborosConfig) error
func WriteConfig ¶
func WriteConfig(config *OuroborosConfig) error
Types ¶
type OuroborosConfig ¶
type OuroborosConfig struct {
Programs []Program `json:"programs"`
CompileArgs []string `json:"compile_args"`
ProgramMap string `json:"program_map,omitempty"`
ProgramPrefix string `json:"program_prefix,omitempty"`
}
func ReadConfig ¶
func ReadConfig() (*OuroborosConfig, error)
func (*OuroborosConfig) GetMainProgram ¶
func (c *OuroborosConfig) GetMainProgram() *Program
func (*OuroborosConfig) GetProgramMap ¶
func (c *OuroborosConfig) GetProgramMap() string
type Program ¶
type Program struct {
Name string `json:"name"`
ID int `json:"id"`
IsMain bool `json:"is_main,omitempty"`
Metadata *ProgramMetadata `json:"metadata,omitempty"`
}
type ProgramMetadata ¶
type ProgramMetadata struct {
HiddenOnFlow bool `json:"hidden_on_flow,omitempty"`
}
type SharedMapConfig ¶
type SharedMapConfig struct {
}
Click to show internal directories.
Click to hide internal directories.