Documentation
¶
Index ¶
- Variables
- func Command() *cli.Command
- func Config(opts ...setupOpt) config
- func Setup(config config) error
- func SetupRepo(config config, path string) error
- func SetupUser(config config, userPath string) error
- func WithInternalApi(api string) setupOpt
- func WithScanPath(scanPath string) setupOpt
- type HookResponse
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Config ¶
func Config(opts ...setupOpt) config
func Setup ¶
func Setup(config config) error
setup hooks for all users
directory structure is typically like so:
did:plc:foobar/repo1 did:plc:foobar/repo2 did:web:barbaz/repo1
func SetupRepo ¶
setup hook in /scanpath/did:plc:user/repo
func SetupUser ¶
setup hooks in /scanpath/did:plc:user
Types ¶
Source Files
¶
- hook.go
- setup.go
Click to show internal directories.
Click to hide internal directories.