Skip to content

Commit

Permalink
bump to 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
zailic committed Mar 15, 2018
1 parent 5aecfa4 commit 3707d12
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 21 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ npm-debug.log

# istanbul
/.nyc_output
/coverage
/coverage

# transpilations
/dist
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ Vault Rest API Call | Http Method | Client Library Method | Tested
/sys/audit/:name|PUT|VaultClient.enableAudit(auditName: string)|No
/sys/audit/:name|DELETE|VaultClient.disableAudit(auditName: string)|No
/sys/audit-hash/:path|POST|N/A|N/A
/sys/auth|GET|VaultClient.auths()|No
/sys/auth|POST|VaultClient.enableAuth(mountPoint: string)|No
/sys/auth|DELETE|VaultClient.disableAuth(mountPoint: string)|No
/sys/auth|GET|N/A|No
/sys/auth|POST|N/A|No
/sys/auth|DELETE|N/A|No
/sys/capabilities|POST|N/A|N/A
/sys/capabilities-accessor|POST|N/A|N/A
/sys/capabilities-self|POST|N/A|N/A
Expand All @@ -154,16 +154,16 @@ Vault Rest API Call | Http Method | Client Library Method | Tested
/sys/health|HEAD|N/A|N/A
/sys/health|GET|N/A|N/A
/sys/init|GET|VaultClient.isInitialized()|YES
/sys/init|PUT|VaultClient.init(initData: object)|No
/sys/init|PUT|VaultClient.init(initData: object)|YES
/sys/key-status|GET|N/A|N/A
/sys/leader|GET|N/A|N/A
/sys/leases|PUT|N/A|N/A
/sys/leases|LIST|N/A|N/A
/sys/license|GET|N/A|N/A
/sys/mfa|N/A|N/A|N/A
/sys/mounts|GET|VaultClient.mounts()|No
/sys/mounts/:mount_point|POST|VaultClient.mount(path:string, mountData: object)|No
/sys/mounts/:mount_point|DELETE|VaultClient.unmount(path: string)|No
/sys/mounts|N/A|No
/sys/mounts/:mount_point|POST|N/A|No
/sys/mounts/:mount_point|DELETE|N/A|No
/sys/mounts/:mount_point/tune|POST|N/A|N/A
/sys/plugins/reload/backend|PUT|N/A|N/A
/sys/plugins/catalog|LIST|N/A|N/A
Expand Down Expand Up @@ -191,6 +191,6 @@ Vault Rest API Call | Http Method | Client Library Method | Tested
/sys/wrapping/wrap|N/A|N/A|N/A

## TODO list
- [ ] Better documentation(API, more samples, what is supported and what is NOT)
- [x] Better documentation(API, more samples, what is supported and what is NOT)
- [ ] Full support for ["System Backend Commands"](https://www.vaultproject.io/api/system/index.html)
- [ ] Typescript declarations - it will bring IDE intellisense for tools like Vscode, IntelliJ IDEA, Atom, etc
- [x] Typescript declarations - it will bring IDE intellisense for tools like Vscode, IntelliJ IDEA, Atom, etc
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nanvc",
"description": "Not Another Node Vault Client :)",
"version": "1.0.4-beta.2",
"version": "1.0.4",
"author": {
"name": "Ionut Zailic",
"email": "ionut@zailic.com"
Expand Down
20 changes: 10 additions & 10 deletions src/lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ export class VaultClient {

// not tested

public mounts: () => Promise<VaultResponse>;
public mount: () => Promise<VaultResponse>;
public unmount: () => Promise<VaultResponse>;
public remount: () => Promise<VaultResponse>;
public auths: () => Promise<VaultResponse>;
public enableAuth: () => Promise<VaultResponse>;
public disableAuth: () => Promise<VaultResponse>;
public renew: () => Promise<VaultResponse>;
public revoke: () => Promise<VaultResponse>;
public revokePrefix: () => Promise<VaultResponse>;
// public mounts: () => Promise<VaultResponse>;
// public mount: () => Promise<VaultResponse>;
// public unmount: () => Promise<VaultResponse>;
// public remount: () => Promise<VaultResponse>;
// public auths: () => Promise<VaultResponse>;
// public enableAuth: () => Promise<VaultResponse>;
// public disableAuth: () => Promise<VaultResponse>;
// public renew: () => Promise<VaultResponse>;
// public revoke: () => Promise<VaultResponse>;
// public revokePrefix: () => Promise<VaultResponse>;

constructor(
private _clusterAddress: string = process.env.NANVC_VAULT_CLUSTER_ADDRESS || 'http://127.0.0.1:8200',
Expand Down

0 comments on commit 3707d12

Please sign in to comment.