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 `yaml:"-"` Cfg *config.Config `yaml:"-"` // contains filtered or unexported fields }
Config is the Soft Serve configuration.
func (*Config) PasswordHandler ¶
PasswordHandler returns whether or not password access is allowed.
func (*Config) PublicKeyHandler ¶
PublicKeyHandler returns whether or not the given public key may access the repo.
Click to show internal directories.
Click to hide internal directories.