daos

package
v0.0.0-...-55124c5 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitDAO

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

GitDAO is a wrapper around repo-metadata git repo.

func NewGitDAO

func NewGitDAO() *GitDAO

NewGitDAO creates a new data access object for the repo-metadata git repo.

func (*GitDAO) Age

func (dao *GitDAO) Age() time.Duration

Age returns the age of the underlying repository (time since last poll)

func (*GitDAO) Get

func (dao *GitDAO) Get(path string) (*models.Project, error)

Get returns a new Project entity. Either from cache or from the data layer.

func (*GitDAO) List

func (dao *GitDAO) List() []string

func (*GitDAO) ResetCache

func (dao *GitDAO) ResetCache()

ResetCache resets internal caching.

func (*GitDAO) UpdateClone

func (dao *GitDAO) UpdateClone() string

UpdateClone clones (if applicable), pulls, resets caches (if applicable).

Jump to

Keyboard shortcuts

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