2024-01-28 10:15:32 -05: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 14:22:10 -04:00
BackendErrorRedesign FlagName = "backend-error-redesign"
2024-03-29 08:51:59 -04:00
DeviceIDForHardlinks FlagName = "device-id-for-hardlinks"
2024-07-08 13:42:00 -04:00
ExplicitS3AnonymousAuth FlagName = "explicit-s3-anonymous-auth"
2024-05-24 14:41:19 -04:00
SafeForgetKeepTags FlagName = "safe-forget-keep-tags"
2024-01-28 10:15:32 -05:00
)
func init ( ) {
Flag . SetFlags ( map [ FlagName ] FlagDesc {
2024-05-11 14:22:10 -04:00
BackendErrorRedesign : { Type : Beta , Description : "enforce timeouts for stuck HTTP requests and use new backend error handling design." } ,
2024-03-29 08:51:59 -04: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 13:42:00 -04:00
ExplicitS3AnonymousAuth : { Type : Beta , Description : "forbid anonymous S3 authentication unless `-o s3.unsafe-anonymous-auth=true` is set" } ,
2024-05-24 14:41:19 -04:00
SafeForgetKeepTags : { Type : Beta , Description : "prevent deleting all snapshots if the tag passed to `forget --keep-tags tagname` does not exist" } ,
2024-01-28 10:15:32 -05:00
} )
}