Documentation ¶
Index ¶
- func AdminRepo() string
- func AdminRepoPath() string
- func CanInit(user, repo string) bool
- func CanRead(user, repo string) bool
- func CanWrite(user, repo string) bool
- func HgwebConfigPath() string
- func Refresh() error
- func Setup(repositoriesPath, adminRepo string) error
- func Teardown()
- func UsernameFromFingerprint(fingerprint string) (string, error)
- func UsernameFromPubkey(pubkey ssh.PublicKey) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminRepoPath ¶
func AdminRepoPath() string
func HgwebConfigPath ¶
func HgwebConfigPath() string
func Refresh ¶
func Refresh() error
Refresh will try to reload the casbin model and policies followed by SSH keys. If there is an error it's possible that the casbin model and polcies could have been updated but the ssh keys were not.
func UsernameFromFingerprint ¶
UsernameFromFingerprint looks up a username from an SSH key's fingerprint and returns the username if found, or err if not found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.