Files
kata-containers/virtcontainers/persist/api/interface.go
Wei Zhang b42fde69c0 persist: demo code for persist api
Demonstrate how to make use of `virtcontainer/persist/api` data structure
package.

Signed-off-by: Wei Zhang <zhangwei555@huawei.com>
2019-04-19 15:33:53 +08:00

17 lines
405 B
Go

// Copyright (c) 2018 Huawei Corporation
//
// SPDX-License-Identifier: Apache-2.0
//
package persistapi
// PersistDriver is interface describing operations to save/restore persist data
type PersistDriver interface {
// Dump persist data to
Dump() error
Restore(sid string) error
Destroy() error
GetStates() (*SandboxState, map[string]ContainerState, error)
RegisterHook(name string, f SetFunc)
}