cmd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GenkeyCmd = &cobra.Command{
	Use:   "genkey",
	Short: "Generating public/private ed25519 key pair",
	Long:  `Generating public/private ed25519 key pair`,
	Run:   genkey,
}
View Source
var RootCmd = &cobra.Command{
	Use:   "kepler",
	Short: "An example of cobra",
	Long: `This application shows how to create modern CLI 
applications in go using Cobra CLI library`,
}
View Source
var ShowCmd = &cobra.Command{
	Use:   "show",
	Short: "display csr or crt contents",
	Long:  `display csr or crt contents`,
	Run:   show,
}
View Source
var SignCmd = &cobra.Command{
	Use:   "sign",
	Short: "Sign certificate",
	Long:  `Sign certificate`,
	Run:   sign,
}
View Source
var TrustCmd *cobra.Command = &cobra.Command{
	Use:   "trust",
	Short: "add trust certificate",
	Long:  `add trust certificate`,
	Run:   trust,
}
View Source
var VerifyCmd = &cobra.Command{
	Use:   "verify",
	Short: "verify certificate signature",
	Long:  `verify certificate signature`,
	Run:   verify,
}
View Source
var VersionCmd = &cobra.Command{
	Use:   "version",
	Short: "Show version info",
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println(version)
	},
}

Functions

func Execute

func Execute()

func MustMarshalBinaryBare

func MustMarshalBinaryBare(obj interface{}) []byte

func MustMarshalJson

func MustMarshalJson(obj interface{}) []byte

func QCPReqCmd

func QCPReqCmd() *cobra.Command

func QSCReqCmd

func QSCReqCmd() *cobra.Command

func ReqCmd

func ReqCmd() *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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