secrets

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NonInteractive bool

NonInteractive bypasses the interactive terminal prompts and fails directly if required secrets are missing

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