vcs

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Err errs.HandlerIface
}

Options constructor options

type Repo

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

func (*Repo) Checkout

func (r *Repo) Checkout(ref string) error

Checkout checks out a reference

func (*Repo) Pull

func (r *Repo) Pull() error

func (*Repo) Tags

func (r *Repo) Tags() (tags []string)

Tags will list all tags

func (*Repo) Versions

func (r *Repo) Versions() (versions []string)

Versions will return a list of versions that match semantic versioning

type VCS

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

VCS package information

func New

func New(opts *Options) *VCS

New constructor

func (*VCS) Clone

func (i *VCS) Clone(url, path string) (repo *Repo, err error)

Clone will clone a remote repository

func (*VCS) Open

func (i *VCS) Open(path string) (repo *Repo, err error)

Jump to

Keyboard shortcuts

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