keystores

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:     "keystores",
	Aliases: []string{"ks"},
	Short:   "Manage Key Stores",
	Long:    "Manage Key Stores",
}

Cmd to manage key stores

View Source
var CreateCmd = &cobra.Command{
	Use:   "create",
	Short: "Create a Key Store",
	Long:  "Create a Key Store",
	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 = keystores.Create(name)
		return
	},
}

Cmd to create key stores

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

Cmd to delete key stores

View Source
var GetCmd = &cobra.Command{
	Use:   "get",
	Short: "Get a Key Store",
	Long:  "Get a Key Store",
	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 = keystores.Get(name)
		return
	},
}

Cmd to get key stores

View Source
var ListCmd = &cobra.Command{
	Use:   "list",
	Short: "List Key Stores",
	Long:  "List Key Stores",
	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 = keystores.List()
		return
	},
}

Cmd to list key stores

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