Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExportCmd = &cobra.Command{ Use: "export", Short: "Export Otterize intents from network mapper", Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { return mapperclient.WithClient(func(c *mapperclient.Client) error { if err := intentsexporter.ValidateExporterOutputFlags(); err != nil { return err } intents, err := mappershared.QueryIntents() if err != nil { return err } exporter, err := intentsexporter.NewExporter() if err != nil { return err } if err := exporter.ExportIntents(intents); err != nil { return err } return nil }) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.