Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMustBeScalar = errors.New("URL must be a scalar")
Functions ¶
This section is empty.
Types ¶
type AnsibleGalaxy ¶ added in v0.0.17
type AnsibleGalaxy struct {
Upstream string
Port uint16
UpstreamCaches []SerializableURL `yaml:"upstream_caches"`
}
type Cache ¶
type Config ¶
type Config struct {
Host string
Cache Cache
HTTPClient HTTPClient `yaml:"http"`
AdminInterface string `yaml:"admin_interface"`
EnableMetrics bool `yaml:"metrics"`
EnableProfiling bool `yaml:"profiling"`
Log Log
AnsibleGalaxies []AnsibleGalaxy `yaml:"ansible_galaxies"`
GoProxies []GoProxy `yaml:"go_proxies"`
NpmRegistries []NpmRegistry `yaml:"npm_registries"`
OciRegistries []OciRegistry `yaml:"oci_registries"`
PyPIRegistries []PyPIRegistry `yaml:"pypi_registries"`
Proxies []Proxy
RubyGemRegistries []RubyGemRegistry `yaml:"rubygem_registries"`
}
type GoProxy ¶
type GoProxy struct {
Upstream string
SumDBURL string `yaml:"sumdb_url"`
Port uint16
UpstreamCaches []SerializableURL `yaml:"upstream_caches"`
}
type HTTPClient ¶ added in v0.0.18
type NpmRegistry ¶
type NpmRegistry struct {
Upstream string
Scheme string
Port uint16
UpstreamCaches []SerializableURL `yaml:"upstream_caches"`
}
type OciRegistry ¶
type OciRegistry struct {
Upstream string
Port uint16
UpstreamCaches []SerializableURL `yaml:"upstream_caches"`
}
type Proxy ¶
type Proxy struct {
AllowedUpstreams []string `yaml:"allowed_upstreams"`
Port uint16
UpstreamCaches []SerializableURL `yaml:"upstream_caches"`
}
type PyPIRegistry ¶
type PyPIRegistry struct {
Upstream string
CDN string
Port uint16
UpstreamCaches []SerializableURL `yaml:"upstream_caches"`
}
type RubyGemRegistry ¶ added in v0.0.8
type RubyGemRegistry struct {
Upstream string
Port uint16
UpstreamCaches []SerializableURL `yaml:"upstream_caches"`
}
type SerializableURL ¶ added in v0.0.5
func (SerializableURL) MarshalYAML ¶ added in v0.0.8
func (s SerializableURL) MarshalYAML() (any, error)
func (*SerializableURL) UnmarshalYAML ¶ added in v0.0.5
func (s *SerializableURL) UnmarshalYAML(node *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.