From 6db3a0ba3e8c40a203dae58d740bf1b3e3da05db Mon Sep 17 00:00:00 2001 From: zhuxiaoyang Date: Thu, 21 Nov 2019 19:25:32 +0800 Subject: [PATCH] fix typo Signed-off-by: zhuxiaoyang --- pkg/api/logging/v1alpha2/types.go | 2 +- pkg/models/devops/project_pipeline.go | 2 +- pkg/models/registries/registry_client.go | 2 +- pkg/models/registries/token.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/api/logging/v1alpha2/types.go b/pkg/api/logging/v1alpha2/types.go index fb5fc655b..2164b9690 100644 --- a/pkg/api/logging/v1alpha2/types.go +++ b/pkg/api/logging/v1alpha2/types.go @@ -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"` } diff --git a/pkg/models/devops/project_pipeline.go b/pkg/models/devops/project_pipeline.go index bccd1625b..1cd5d2ee4 100644 --- a/pkg/models/devops/project_pipeline.go +++ b/pkg/models/devops/project_pipeline.go @@ -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"` } diff --git a/pkg/models/registries/registry_client.go b/pkg/models/registries/registry_client.go index 5db8fde65..5cceb3a31 100644 --- a/pkg/models/registries/registry_client.go +++ b/pkg/models/registries/registry_client.go @@ -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) diff --git a/pkg/models/registries/token.go b/pkg/models/registries/token.go index 3a37e4666..182985b8e 100644 --- a/pkg/models/registries/token.go +++ b/pkg/models/registries/token.go @@ -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)