add

package
v0.7.8-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResult

func GetResult(b []byte, logger *logrus.Logger, cmd string) ([]runner.ShellResult, error)

func Run

func Run(b []byte, logger *logrus.Logger, cmd string) error

func User

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

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"`
}

func ParseNewUserConfig

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

func (*NewUserConfig) IsValid

func (config *NewUserConfig) IsValid() error

Jump to

Keyboard shortcuts

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