1
0
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:
S.Çağlar Onur
2014-11-18 14:19:12 -05:00
parent af1368c218
commit 3351c0ea32
2 changed files with 13 additions and 13 deletions

View File

@@ -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)

View File

@@ -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
}