2024-01-28 15:15:32 +00:00
package feature
// Flag is named such that checking for a feature uses `feature.Flag.Enabled(feature.ExampleFeature)`.
var Flag = New ( )
// flag names are written in kebab-case
const (
2024-05-11 18:22:10 +00:00
BackendErrorRedesign FlagName = "backend-error-redesign"
2024-03-29 12:51:59 +00:00
DeviceIDForHardlinks FlagName = "device-id-for-hardlinks"
2024-07-08 17:42:00 +00:00
ExplicitS3AnonymousAuth FlagName = "explicit-s3-anonymous-auth"
2024-05-24 18:41:19 +00:00
SafeForgetKeepTags FlagName = "safe-forget-keep-tags"
2024-01-28 15:15:32 +00:00
)
func init ( ) {
Flag . SetFlags ( map [ FlagName ] FlagDesc {
2024-05-11 18:22:10 +00:00
BackendErrorRedesign : { Type : Beta , Description : "enforce timeouts for stuck HTTP requests and use new backend error handling design." } ,
2024-03-29 12:51:59 +00:00
DeviceIDForHardlinks : { Type : Alpha , Description : "store deviceID only for hardlinks to reduce metadata changes for example when using btrfs subvolumes. Will be removed in a future restic version after repository format 3 is available" } ,
2024-07-08 17:42:00 +00:00
ExplicitS3AnonymousAuth : { Type : Beta , Description : "forbid anonymous S3 authentication unless `-o s3.unsafe-anonymous-auth=true` is set" } ,
2024-05-24 18:41:19 +00:00
SafeForgetKeepTags : { Type : Beta , Description : "prevent deleting all snapshots if the tag passed to `forget --keep-tags tagname` does not exist" } ,
2024-01-28 15:15:32 +00:00
} )
}