Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServicedCli ¶
type ServicedCli struct {
// contains filtered or unexported fields
}
ServicedCli is the client ui for serviced
Example (CmdBackup) ¶
// Invalid path InitBackupAPITest("serviced", "backup", PathNotFound) // Backup returns an empty file path InitBackupAPITest("serviced", "backup", NilPath) // Success InitBackupAPITest("serviced", "backup", "path/to/dir")
Output: dir.tgz
Example (CmdRestore) ¶
InitBackupAPITest("serviced", "restore", PathNotFound) InitBackupAPITest("serviced", "restore", "path/to/file")
Output:
func New ¶
func New(driver api.API) *ServicedCli
func (*ServicedCli) Run ¶
func (c *ServicedCli) Run(args []string)
Run builds the command-line interface for serviced and runs.
Click to show internal directories.
Click to hide internal directories.