appsecrets

package
v0.3.196 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteMinvers

func DeleteMinvers(ctx context.Context, appName string) error

DeleteMinvers removes the minimum secrets version for appName and saves it.

func GetMinvers

func GetMinvers(appName string) (*uint64, error)

GetAppSecretsMinvers returns the minimum secrets version for appName if known or nil.

func List

func List(ctx context.Context, client flapsutil.FlapsClient, appName string) ([]fly.AppSecret, error)

List returns a list of app secrets. client must be a flaps client for appName. List will use the best known minvers for appName when listing secrets.

func SetMinvers

func SetMinvers(ctx context.Context, appName string, v uint64) error

SetMinvers sets the minimum secrets version for appName and saves it.

func Sync added in v0.3.186

func Sync(ctx context.Context, client flapsutil.FlapsClient, appName string) error

Sync sets the min version for the app to the current min version, allowing any previously set secret to be visible in deploys.

func Update

func Update(ctx context.Context, client flapsutil.FlapsClient, appName string, setSecrets map[string]string, unsetSecrets []string) error

Update sets setSecrets and unsets unsetSecrets. client must be a flaps client for appName. It is not an error to unset a secret that does not exist. Update will keep track of the secrets minvers for appName after successfully changing secrets.

Types

This section is empty.

Jump to

Keyboard shortcuts

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