Simple concept for a large footprint of change: filters should always accept a slice of targets to compare against, instead of a string. Currently, we're faking a slice by way of using a const separator anyway, so we might as well support slices outright. Lots of changes (simplification, mostly) in selectors cascade from this shift. Any updates you see here are purely to comply with the updated filters interface. This step will make concealing PII in selector and filter logging significantly easier than before. --- #### Does this PR need a docs update or release note? - [x] ⛔ No #### Type of change - [x] 🤖 Supportability/Tests #### Issue(s) * #2024 #### Test Plan - [x] ⚡ Unit test
29 lines
808 B
Go
29 lines
808 B
Go
// Code generated by "stringer -type=Schema"; DO NOT EDIT.
|
|
|
|
package model
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[UnknownSchema-0]
|
|
_ = x[BackupOpSchema-1]
|
|
_ = x[RestoreOpSchema-2]
|
|
_ = x[BackupSchema-3]
|
|
_ = x[BackupDetailsSchema-4]
|
|
_ = x[RepositorySchema-5]
|
|
}
|
|
|
|
const _Schema_name = "UnknownSchemaBackupOpSchemaRestoreOpSchemaBackupSchemaBackupDetailsSchemaRepositorySchema"
|
|
|
|
var _Schema_index = [...]uint8{0, 13, 27, 42, 54, 73, 89}
|
|
|
|
func (i Schema) String() string {
|
|
if i < 0 || i >= Schema(len(_Schema_index)-1) {
|
|
return "Schema(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _Schema_name[_Schema_index[i]:_Schema_index[i+1]]
|
|
}
|