add

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func User

User 添加user指令入口

Types

type NewUserConfig

type NewUserConfig struct {
	NewUser struct {
		Name     string `yaml:"name"`
		Nologin  bool   `yaml:"nologin"`
		Password string `yaml:"password"`
		UserDir  string `yaml:"user-dir"`
	} `yaml:"new-user"`
}

NewUserConfig 新增用户属性

func ParseNewUserConfig

func ParseNewUserConfig(b []byte, logger *logrus.Logger) (*NewUserConfig, error)

ParseNewUserConfig 解析新用户属性

func (*NewUserConfig) IsValid

func (config *NewUserConfig) IsValid() error

IsValid 判断用户属性是否合法

Jump to

Keyboard shortcuts

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