auth

package
v0.0.0-...-2febe3a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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

func (*DefaultLuks) SetOption

func (d *DefaultLuks) SetOption(key string, value string) error

type Option

type Option struct {
	Key   string `yaml:"key"`
	Value string `yaml:"value"`
}

Option Simple key-value string pair

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

func (*PasswordLuks) SetOption

func (p *PasswordLuks) SetOption(key string, value string) error

type USBLuks

type USBLuks struct {
	// contains filtered or unexported fields
}

func NewUSBLuks

func NewUSBLuks() (*USBLuks, error)

func (*USBLuks) GetKey

func (u *USBLuks) GetKey() ([]byte, error)

func (*USBLuks) GetOption

func (u *USBLuks) GetOption(key string) string

func (*USBLuks) SetOption

func (u *USBLuks) SetOption(key string, value string) error

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

func (*YubikeyLuks) SetOption

func (p *YubikeyLuks) SetOption(key string, value string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL