gitremote

package
v0.0.0-...-0b74930 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mainloop

func Mainloop(init func(remote, url string) (Helper, error))

func PartiallyValidateRefName

func PartiallyValidateRefName(ref string) error

Types

type FetchRef

type FetchRef struct {
	Sha1 string
	Name string
}

type Helper

type Helper interface {
	List() ([]ListRef, error)
	ListForPush() ([]ListRef, error)
	Fetch(refs []FetchRef) error
	Push(refs []PushRef) ([]error, error)
}

type ListRef

type ListRef struct {
	// TODO: support for listing other forms of refs besides sha1 hashes
	Sha1 string
	Name string
}

type PushRef

type PushRef struct {
	Force  bool
	Source string
	Dest   string
}

Jump to

Keyboard shortcuts

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