Documentation ¶
Overview ¶
Package config contains all config structs and logic for indices.
Index ¶
Constants ¶
View Source
const ( // DefaultFilePermissions are the default permissions used for files. DefaultFilePermissions = 0o644 // DefaultDirPermissions are the default permissions used for directories. DefaultDirPermissions = 0o755 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Configs []*Entry `yaml:"configs"`
}
Config aggregates the info about ConfigEntries.
type Entry ¶
type Entry struct { AddedTimestamp string `yaml:"added_timestamp"` Name string `yaml:"name"` UpdatedTimestamp string `yaml:"updated_timestamp"` URL string `yaml:"url"` Backend string `yaml:"backend"` }
Entry contains information about one of the index that were cached locally.
func EntryFromIndex ¶
EntryFromIndex creates a Entry from a config.Index.
Click to show internal directories.
Click to hide internal directories.