StateVersioning whether resources created from this schema should track state and config versions
()
| 441 | |
| 442 | //StateVersioning whether resources created from this schema should track state and config versions |
| 443 | func (schema *Schema) StateVersioning() bool { |
| 444 | statefulRaw, ok := schema.Metadata["state_versioning"] |
| 445 | if !ok { |
| 446 | return false |
| 447 | } |
| 448 | stateful, ok := statefulRaw.(bool) |
| 449 | if !ok { |
| 450 | return false |
| 451 | } |
| 452 | return stateful |
| 453 | } |
| 454 | |
| 455 | //SyncKeyTemplate - for custom paths in etcd |
| 456 | func (schema *Schema) SyncKeyTemplate() (syncKeyTemplate string, ok bool) { |
no outgoing calls
no test coverage detected