plumbing

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NOOP do not do anything
	NOOP = iota + 1
	// SYNC Git synchronize (Clone, Pull, Checkout)
	SYNC
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Plumbing

type Plumbing struct {
	Base string
	// contains filtered or unexported fields
}

Plumbing Manages downloading of metadata

func New

func New(basedir string) *Plumbing

New create a new plumber. All repositories downloaded will be under the basedir.

func (*Plumbing) Branch

func (plu *Plumbing) Branch() string

Branch branch to checkout.

func (*Plumbing) Handler

func (plu *Plumbing) Handler(url string) error

Handler Set the item to get

func (*Plumbing) Method

func (plu *Plumbing) Method() int

Method actions to perform.

func (*Plumbing) Path

func (plu *Plumbing) Path() string

Path local path on disk.

func (*Plumbing) Scheme

func (plu *Plumbing) Scheme() string

Scheme URL scheme.

func (*Plumbing) URL

func (plu *Plumbing) URL() string

URL original URL.

Jump to

Keyboard shortcuts

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