webrepository

package
v0.0.0-...-da9a50a Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("Repository not found")

ErrNotFound error trown when repository is not found

Functions

This section is empty.

Types

type RepositoryFile

type RepositoryFile struct {
	Name string `json:"name"`
	Path string
}

RepositoryFile struct defines a file stored in a repository

type RepositoryManager

type RepositoryManager struct {
	MasterRepositoryPath    string
	EncryptedRepositoryPath string
}

RepositoryManager contains all repository definitions

func (RepositoryManager) GetMasterFile

func (repManager RepositoryManager) GetMasterFile(name string) (RepositoryFile, error)

GetMasterFile returns a specific repository file

func (RepositoryManager) GetMasterFiles

func (repManager RepositoryManager) GetMasterFiles() func() (RepositoryFile, error)

GetMasterFiles returns all filenames from the master repository

type WebRepository

type WebRepository interface {
	GetMasterFile(name string) (RepositoryFile, error)
	GetMasterFiles() func() (RepositoryFile, error)
}

WebRepository interface for repository db interaction

func Init

func Init(config config.FrontendServerInfo) (i WebRepository, err error)

Init returns a WebPublication interface (db interaction)

Jump to

Keyboard shortcuts

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