MCPcopy Create free account
hub / github.com/cloudwan/gohan / StateVersioning

Method StateVersioning

schema/schema.go:443–453  ·  view source on GitHub ↗

StateVersioning whether resources created from this schema should track state and config versions

()

Source from the content-addressed store, hash-verified

441
442//StateVersioning whether resources created from this schema should track state and config versions
443func (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
456func (schema *Schema) SyncKeyTemplate() (syncKeyTemplate string, ok bool) {

Callers 9

UpdateContextMethod · 0.80
ResyncMethod · 0.80
DeleteContextMethod · 0.80
StateUpdateMethod · 0.80
MonitoringUpdateMethod · 0.80
GenTableDefMethod · 0.80
UpdateContextMethod · 0.80
StateUpdateContextMethod · 0.80
StateFetchContextMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected