Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Artifactory ¶
type BitBucketRepo ¶
type Cache ¶
type Cache struct {
Type cachetype.Type `json:"type"`
Local CacheLocal `json:"local"`
Artifactory Artifactory `json:"artifactory"`
}
type CacheLocal ¶
type CacheLocal struct {
Dir string `json:"directory"`
}
type Connect ¶ added in v0.3.6
type Connect struct {
Probe ProbeConfig `json:"probe"`
}
Connect configures the buf v1 registry commit-id resolution behavior in internal/connect. All fields default sensibly (WithDefaults) so the proxy behaves as intended with no connect: block in the config file.
func (Connect) WithDefaults ¶ added in v0.3.6
WithDefaults returns a copy of the Connect config with zero-value fields replaced by the documented defaults. Called once at startup after the config is loaded.
type GithubRepo ¶
type ProbeConfig ¶ added in v0.3.6
type ProbeConfig struct {
// Enabled is a pointer so we can distinguish "unset" (default true) from
// an explicit false. Set enabled: false to disable.
Enabled *bool `json:"enabled"`
NegativeTTL time.Duration `json:"negative_ttl"`
PerCallTimeout time.Duration `json:"per_call_timeout"`
}
ProbeConfig controls the upstream sha probe used on a Download cache miss: the proxy asks each configured source whether it owns the requested sha and, on a hit, resolves the module. Bogus shas are negative-cached for NegativeTTL to bound repeat cost.
type Proxy ¶
type Proxy struct {
Github []GithubRepo `json:"github"`
BitBucket []BitBucketRepo `json:"bitbucket"`
}
Click to show internal directories.
Click to hide internal directories.