repository

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BranchSet

type BranchSet map[string]*branchpb.BranchObject

func (BranchSet) Del

func (b BranchSet) Del(branch string)

func (BranchSet) Get

func (b BranchSet) Get(branch string) (*branchpb.BranchObject, bool)

func (BranchSet) Has

func (b BranchSet) Has(branch string) bool

type FileWriter

type FileWriter struct {
	Writer io.Writer
	Stream branchpb.Branch_StreamFilesServer
}

type Repository

type Repository interface {
	//Repo actions
	GetPath() string
	BranchExists(branch string) bool
	IsBranchCheckedout(branch string) bool
	GetRefCommit(ref string) (*object.Commit, error)
	GetBranchCommit(branch string) (*object.Commit, error)
	GetBranchLog(branch string) ([]*branchpb.Get_Log, error)
	GetBranchSet() BranchSet
	GetBranches() []*branchpb.BranchObject
	CreateBranch(branch string) error
	DeleteBranch(branch string) error
	DiffBranch(branch1, branch2 string) ([]*branchpb.Diff_Diff, error)
	MergeBranch(branch1, branch2 string) error
	StashBranch(branch string) error
	StreamFiles(branch string, w *FileWriter) error
	Checkout(branch string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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