Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Agent = &cobra.Command{ Use: "agent", Short: "Skydive agent", Long: "Skydive agent", SilenceUsage: true, Run: func(cmd *cobra.Command, args []string) { logging.SetLoggingID("agent") logging.GetLogger().Notice("Skydive Agent starting...") agent := agent.NewAgent() agent.Start() logging.GetLogger().Notice("Skydive Agent started") ch := make(chan os.Signal) signal.Notify(ch, syscall.SIGINT, syscall.SIGTERM) <-ch agent.Stop() logging.GetLogger().Notice("Skydive Agent stopped.") }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.