Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindConfigPath ¶
FindConfigPath searches for the config file starting from current directory and traversing up parent directories until found or limits are reached
func FindProjectRoot ¶
FindProjectRoot returns the directory containing ouroboros.json
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"`
ProgramMapMaxEntries uint32 `json:"program_map_max_entries,omitempty"`
ProgramPrefix string `json:"program_prefix,omitempty"`
BpfBaseDir string `json:"bpf_base_dir,omitempty"`
}
func ReadConfig ¶
func ReadConfig() (*OuroborosConfig, error)
func (*OuroborosConfig) GetBpfBaseDir ¶
func (c *OuroborosConfig) GetBpfBaseDir() string
func (*OuroborosConfig) GetMainProgram ¶
func (c *OuroborosConfig) GetMainProgram() *Program
func (*OuroborosConfig) GetMapOptions ¶
func (c *OuroborosConfig) GetMapOptions() ebpf.MapOptions
func (*OuroborosConfig) GetProgramMap ¶
func (c *OuroborosConfig) GetProgramMap() string
func (*OuroborosConfig) GetProgramMapMaxEntries ¶ added in v0.1.1
func (c *OuroborosConfig) GetProgramMapMaxEntries() uint32
type Program ¶
type Program struct {
Name string `json:"name"`
ID int `json:"id"`
IsMain bool `json:"is_main,omitempty"`
Metadata *ProgramMetadata `json:"metadata,omitempty"`
Entrypoint string `json:"entrypoint,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.