Documentation
¶
Overview ¶
Package repos holds the rules of a repository that the store keeps.
Index ¶
Constants ¶
const DefaultBranch = "main"
DefaultBranch is the ref that creation points at the root commit.
const Prefix = "native"
Prefix is the repository prefix of a repository that the store keeps.
Variables ¶
var ErrInvalidName = errors.New("repos: name must be 1 to 100 bytes with no control character")
Functions ¶
func NewPath ¶
func NewPath() string
NewPath mints the path of a repository: a TypeID with the prefix repo.
func PathOf ¶ added in v0.19.0
PathOf returns the path of the repository that the idempotency key id creates: repo_ and the base32 text of the first 16 bytes of its SHA-256. It keeps this form beside NewPath, because a retry of a create whose first try ran on an earlier release must name the same repository.
func RootObjects ¶
RootObjects returns the empty tree and a parentless commit of it, with the fixed author motte and at as the time.
Types ¶
This section is empty.