未验证 提交 6db3a0ba 编写于 作者: Z zhuxiaoyang

fix typo

Signed-off-by: Nzhuxiaoyang <sunzhu@yunify.com>
上级 a7f67bd7
......@@ -184,7 +184,7 @@ type ReadResult struct {
Records []LogRecord `json:"records,omitempty" description:"actual array of results"`
}
// StatisticsResponseAggregations, the struct for `aggregations` of type Reponse, holds return results from the aggregation StatisticsAggs
// StatisticsResponseAggregations, the struct for `aggregations` of type Response, holds return results from the aggregation StatisticsAggs
type StatisticsResponseAggregations struct {
ContainerCount ContainerCount `json:"containers"`
}
......
......@@ -146,7 +146,7 @@ type SingleSvnSource struct {
}
type DiscoverPRFromForks struct {
Strategy int `json:"strategy,omitempty" mapstructure:"strategy" description:"github discover startegy"`
Strategy int `json:"strategy,omitempty" mapstructure:"strategy" description:"github discover strategy"`
Trust int `json:"trust,omitempty" mapstructure:"trust" description:"trust user type"`
}
......
......@@ -132,7 +132,7 @@ func newFromTransport(auth types.AuthConfig, opt RegistryOpt) (*Registry, error)
return registry, nil
}
// url returns a registry URL with the passed arguements concatenated.
// url returns a registry URL with the passed arguments concatenated.
func (r *Registry) url(pathTemplate string, args ...interface{}) string {
pathSuffix := fmt.Sprintf(pathTemplate, args...)
url := fmt.Sprintf("%s%s", r.URL, pathSuffix)
......
......@@ -140,7 +140,7 @@ func parseChallenge(challengeHeader string) (*authService, error) {
case "scope":
scope = strings.Fields(value)
default:
return nil, fmt.Errorf("unknown field in challege header %s: %v", key, challengeHeader)
return nil, fmt.Errorf("unknown field in challenge header %s: %v", key, challengeHeader)
}
}
parsedRealm, err := url.Parse(realm)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册