Documentation ¶
Index ¶
- Constants
- func CurrentUser() (*user.User, error)
- func ExecWithUid(uid, gid uint32, name string, args ...string) *exec.Cmd
- func GetUid(username string, current bool) (uid uint32, gid uint32, err error)
- func LookupUser(username string) (*user.User, error)
- func ServeGitShell(config *Config, ctx context.Context) error
- type Config
Constants ¶
View Source
const Embedded = true
Variables ¶
This section is empty.
Functions ¶
func CurrentUser ¶
Types ¶
type Config ¶
type Config struct { Enable bool `toml:"enable"` User string `toml:"user"` CurrentUser bool `toml:"current_user"` SSHUser string `toml:"ssh_user"` GitShell string `toml:"git_shell"` GitUserHome string `toml:"git_user_home"` AuthorizedKeys string `toml:"authorized_keys"` WatchKeys bool `toml:"watch_keys"` MaxGitShellProcesses int `toml:"max_git_shell_processes"` RefuseWhenBusy bool `toml:"refuse_when_busy"` }
func (*Config) FillDefault ¶
Click to show internal directories.
Click to hide internal directories.