repo

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrReportStarted = errors.New("protocol: reporter start")
)

Functions

func StripAnsi

func StripAnsi(s string) string

Types

type Command

type Command struct {
	RID           int64                  `json:"rid"`
	UID           int64                  `json:"uid"`
	ReferenceName plumbing.ReferenceName `json:"reference_name"`
	OldRev        string                 `json:"old_rev"`
	NewRev        string                 `json:"new_rev"`
	Language      string                 // language
	Terminal      string                 // term
	M             int
	B             int
}

func (*Command) UpdateStats

func (c *Command) UpdateStats(s string)

func (*Command) W

func (c *Command) W(message string) string

type QR

type QR struct {
	*odb.QuarantineDB
	// contains filtered or unexported fields
}

func NewQR

func NewQR(o *odb.ODB, quarantineDir string) (*QR, error)

func (*QR) Close

func (r *QR) Close() error

type Repositories

type Repositories interface {
	Open(ctx context.Context, rid int64, compressionAlgo, defaultBranch string) (Repository, error)
	New(ctx context.Context, newRepo *database.Repository, u *database.User, empty bool) (*database.Repository, error)
}

func NewRepositories

func NewRepositories(root string, ossConfig *serve.OSS, cacheConfig *serve.Cache, mdb database.DB) (Repositories, error)

type Repository

type Repository interface {
	Initialize(ctx context.Context, u *database.User, initBranch string) error
	LsTag(ctx context.Context, tagName string) (string, string, error)
	ParseRev(ctx context.Context, rev string) (*RevObjects, error)
	DoPush(ctx context.Context, cmd *Command, reader io.Reader, w io.Writer) error
	ODB() odb.DB
	Close() error
}

type RevObjects

type RevObjects struct {
	Target  *object.Commit
	Objects map[string]object.Encoder
}

Jump to

Keyboard shortcuts

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