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) PostMount(ctx context.Context, path string, complete bool) (bool, error)
- func (m *KindFileSystem) PostSetup(ctx context.Context, complete bool) (bool, error)
- func (m *KindFileSystem) PostUnmount(ctx context.Context, complete bool) (bool, error)
- func (m *KindFileSystem) PreDeactivate(ctx context.Context, complete bool) (bool, error)
- func (m *KindFileSystem) PreMount(ctx context.Context, complete bool) (bool, error)
- func (m *KindFileSystem) PreTeardown(ctx context.Context, complete bool) (bool, error)
- func (m *KindFileSystem) PreUnmount(ctx context.Context, path string, complete bool) (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) LustreRunCommands(ctx context.Context, complete bool, commands []string, phase string, ...) (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) PostMount(ctx context.Context, path string, complete bool) (bool, error)
- func (l *LustreFileSystem) PostSetup(ctx context.Context, complete bool) (bool, error)
- func (l *LustreFileSystem) PostUnmount(ctx context.Context, complete bool) (bool, error)
- func (l *LustreFileSystem) PreDeactivate(ctx context.Context, complete bool) (bool, error)
- func (l *LustreFileSystem) PreMount(ctx context.Context, complete bool) (bool, error)
- func (l *LustreFileSystem) PreTeardown(ctx context.Context, complete bool) (bool, error)
- func (l *LustreFileSystem) PreUnmount(ctx context.Context, path string, complete bool) (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) PostMount(ctx context.Context, path string, complete bool) (bool, error)
- func (m *MockFileSystem) PostSetup(ctx context.Context, complete bool) (bool, error)
- func (m *MockFileSystem) PostUnmount(ctx context.Context, complete bool) (bool, error)
- func (m *MockFileSystem) PreDeactivate(ctx context.Context, complete bool) (bool, error)
- func (m *MockFileSystem) PreMount(ctx context.Context, complete bool) (bool, error)
- func (m *MockFileSystem) PreTeardown(ctx context.Context, complete bool) (bool, error)
- func (m *MockFileSystem) PreUnmount(ctx context.Context, path string, complete bool) (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) PostMount(ctx context.Context, path string, complete bool) (bool, error)
- func (f *SimpleFileSystem) PostSetup(ctx context.Context, complete bool) (bool, error)
- func (f *SimpleFileSystem) PostUnmount(ctx context.Context, complete bool) (bool, error)
- func (f *SimpleFileSystem) PreDeactivate(ctx context.Context, complete bool) (bool, error)
- func (f *SimpleFileSystem) PreMount(ctx context.Context, complete bool) (bool, error)
- func (f *SimpleFileSystem) PreTeardown(ctx context.Context, complete bool) (bool, error)
- func (f *SimpleFileSystem) PreUnmount(ctx context.Context, path string, complete bool) (bool, error)
- func (f *SimpleFileSystem) SimpleRunCommands(ctx context.Context, complete bool, commands []string, phase string, ...) (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 on the OS before the file system is mounted
PreMount(ctx context.Context, complete bool) (bool, error)
// Run any commands against the file system after it has been mounted
PostMount(ctx context.Context, path string, complete bool) (bool, error)
// Run any commands against the file system before it is unmounted
PreUnmount(ctx context.Context, path string, complete bool) (bool, error)
// Run any commands on the OS after the file system is unmounted
PostUnmount(ctx context.Context, complete bool) (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, complete bool) (bool, error)
// Run any commands against the mounted file system after it has been fully created. PostSetup
// is only run on the Rabbit during the Setup phase
PostSetup(ctx context.Context, complete bool) (bool, error)
// Run any commands against the mounted file system before it is torn down. PreTeardown
// is only run on the Rabbit during the Teardown phase
PreTeardown(ctx context.Context, complete bool) (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) PostUnmount ¶ added in v0.1.29
func (*KindFileSystem) PreDeactivate ¶ added in v0.1.16
func (*KindFileSystem) PreTeardown ¶ added in v0.1.29
func (*KindFileSystem) PreUnmount ¶ added in v0.1.17
type LustreFileSystem ¶
type LustreFileSystem struct {
Log logr.Logger
CommandArgs LustreFileSystemCommandArgs
Name string
TargetType string
TargetPath string
MgsAddress string
Index int
BackFs string
TempDir 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) LustreRunCommands ¶ added in v0.1.29
func (*LustreFileSystem) PostActivate ¶ added in v0.1.16
func (*LustreFileSystem) PostUnmount ¶ added in v0.1.29
func (*LustreFileSystem) PreDeactivate ¶ added in v0.1.16
func (*LustreFileSystem) PreTeardown ¶ added in v0.1.29
func (*LustreFileSystem) PreUnmount ¶ added in v0.1.17
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) PostUnmount ¶ added in v0.1.29
func (*MockFileSystem) PreDeactivate ¶ added in v0.1.16
func (*MockFileSystem) PreTeardown ¶ added in v0.1.29
func (*MockFileSystem) PreUnmount ¶ added in v0.1.17
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) PostUnmount ¶ added in v0.1.29
func (*SimpleFileSystem) PreDeactivate ¶ added in v0.1.16
func (*SimpleFileSystem) PreTeardown ¶ added in v0.1.29
func (*SimpleFileSystem) PreUnmount ¶ added in v0.1.17
func (*SimpleFileSystem) SimpleRunCommands ¶ added in v0.1.29
Click to show internal directories.
Click to hide internal directories.