secrets

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rotate

func Rotate(envFile string) error

Rotate runs the interactive form pre-filled with existing values and saves the result. Use for credential rotation.

Types

type Secrets

type Secrets struct {
	CFTunnelToken string
	DevHostname   string
}

Secrets holds the user-specific values required to provision the environment.

func Load

func Load(envFile string) (*Secrets, error)

Load reads secrets from the given .env file. If any required value is missing, it falls back to an interactive huh form. Writes back to the .env file after a successful form submission.

func (*Secrets) Save

func (s *Secrets) Save(envFile string) error

Save writes secrets to the given .env file.

Jump to

Keyboard shortcuts

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