Skip to content

Commit

Permalink
Initial commit of version 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alefebvre-ls committed Dec 26, 2015
0 parents commit 4e39f1a
Show file tree
Hide file tree
Showing 9 changed files with 463 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.gots
6 changes: 6 additions & 0 deletions .gots_sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
user = youremail@example.com
api_key = [your_api_key]
# The following line enables debug mode for more verbose output
#debug = true
# The following setting can be used to specify an alternate host name in the situation you self host the application.
#ots_host = https://ots.example.com
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2015 Alain Lefebvre

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
69 changes: 69 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# GOTS - Go One-Time-Secret

## Description

This is a Go client for the onetimesecret.com service. Please note you can also checkout the opensource code base for the service and self-host it.


## Dependencies

- Go 1.5+ (only tested with this version)
- github.com/codegangsta/cli
- github.com/franela/goreq
- An account at https://onetimesecret.com (if not self-hosting)

## Building

- git clone https://github.com/hartfordfive/gots.git
- cd gots && go build


## Usage & Parameters

You must have a ".gots" file in your home directory. Just use the .gots_sample file and replace values with the appropriate settings

The available commands are as follows:

Share a secret:
```bash
gots share [secret] [passphrase] [ttl] [recipient_email]
```

Generate a random a secret:
```bash
gots generate [passphrase] [ttl] [metadata_ttl] [secret_ttl] [recipient_email]
```

Get a current secret:
```bash
gots get [secret_key] [passphrase]
```

Get meta data for a given secret:
```bash
gots getmeta [metadata_key]
```

Get recent meta data:
```bash
gots recentmeta
```

View API status:
```bash
gots status
```

## Bugs & Feature Requests

Please open an issue for any bugs or feature requests.


## Author

Alain Lefebvre (hartfordfive@gmail.com)


## License

Covered under the MIT License
Binary file added gots
Binary file not shown.
Loading

0 comments on commit 4e39f1a

Please sign in to comment.