Documentation
¶
Overview ¶
Package cmd provides all the commands
Package cmd provides a service command
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FuncDescription ¶ added in v0.0.12
func FuncDescription(f interface{}) (desc string)
Get description of a func
func FuncName ¶ added in v0.0.12
func FuncName(f interface{}) string
Get the name of a func (with package path)
func FuncPathAndName ¶ added in v0.0.12
func FuncPathAndName(f interface{}) string
Get the name and path of a func
func NewFakeGRPCServer ¶ added in v0.0.11
func NewFakeGRPCServer() gRPCServer
NewFakeGRPCServer creates a fake gRPC server
func NewRootCmd ¶ added in v0.0.5
func NewRootCmd(execer fakeruntime.Execer, gRPCServer gRPCServer) (c *cobra.Command)
NewRootCmd creates the root command
Types ¶
type Service ¶ added in v0.0.12
type Service interface { Start() (string, error) // start the service Stop() (string, error) // stop the service gracefully Restart() (string, error) // restart the service gracefully Status() (string, error) // status of the service Install() (string, error) // install the service }
Service is the interface of service
Click to show internal directories.
Click to hide internal directories.