feat(agent): added dynamic secret change based re-trigger

This commit is contained in:
Akhil Mohan
2024-03-22 23:59:08 +05:30
parent a07d055347
commit 88f7e4255e
3 changed files with 168 additions and 50 deletions

View File

@@ -1,5 +1,7 @@
package models
import "time"
type UserCredentials struct {
Email string `json:"email"`
PrivateKey string `json:"privateKey"`
@@ -49,8 +51,8 @@ type DynamicSecret struct {
type DynamicSecretLease struct {
Lease struct {
Id string `json:"id"`
ExpireAt string `json:"expireAt"`
Id string `json:"id"`
ExpireAt time.Time `json:"expireAt"`
} `json:"lease"`
DynamicSecret DynamicSecret `json:"dynamicSecret"`
// this is a varying dict based on provider