Skip to content

Commit

Permalink
sharing types between plugin and logical
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hoffman committed Jun 2, 2018
1 parent 6cd43db commit ab8a78a
Show file tree
Hide file tree
Showing 3 changed files with 345 additions and 0 deletions.
159 changes: 159 additions & 0 deletions github.com/hashicorp/vault/logical/identity.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

157 changes: 157 additions & 0 deletions logical/identity.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions logical/identity.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
syntax = "proto3";

option go_package = "github.com/hashicorp/vault/logical";

package logical;

message Entity {
// ID is the unique identifier for the entity
string ID = 1;

// Name is the human-friendly unique identifier for the entity
string name = 2;

// Aliases contains thhe alias mappings for the given entity
repeated Alias aliases = 3;
}

message Alias {
// MountType is the backend mount's type to which this identity belongs
string mount_type = 1;

// MountAccessor is the identifier of the mount entry to which this
// identity belongs
string mount_accessor = 2;

// Name is the identifier of this identity in its authentication source
string name = 3;
}

0 comments on commit ab8a78a

Please sign in to comment.