Documentation
¶
Overview ¶
Package cmd provides all the commands
Package cmd provides a service command
Index ¶
- Constants
- func FuncDescription(f interface{}) (desc string)
- func FuncName(f interface{}) string
- func FuncPathAndName(f interface{}) string
- func NewFakeGRPCServer() gRPCServer
- func NewRootCmd(execer fakeruntime.Execer, gRPCServer gRPCServer, httpServer server.HTTPServer) (c *cobra.Command)
- type Action
- type Service
Constants ¶
View Source
const ( ServiceModeOS serviceMode = "os" ServiceModeContainer serviceMode = "container" ServiceModePodman serviceMode = "podman" ServiceModeDocker serviceMode = "docker" )
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, httpServer server.HTTPServer) (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 Uninstall() (string, error) // uninstall the service }
Service is the interface of service
Source Files
¶
Click to show internal directories.
Click to hide internal directories.