]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commit
metadata: introduce protobuf structures
authorJoe Richey <joerichey@google.com>
Thu, 2 Mar 2017 18:15:23 +0000 (10:15 -0800)
committerJoe Richey joerichey@google.com <joerichey@google.com>
Tue, 2 May 2017 20:39:18 +0000 (13:39 -0700)
commit2ccea6496efc054c21c5ed397f3caff8d4992957
tree3a5a46492ad867d767770985773d08dcd49d1df6
parent49f7bad068c82d71d2af73b9c8046fb882b29c69
metadata: introduce protobuf structures

This commit adds in the metadata package. The primary purpose of this
package is to provide the on-disk metadata structures in the form of
protocol buffers. This includes:
- Policy metadata structure
- Protector metadata structure
- Config file structure
- All necessary sub-structures (wrapped keys, parameters, etc)

This commit also adds in an example usage of the Config structure, which
represents the structure of the global config file. All the package
does at this point is convert between the Config structure and a JSON
representation.

Here we introduce govendor, which is described more in the README. This
means we will have all of our Go dependencies in the vendor
subdirectory. This means we will have no Go source dependencies, only
dependencies on the build tools (Go and govendor). The README describes
this in detail.

Note that we commit the generated files.
  see: https://blog.golang.org/generate

Change-Id: Iaacd46666b5d3e4e865a0f4045dd63ed7e3d6f96
Makefile
README.md
metadata/config.go [new file with mode: 0644]
metadata/config_test.go [new file with mode: 0644]
metadata/metadata.pb.go [new file with mode: 0644]
metadata/metadata.proto [new file with mode: 0644]