Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "resources", Aliases: []string{"res"}, Short: "Manage resources within an Apigee environment", Long: "Manage resources within an Apigee environment", }
Cmd to manage resources
View Source
var CreateCmd = &cobra.Command{ Use: "create", Short: "Create a resource file", Long: "Create a resource file", Args: func(cmd *cobra.Command, args []string) (err error) { apiclient.SetApigeeEnv(env) return apiclient.SetApigeeOrg(org) }, RunE: func(cmd *cobra.Command, args []string) (err error) { _, err = res.Create(name, resPath, resType) return }, }
CreateCmd to create a resource
View Source
var DelCmd = &cobra.Command{ Use: "delete", Short: "Delete a resource file", Long: "Delete a resource file", Args: func(cmd *cobra.Command, args []string) (err error) { apiclient.SetApigeeEnv(env) return apiclient.SetApigeeOrg(org) }, RunE: func(cmd *cobra.Command, args []string) (err error) { _, err = res.Delete(name, resType) return }, }
DelCmd to del a resource
View Source
var GetCmd = &cobra.Command{ Use: "get", Short: "Get a resource file", Long: "Get a resource file", Args: func(cmd *cobra.Command, args []string) (err error) { apiclient.SetApigeeEnv(env) return apiclient.SetApigeeOrg(org) }, RunE: func(cmd *cobra.Command, args []string) (err error) { return res.Get(name, resType) }, }
GetCmd to get a resource
View Source
var ListCmd = &cobra.Command{ Use: "list", Short: "List all resources in your environment", Long: "List all resources in your environment", Args: func(cmd *cobra.Command, args []string) (err error) { apiclient.SetApigeeEnv(env) return apiclient.SetApigeeOrg(org) }, RunE: func(cmd *cobra.Command, args []string) (err error) { _, err = res.List(resType) return }, }
ListCmd to list resources
View Source
var UpdateCmd = &cobra.Command{ Use: "update", Short: "Update a resource file", Long: "Update a resource file", Args: func(cmd *cobra.Command, args []string) (err error) { apiclient.SetApigeeEnv(env) return apiclient.SetApigeeOrg(org) }, RunE: func(cmd *cobra.Command, args []string) (err error) { return res.Update(name, resPath, resType) }, }
UpdateCmd to get a resource
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.