Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthHandler ¶
type NewRepoHandler ¶
type PresubmissionHandler ¶
type RepoHosting ¶
type RepoHosting struct { ShellError string MOTD string // if unset, one will be generated PrivateKey ssh.Signer // path to the directory containing repos to serve. RepoBase string // if set, overrides RepoBase + user-supplied repo name. if neither // RepoBase or Repo are set, Repo defaults to "." Repo string // if empty, *all* users will be allowed. AuthorizedKeys []ssh.PublicKey // If set, these commands override the default git-receive-pack and // git-upload-pack GitReceivePack string GitUploadPack string }
func (*RepoHosting) ListenAndServe ¶
func (rh *RepoHosting) ListenAndServe(network, address string) (err error)
type RepoSubmissions ¶
type RepoSubmissions struct { PrivateKey ssh.Signer ShellError string MOTD string StoragePath func(user_id, repo_name string) string Clean bool PresubmissionHandler PresubmissionHandler SubmissionHandler SubmissionHandler AuthHandler AuthHandler NewRepoHandler NewRepoHandler MaxPushSize int64 // If set, these commands override the default git-receive-pack and // git-upload-pack GitReceivePack string GitUploadPack string // contains filtered or unexported fields }
func (*RepoSubmissions) ListenAndServe ¶
func (rs *RepoSubmissions) ListenAndServe(network, address string) ( err error)
type SubmissionHandler ¶
Click to show internal directories.
Click to hide internal directories.