repo

package
v0.0.0-...-105113c Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const LockFile = "repo.lock"
View Source
const Root = ".idrop"

Variables

This section is empty.

Functions

func FileExists

func FileExists(filename string) bool

FileExists check if the file with the given path exits.

func Init

func Init(repoPath string, conf *config.Config) error

Types

type FSRepo

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

func (*FSRepo) Config

func (r *FSRepo) Config() (*config.Config, error)

func (*FSRepo) Path

func (r *FSRepo) Path() string

type Repo

type Repo interface {
	Config() (*config.Config, error)
	Path() string
}

func Open

func Open(repoPath string) (Repo, error)

Open the FSRepo at path. Returns an error if the repo is not initialized.

Jump to

Keyboard shortcuts

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