mirror of
https://github.com/lxc/go-lxc.git
synced 2026-02-05 06:46:38 +01:00
minor cosmetic change
This commit is contained in:
15
container.go
15
container.go
@@ -39,17 +39,6 @@ type Snapshot struct {
|
||||
Path string
|
||||
}
|
||||
|
||||
type CheckpointOpts struct {
|
||||
Directory string
|
||||
Stop bool
|
||||
Verbose bool
|
||||
}
|
||||
|
||||
type RestoreOpts struct {
|
||||
Directory string
|
||||
Verbose bool
|
||||
}
|
||||
|
||||
const (
|
||||
isDefined = 1 << iota
|
||||
isNotDefined
|
||||
@@ -1365,7 +1354,7 @@ func (c *Container) RemoveDeviceNode(source string, destination ...string) error
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Container) Checkpoint(opts CheckpointOpts) error {
|
||||
func (c *Container) Checkpoint(opts CheckpointOptions) error {
|
||||
|
||||
cdirectory := C.CString(opts.Directory)
|
||||
cstop := C.bool(opts.Stop)
|
||||
@@ -1377,7 +1366,7 @@ func (c *Container) Checkpoint(opts CheckpointOpts) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Container) Restore(opts RestoreOpts) error {
|
||||
func (c *Container) Restore(opts RestoreOptions) error {
|
||||
|
||||
cdirectory := C.CString(opts.Directory)
|
||||
cverbose := C.bool(opts.Verbose)
|
||||
|
||||
11
options.go
11
options.go
@@ -174,3 +174,14 @@ type CloneOptions struct {
|
||||
var DefaultCloneOptions = CloneOptions{
|
||||
Backend: Directory,
|
||||
}
|
||||
|
||||
type CheckpointOptions struct {
|
||||
Directory string
|
||||
Stop bool
|
||||
Verbose bool
|
||||
}
|
||||
|
||||
type RestoreOptions struct {
|
||||
Directory string
|
||||
Verbose bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user