Documentation ¶
Index ¶
Constants ¶
View Source
const SyncFrequency = time.Hour * 24
SyncFrequency determines how frequently sources will be synced.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuiltInSource ¶
type BuiltInSource struct {
// contains filtered or unexported fields
}
BuiltInSource is a source for built in packages
func NewBuiltInSource ¶
func NewBuiltInSource(dir fs.FS) *BuiltInSource
NewBuiltInSource returns a new MemSource
func (*BuiltInSource) Bundle ¶
func (s *BuiltInSource) Bundle() fs.FS
func (*BuiltInSource) URI ¶
func (s *BuiltInSource) URI() string
type GitSource ¶
type GitSource struct {
// contains filtered or unexported fields
}
GitSource is a new Source based on a git repo
func NewGitSource ¶
NewGitSource returns a new GitSource
type LocalSource ¶
type LocalSource struct {
// contains filtered or unexported fields
}
LocalSource is a new Source based on a local filesystem
func NewLocalSource ¶
func NewLocalSource(uri string, f fs.FS) *LocalSource
NewLocalSource returns a new LocalSource
func (*LocalSource) Bundle ¶
func (s *LocalSource) Bundle() fs.FS
func (*LocalSource) URI ¶
func (s *LocalSource) URI() string
type MemSource ¶
type MemSource struct {
// contains filtered or unexported fields
}
MemSource is a new Source based on a name and content kept in memory
func NewMemSource ¶
NewMemSource returns a new MemSource
type Source ¶
type Source interface { // Sync synchronises these sources from the possibly remote origin Sync(p *ui.UI, force bool) error // URI returns a URI for the source URI() string // Bundle returns a fs.FS for the manifests from this source Bundle() fs.FS }
Source is a single source for manifest files
type Sources ¶
type Sources struct {
// contains filtered or unexported fields
}
Sources knows how to sync manifests from various sources such as git repositories.
Click to show internal directories.
Click to hide internal directories.