Documentation ¶
Index ¶
Constants ¶
View Source
const (
SchemaVersion = "0.1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheMetadata ¶
type Config ¶
type Config struct {
Repositories []Repository `json:"repositories"`
}
func (*Config) EnabledRepositories ¶
func (c *Config) EnabledRepositories() []Repository
type Duration ¶
Duration is a wrapper around time.Duration that implements UnmarshalJSON
func (Duration) MarshalJSON ¶
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface
type Index ¶
type Index struct { Path string // Path to the index file UpdatedAt time.Time Packages map[string]PackageEntry }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages the repositories
func NewManager ¶
func NewManager(cacheRoot string, opts ...ManagerOption) *Manager
func (*Manager) DownloadRepositories ¶
type ManagerOption ¶
type ManagerOption func(indexer *Manager)
func WithWriter ¶
func WithWriter(w io.Writer) ManagerOption
type PackageEntry ¶
type RawIndex ¶
type RawIndex struct { UpdatedAt time.Time `json:"updated_at"` Packages []PackageEntry `json:"packages"` }
Click to show internal directories.
Click to hide internal directories.