Documentation
¶
Index ¶
- type FileSystem
- type KindFileSystem
- func (m *KindFileSystem) Activate(ctx context.Context, complete bool) (bool, error)
- func (m *KindFileSystem) Create(ctx context.Context, complete bool) (bool, error)
- func (m *KindFileSystem) Deactivate(ctx context.Context) (bool, error)
- func (m *KindFileSystem) Destroy(ctx context.Context) (bool, error)
- func (m *KindFileSystem) Mount(ctx context.Context, path string, complete bool) (bool, error)
- func (m *KindFileSystem) PostActivate(ctx context.Context, complete bool) (bool, error)
- func (m *KindFileSystem) PreDeactivate(ctx context.Context) (bool, error)
- func (m *KindFileSystem) Unmount(ctx context.Context, path string) (bool, error)
- type LustreFileSystem
- func (l *LustreFileSystem) Activate(ctx context.Context, complete bool) (bool, error)
- func (l *LustreFileSystem) Create(ctx context.Context, complete bool) (bool, error)
- func (l *LustreFileSystem) Deactivate(ctx context.Context) (bool, error)
- func (l *LustreFileSystem) Destroy(ctx context.Context) (bool, error)
- func (l *LustreFileSystem) Mount(ctx context.Context, path string, complete bool) (bool, error)
- func (l *LustreFileSystem) PostActivate(ctx context.Context, complete bool) (bool, error)
- func (l *LustreFileSystem) PreDeactivate(ctx context.Context) (bool, error)
- func (l *LustreFileSystem) Unmount(ctx context.Context, path string) (bool, error)
- type LustreFileSystemCommandArgs
- type MockFileSystem
- func (m *MockFileSystem) Activate(ctx context.Context, complete bool) (bool, error)
- func (m *MockFileSystem) Create(ctx context.Context, complete bool) (bool, error)
- func (m *MockFileSystem) Deactivate(ctx context.Context) (bool, error)
- func (m *MockFileSystem) Destroy(ctx context.Context) (bool, error)
- func (m *MockFileSystem) Mount(ctx context.Context, path string, complete bool) (bool, error)
- func (m *MockFileSystem) PostActivate(ctx context.Context, complete bool) (bool, error)
- func (m *MockFileSystem) PreDeactivate(ctx context.Context) (bool, error)
- func (m *MockFileSystem) Unmount(ctx context.Context, path string) (bool, error)
- type SimpleFileSystem
- func (f *SimpleFileSystem) Activate(ctx context.Context, complete bool) (bool, error)
- func (f *SimpleFileSystem) Create(ctx context.Context, complete bool) (bool, error)
- func (f *SimpleFileSystem) Deactivate(ctx context.Context) (bool, error)
- func (f *SimpleFileSystem) Destroy(ctx context.Context) (bool, error)
- func (f *SimpleFileSystem) Mount(ctx context.Context, path string, complete bool) (bool, error)
- func (f *SimpleFileSystem) PostActivate(ctx context.Context, complete bool) (bool, error)
- func (f *SimpleFileSystem) PreDeactivate(ctx context.Context) (bool, error)
- func (f *SimpleFileSystem) Unmount(ctx context.Context, path string) (bool, error)
- type SimpleFileSystemCommandArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
type FileSystem interface {
// Create the file system (e.g., mkfs)
Create(ctx context.Context, complete bool) (bool, error)
// Destroy the file system (e.g., wipefs)
Destroy(ctx context.Context) (bool, error)
// Activate the file system (e.g., mount Lustre target)
Activate(ctx context.Context, complete bool) (bool, error)
// Deactivate the file system (e.g., unmount Lustre target)
Deactivate(ctx context.Context) (bool, error)
// Mount the file system
Mount(ctx context.Context, path string, complete bool) (bool, error)
// Unmount the file system
Unmount(ctx context.Context, path string) (bool, error)
// Run any commands against the file system after it has been activated
PostActivate(ctx context.Context, complete bool) (bool, error)
// Run any commands against the activated file system before it is deactivated
PreDeactivate(ctx context.Context) (bool, error)
}
type KindFileSystem ¶
type KindFileSystem struct {
Log logr.Logger
Path string
BlockDevice blockdevice.BlockDevice
}
func (*KindFileSystem) Deactivate ¶
func (m *KindFileSystem) Deactivate(ctx context.Context) (bool, error)
func (*KindFileSystem) Destroy ¶
func (m *KindFileSystem) Destroy(ctx context.Context) (bool, error)
func (*KindFileSystem) PostActivate ¶ added in v0.1.16
func (*KindFileSystem) PreDeactivate ¶ added in v0.1.16
func (m *KindFileSystem) PreDeactivate(ctx context.Context) (bool, error)
type LustreFileSystem ¶
type LustreFileSystem struct {
Log logr.Logger
CommandArgs LustreFileSystemCommandArgs
Name string
TargetType string
TargetPath string
MgsAddress string
Index int
BackFs string
BlockDevice blockdevice.BlockDevice
}
func (*LustreFileSystem) Deactivate ¶
func (l *LustreFileSystem) Deactivate(ctx context.Context) (bool, error)
func (*LustreFileSystem) Destroy ¶
func (l *LustreFileSystem) Destroy(ctx context.Context) (bool, error)
func (*LustreFileSystem) PostActivate ¶ added in v0.1.16
func (*LustreFileSystem) PreDeactivate ¶ added in v0.1.16
func (l *LustreFileSystem) PreDeactivate(ctx context.Context) (bool, error)
type MockFileSystem ¶
type MockFileSystem struct {
Log logr.Logger
Path string
BlockDevice blockdevice.BlockDevice
}
func (*MockFileSystem) Deactivate ¶
func (m *MockFileSystem) Deactivate(ctx context.Context) (bool, error)
func (*MockFileSystem) Destroy ¶
func (m *MockFileSystem) Destroy(ctx context.Context) (bool, error)
func (*MockFileSystem) PostActivate ¶ added in v0.1.16
func (*MockFileSystem) PreDeactivate ¶ added in v0.1.16
func (m *MockFileSystem) PreDeactivate(ctx context.Context) (bool, error)
type SimpleFileSystem ¶
type SimpleFileSystem struct {
Log logr.Logger
CommandArgs SimpleFileSystemCommandArgs
Type string
MountTarget string
TempDir string
BlockDevice blockdevice.BlockDevice
}
func (*SimpleFileSystem) Deactivate ¶
func (f *SimpleFileSystem) Deactivate(ctx context.Context) (bool, error)
func (*SimpleFileSystem) Destroy ¶
func (f *SimpleFileSystem) Destroy(ctx context.Context) (bool, error)
func (*SimpleFileSystem) PostActivate ¶ added in v0.1.16
func (*SimpleFileSystem) PreDeactivate ¶ added in v0.1.16
func (f *SimpleFileSystem) PreDeactivate(ctx context.Context) (bool, error)
Click to show internal directories.
Click to hide internal directories.