@@ -184,7 +184,7 @@ type ReadResult struct {
|
|||||||
Records []LogRecord `json:"records,omitempty" description:"actual array of results"`
|
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 {
|
type StatisticsResponseAggregations struct {
|
||||||
ContainerCount ContainerCount `json:"containers"`
|
ContainerCount ContainerCount `json:"containers"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ type SingleSvnSource struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type DiscoverPRFromForks 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"`
|
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
|
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 {
|
func (r *Registry) url(pathTemplate string, args ...interface{}) string {
|
||||||
pathSuffix := fmt.Sprintf(pathTemplate, args...)
|
pathSuffix := fmt.Sprintf(pathTemplate, args...)
|
||||||
url := fmt.Sprintf("%s%s", r.URL, pathSuffix)
|
url := fmt.Sprintf("%s%s", r.URL, pathSuffix)
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ func parseChallenge(challengeHeader string) (*authService, error) {
|
|||||||
case "scope":
|
case "scope":
|
||||||
scope = strings.Fields(value)
|
scope = strings.Fields(value)
|
||||||
default:
|
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)
|
parsedRealm, err := url.Parse(realm)
|
||||||
|
|||||||
Reference in New Issue
Block a user