Documentation ¶
Index ¶
- Variables
- func CheckUsername(username string) (b bool)
- func DoDetect() ([]string, []string, error)
- func GrubPBKDF2Crypto(usr, passwd string) (string, error)
- func InitGrubPBKDF2() *pbkdf2_arg
- func IsInSlice(element string, elements []string) (isIn bool)
- func ToString(v interface{}) string
- type ActionType
Constants ¶
This section is empty.
Variables ¶
View Source
var GrubPBKDF2 *pbkdf2_arg
Functions ¶
func GrubPBKDF2Crypto ¶
func InitGrubPBKDF2 ¶
func InitGrubPBKDF2() *pbkdf2_arg
Types ¶
type ActionType ¶
type ActionType int
const ( // const MenuCryptoCfg = "../../etc/grub.d/42_uos_menu_crypto" MenuCryptoCfg = "./42_uos_menu_crypto" Add ActionType = iota + 1 Delete Disable Enable )
func (ActionType) WriteConfig ¶
func (action ActionType) WriteConfig(usr string, chiperPasswd ...string) error
写入文件
Click to show internal directories.
Click to hide internal directories.