Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSourceFileNotFound = errors.New("source file not found")
)
Functions ¶
This section is empty.
Types ¶
type Cacheable ¶
type Cacheable interface {
CacheKey() string
}
Cacheable indicates that a given config can be cached by the returned key. This allows duplicate configurations to only fetch latest versions once.
type CratesConfig ¶
type CratesConfig struct {
CrateName string `yaml:"crate_name"`
}
CratesConfig is the crates.io API configuration.
func (CratesConfig) CacheKey ¶
func (c CratesConfig) CacheKey() string
type DartFlutterConfig ¶
type DartFlutterConfig struct {
Name string `yaml:"name"`
}
DartFlutterConfig is the dart and flutter configuration.
func (DartFlutterConfig) CacheKey ¶
func (d DartFlutterConfig) CacheKey() string
type GitHubConfig ¶
GitHubConfig is the GitHub configuration.
func (GitHubConfig) CacheKey ¶
func (g GitHubConfig) CacheKey() string
type GoProxyConfig ¶
type GoProxyConfig struct {
Name string `yaml:"name"`
}
GoProxyConfig is the go proxy configuration.
func (GoProxyConfig) CacheKey ¶
func (g GoProxyConfig) CacheKey() string
type MavenConfig ¶
MavenConfig is the maven search configuration.
func (MavenConfig) CacheKey ¶
func (m MavenConfig) CacheKey() string
type NPMRegistryConfig ¶
type NPMRegistryConfig struct {
Name string `yaml:"name"`
}
NPMRegistryConfig is the npm registry configuration.
func (NPMRegistryConfig) CacheKey ¶
func (n NPMRegistryConfig) CacheKey() string
type Source ¶
type Source struct { Disabled bool `yaml:"disabled"` // Only one field will be set. GitHub *GitHubConfig `yaml:"github"` DartFlutter *DartFlutterConfig `yaml:"dart_flutter"` GoProxy *GoProxyConfig `yaml:"goproxy"` NPMRegistry *NPMRegistryConfig `yaml:"npm_registry"` Maven *MavenConfig `yaml:"maven"` Crates *CratesConfig `yaml:"crates"` // IgnoreVersions is a list of versions to ignore when fetching. IgnoreVersions []string `yaml:"ignore_versions"` }
Source is the configuration for the fetch source.
Click to show internal directories.
Click to hide internal directories.