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
- type VersionSaveError
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 ¶
type VersionSaveError ¶ added in v0.5.11
type VersionSaveError struct{ Err error }
VersionSaveError reports that Update changed the secrets remotely but could not save their new minimum version locally. Its message is the underlying error's, unchanged, so callers that only print it keep their existing output; callers that need to tell the user the remote change went through can detect it with errors.As.
func (*VersionSaveError) Error ¶ added in v0.5.11
func (e *VersionSaveError) Error() string
func (*VersionSaveError) Unwrap ¶ added in v0.5.11
func (e *VersionSaveError) Unwrap() error