const ENV_VERIFY … const ENV_VERIFY_ALL_VALUE … type Config … // Verify performs consistency checks of given etcd data-directory. // The errors are reported as the returned error, but for some situations // the function can also panic. // The function is expected to work on not-in-use data model, i.e. // no file-locks should be taken. Verify does not modified the data. func Verify(cfg Config) error { … } // VerifyIfEnabled performs verification according to ETCD_VERIFY env settings. // See Verify for more information. func VerifyIfEnabled(cfg Config) error { … } // MustVerifyIfEnabled performs verification according to ETCD_VERIFY env settings // and exits in case of found problems. // See Verify for more information. func MustVerifyIfEnabled(cfg Config) { … } func validateConsistentIndex(cfg Config, hardstate *raftpb.HardState, snapshot *walpb.Snapshot, be backend.Backend) error { … } func validateWal(cfg Config) (*walpb.Snapshot, *raftpb.HardState, error) { … }