Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ConfigModifyQueueSize is the size of the event queue for serializing // configuration updates to the daemon ConfigModifyQueueSize = 10 )
Variables ¶
View Source
var ( // RootCmd represents the base command when called without any subcommands RootCmd = &cobra.Command{ Use: components.BpflockAgentName, Short: "Run the bpflock agent", Run: func(cmd *cobra.Command, args []string) { cmdRefDir := viper.GetString(option.CMDRef) if cmdRefDir != "" { genMarkdown(cmd, cmdRefDir) os.Exit(0) } addr := fmt.Sprintf("127.0.0.1:%d", viper.GetInt(option.GopsPort)) addrField := logrus.Fields{"address": addr} if err := gops.Listen(gops.Options{ Addr: addr, ReuseSocketAddrAndPort: true, }); err != nil { log.WithError(err).WithFields(addrField).Fatal("Cannot start gops server") } log.WithFields(addrField).Info("Started gops server") initEnv(cmd) runDaemon() }, } )
Functions ¶
func Execute ¶
func Execute()
Installs the cleanup signal handler and invokes the root command. This function only returns when an interrupt signal has been received. This is intended to be called by main.main().
func NewGetHealthzHandler ¶
func NewGetHealthzHandler(d *Daemon) GetHealthzHandler
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
Daemon is the daemon that is in charge of perform all necessary security locking and auditing mechanisms.
func (*Daemon) DebugEnabled ¶
DebugEnabled returns if debug mode is enabled.
func (*Daemon) GetOptions ¶
func (d *Daemon) GetOptions() *option.IntOptions
GetOptions returns the datapath configuration options of the daemon.
Click to show internal directories.
Click to hide internal directories.