proto

package
v0.0.0-...-f237d81 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GenericNetErr = &ProtoErr{Context: "Network Error"}
)

Functions

func GetRemoteMasterHash

func GetRemoteMasterHash(url, uname, passwd string) (string, error)

func NegotiatePkFile

func NegotiatePkFile()

where the client and server determine what the minimal packfile necessary for transport is

Types

type Pack

type Pack struct {
	Sha string
}

type PktLine

type PktLine struct {
	// contains filtered or unexported fields
}

type PktStream

type PktStream struct {
	// contains filtered or unexported fields
}

pkt-line stream describing each ref and its current value

func DecodePkts

func DecodePkts(stream []byte) PktStream

func (PktStream) EncodePkts

func (streamm PktStream) EncodePkts() io.Reader

type ProtoErr

type ProtoErr struct {
	Context string
	Inner   error
}

func (*ProtoErr) Error

func (p *ProtoErr) Error() string

func (*ProtoErr) Unwrap

func (p *ProtoErr) Unwrap() error

type RefSpec

type RefSpec struct {
	ForceUp, Delete bool
	Src, Dst        string
}

type RefSpecRaw

type RefSpecRaw string

Example of valid refspec: "+refs/heads/*:refs/remotes/origin/*"

func (*RefSpecRaw) Parse

func (r *RefSpecRaw) Parse() (*RefSpec, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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