Documentation ¶
Index ¶
- func Init() (persistapi.PersistDriver, error)
- func MockFSInit() (persistapi.PersistDriver, error)
- func MockRunStoragePath() string
- func MockRunVMStoragePath() string
- func MockStorageDestroy()
- func MockStorageRootPath() string
- func RootlessInit() (persistapi.PersistDriver, error)
- type FS
- func (fs *FS) Destroy(sandboxID string) error
- func (fs *FS) FromDisk(sid string) (persistapi.SandboxState, map[string]persistapi.ContainerState, error)
- func (fs *FS) GlobalRead(relativePath string) ([]byte, error)
- func (fs *FS) GlobalWrite(relativePath string, data []byte) error
- func (fs *FS) Lock(sandboxID string, exclusive bool) (func() error, error)
- func (fs *FS) Logger() *logrus.Entry
- func (fs *FS) RunStoragePath() string
- func (fs *FS) RunVMStoragePath() string
- func (fs *FS) ToDisk(ss persistapi.SandboxState, cs map[string]persistapi.ContainerState) (retErr error)
- type MockFS
- type RootlessFS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init() (persistapi.PersistDriver, error)
Init FS persist driver and return abstract PersistDriver
func MockFSInit ¶
func MockFSInit() (persistapi.PersistDriver, error)
func MockRunStoragePath ¶
func MockRunStoragePath() string
func MockRunVMStoragePath ¶
func MockRunVMStoragePath() string
func MockStorageDestroy ¶
func MockStorageDestroy()
func MockStorageRootPath ¶
func MockStorageRootPath() string
func RootlessInit ¶
func RootlessInit() (persistapi.PersistDriver, error)
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS storage driver implementation
func (*FS) FromDisk ¶
func (fs *FS) FromDisk(sid string) (persistapi.SandboxState, map[string]persistapi.ContainerState, error)
FromDisk restores state for sandbox with name sid
func (*FS) RunStoragePath ¶
func (*FS) RunVMStoragePath ¶
func (*FS) ToDisk ¶
func (fs *FS) ToDisk(ss persistapi.SandboxState, cs map[string]persistapi.ContainerState) (retErr error)
ToDisk sandboxState and containerState to disk
type RootlessFS ¶
type RootlessFS struct { // inherit from FS. Overwrite if needed. *FS }
Click to show internal directories.
Click to hide internal directories.