Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface { SetOption(key string, value string) error GetOption(key string) string GetKey() ([]byte, error) }
LuksAuth Simple interface for obtaining a key to provide for cryptsetup
func NewAuthenticator ¶
func NewAuthenticator(authType string, authOptions []Option) (Authenticator, error)
NewAuthenticator Returns a new authenticator for use in encrypting/decrypting luks volumes
type DefaultLuks ¶
type DefaultLuks struct {
// contains filtered or unexported fields
}
func NewDefaultLuks ¶
func NewDefaultLuks() (*DefaultLuks, error)
func (*DefaultLuks) GetKey ¶
func (d *DefaultLuks) GetKey() ([]byte, error)
func (*DefaultLuks) GetOption ¶
func (d *DefaultLuks) GetOption(key string) string
type PasswordLuks ¶
type PasswordLuks struct {
// contains filtered or unexported fields
}
func NewPasswordLuks ¶
func NewPasswordLuks() (*PasswordLuks, error)
func (*PasswordLuks) GetKey ¶
func (p *PasswordLuks) GetKey() ([]byte, error)
func (*PasswordLuks) GetOption ¶
func (p *PasswordLuks) GetOption(key string) string
type YubikeyLuks ¶
type YubikeyLuks struct {
// contains filtered or unexported fields
}
func NewYubikeyLuks ¶
func NewYubikeyLuks() (*YubikeyLuks, error)
func (*YubikeyLuks) GetKey ¶
func (p *YubikeyLuks) GetKey() ([]byte, error)
func (*YubikeyLuks) GetOption ¶
func (p *YubikeyLuks) GetOption(key string) string
Click to show internal directories.
Click to hide internal directories.