Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "import", Short: "Import objects into registry", Long: "Import objects into registry from pregenerated files", Example: `xk6-registry import registry.bolt preset.json xk6-registry import registry.bolt preset.json another_preset.json`, RunE: runCmd, Args: cobra.MinimumNArgs(2), }
Cmd represents the import command.
Functions ¶
func ImportJSONPreGen ¶
func ImportJSONPreGen(o *registry.ObjRegistry, filename string) error
ImportJSONPreGen writes objects from pregenerated JSON file to the registry. Note that ImportJSONPreGen does not check if object already exists in the registry so in case of re-entry the registry will have two entities representing the same object.
Types ¶
Click to show internal directories.
Click to hide internal directories.