mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
chore: fix dependabot alerts (#2945)
Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com>
This commit is contained in:
committed by
GitHub
parent
ea6b6dab23
commit
d0ad93532f
@@ -3197,6 +3197,62 @@ func (ec *executionContext) field_Query___type_argsName(
|
||||
return zeroVal, nil
|
||||
}
|
||||
|
||||
func (ec *executionContext) field___Directive_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
||||
var err error
|
||||
args := map[string]any{}
|
||||
arg0, err := ec.field___Directive_args_argsIncludeDeprecated(ctx, rawArgs)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
args["includeDeprecated"] = arg0
|
||||
return args, nil
|
||||
}
|
||||
func (ec *executionContext) field___Directive_args_argsIncludeDeprecated(
|
||||
ctx context.Context,
|
||||
rawArgs map[string]any,
|
||||
) (*bool, error) {
|
||||
if _, ok := rawArgs["includeDeprecated"]; !ok {
|
||||
var zeroVal *bool
|
||||
return zeroVal, nil
|
||||
}
|
||||
|
||||
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
|
||||
if tmp, ok := rawArgs["includeDeprecated"]; ok {
|
||||
return ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
|
||||
}
|
||||
|
||||
var zeroVal *bool
|
||||
return zeroVal, nil
|
||||
}
|
||||
|
||||
func (ec *executionContext) field___Field_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
||||
var err error
|
||||
args := map[string]any{}
|
||||
arg0, err := ec.field___Field_args_argsIncludeDeprecated(ctx, rawArgs)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
args["includeDeprecated"] = arg0
|
||||
return args, nil
|
||||
}
|
||||
func (ec *executionContext) field___Field_args_argsIncludeDeprecated(
|
||||
ctx context.Context,
|
||||
rawArgs map[string]any,
|
||||
) (*bool, error) {
|
||||
if _, ok := rawArgs["includeDeprecated"]; !ok {
|
||||
var zeroVal *bool
|
||||
return zeroVal, nil
|
||||
}
|
||||
|
||||
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
|
||||
if tmp, ok := rawArgs["includeDeprecated"]; ok {
|
||||
return ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
|
||||
}
|
||||
|
||||
var zeroVal *bool
|
||||
return zeroVal, nil
|
||||
}
|
||||
|
||||
func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
||||
var err error
|
||||
args := map[string]any{}
|
||||
@@ -8379,6 +8435,8 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||
},
|
||||
@@ -9608,7 +9666,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql
|
||||
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
|
||||
}
|
||||
|
||||
func (ec *executionContext) fieldContext___Directive_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
||||
func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
||||
fc = &graphql.FieldContext{
|
||||
Object: "__Directive",
|
||||
Field: field,
|
||||
@@ -9624,10 +9682,25 @@ func (ec *executionContext) fieldContext___Directive_args(_ context.Context, fie
|
||||
return ec.fieldContext___InputValue_type(ctx, field)
|
||||
case "defaultValue":
|
||||
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
||||
case "isDeprecated":
|
||||
return ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
||||
case "deprecationReason":
|
||||
return ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
||||
}
|
||||
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
||||
},
|
||||
}
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
err = ec.Recover(ctx, r)
|
||||
ec.Error(ctx, err)
|
||||
}
|
||||
}()
|
||||
ctx = graphql.WithFieldContext(ctx, fc)
|
||||
if fc.Args, err = ec.field___Directive_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
||||
ec.Error(ctx, err)
|
||||
return fc, err
|
||||
}
|
||||
return fc, nil
|
||||
}
|
||||
|
||||
@@ -9961,7 +10034,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col
|
||||
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
|
||||
}
|
||||
|
||||
func (ec *executionContext) fieldContext___Field_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
||||
func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
||||
fc = &graphql.FieldContext{
|
||||
Object: "__Field",
|
||||
Field: field,
|
||||
@@ -9977,10 +10050,25 @@ func (ec *executionContext) fieldContext___Field_args(_ context.Context, field g
|
||||
return ec.fieldContext___InputValue_type(ctx, field)
|
||||
case "defaultValue":
|
||||
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
||||
case "isDeprecated":
|
||||
return ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
||||
case "deprecationReason":
|
||||
return ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
||||
}
|
||||
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
||||
},
|
||||
}
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
err = ec.Recover(ctx, r)
|
||||
ec.Error(ctx, err)
|
||||
}
|
||||
}()
|
||||
ctx = graphql.WithFieldContext(ctx, fc)
|
||||
if fc.Args, err = ec.field___Field_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
||||
ec.Error(ctx, err)
|
||||
return fc, err
|
||||
}
|
||||
return fc, nil
|
||||
}
|
||||
|
||||
@@ -10043,6 +10131,8 @@ func (ec *executionContext) fieldContext___Field_type(_ context.Context, field g
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||
},
|
||||
@@ -10279,6 +10369,8 @@ func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, fi
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||
},
|
||||
@@ -10327,6 +10419,91 @@ func (ec *executionContext) fieldContext___InputValue_defaultValue(_ context.Con
|
||||
return fc, nil
|
||||
}
|
||||
|
||||
func (ec *executionContext) ___InputValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
||||
fc, err := ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
||||
if err != nil {
|
||||
return graphql.Null
|
||||
}
|
||||
ctx = graphql.WithFieldContext(ctx, fc)
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
ec.Error(ctx, ec.Recover(ctx, r))
|
||||
ret = graphql.Null
|
||||
}
|
||||
}()
|
||||
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
||||
ctx = rctx // use context from middleware stack in children
|
||||
return obj.IsDeprecated(), nil
|
||||
})
|
||||
if err != nil {
|
||||
ec.Error(ctx, err)
|
||||
return graphql.Null
|
||||
}
|
||||
if resTmp == nil {
|
||||
if !graphql.HasFieldError(ctx, fc) {
|
||||
ec.Errorf(ctx, "must not be null")
|
||||
}
|
||||
return graphql.Null
|
||||
}
|
||||
res := resTmp.(bool)
|
||||
fc.Result = res
|
||||
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
||||
}
|
||||
|
||||
func (ec *executionContext) fieldContext___InputValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
||||
fc = &graphql.FieldContext{
|
||||
Object: "__InputValue",
|
||||
Field: field,
|
||||
IsMethod: true,
|
||||
IsResolver: false,
|
||||
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
||||
return nil, errors.New("field of type Boolean does not have child fields")
|
||||
},
|
||||
}
|
||||
return fc, nil
|
||||
}
|
||||
|
||||
func (ec *executionContext) ___InputValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
||||
fc, err := ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
||||
if err != nil {
|
||||
return graphql.Null
|
||||
}
|
||||
ctx = graphql.WithFieldContext(ctx, fc)
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
ec.Error(ctx, ec.Recover(ctx, r))
|
||||
ret = graphql.Null
|
||||
}
|
||||
}()
|
||||
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
||||
ctx = rctx // use context from middleware stack in children
|
||||
return obj.DeprecationReason(), nil
|
||||
})
|
||||
if err != nil {
|
||||
ec.Error(ctx, err)
|
||||
return graphql.Null
|
||||
}
|
||||
if resTmp == nil {
|
||||
return graphql.Null
|
||||
}
|
||||
res := resTmp.(*string)
|
||||
fc.Result = res
|
||||
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
||||
}
|
||||
|
||||
func (ec *executionContext) fieldContext___InputValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
||||
fc = &graphql.FieldContext{
|
||||
Object: "__InputValue",
|
||||
Field: field,
|
||||
IsMethod: true,
|
||||
IsResolver: false,
|
||||
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
||||
return nil, errors.New("field of type String does not have child fields")
|
||||
},
|
||||
}
|
||||
return fc, nil
|
||||
}
|
||||
|
||||
func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
||||
fc, err := ec.fieldContext___Schema_description(ctx, field)
|
||||
if err != nil {
|
||||
@@ -10427,6 +10604,8 @@ func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||
},
|
||||
@@ -10493,6 +10672,8 @@ func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, f
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||
},
|
||||
@@ -10556,6 +10737,8 @@ func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||
},
|
||||
@@ -10619,6 +10802,8 @@ func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Con
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||
},
|
||||
@@ -10930,6 +11115,8 @@ func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, fi
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||
},
|
||||
@@ -10993,6 +11180,8 @@ func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context,
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||
},
|
||||
@@ -11106,6 +11295,10 @@ func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, f
|
||||
return ec.fieldContext___InputValue_type(ctx, field)
|
||||
case "defaultValue":
|
||||
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
||||
case "isDeprecated":
|
||||
return ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
||||
case "deprecationReason":
|
||||
return ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
||||
}
|
||||
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
||||
},
|
||||
@@ -11169,6 +11362,8 @@ func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field
|
||||
return ec.fieldContext___Type_ofType(ctx, field)
|
||||
case "specifiedByURL":
|
||||
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
||||
case "isOneOf":
|
||||
return ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
}
|
||||
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
||||
},
|
||||
@@ -11217,6 +11412,47 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context
|
||||
return fc, nil
|
||||
}
|
||||
|
||||
func (ec *executionContext) ___Type_isOneOf(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
||||
fc, err := ec.fieldContext___Type_isOneOf(ctx, field)
|
||||
if err != nil {
|
||||
return graphql.Null
|
||||
}
|
||||
ctx = graphql.WithFieldContext(ctx, fc)
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
ec.Error(ctx, ec.Recover(ctx, r))
|
||||
ret = graphql.Null
|
||||
}
|
||||
}()
|
||||
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
||||
ctx = rctx // use context from middleware stack in children
|
||||
return obj.IsOneOf(), nil
|
||||
})
|
||||
if err != nil {
|
||||
ec.Error(ctx, err)
|
||||
return graphql.Null
|
||||
}
|
||||
if resTmp == nil {
|
||||
return graphql.Null
|
||||
}
|
||||
res := resTmp.(bool)
|
||||
fc.Result = res
|
||||
return ec.marshalOBoolean2bool(ctx, field.Selections, res)
|
||||
}
|
||||
|
||||
func (ec *executionContext) fieldContext___Type_isOneOf(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
||||
fc = &graphql.FieldContext{
|
||||
Object: "__Type",
|
||||
Field: field,
|
||||
IsMethod: true,
|
||||
IsResolver: false,
|
||||
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
||||
return nil, errors.New("field of type Boolean does not have child fields")
|
||||
},
|
||||
}
|
||||
return fc, nil
|
||||
}
|
||||
|
||||
// endregion **************************** field.gotpl *****************************
|
||||
|
||||
// region **************************** input.gotpl *****************************
|
||||
@@ -12935,6 +13171,13 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection
|
||||
}
|
||||
case "defaultValue":
|
||||
out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
|
||||
case "isDeprecated":
|
||||
out.Values[i] = ec.___InputValue_isDeprecated(ctx, field, obj)
|
||||
if out.Values[i] == graphql.Null {
|
||||
out.Invalids++
|
||||
}
|
||||
case "deprecationReason":
|
||||
out.Values[i] = ec.___InputValue_deprecationReason(ctx, field, obj)
|
||||
default:
|
||||
panic("unknown field " + strconv.Quote(field.Name))
|
||||
}
|
||||
@@ -13047,6 +13290,8 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o
|
||||
out.Values[i] = ec.___Type_ofType(ctx, field, obj)
|
||||
case "specifiedByURL":
|
||||
out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
|
||||
case "isOneOf":
|
||||
out.Values[i] = ec.___Type_isOneOf(ctx, field, obj)
|
||||
default:
|
||||
panic("unknown field " + strconv.Quote(field.Name))
|
||||
}
|
||||
|
||||
@@ -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.63
|
||||
// Code generated by github.com/99designs/gqlgen version v0.17.64
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
Reference in New Issue
Block a user