github.com/kata-containers/runtime@v0.0.0-20210505125100-04f29832a923/virtcontainers/persist/api/version.go (about)

     1  // Copyright (c) 2019 Huawei Corporation
     2  //
     3  // SPDX-License-Identifier: Apache-2.0
     4  //
     5  
     6  package persistapi
     7  
     8  const (
     9  	// CurPersistVersion is current persist data version.
    10  	// This can help keep backward compatibility, if you make
    11  	// some changes in persistapi package which needs different
    12  	// handling process between different runtime versions, you
    13  	// should modify `CurPersistVersion` and handle persist data
    14  	// according to it.
    15  	// If you can't be sure if the change in persistapi package
    16  	// requires a bump of CurPersistVersion or not, do it for peace!
    17  	// --@WeiZhang555
    18  	CurPersistVersion uint = 2
    19  )