cache

package
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "cache",
	Short: "Manage caches within an Apigee environment",
	Long:  "Manage caches within an Apigee environment",
}

Cmd to manage tracing of apis

View Source
var DelCmd = &cobra.Command{
	Use:   "delete",
	Short: "Delete a cache resource from the environment",
	Long:  "Delete a cache resource from the environment",
	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 = cache.Delete(name)
		return
	},
}

Cmd to delete cache

View Source
var ListCmd = &cobra.Command{
	Use:   "list",
	Short: "List all caches in your environment",
	Long:  "List all caches in your environment",
	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 = cache.List()
		return

	},
}

Cmd to list caches

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL