Browse Source

chore: regenerate ent

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
pull/2857/head
Mark Sagi-Kazar 3 years ago
parent
commit
bbed8a056a
No known key found for this signature in database
GPG Key ID: 31AB0439F4C5C90E
  1. 10
      storage/ent/db/authcode/where.go
  2. 10
      storage/ent/db/authrequest/where.go
  3. 10
      storage/ent/db/connector/where.go
  4. 2
      storage/ent/db/ent.go
  5. 10
      storage/ent/db/keys/where.go
  6. 10
      storage/ent/db/oauth2client/where.go
  7. 10
      storage/ent/db/offlinesession/where.go
  8. 10
      storage/ent/db/refreshtoken/where.go
  9. 4
      storage/ent/db/runtime/runtime.go

10
storage/ent/db/authcode/where.go

@ -54,6 +54,16 @@ func IDLTE(id string) predicate.AuthCode {
return predicate.AuthCode(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.AuthCode {
return predicate.AuthCode(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.AuthCode {
return predicate.AuthCode(sql.FieldContainsFold(FieldID, id))
}
// ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.
func ClientID(v string) predicate.AuthCode {
return predicate.AuthCode(sql.FieldEQ(FieldClientID, v))

10
storage/ent/db/authrequest/where.go

@ -54,6 +54,16 @@ func IDLTE(id string) predicate.AuthRequest {
return predicate.AuthRequest(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.AuthRequest {
return predicate.AuthRequest(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.AuthRequest {
return predicate.AuthRequest(sql.FieldContainsFold(FieldID, id))
}
// ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.
func ClientID(v string) predicate.AuthRequest {
return predicate.AuthRequest(sql.FieldEQ(FieldClientID, v))

10
storage/ent/db/connector/where.go

@ -52,6 +52,16 @@ func IDLTE(id string) predicate.Connector {
return predicate.Connector(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.Connector {
return predicate.Connector(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.Connector {
return predicate.Connector(sql.FieldContainsFold(FieldID, id))
}
// Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func Type(v string) predicate.Connector {
return predicate.Connector(sql.FieldEQ(FieldType, v))

2
storage/ent/db/ent.go

@ -523,7 +523,7 @@ func withHooks[V Value, M any, PM interface {
return exec(ctx)
}
var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) {
mutationT, ok := m.(PM)
mutationT, ok := any(m).(PM)
if !ok {
return nil, fmt.Errorf("unexpected mutation type %T", m)
}

10
storage/ent/db/keys/where.go

@ -54,6 +54,16 @@ func IDLTE(id string) predicate.Keys {
return predicate.Keys(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.Keys {
return predicate.Keys(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.Keys {
return predicate.Keys(sql.FieldContainsFold(FieldID, id))
}
// NextRotation applies equality check predicate on the "next_rotation" field. It's identical to NextRotationEQ.
func NextRotation(v time.Time) predicate.Keys {
return predicate.Keys(sql.FieldEQ(FieldNextRotation, v))

10
storage/ent/db/oauth2client/where.go

@ -52,6 +52,16 @@ func IDLTE(id string) predicate.OAuth2Client {
return predicate.OAuth2Client(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.OAuth2Client {
return predicate.OAuth2Client(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.OAuth2Client {
return predicate.OAuth2Client(sql.FieldContainsFold(FieldID, id))
}
// Secret applies equality check predicate on the "secret" field. It's identical to SecretEQ.
func Secret(v string) predicate.OAuth2Client {
return predicate.OAuth2Client(sql.FieldEQ(FieldSecret, v))

10
storage/ent/db/offlinesession/where.go

@ -52,6 +52,16 @@ func IDLTE(id string) predicate.OfflineSession {
return predicate.OfflineSession(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.OfflineSession {
return predicate.OfflineSession(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.OfflineSession {
return predicate.OfflineSession(sql.FieldContainsFold(FieldID, id))
}
// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserID(v string) predicate.OfflineSession {
return predicate.OfflineSession(sql.FieldEQ(FieldUserID, v))

10
storage/ent/db/refreshtoken/where.go

@ -54,6 +54,16 @@ func IDLTE(id string) predicate.RefreshToken {
return predicate.RefreshToken(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.RefreshToken {
return predicate.RefreshToken(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.RefreshToken {
return predicate.RefreshToken(sql.FieldContainsFold(FieldID, id))
}
// ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.
func ClientID(v string) predicate.RefreshToken {
return predicate.RefreshToken(sql.FieldEQ(FieldClientID, v))

4
storage/ent/db/runtime/runtime.go

@ -5,6 +5,6 @@ package runtime
// The schema-stitching logic is generated in github.com/dexidp/dex/storage/ent/db/runtime.go
const (
Version = "v0.11.9" // Version of ent codegen.
Sum = "h1:dbbCkAiPVTRBIJwoZctiSYjB7zxQIBOzVSU5H9VYIQI=" // Sum of ent codegen.
Version = "v0.11.10" // Version of ent codegen.
Sum = "h1:iqn32ybY5HRW3xSAyMNdNKpZhKgMf1Zunsej9yPKUI8=" // Sum of ent codegen.
)

Loading…
Cancel
Save