Documentation
¶
Overview ¶
Package codehost defines the interface implemented by a code hosting source, along with support code for use by implementations.
Index ¶
- Constants
- Variables
- func AllHex(rev string) bool
- func Run(dir string, cmdline ...any) ([]byte, error)
- func RunWithStdin(dir string, stdin io.Reader, cmdline ...any) ([]byte, error)
- func ShortenSHA1(rev string) string
- func WorkDir(typ, name string) (dir, lockfile string, err error)
- type Origin
- type Repo
- type RevInfo
- type RunError
- type Tag
- type Tags
- type UnknownRevisionError
- type VCSError
Constants ¶
View Source
const ( MaxGoMod = 16 << 20 // maximum size of go.mod file MaxLICENSE = 16 << 20 // maximum size of LICENSE file MaxZipFile = 500 << 20 // maximum size of downloaded zip file )
Downloaded size limits.
Variables ¶
View Source
var ErrNoCommits error = noCommitsError{}
ErrNoCommits is an error equivalent to fs.ErrNotExist indicating that a given repository or module contains no commits.
View Source
var ErrNoRepoHash = errors.New("RepoHash not supported")