-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
origin api #682
origin api #682
Conversation
Signed-off-by: Dave Parfitt <[email protected]>
@@ -42,6 +42,10 @@ fn protocol_files() -> Vec<PathBuf> { | |||
let mut files = vec![]; | |||
for entry in fs::read_dir("protocols").unwrap() { | |||
let file = entry.unwrap(); | |||
// skip vim temp files | |||
if file.file_name().to_str().unwrap().starts_with(".") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any other things we should ignore here? I didn't even think about this! Maybe we should just process things that explicitly end in .proto
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably stick with .proto
, but this will work for now.
@metadave this is exactly what we need to get started. It appears that you totally got the message routing/persistence traits and that makes me happy 😄 Merge when ready! |
📌 Commit 05971d9 has been approved by |
@habitat-sh/habitat-core-maintainers please don't update willem yet until we have the cli login stuff in place. |
Signed-off-by: Dave Parfitt <[email protected]> Pull request: #682 Approved by: metadave
☀️ Test successful - travis |
Signed-off-by: Dave Parfitt <[email protected]> Pull request: #682 Approved by: metadave
Signed-off-by: Dave Parfitt <[email protected]> Pull request: #682 Approved by: metadave
create an origin
example.json:
get the members of an origin
create an invitation
list my invitations
list current origin invitations
accept an invitation
invite.json:
NOTE: ignoring invites isn't implemented yet
get the origins that I'm a member of
Sample output json here:
https://gist.github.com/metadave/52e59f764ededa581207d87d27234322#file-jsonsamples-txt