chore: Bump ent to 0.11.2 (#2640)
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Code generated by entc, DO NOT EDIT.
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package db
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"github.com/dexidp/dex/storage"
|
||||
"github.com/dexidp/dex/storage/ent/db/keys"
|
||||
"gopkg.in/square/go-jose.v2"
|
||||
jose "gopkg.in/square/go-jose.v2"
|
||||
)
|
||||
|
||||
// Keys is the model entity for the Keys schema.
|
||||
@@ -106,11 +106,11 @@ func (k *Keys) Update() *KeysUpdateOne {
|
||||
// Unwrap unwraps the Keys entity that was returned from a transaction after it was closed,
|
||||
// so that all future queries will be executed through the driver which created the transaction.
|
||||
func (k *Keys) Unwrap() *Keys {
|
||||
tx, ok := k.config.driver.(*txDriver)
|
||||
_tx, ok := k.config.driver.(*txDriver)
|
||||
if !ok {
|
||||
panic("db: Keys is not a transactional entity")
|
||||
}
|
||||
k.config.driver = tx.drv
|
||||
k.config.driver = _tx.drv
|
||||
return k
|
||||
}
|
||||
|
||||
@@ -118,14 +118,17 @@ func (k *Keys) Unwrap() *Keys {
|
||||
func (k *Keys) String() string {
|
||||
var builder strings.Builder
|
||||
builder.WriteString("Keys(")
|
||||
builder.WriteString(fmt.Sprintf("id=%v", k.ID))
|
||||
builder.WriteString(", verification_keys=")
|
||||
builder.WriteString(fmt.Sprintf("id=%v, ", k.ID))
|
||||
builder.WriteString("verification_keys=")
|
||||
builder.WriteString(fmt.Sprintf("%v", k.VerificationKeys))
|
||||
builder.WriteString(", signing_key=")
|
||||
builder.WriteString(", ")
|
||||
builder.WriteString("signing_key=")
|
||||
builder.WriteString(fmt.Sprintf("%v", k.SigningKey))
|
||||
builder.WriteString(", signing_key_pub=")
|
||||
builder.WriteString(", ")
|
||||
builder.WriteString("signing_key_pub=")
|
||||
builder.WriteString(fmt.Sprintf("%v", k.SigningKeyPub))
|
||||
builder.WriteString(", next_rotation=")
|
||||
builder.WriteString(", ")
|
||||
builder.WriteString("next_rotation=")
|
||||
builder.WriteString(k.NextRotation.Format(time.ANSIC))
|
||||
builder.WriteByte(')')
|
||||
return builder.String()
|
||||
|
||||
Reference in New Issue
Block a user