repos

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package repos holds the rules of a repository that the store keeps.

Index

Constants

View Source
const DefaultBranch = "main"

DefaultBranch is the ref that creation points at the root commit.

View Source
const Prefix = "native"

Prefix is the repository prefix of a repository that the store keeps.

Variables

View Source
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: repo_ and random base32 text.

func RootObjects

func RootObjects(at time.Time) []gitpack.Object

RootObjects returns the empty tree and a parentless commit of it, with the fixed author motte and at as the time.

func Text

func Text(path string) string

Text returns the repository text of a path.

func ValidName

func ValidName(name string) (string, error)

ValidName trims name and applies the name rule: 1 to 100 bytes, no control character.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL