0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-02-10 23:39:39 -05:00

chore: fix dependabot alerts (#2869)

Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com>
This commit is contained in:
Ramkumar Chinchani 2025-01-13 01:20:29 -08:00 committed by GitHub
parent e410f3952c
commit 7f593b8896
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 55 additions and 219 deletions

6
go.mod
View file

@ -3,7 +3,7 @@ module zotregistry.dev/zot
go 1.23
require (
github.com/99designs/gqlgen v0.17.61
github.com/99designs/gqlgen v0.17.62
github.com/Masterminds/semver v1.5.0
github.com/aquasecurity/trivy v0.58.1
github.com/aquasecurity/trivy-db v0.0.0-20241209111357-8c398f13db0e
@ -58,11 +58,11 @@ require (
github.com/swaggo/http-swagger v1.3.4
github.com/swaggo/swag v1.16.4
github.com/vektah/gqlparser/v2 v2.5.21
github.com/zitadel/oidc/v3 v3.33.1
github.com/zitadel/oidc/v3 v3.34.0
go.etcd.io/bbolt v1.3.11
golang.org/x/crypto v0.31.0
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c
golang.org/x/oauth2 v0.24.0
golang.org/x/oauth2 v0.25.0
google.golang.org/protobuf v1.36.1
gopkg.in/resty.v1 v1.12.0
gopkg.in/yaml.v3 v3.0.1

20
go.sum
View file

@ -207,8 +207,8 @@ dario.cat/mergo v1.0.1/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
github.com/99designs/gqlgen v0.17.61 h1:vE7xLRC066n9wehgjeplILOWtwz75zbzcV2/Iv9i3pw=
github.com/99designs/gqlgen v0.17.61/go.mod h1:rFU1T3lhv/tPeAlww/DJ4ol2YxT/pPpue+xxPbkd3r4=
github.com/99designs/gqlgen v0.17.62 h1:Wovt1+XJN9dTWYh92537Y9a5FuMVSkrQL4bn0a8v5Rg=
github.com/99designs/gqlgen v0.17.62/go.mod h1:sVCM2iwIZisJjTI/DEC3fpH+HFgxY1496ZJ+jbT9IjA=
github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6 h1:He8afgbRMd7mFxO99hRNu+6tazq8nFF9lIwo9JFroBk=
github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6/go.mod h1:8o94RPi1/7XTJvwPpRSzSUedZrtlirdB3r9Z20bi2f8=
github.com/AdamKorcz/go-118-fuzz-build v0.0.0-20231105174938-2b5cbb29f3e2 h1:dIScnXFlF784X79oi7MzVT6GWqr/W1uUt0pB5CsDs9M=
@ -715,8 +715,8 @@ github.com/go-asn1-ber/asn1-ber v1.5.7 h1:DTX+lbVTWaTw1hQ+PbZPlnDZPEIs0SS/GCZAl5
github.com/go-asn1-ber/asn1-ber v1.5.7/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0=
github.com/go-chi/chi v4.1.2+incompatible h1:fGFk2Gmi/YKXk0OmGfBh0WgmN3XB8lVnEyNz34tQRec=
github.com/go-chi/chi v4.1.2+incompatible/go.mod h1:eB3wogJHnLi3x/kFX2A+IbTBlXxmMeXJVKy9tTv1XzQ=
github.com/go-chi/chi/v5 v5.1.0 h1:acVI1TYaD+hhedDJ3r54HyA6sExp3HfXq7QWEEY/xMw=
github.com/go-chi/chi/v5 v5.1.0/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/go-chi/chi/v5 v5.2.0 h1:Aj1EtB0qR2Rdo2dG4O94RIU35w2lvQSj6BRA4+qwFL0=
github.com/go-chi/chi/v5 v5.2.0/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/go-errors/errors v1.5.1 h1:ZwEMSLRCapFLflTpT7NKaAc7ukJ8ZPEjzlxt8rPN8bk=
github.com/go-errors/errors v1.5.1/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og=
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI=
@ -1052,8 +1052,8 @@ github.com/jedisct1/go-minisign v0.0.0-20230811132847-661be99b8267 h1:TMtDYDHKYY
github.com/jedisct1/go-minisign v0.0.0-20230811132847-661be99b8267/go.mod h1:h1nSAbGFqGVzn6Jyl1R/iCcBUHN4g+gW1u9CoBTrb9E=
github.com/jellydator/ttlcache/v3 v3.2.0 h1:6lqVJ8X3ZaUwvzENqPAobDsXNExfUJd61u++uW8a3LE=
github.com/jellydator/ttlcache/v3 v3.2.0/go.mod h1:hi7MGFdMAwZna5n2tuvh63DvFLzVKySzCVW6+0gA2n4=
github.com/jeremija/gosubmit v0.2.7 h1:At0OhGCFGPXyjPYAsCchoBUhE099pcBXmsb4iZqROIc=
github.com/jeremija/gosubmit v0.2.7/go.mod h1:Ui+HS073lCFREXBbdfrJzMB57OI/bdxTiLtrDHHhFPI=
github.com/jeremija/gosubmit v0.2.8 h1:mmSITBz9JxVtu8eqbN+zmmwX7Ij2RidQxhcwRVI4wqA=
github.com/jeremija/gosubmit v0.2.8/go.mod h1:Ui+HS073lCFREXBbdfrJzMB57OI/bdxTiLtrDHHhFPI=
github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo=
github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8=
@ -1612,8 +1612,8 @@ github.com/zeebo/errs v1.3.0 h1:hmiaKqgYZzcVgRL1Vkc1Mn2914BbzB0IBxs+ebeutGs=
github.com/zeebo/errs v1.3.0/go.mod h1:sgbWHsvVuTPHcqJJGQ1WhI5KbWlHYz+2+2C/LSEtCw4=
github.com/zitadel/logging v0.6.1 h1:Vyzk1rl9Kq9RCevcpX6ujUaTYFX43aa4LkvV1TvUk+Y=
github.com/zitadel/logging v0.6.1/go.mod h1:Y4CyAXHpl3Mig6JOszcV5Rqqsojj+3n7y2F591Mp/ow=
github.com/zitadel/oidc/v3 v3.33.1 h1:e3w9PDV0Mh50/ZiJWtzyT0E4uxJ6RXll+hqVDnqGbTU=
github.com/zitadel/oidc/v3 v3.33.1/go.mod h1:zkoZ1Oq6CweX3BaLrftLEGCs6YK6zDpjjVGZrP10AWU=
github.com/zitadel/oidc/v3 v3.34.0 h1:TqekPuBPADgOlultMH7n3dHdHklW42AQ/YCgvmJRaVQ=
github.com/zitadel/oidc/v3 v3.34.0/go.mod h1:bVWrb7IKw1nLgaCHGhGXMZyDsoHy3VFUasUUhbQeF+Q=
github.com/zitadel/schema v1.3.0 h1:kQ9W9tvIwZICCKWcMvCEweXET1OcOyGEuFbHs4o5kg0=
github.com/zitadel/schema v1.3.0/go.mod h1:NptN6mkBDFvERUCvZHlvWmmME+gmZ44xzwRXwhzsbtc=
go.etcd.io/bbolt v1.3.11 h1:yGEzV1wPz2yVCLsD8ZAiGHhHVlczyC9d1rP43/VCRJ0=
@ -1848,8 +1848,8 @@ golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri
golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg=
golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg=
golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A=
golang.org/x/oauth2 v0.24.0 h1:KTBBxWqUa0ykRPLtV69rRto9TLXcqYkeswu48x/gvNE=
golang.org/x/oauth2 v0.24.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70=
golang.org/x/oauth2 v0.25.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=

View file

@ -2244,11 +2244,7 @@ func (ec *executionContext) field_Query_BaseImageList_argsImage(
ctx context.Context,
rawArgs map[string]any,
) (string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["image"]
if !ok {
if _, ok := rawArgs["image"]; !ok {
var zeroVal string
return zeroVal, nil
}
@ -2266,11 +2262,7 @@ func (ec *executionContext) field_Query_BaseImageList_argsDigest(
ctx context.Context,
rawArgs map[string]any,
) (*string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["digest"]
if !ok {
if _, ok := rawArgs["digest"]; !ok {
var zeroVal *string
return zeroVal, nil
}
@ -2288,11 +2280,7 @@ func (ec *executionContext) field_Query_BaseImageList_argsRequestedPage(
ctx context.Context,
rawArgs map[string]any,
) (*PageInput, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["requestedPage"]
if !ok {
if _, ok := rawArgs["requestedPage"]; !ok {
var zeroVal *PageInput
return zeroVal, nil
}
@ -2320,11 +2308,7 @@ func (ec *executionContext) field_Query_BookmarkedRepos_argsRequestedPage(
ctx context.Context,
rawArgs map[string]any,
) (*PageInput, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["requestedPage"]
if !ok {
if _, ok := rawArgs["requestedPage"]; !ok {
var zeroVal *PageInput
return zeroVal, nil
}
@ -2372,11 +2356,7 @@ func (ec *executionContext) field_Query_CVEDiffListForImages_argsMinuend(
ctx context.Context,
rawArgs map[string]any,
) (ImageInput, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["minuend"]
if !ok {
if _, ok := rawArgs["minuend"]; !ok {
var zeroVal ImageInput
return zeroVal, nil
}
@ -2394,11 +2374,7 @@ func (ec *executionContext) field_Query_CVEDiffListForImages_argsSubtrahend(
ctx context.Context,
rawArgs map[string]any,
) (ImageInput, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["subtrahend"]
if !ok {
if _, ok := rawArgs["subtrahend"]; !ok {
var zeroVal ImageInput
return zeroVal, nil
}
@ -2416,11 +2392,7 @@ func (ec *executionContext) field_Query_CVEDiffListForImages_argsRequestedPage(
ctx context.Context,
rawArgs map[string]any,
) (*PageInput, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["requestedPage"]
if !ok {
if _, ok := rawArgs["requestedPage"]; !ok {
var zeroVal *PageInput
return zeroVal, nil
}
@ -2438,11 +2410,7 @@ func (ec *executionContext) field_Query_CVEDiffListForImages_argsSearchedCve(
ctx context.Context,
rawArgs map[string]any,
) (*string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["searchedCVE"]
if !ok {
if _, ok := rawArgs["searchedCVE"]; !ok {
var zeroVal *string
return zeroVal, nil
}
@ -2460,11 +2428,7 @@ func (ec *executionContext) field_Query_CVEDiffListForImages_argsExcludedCve(
ctx context.Context,
rawArgs map[string]any,
) (*string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["excludedCVE"]
if !ok {
if _, ok := rawArgs["excludedCVE"]; !ok {
var zeroVal *string
return zeroVal, nil
}
@ -2512,11 +2476,7 @@ func (ec *executionContext) field_Query_CVEListForImage_argsImage(
ctx context.Context,
rawArgs map[string]any,
) (string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["image"]
if !ok {
if _, ok := rawArgs["image"]; !ok {
var zeroVal string
return zeroVal, nil
}
@ -2534,11 +2494,7 @@ func (ec *executionContext) field_Query_CVEListForImage_argsRequestedPage(
ctx context.Context,
rawArgs map[string]any,
) (*PageInput, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["requestedPage"]
if !ok {
if _, ok := rawArgs["requestedPage"]; !ok {
var zeroVal *PageInput
return zeroVal, nil
}
@ -2556,11 +2512,7 @@ func (ec *executionContext) field_Query_CVEListForImage_argsSearchedCve(
ctx context.Context,
rawArgs map[string]any,
) (*string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["searchedCVE"]
if !ok {
if _, ok := rawArgs["searchedCVE"]; !ok {
var zeroVal *string
return zeroVal, nil
}
@ -2578,11 +2530,7 @@ func (ec *executionContext) field_Query_CVEListForImage_argsExcludedCve(
ctx context.Context,
rawArgs map[string]any,
) (*string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["excludedCVE"]
if !ok {
if _, ok := rawArgs["excludedCVE"]; !ok {
var zeroVal *string
return zeroVal, nil
}
@ -2600,11 +2548,7 @@ func (ec *executionContext) field_Query_CVEListForImage_argsSeverity(
ctx context.Context,
rawArgs map[string]any,
) (*string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["severity"]
if !ok {
if _, ok := rawArgs["severity"]; !ok {
var zeroVal *string
return zeroVal, nil
}
@ -2642,11 +2586,7 @@ func (ec *executionContext) field_Query_DerivedImageList_argsImage(
ctx context.Context,
rawArgs map[string]any,
) (string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["image"]
if !ok {
if _, ok := rawArgs["image"]; !ok {
var zeroVal string
return zeroVal, nil
}
@ -2664,11 +2604,7 @@ func (ec *executionContext) field_Query_DerivedImageList_argsDigest(
ctx context.Context,
rawArgs map[string]any,
) (*string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["digest"]
if !ok {
if _, ok := rawArgs["digest"]; !ok {
var zeroVal *string
return zeroVal, nil
}
@ -2686,11 +2622,7 @@ func (ec *executionContext) field_Query_DerivedImageList_argsRequestedPage(
ctx context.Context,
rawArgs map[string]any,
) (*PageInput, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["requestedPage"]
if !ok {
if _, ok := rawArgs["requestedPage"]; !ok {
var zeroVal *PageInput
return zeroVal, nil
}
@ -2718,11 +2650,7 @@ func (ec *executionContext) field_Query_ExpandedRepoInfo_argsRepo(
ctx context.Context,
rawArgs map[string]any,
) (string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["repo"]
if !ok {
if _, ok := rawArgs["repo"]; !ok {
var zeroVal string
return zeroVal, nil
}
@ -2760,11 +2688,7 @@ func (ec *executionContext) field_Query_GlobalSearch_argsQuery(
ctx context.Context,
rawArgs map[string]any,
) (string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["query"]
if !ok {
if _, ok := rawArgs["query"]; !ok {
var zeroVal string
return zeroVal, nil
}
@ -2782,11 +2706,7 @@ func (ec *executionContext) field_Query_GlobalSearch_argsFilter(
ctx context.Context,
rawArgs map[string]any,
) (*Filter, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["filter"]
if !ok {
if _, ok := rawArgs["filter"]; !ok {
var zeroVal *Filter
return zeroVal, nil
}
@ -2804,11 +2724,7 @@ func (ec *executionContext) field_Query_GlobalSearch_argsRequestedPage(
ctx context.Context,
rawArgs map[string]any,
) (*PageInput, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["requestedPage"]
if !ok {
if _, ok := rawArgs["requestedPage"]; !ok {
var zeroVal *PageInput
return zeroVal, nil
}
@ -2846,11 +2762,7 @@ func (ec *executionContext) field_Query_ImageListForCVE_argsID(
ctx context.Context,
rawArgs map[string]any,
) (string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["id"]
if !ok {
if _, ok := rawArgs["id"]; !ok {
var zeroVal string
return zeroVal, nil
}
@ -2868,11 +2780,7 @@ func (ec *executionContext) field_Query_ImageListForCVE_argsFilter(
ctx context.Context,
rawArgs map[string]any,
) (*Filter, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["filter"]
if !ok {
if _, ok := rawArgs["filter"]; !ok {
var zeroVal *Filter
return zeroVal, nil
}
@ -2890,11 +2798,7 @@ func (ec *executionContext) field_Query_ImageListForCVE_argsRequestedPage(
ctx context.Context,
rawArgs map[string]any,
) (*PageInput, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["requestedPage"]
if !ok {
if _, ok := rawArgs["requestedPage"]; !ok {
var zeroVal *PageInput
return zeroVal, nil
}
@ -2927,11 +2831,7 @@ func (ec *executionContext) field_Query_ImageListForDigest_argsID(
ctx context.Context,
rawArgs map[string]any,
) (string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["id"]
if !ok {
if _, ok := rawArgs["id"]; !ok {
var zeroVal string
return zeroVal, nil
}
@ -2949,11 +2849,7 @@ func (ec *executionContext) field_Query_ImageListForDigest_argsRequestedPage(
ctx context.Context,
rawArgs map[string]any,
) (*PageInput, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["requestedPage"]
if !ok {
if _, ok := rawArgs["requestedPage"]; !ok {
var zeroVal *PageInput
return zeroVal, nil
}
@ -2996,11 +2892,7 @@ func (ec *executionContext) field_Query_ImageListWithCVEFixed_argsID(
ctx context.Context,
rawArgs map[string]any,
) (string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["id"]
if !ok {
if _, ok := rawArgs["id"]; !ok {
var zeroVal string
return zeroVal, nil
}
@ -3018,11 +2910,7 @@ func (ec *executionContext) field_Query_ImageListWithCVEFixed_argsImage(
ctx context.Context,
rawArgs map[string]any,
) (string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["image"]
if !ok {
if _, ok := rawArgs["image"]; !ok {
var zeroVal string
return zeroVal, nil
}
@ -3040,11 +2928,7 @@ func (ec *executionContext) field_Query_ImageListWithCVEFixed_argsFilter(
ctx context.Context,
rawArgs map[string]any,
) (*Filter, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["filter"]
if !ok {
if _, ok := rawArgs["filter"]; !ok {
var zeroVal *Filter
return zeroVal, nil
}
@ -3062,11 +2946,7 @@ func (ec *executionContext) field_Query_ImageListWithCVEFixed_argsRequestedPage(
ctx context.Context,
rawArgs map[string]any,
) (*PageInput, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["requestedPage"]
if !ok {
if _, ok := rawArgs["requestedPage"]; !ok {
var zeroVal *PageInput
return zeroVal, nil
}
@ -3099,11 +2979,7 @@ func (ec *executionContext) field_Query_ImageList_argsRepo(
ctx context.Context,
rawArgs map[string]any,
) (string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["repo"]
if !ok {
if _, ok := rawArgs["repo"]; !ok {
var zeroVal string
return zeroVal, nil
}
@ -3121,11 +2997,7 @@ func (ec *executionContext) field_Query_ImageList_argsRequestedPage(
ctx context.Context,
rawArgs map[string]any,
) (*PageInput, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["requestedPage"]
if !ok {
if _, ok := rawArgs["requestedPage"]; !ok {
var zeroVal *PageInput
return zeroVal, nil
}
@ -3153,11 +3025,7 @@ func (ec *executionContext) field_Query_Image_argsImage(
ctx context.Context,
rawArgs map[string]any,
) (string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["image"]
if !ok {
if _, ok := rawArgs["image"]; !ok {
var zeroVal string
return zeroVal, nil
}
@ -3195,11 +3063,7 @@ func (ec *executionContext) field_Query_Referrers_argsRepo(
ctx context.Context,
rawArgs map[string]any,
) (string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["repo"]
if !ok {
if _, ok := rawArgs["repo"]; !ok {
var zeroVal string
return zeroVal, nil
}
@ -3217,11 +3081,7 @@ func (ec *executionContext) field_Query_Referrers_argsDigest(
ctx context.Context,
rawArgs map[string]any,
) (string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["digest"]
if !ok {
if _, ok := rawArgs["digest"]; !ok {
var zeroVal string
return zeroVal, nil
}
@ -3239,11 +3099,7 @@ func (ec *executionContext) field_Query_Referrers_argsType(
ctx context.Context,
rawArgs map[string]any,
) ([]string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["type"]
if !ok {
if _, ok := rawArgs["type"]; !ok {
var zeroVal []string
return zeroVal, nil
}
@ -3271,11 +3127,7 @@ func (ec *executionContext) field_Query_RepoListWithNewestImage_argsRequestedPag
ctx context.Context,
rawArgs map[string]any,
) (*PageInput, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["requestedPage"]
if !ok {
if _, ok := rawArgs["requestedPage"]; !ok {
var zeroVal *PageInput
return zeroVal, nil
}
@ -3303,11 +3155,7 @@ func (ec *executionContext) field_Query_StarredRepos_argsRequestedPage(
ctx context.Context,
rawArgs map[string]any,
) (*PageInput, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["requestedPage"]
if !ok {
if _, ok := rawArgs["requestedPage"]; !ok {
var zeroVal *PageInput
return zeroVal, nil
}
@ -3335,11 +3183,7 @@ func (ec *executionContext) field_Query___type_argsName(
ctx context.Context,
rawArgs map[string]any,
) (string, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["name"]
if !ok {
if _, ok := rawArgs["name"]; !ok {
var zeroVal string
return zeroVal, nil
}
@ -3367,11 +3211,7 @@ func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated(
ctx context.Context,
rawArgs map[string]any,
) (bool, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["includeDeprecated"]
if !ok {
if _, ok := rawArgs["includeDeprecated"]; !ok {
var zeroVal bool
return zeroVal, nil
}
@ -3399,11 +3239,7 @@ func (ec *executionContext) field___Type_fields_argsIncludeDeprecated(
ctx context.Context,
rawArgs map[string]any,
) (bool, error) {
// We won't call the directive if the argument is null.
// Set call_argument_directives_with_null to true to call directives
// even if the argument is null.
_, ok := rawArgs["includeDeprecated"]
if !ok {
if _, ok := rawArgs["includeDeprecated"]; !ok {
var zeroVal bool
return zeroVal, nil
}

View file

@ -2,7 +2,7 @@ package search
// This file will be automatically regenerated based on the schema, any resolver implementations
// will be copied through when generating and any unknown code will be moved to the end.
// Code generated by github.com/99designs/gqlgen version v0.17.61
// Code generated by github.com/99designs/gqlgen version v0.17.62
import (
"context"