secret

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ManifestSecretFile = ".hxkey"
)

Functions

func GetGlobalDirectory

func GetGlobalDirectory() string

func UpsertLocalSecret

func UpsertLocalSecret(secret Secret) error

Types

type Secret

type Secret struct {
	SecretKeyId int64  `json:"secret_key_id"`
	SecretKey   string `json:"secret_key"`
}

func InitializeSecret

func InitializeSecret(organizationId, projectIdOrAlternateId, secretFile string) (Secret, error)

func LoadSecret

func LoadSecret(organizationId, projectIdOrAlternateId string, create bool) (Secret, error)

func NewSecret

func NewSecret(sk *secretkey.SecretKey) Secret

func RestoreSecretFromFile

func RestoreSecretFromFile(manifestSecretFile string) (Secret, error)

func RestoreSecretFromMonorepo

func RestoreSecretFromMonorepo() (Secret, error)

func (*Secret) GetSecretKey

func (s *Secret) GetSecretKey() *secretkey.SecretKey

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL