repo

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseDir added in v0.1.1

func BaseDir() string

Types

type NullRepo added in v0.1.4

type NullRepo struct{}

func (NullRepo) BaseDir added in v0.1.4

func (NullRepo) BaseDir() string

func (NullRepo) Commit added in v0.1.4

func (NullRepo) Commit(files ...string) error

func (NullRepo) List added in v0.1.4

func (NullRepo) List() ([]*Rev, error)

func (NullRepo) LoadRev added in v0.1.4

func (NullRepo) LoadRev(version string) (*Rev, error)

type Repo

type Repo interface {
	Commit(files ...string) error
	List() ([]*Rev, error)
	LoadRev(version string) (*Rev, error)
	BaseDir() string
}

func New

func New() (Repo, error)

type Rev

type Rev struct {
	Id   string
	Date time.Time

	Infra  *graph.Graph
	Access *graph.Graph
}

func (*Rev) DateString

func (r *Rev) DateString() string

Jump to

Keyboard shortcuts

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