repo

package
v0.0.0-...-2109d8c 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

func BaseDir() string

Types

type NullRepo

type NullRepo struct{}

func (NullRepo) BaseDir

func (NullRepo) BaseDir() string

func (NullRepo) Commit

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

func (NullRepo) List

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

func (NullRepo) LoadRev

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