Documentation ¶
Index ¶
- type Config
- func (cfg *Config) AuthRepo(repo string, pk ssh.PublicKey) gm.AccessLevel
- func (cfg *Config) Fetch(repo string, pk ssh.PublicKey)
- func (cfg *Config) PasswordHandler(ctx ssh.Context, password string) bool
- func (cfg *Config) PublicKeyHandler(ctx ssh.Context, pk ssh.PublicKey) bool
- func (cfg *Config) Push(repo string, pk ssh.PublicKey)
- func (cfg *Config) Reload() error
- type Repo
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string `yaml:"name"` Host string `yaml:"host"` Port int `yaml:"port"` AnonAccess string `yaml:"anon-access"` AllowKeyless bool `yaml:"allow-keyless"` Users []User `yaml:"users"` Repos []Repo `yaml:"repos"` Source *git.RepoSource Cfg *config.Config }
func (*Config) PasswordHandler ¶
func (*Config) PublicKeyHandler ¶
Click to show internal directories.
Click to hide internal directories.