Files
2026-01-17 00:16:59 +01:00

35 lines
1.0 KiB
Go

package models
type SecretMetadata struct {
Key string `json:"key"`
Value string `json:"value"`
}
type SecretTag struct {
ID string `json:"id"`
Slug string `json:"slug"`
Name string `json:"name"`
Color string `json:"color"`
}
type Secret struct {
ID string `json:"id"`
Workspace string `json:"workspace"`
Environment string `json:"environment"`
Version int `json:"version"`
Type string `json:"type"`
SecretKey string `json:"secretKey"`
SecretValue string `json:"secretValue"`
SecretComment string `json:"secretComment"`
SecretPath string `json:"secretPath,omitempty"`
SecretMetadata []SecretMetadata `json:"secretMetadata"`
Tags []SecretTag `json:"tags"`
}
type SecretImport struct {
SecretPath string `json:"secretPath"`
Environment string `json:"environment"`
FolderID string `json:"folderId"`
Secrets []Secret `json:"secrets"`
}