Documentation
¶
Index ¶
- func DeleteMinvers(ctx context.Context, appName string) error
- func GetMinvers(appName string) (*uint64, error)
- func List(ctx context.Context, client flapsutil.FlapsClient, appName string) ([]fly.AppSecret, error)
- func SetMinvers(ctx context.Context, appName string, v uint64) error
- func Sync(ctx context.Context, client flapsutil.FlapsClient, appName string) error
- func Update(ctx context.Context, client flapsutil.FlapsClient, appName string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteMinvers ¶
DeleteMinvers removes the minimum secrets version for appName and saves it.
func GetMinvers ¶
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 ¶
SetMinvers sets the minimum secrets version for appName and saves it.
func Sync ¶ added in v0.3.186
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.