-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4e39f1a
Showing
9 changed files
with
463 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.gots |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
user = [email protected] | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ([email protected]) | ||
|
||
|
||
## License | ||
|
||
Covered under the MIT License |
Binary file not shown.
Oops, something went wrong.