Documentation
¶
Index ¶
- Variables
- func Command(h Actions) *cobra.Command
- type Actions
- type ExecExitError
- type Handler
- func (h Handler) Clone(cmd *cobra.Command, args []string) error
- func (h Handler) Console(cmd *cobra.Command, args []string) error
- func (h Handler) Create(cmd *cobra.Command, args []string) error
- func (h Handler) Debug(cmd *cobra.Command, args []string) error
- func (h Handler) DeviceAttach(cmd *cobra.Command, args []string) error
- func (h Handler) DeviceDetach(cmd *cobra.Command, args []string) error
- func (h Handler) Exec(cmd *cobra.Command, args []string) error
- func (h Handler) FsAttach(cmd *cobra.Command, args []string) error
- func (h Handler) FsDetach(cmd *cobra.Command, args []string) error
- func (h Handler) Inspect(cmd *cobra.Command, args []string) error
- func (h Handler) List(cmd *cobra.Command, _ []string) error
- func (h Handler) Logs(cmd *cobra.Command, args []string) error
- func (h Handler) NetResize(cmd *cobra.Command, args []string) error
- func (h Handler) RM(cmd *cobra.Command, args []string) error
- func (h Handler) Restore(cmd *cobra.Command, args []string) error
- func (h Handler) Run(cmd *cobra.Command, args []string) error
- func (h Handler) Start(cmd *cobra.Command, args []string) error
- func (h Handler) Status(cmd *cobra.Command, args []string) error
- func (h Handler) Stop(cmd *cobra.Command, args []string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrVsockNotConfigured = errors.New("vsock not configured for this VM")
ErrVsockNotConfigured is returned for VMs predating vsock support (e.g. restored from a legacy snapshot).
Functions ¶
Types ¶
type Actions ¶
type Actions interface {
Create(cmd *cobra.Command, args []string) error
Run(cmd *cobra.Command, args []string) error
Clone(cmd *cobra.Command, args []string) error
Start(cmd *cobra.Command, args []string) error
Stop(cmd *cobra.Command, args []string) error
List(cmd *cobra.Command, args []string) error
Inspect(cmd *cobra.Command, args []string) error
Console(cmd *cobra.Command, args []string) error
Exec(cmd *cobra.Command, args []string) error
Logs(cmd *cobra.Command, args []string) error
RM(cmd *cobra.Command, args []string) error
Restore(cmd *cobra.Command, args []string) error
Debug(cmd *cobra.Command, args []string) error
Status(cmd *cobra.Command, args []string) error
FsAttach(cmd *cobra.Command, args []string) error
FsDetach(cmd *cobra.Command, args []string) error
DeviceAttach(cmd *cobra.Command, args []string) error
DeviceDetach(cmd *cobra.Command, args []string) error
NetResize(cmd *cobra.Command, args []string) error
}
type ExecExitError ¶ added in v0.3.9
type ExecExitError struct{ Code int }
ExecExitError carries the agent child's exit code for host-shell propagation.
func (*ExecExitError) Error ¶ added in v0.3.9
func (e *ExecExitError) Error() string
type Handler ¶
type Handler struct {
cmdcore.BaseHandler
}
func (Handler) DeviceAttach ¶ added in v0.3.9
func (Handler) DeviceDetach ¶ added in v0.3.9
Click to show internal directories.
Click to hide internal directories.