Alex Dadgar
46ab2d69b1
handle errors when streaming logs
2017-09-19 10:37:49 -05:00
Alex Dadgar
26643fc141
Fix logs/fs commands
...
This PR fixes an assignment to a nil map in the api pkg related to
accessing logs and the filesystem of allocations.
Fixes https://github.com/hashicorp/nomad/issues/3115
2017-08-28 22:21:54 -07:00
Michael Schurter
2f30827205
Refactor GetNodeClient weirdness
...
- No need to for a pointer to a pointer
- Properly set and use QueryOptions.Region
2017-08-28 14:41:21 -07:00
Michael Schurter
1bb8a54ffb
Fix TLS support in api pkg / cli
...
Fixes #3013
It's a little weird that Client now has a method for returning a
NewClient, but it's a convenient way to dedupe the logic to
connect-directly-to-a-node which is nontrivial and had sutble
differences between locations.
2017-08-28 11:46:28 -07:00
Luke Farnell
7a56971508
fixed all spelling mistakes for goreport
2017-08-07 17:13:05 -04:00
Michael Schurter
73da65d566
Fix TLS use in AllocFS API and region/dc detection
2017-03-27 17:38:16 -07:00
Diptanu Choudhury
722433b4f9
Making the cli use TLS if the client has enabled TLS
2016-10-26 11:13:53 -07:00
Alex Dadgar
fdaf530813
api.fs uses the api.Client rather than making raw requests
2016-07-28 14:27:17 -07:00
Alex Dadgar
67fe934342
control-c works
2016-07-25 11:16:54 -07:00
Alex Dadgar
b65fd2624e
Support non-following logs
2016-07-25 11:16:54 -07:00
Alex Dadgar
8cb4f76a65
remove file events and last offset
2016-07-25 11:16:01 -07:00
Alex Dadgar
ac1cfd1821
unblock the readers to add liveness when using -n
2016-07-25 11:16:01 -07:00
Alex Dadgar
2530f7bd40
initial api and command
2016-07-25 11:16:01 -07:00
Alex Dadgar
a1b46b3a6d
Allow following of files when cating and fix offsets
2016-07-13 15:33:17 -06:00
Alex Dadgar
991220b5c7
implement -n for tail
2016-07-13 13:26:09 -06:00
Alex Dadgar
25dd45c763
frames to reader
2016-07-12 17:34:32 -06:00
Alex Dadgar
3cc13aeca1
initial comments
2016-07-11 10:58:18 -06:00
Alex Dadgar
4f7c5fa502
StreamFramer encapsulates the sending, heartbeating and batching behavior of frames
2016-07-10 13:57:04 -04:00
Alex Dadgar
3159859949
initial command implementation
2016-07-10 13:57:04 -04:00
Diptanu Choudhury
c8f74a3d9c
Added the /fs/cat/ api
2016-03-28 11:06:22 -07:00
Diptanu Choudhury
0f9657d122
Not trying to parse response if the body is not a json
2016-01-27 21:39:50 -08:00
Diptanu Choudhury
12ffecf021
Added more information about files
2016-01-27 14:20:10 -08:00
Diptanu Choudhury
a906b7747b
Changed the api of the ReadAt API
2016-01-27 12:53:24 -08:00
Diptanu Choudhury
9491295027
Introducing an AllocFileInfo in the api package
2016-01-27 12:53:24 -08:00
Diptanu Choudhury
d706878112
Added the cli for fs-cat
2016-01-27 12:53:23 -08:00
Diptanu Choudhury
a2db48ec60
Added an impl for stating a file
2016-01-27 12:53:23 -08:00
Diptanu Choudhury
89452e7a9c
Added some comments
2016-01-27 12:53:23 -08:00
Diptanu Choudhury
40a205f466
Added the cli for listing alloc dir
2016-01-27 12:53:23 -08:00