plumb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 4 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 Plumb

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

Plumb plumbing for fetching URLs

func New

func New(basedir, url, ref string) (*Plumb, error)

New is a Plumb constructor

func (*Plumb) Local

func (p *Plumb) Local(relative string) string

Local takes relative path returns absolute path. Slash is replaced using path seperator.

func (*Plumb) Method

func (p *Plumb) Method() int

Method actions to perform.

func (*Plumb) Path

func (p *Plumb) Path() string

Path local path on disk.

func (*Plumb) Ref

func (p *Plumb) Ref() string

Ref branch to checkout.

func (*Plumb) Scheme

func (p *Plumb) Scheme() string

Scheme URL scheme.

func (*Plumb) URL

func (p *Plumb) URL() string

URL original URL.

Jump to

Keyboard shortcuts

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