Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
RefreshInterval time.Duration `yaml:"refresh_interval"`
PkgRepos []*PkgRepo `yaml:"pkg_repos"`
}
Config is a Webman config
type PkgRepo ¶
type PkgRepo struct {
Name string `yaml:"name"`
Type PkgRepoType `yaml:"type"`
User string `yaml:"user"`
Repo string `yaml:"repo"`
Branch string `yaml:"branch"`
GiteaURL string `yaml:"gitea_url"`
}
PkgRepo is a package repository
func (PkgRepo) RefreshRecipes ¶
RefreshRecipes refreshes the recipes for a PkgRepo
func (PkgRepo) ShouldRefreshRecipes ¶
ShouldRefreshRecipes determines whether a PkgRepo needs to be refreshed
type PkgRepoType ¶
type PkgRepoType string
PkgRepoType is the package repository type
const ( PkgRepoTypeGitHub PkgRepoType = "github" PkgRepoTypeGitea PkgRepoType = "gitea" )
Click to show internal directories.
Click to hide internal directories.