repo

package
v0.0.0-...-a0b8de0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const Extension = ".xcr"

Variables

View Source
var ErrInvalidPath = errors.New("invalid asset requested")
View Source
var (
	ErrNotFound = errors.New("entry not found")
)

Functions

This section is empty.

Types

type DirEntry

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

func (*DirEntry) Asset

func (e *DirEntry) Asset(name string) (string, []byte, error)

func (*DirEntry) RepoId

func (e *DirEntry) RepoId() string

func (*DirEntry) SaveSumfile

func (e *DirEntry) SaveSumfile(sf *sumfile.Sumfile) error

func (*DirEntry) Script

func (e *DirEntry) Script() (string, []byte, error)

func (*DirEntry) Sumfile

func (e *DirEntry) Sumfile() (*sumfile.Sumfile, error)

type Directory

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

func NewDirectory

func NewDirectory(path string) (*Directory, error)

func (*Directory) Config

func (d *Directory) Config() (*metadata.RepoConfig, error)

func (*Directory) Lookup

func (d *Directory) Lookup(name string) (Entry, error)

type Entry

type Entry interface {
	RepoId() string
	Script() (string, []byte, error)
	Asset(name string) (string, []byte, error)
	Sumfile() (*sumfile.Sumfile, error)
	SaveSumfile(sf *sumfile.Sumfile) error
}

type Repo

type Repo interface {
	Lookup(name string) (Entry, error)
	Config() (*metadata.RepoConfig, error)
}

func Open

func Open(path string) (Repo, error)

Jump to

Keyboard shortcuts

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