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 ¶
RepositoryFile struct defines a file stored in a repository
type RepositoryManager ¶
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)
Click to show internal directories.
Click to hide internal directories.