Documentation
¶
Index ¶
- func AuthorizeSSHKeys(user string, keysName string, keys []string) error
- func CreateUser(u *config.User) error
- func EnsureDirectoryExists(dir string) error
- func SetUserPassword(user, hash string) error
- func UserExists(u *config.User) bool
- func WriteEnvFile(ef *EnvFile, root string) error
- func WriteFile(f *File, root string) (string, error)
- type EnvFile
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizeSSHKeys ¶
Add the provide SSH public key to the core user's list of authorized keys
func WriteEnvFile ¶
WriteEnvFile updates an existing env `KEY=value` formated file with new values provided in EnvFile.Vars; File.Content is ignored. Existing ordering and any unknown formatting such as comments are preserved. If no changes are required the file is untouched.
Types ¶
type EnvFile ¶
Click to show internal directories.
Click to hide internal directories.