Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "targetservers", Aliases: []string{"ts"}, Short: "Manage Target Servers", Long: "Manage Target Servers", }
Cmd to manage targetservers
View Source
var CreateCmd = &cobra.Command{ Use: "create", Short: "Create a Target Server", Long: "Create a Target Server", Args: func(cmd *cobra.Command, args []string) (err error) { apiclient.SetApigeeOrg(org) apiclient.SetApigeeEnv(env) return nil }, RunE: func(cmd *cobra.Command, args []string) (err error) { _, err = targetservers.Create(name, description, host, port, enable) return }, }
CreateCmd to create target servers
View Source
var DelCmd = &cobra.Command{ Use: "delete", Short: "Delete a Target Server", Long: "Delete a Target Server", Args: func(cmd *cobra.Command, args []string) (err error) { apiclient.SetApigeeOrg(org) apiclient.SetApigeeEnv(env) return nil }, RunE: func(cmd *cobra.Command, args []string) (err error) { _, err = targetservers.Delete(name) return }, }
DelCmd to delete target servers
View Source
var ExpCmd = &cobra.Command{ Use: "export", Short: "Export target servers to a file", Long: "Export target servers to a file", Args: func(cmd *cobra.Command, args []string) (err error) { apiclient.SetApigeeOrg(org) apiclient.SetApigeeEnv(env) return nil }, RunE: func(cmd *cobra.Command, args []string) (err error) { const exportFileName = "targetservers.json" payload, err := targetservers.Export(conn) if err != nil { return } return apiclient.WriteArrayByteArrayToFile(exportFileName, false, payload) }, }
ExpCmd to export target servers
View Source
var GetCmd = &cobra.Command{ Use: "get", Short: "Get a Target Server", Long: "Get a Target Server", Args: func(cmd *cobra.Command, args []string) (err error) { apiclient.SetApigeeOrg(org) apiclient.SetApigeeEnv(env) return nil }, RunE: func(cmd *cobra.Command, args []string) (err error) { _, err = targetservers.Get(name) return }, }
Cmd to get target servers
View Source
var ListCmd = &cobra.Command{ Use: "list", Short: "List Target Servers", Long: "List Target Servers", Args: func(cmd *cobra.Command, args []string) (err error) { apiclient.SetApigeeOrg(org) apiclient.SetApigeeEnv(env) return nil }, RunE: func(cmd *cobra.Command, args []string) (err error) { _, err = targetservers.List() return }, }
Cmd to list target servers
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.