secret

package
v0.22.3 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 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 InitializeSecret

func InitializeSecret(organizationId, projectIdOrAlternateId string, secretLocation SecretLocation, secretFile string) (models.Secret, error)

func NewSecret

func NewSecret(secretBase64 string) models.Secret

func RestoreSecretFromMonorepo

func RestoreSecretFromMonorepo() (models.Secret, error)

func RotateSecret added in v0.17.0

func RotateSecret() (models.Secret, error)

func UpsertLocalSecret

func UpsertLocalSecret(secret models.Secret) error

Types

type SecretLocation added in v0.17.0

type SecretLocation int
const (
	SecretLocationVinz SecretLocation = iota
	SecretLocationLocal
	SecretLocationNone
)

func LoadOrInitializeSecret added in v0.17.0

func LoadOrInitializeSecret(organizationId, projectIdOrAlternateId string) (models.Secret, SecretLocation, error)

func LoadSecret

func LoadSecret(organizationId, projectIdOrAlternateId string) (models.Secret, SecretLocation, error)

Jump to

Keyboard shortcuts

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