bc7ccbd805
Move function implementations out of the header file.
2024-03-06 23:32:07 -05:00
5f98d369fa
Prefix libguestfs-inspect functions with guestfs_inspect_.
...
The functions are also made non-static.
This is in preparation to moving the header function implementations to a .c file.
2024-03-06 23:32:07 -05:00
1d17e047b7
Add header guard to libguestfs-inspect.h
2024-03-06 23:22:29 -05:00
3c9564cb3e
Use environment variable for the socket.
...
The default behavior is to create a socket file at /tmp/guestfs-inspect.sock.
If XDG_RUNTIME_DIR is set, that will be used instead of /tmp.
One could instead specify GUESTFS_INSPECT_ENDPOINT, which requires the full endpoint, as specified by: https://libzmq.readthedocs.io/en/zeromq3-x/zmq_connect.html
You will likely want to use ipc://, but you can probably use tcp:// or (e)pgm:// if that is appropriate.
2024-03-06 23:22:29 -05:00
ba3ac50325
Remove unused include
2024-03-06 19:25:05 -05:00
465d6f0cd4
Set workdir in the Dockerfile
2024-03-06 19:24:34 -05:00
1378a5a31a
Free the worker
2024-03-06 19:24:34 -05:00
Pin
46d9500d3a
small fix
2024-03-05 20:40:11 -05:00
Pin
20fc94fb35
testing errors
2024-03-03 18:46:41 -05:00
c6f9204014
Cat seems to hang forever
2024-03-03 17:43:58 -05:00
6700d98ad6
Fully branch cat and ls
2024-03-03 17:41:06 -05:00
49b9f43c76
Initial branching by command in the client
2024-03-03 17:23:54 -05:00
ebc07d0cf7
Add common support for cat command.
2024-03-03 17:19:11 -05:00
75139f709d
Start branching based on the command type
2024-03-03 17:15:03 -05:00
1e5357c4cf
Added destroy command function
2024-03-03 17:14:43 -05:00
7d9c451799
Resolve leaks in the client
2024-03-03 17:02:24 -05:00
a7992436b1
Replace multi-worker attempt with simple single worker
...
Get things working before scaling it up
2024-03-03 16:54:02 -05:00
e94211e5f4
Cleanup socket
2024-03-03 16:52:47 -05:00
2b4aa5cbaf
Add message to show the number of paths sent to the worker to ls
2024-03-03 16:51:03 -05:00
bdf9fc7718
Fix error reading from the wrong msg object
2024-03-03 16:50:45 -05:00
b99513c8b3
Fix serialization
...
Was putting new data in the front of the message instead of the end.
This mismatched with how I was deserializing the messages
2024-03-03 16:50:45 -05:00
32a03a3895
Add message to show when the daemon is ready
2024-03-03 16:50:45 -05:00
16e95af02a
Serialize struct from the client
2024-03-03 16:48:44 -05:00
a4b56107aa
Add deserialize function
2024-03-03 16:09:58 -05:00
8a814b1d93
Add basic serialization of the message
2024-03-03 15:57:53 -05:00
9422f77119
Update struct to use pointers instead of flexible length structs
2024-03-03 15:46:18 -05:00
859ee90048
Send message from daemon to client
2024-03-03 15:41:10 -05:00
83f62dc217
Remove router loop
2024-03-03 15:35:11 -05:00
ea58a6ebd3
Do not use redundant pointer to pointer
2024-03-03 15:22:36 -05:00
eaf8dde6c3
Do not use draft API
2024-03-03 15:22:15 -05:00
26af0a5a5d
trying to use the draft api to get router ids
2024-03-03 15:18:18 -05:00
187acad82a
Trying to send a reply string from the worker
2024-03-03 15:18:18 -05:00
d6c57e9e32
Automatically select the first worker for development
2024-03-03 14:19:32 -05:00
07ee70b002
Add print statements for debugging
2024-03-03 14:16:51 -05:00
d60c0d419b
Add debug flag
2024-03-03 02:05:33 -05:00
ec9a78a459
Send the message and get the reply
2024-03-03 02:05:33 -05:00
2c4cb0e235
Uncomment worker loop
2024-03-03 02:05:33 -05:00
fd2ee16f79
Renamed enum
2024-03-03 02:05:33 -05:00
44a5f6773c
Build command object
2024-03-03 02:05:33 -05:00
Pin
d01a6e593a
Merge branch 'dev' of https://git.robbyzambito.me/robby/guestfs-inspect into dev
2024-03-03 01:13:14 -05:00
Pin
2505662cfb
breaking out init_guestfs and cat_file
2024-03-03 01:12:59 -05:00
d09b118ad7
Build the client from the Makefile
2024-03-03 01:04:13 -05:00
ce8d3843a3
cleanup after junior engineer
2024-03-03 01:01:56 -05:00
2bdf450d65
Initial client
2024-03-03 01:01:56 -05:00
73d8b6716b
Dispatch message to worker by name
2024-03-03 01:01:31 -05:00
26c742f017
Update dockerfile
2024-03-03 00:56:28 -05:00
052aa99a6c
Fix Spencers HORRIBLE spelling.
2024-03-03 00:32:56 -05:00
Pin
cbb0a440e9
zmsg_send changes
2024-03-02 23:54:37 -05:00
Pin
ac70e240c8
format
2024-03-02 23:50:20 -05:00
Pin
991ffb5224
Merge branch 'dev' of https://git.robbyzambito.me/robby/guestfs-inspect into dev
2024-03-02 23:35:01 -05:00