storage

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetadataDirname = "metadata"
	SourceDirname   = "src"
	RepoFilename    = "repo.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func NewStorage

func NewStorage(workingDir string) (*Storage, error)

func (*Storage) DoGc

func (s *Storage) DoGc() error

func (*Storage) ListDirs

func (s *Storage) ListDirs() ([]string, error)

func (*Storage) ListRepoPaths

func (s *Storage) ListRepoPaths(prefix, baseUrl, owner string, regex *regexp.Regexp, glob string) ([]string, error)

func (*Storage) RepoPath

func (s *Storage) RepoPath(prefix, baseUrl, owner, repo string) string

func (*Storage) UpdateRepoMetadata

func (s *Storage) UpdateRepoMetadata(domain, name, repo string, data []byte) error

func (*Storage) UpdateSource

func (s *Storage) UpdateSource(domain, name, repo, cloneUrl, tokenEnvvarName string) error

Jump to

Keyboard shortcuts

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