Commit Graph

93 Commits

Author SHA1 Message Date
yo
910be4ea31 Add gocage list snapshot myjail 2022-04-03 14:27:26 +02:00
yo
285229009f Add "gocage get all myjail" 2022-04-03 11:04:01 +02:00
yo
19dd2dfb33 version bump to v0.24 2022-04-03 10:36:23 +02:00
yo
139ea18422 add "gocage get property jail" + "gocage set property jail" now support string, int and bool types 2022-04-03 10:35:48 +02:00
yo
3bedf019dc Move property mgmt functions to properties.go 2022-04-03 10:35:01 +02:00
yo
da74456d6a Set property K for int type + write config to disk 2022-04-02 21:38:54 +02:00
yo
f40db69b9d WIP: Implementing setJailProperty, add recursivity to getStructFieldValue 2022-04-02 21:15:06 +02:00
yo
239bcd4b95 WIP: set jail properties 2022-04-02 17:12:51 +02:00
yo
5a3d26a52c Formatting + add "set" command 2022-04-02 17:11:54 +02:00
yo
bf20c815ce Moved some code to utils.go 2022-04-02 15:50:14 +02:00
yo
f1c4fd960d Add command "list properties" so we can get all internal properties to sort, filter, or set jail properties 2022-04-02 15:40:04 +02:00
yo
8d18bfe55d Bugfix 2022-04-02 15:38:24 +02:00
yo
eacc165481 Mount local FS; get struct pointer so we can modify values 2022-04-02 14:18:50 +02:00
yo
349ea12979 Unmount local FS before stopping jail 2022-04-02 14:17:10 +02:00
yo
30209d2890 Start implementing gocage start 2021-12-21 20:48:15 +01:00
yo
ea25db2f27 Start implementing gocage start 2021-12-21 20:48:07 +01:00
yo
12c0a37617 BUGFIX when no -s 2021-12-21 20:47:46 +01:00
yo
fb94921afd update doc with sort example 2021-12-20 22:23:17 +01:00
yo
74da6909c3 update doc with sort example 2021-12-20 22:16:36 +01:00
yo
c36cf9511a Add sort support, can use every field 2021-12-20 22:10:38 +01:00
yo
9af50111f3 umount procfs, linprofs, fdescfs and devfs at jail stop 2021-12-19 19:06:41 +01:00
yo
485330f821 Mise à jour de 'README.md' 2021-12-19 17:07:17 +01:00
yo
754a937eb8 Mise à jour de 'README.md' 2021-12-19 17:04:27 +01:00
yo
6cef2918b4 Mise à jour de 'README.md' 2021-12-19 16:51:26 +01:00
yo
40d694247d Mise à jour de 'README.md' 2021-12-19 16:50:53 +01:00
yo
fd0cb27798 Add filter option, update Readme 2021-12-19 16:49:07 +01:00
yo
eceb108f2c BUGFIX null pointer when flags not used 2021-12-19 14:45:12 +01:00
yo
304a7bb253 update config sample with nolinesep 2021-12-19 14:34:15 +01:00
yo
c1771153d6 Display fields with more than 1 value (p.e ip4_addr), line separator between jails 2021-12-19 14:31:51 +01:00
yo
4eeb6d0d99 Choose fields to display with -o flag 2021-12-19 13:05:30 +01:00
yo
eebc7da169 gocage stop now functionnal 2021-12-19 12:42:29 +01:00
yo
8fdd0ffbce Make Listjails and Stopjails public to differentiate from internal functions 2021-12-19 12:41:54 +01:00
yo
f90de63f87 Get zpool, dont display JID if jail is off 2021-12-19 12:41:16 +01:00
yo
d8c78cfd34 Check if there are rctl rules before calling removeRctlRules() 2021-12-18 22:23:55 +01:00
yo
b5faac0705 Sample configuration file 2021-12-18 21:40:11 +01:00
yo
684129079f Tried to add a running release attibute, but Config.Release already do the realtime job 2021-12-18 21:35:37 +01:00
yo
efb7248973 moved utilities into cmd/utils.go, started working on stop command 2021-12-18 21:34:43 +01:00
yo
57ff518f6c chose listed jails, show real field name in header, sudo parameter, moved utilities into cmd/utils.go, started working on stop command 2021-12-18 21:34:11 +01:00
yo
06900bfa9c displayStructFields now recurse into nested structs 2021-12-18 17:15:06 +01:00
yo
3fdca54cc4 Fix NoValue field, Fix MaxLen when header name is > value 2021-12-18 15:37:05 +01:00
yo
26166489fd Add pretty display for struct array 2021-12-18 15:22:55 +01:00
yo
541222e2d0 Init 2021-12-18 13:13:25 +01:00
yo
2454c5984e Initial commit 2021-11-27 10:43:28 +01:00