Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockDevice ¶ added in v0.4.30
type BlockDevice struct { Name string `json:"name"` FsType string `json:"fstype"` Children []*BlockDevice `json:"children"` }
func ListBlockDevices ¶ added in v0.4.30
func ListBlockDevices(ctx context.Context) ([]*BlockDevice, error)
type Config ¶
type Config struct { // Device name with Docker partition, for example "/dev/sda2". Device string `yaml:"device"` // Cipher type. Cipher string `yaml:"cipher"` // Filesystem type. FsType string `yaml:"fs_type"` // Where to mount the encrypted Docker partition. MountPoint string `yaml:"mount_point"` }
type CreateEncryptedVolumeAction ¶
func (*CreateEncryptedVolumeAction) Execute ¶
func (m *CreateEncryptedVolumeAction) Execute(ctx context.Context) error
func (*CreateEncryptedVolumeAction) Rollback ¶
func (m *CreateEncryptedVolumeAction) Rollback() error
type CreateFileSystemAction ¶ added in v0.4.30
func (*CreateFileSystemAction) Execute ¶ added in v0.4.30
func (m *CreateFileSystemAction) Execute(ctx context.Context) error
func (*CreateFileSystemAction) Rollback ¶ added in v0.4.30
func (m *CreateFileSystemAction) Rollback() error
type CreateMountPointAction ¶
func (*CreateMountPointAction) Execute ¶
func (m *CreateMountPointAction) Execute(ctx context.Context) error
func (*CreateMountPointAction) Rollback ¶
func (m *CreateMountPointAction) Rollback() error
type FailAction ¶
type FailAction struct{}
func (*FailAction) Rollback ¶
func (m *FailAction) Rollback() error
type InitService ¶
type InitService struct {
// contains filtered or unexported fields
}
func NewInitService ¶
func NewInitService(cfg *Config, log *zap.SugaredLogger) *InitService
func (*InitService) Mount ¶
func (m *InitService) Mount(ctx context.Context, request *sonm.InitMountRequest) (*sonm.InitMountResponse, error)
func (*InitService) Reset ¶
func (m *InitService) Reset(ctx context.Context)
type MountDeviceMapperAction ¶
func (*MountDeviceMapperAction) Execute ¶
func (m *MountDeviceMapperAction) Execute(ctx context.Context) error
func (*MountDeviceMapperAction) Rollback ¶
func (m *MountDeviceMapperAction) Rollback() error
type StartDockerAction ¶
type StartDockerAction struct { }
func (*StartDockerAction) Rollback ¶
func (m *StartDockerAction) Rollback() error
Click to show internal directories.
Click to hide internal directories.