Documentation
¶
Index ¶
- Variables
- func GetGlobalDirectory() string
- func UpsertLocalSecret(secret Secret) error
- type Secret
- func InitializeSecret(organizationId, projectIdOrAlternateId, secretFile string) (Secret, error)
- func LoadSecret(organizationId, projectIdOrAlternateId string, create bool) (Secret, error)
- func NewSecret(sk *secretkey.SecretKey) Secret
- func RestoreSecretFromFile(manifestSecretFile string) (Secret, error)
- func RestoreSecretFromMonorepo() (Secret, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var FS fsutil.FileSystem = fsutil.NewFileSystem()
View Source
var (
ManifestSecretFile = ".hxkey"
)
Functions ¶
func GetGlobalDirectory ¶
func GetGlobalDirectory() string
func UpsertLocalSecret ¶
Types ¶
type Secret ¶
type Secret struct {
SecretKeyId int64 `json:"secret_key_id"`
SecretKey string `json:"secret_key"`
}
func InitializeSecret ¶
func LoadSecret ¶
func RestoreSecretFromFile ¶
func (*Secret) GetSecretKey ¶
Click to show internal directories.
Click to hide internal directories.