mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 15:27:46 +00:00
feat(models): add model for environments
This commit is contained in:
@@ -2,6 +2,12 @@ package api
|
|||||||
|
|
||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
|
type Environment struct {
|
||||||
|
Name string `json:"name"`
|
||||||
|
Slug string `json:"slug"`
|
||||||
|
ID string `json:"id"`
|
||||||
|
}
|
||||||
|
|
||||||
// Stores info for login one
|
// Stores info for login one
|
||||||
type LoginOneRequest struct {
|
type LoginOneRequest struct {
|
||||||
Email string `json:"email"`
|
Email string `json:"email"`
|
||||||
@@ -14,7 +20,6 @@ type LoginOneResponse struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Stores info for login two
|
// Stores info for login two
|
||||||
|
|
||||||
type LoginTwoRequest struct {
|
type LoginTwoRequest struct {
|
||||||
Email string `json:"email"`
|
Email string `json:"email"`
|
||||||
ClientProof string `json:"clientProof"`
|
ClientProof string `json:"clientProof"`
|
||||||
@@ -168,9 +173,10 @@ type Secret struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Project struct {
|
type Project struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Slug string `json:"slug"`
|
Slug string `json:"slug"`
|
||||||
|
Environments []Environment `json:"environments"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type RawSecret struct {
|
type RawSecret struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user