Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
22a7f0099
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
22a7f0099
Commits
5fa56c6b
Commit
5fa56c6b
authored
4 years ago
by
jialiang
Browse files
Options
Downloads
Patches
Plain Diff
fix: panic when checkRegistries
parent
8347779d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/consumer_config.go
+1
-1
1 addition, 1 deletion
config/consumer_config.go
config/provider_config.go
+1
-1
1 addition, 1 deletion
config/provider_config.go
with
2 additions
and
2 deletions
config/consumer_config.go
+
1
−
1
View file @
5fa56c6b
...
@@ -47,7 +47,7 @@ type ConsumerConfig struct {
...
@@ -47,7 +47,7 @@ type ConsumerConfig struct {
ConnectTimeout
time
.
Duration
ConnectTimeout
time
.
Duration
Registry
*
RegistryConfig
`yaml:"registry" json:"registry,omitempty" property:"registry"`
Registry
*
RegistryConfig
`yaml:"registry" json:"registry,omitempty" property:"registry"`
Registries
map
[
string
]
*
RegistryConfig
`yaml:"registries" json:"registries
,omitempty
" property:"registries"`
Registries
map
[
string
]
*
RegistryConfig
`
default:"{}"
yaml:"registries" json:"registries" property:"registries"`
Request_Timeout
string
`yaml:"request_timeout" default:"5s" json:"request_timeout,omitempty" property:"request_timeout"`
Request_Timeout
string
`yaml:"request_timeout" default:"5s" json:"request_timeout,omitempty" property:"request_timeout"`
RequestTimeout
time
.
Duration
RequestTimeout
time
.
Duration
...
...
This diff is collapsed.
Click to expand it.
config/provider_config.go
+
1
−
1
View file @
5fa56c6b
...
@@ -48,7 +48,7 @@ type ProviderConfig struct {
...
@@ -48,7 +48,7 @@ type ProviderConfig struct {
ConfigType
map
[
string
]
string
`yaml:"config_type" json:"config_type,omitempty" property:"config_type"`
ConfigType
map
[
string
]
string
`yaml:"config_type" json:"config_type,omitempty" property:"config_type"`
Registry
*
RegistryConfig
`yaml:"registry" json:"registry,omitempty" property:"registry"`
Registry
*
RegistryConfig
`yaml:"registry" json:"registry,omitempty" property:"registry"`
Registries
map
[
string
]
*
RegistryConfig
`yaml:"registries" json:"registries,omitempty" property:"registries"`
Registries
map
[
string
]
*
RegistryConfig
`
default:"{}"
yaml:"registries" json:"registries,omitempty" property:"registries"`
}
}
// UnmarshalYAML unmarshals the ProviderConfig by @unmarshal function
// UnmarshalYAML unmarshals the ProviderConfig by @unmarshal function
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment