Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite in Go #318

Merged
merged 52 commits into from
May 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
d857471
Add a skeleton for the Go rewrite
HarryMichal Apr 7, 2020
1b6d7d6
build: Hook up the Go code with Meson
debarshiray May 8, 2020
53f4d0c
Add versioning infrastructure in Go
HarryMichal Apr 7, 2020
19081b5
Add convenience wrappers to shell out to any binary in Go
debarshiray May 7, 2020
7ab4ca8
Add a utility function for showing manuals in Go
debarshiray Apr 29, 2020
bd5b806
pkg/utils: Add function to conveniently check if a path exists
HarryMichal Apr 29, 2020
8f03a90
pkg/utils: Add function to check if running inside a container
HarryMichal Apr 30, 2020
03ca79a
pkg/utils: Add function to check if running inside a toolbox container
debarshiray Apr 30, 2020
ebad3af
pkg/utils: Add function to get the options to propagate the environment
HarryMichal Apr 30, 2020
c9ae8ad
pkg/utils: Add function to tunnel a Toolbox invocation to the host
debarshiray Apr 30, 2020
561fe8b
Lay the foundations for logging Podman in Go
debarshiray May 5, 2020
aaf81a5
Sketch out the command line interface in Go
HarryMichal Apr 7, 2020
f5bf741
pkg/utils: Add function to get the cgroups version
debarshiray May 5, 2020
e8d7f25
cmd/root: Initialize globals on start-up
HarryMichal Apr 30, 2020
e8866f2
cmd/help, cmd/root: Parametrize the basename of the executable
debarshiray Apr 30, 2020
3f0a135
cmd/root: Initialize TOOLBOX_PATH; validate /etc/subgid & /etc/subuid
HarryMichal Apr 30, 2020
b3fca25
pkg/podman: Wrap 'podman version --format json'
HarryMichal May 6, 2020
46c21a5
podman: Add function to check if Podman is newer than a given version
HarryMichal May 6, 2020
d1a9fe2
pkg/podman: Wrap 'podman system migrate'
HarryMichal May 8, 2020
c2ba675
cmd/root: Implement migration of containers and images
HarryMichal Apr 8, 2020
6170f49
pkg/utils: Add function to shorten the hash of a container of image
HarryMichal May 6, 2020
928bf53
pkg/utils: Add function to join sets of containers or images in JSON
HarryMichal May 6, 2020
74c2d7f
pkg/utils: Add function to sort sets of containers or images in JSON
HarryMichal May 6, 2020
f4d129a
pkg/podman: Wrap 'podman images' & 'podman ps'
HarryMichal May 10, 2020
c30d554
cmd/list: Implement the list command
HarryMichal Apr 8, 2020
c75404c
pkg/podman: Wrap 'podman inspect --format json'
HarryMichal May 10, 2020
08e8a80
pkg/podman: Add functions to check if a container/image is a Toolbox
HarryMichal May 10, 2020
8054502
cmd/rmi: Implement the rmi command
HarryMichal Apr 9, 2020
188c92c
cmd/rm: Implement the rm command in Go
HarryMichal Apr 10, 2020
31f1b74
pkg/utils: Add function to get the name of the sudoers group
HarryMichal Apr 30, 2020
772b66b
cmd/initContainer: Implement the init-container command
HarryMichal Apr 8, 2020
08fbf92
pkg/utils: Wrap call to o.fd.Flatpak.SessionHelper.RequestSession
debarshiray Apr 30, 2020
98b7753
pkg/utils: Add function to check the validity of a container's name
HarryMichal May 10, 2020
2edc308
pkg/utils: Add functions to get the mount metadata of a directory
HarryMichal May 11, 2020
9e28255
pkg/utils: Add functions for reading various os-release fields
debarshiray Apr 29, 2020
4308214
pkg/utils: Add function to parse the user-specified release string
HarryMichal May 11, 2020
d589b3a
pkg/utils: Add function to show an error for invalid release arguments
HarryMichal May 11, 2020
dd94701
pkg/utils: Add function to check if an image is referenced by its ID
HarryMichal May 11, 2020
0000cb0
pkg/utils: Add functions to get the properties of an image reference
HarryMichal May 11, 2020
0ce5462
pkg/utils: Figure out the default operating system release
HarryMichal May 11, 2020
b148e42
pkg/utils: Resolve the actual container, image and release to be used
HarryMichal May 11, 2020
823fbac
pkg/utils: Figure out the name of the default toolbox container
HarryMichal May 11, 2020
936f22f
pkg/utils: Add function to prompt the user for confirmation
HarryMichal May 11, 2020
8aea0b0
pkg/podman: Wrap 'podman container exists' and 'podman image exists'
HarryMichal May 11, 2020
4914602
pkg/podman: Wrap 'podman pull'
HarryMichal May 11, 2020
8f30d71
cmd/create: Implement the create command
HarryMichal Apr 16, 2020
5d6bfff
pkg/utils: Add function to show an error when a container is missing
HarryMichal Apr 28, 2020
eb0ce41
pkg/podman: Wrap 'podman start'
HarryMichal May 5, 2020
cf5c58a
cmd/run: Add function to get the entry point PID of a container
HarryMichal May 6, 2020
238f245
cmd/run: Implement the run command in Go
HarryMichal Apr 27, 2020
662bd89
cmd/enter: Implement the enter command in Go
HarryMichal Apr 29, 2020
ebd92b9
cmd/reset: Implement the reset command in Go
debarshiray May 5, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/toolbox
4 changes: 3 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
project(
'toolbox',
version: '0.0.18',
version: '0.0.90',
license: 'ASL 2.0',
meson_version: '>= 0.40.0',
)

go = find_program('go', required: false)
go_md2man = find_program('go-md2man')
shellcheck = find_program('shellcheck', required: false)

Expand Down Expand Up @@ -35,3 +36,4 @@ endif
subdir('data')
subdir('doc')
subdir('profile.d')
subdir('src')
Loading