docker_rest

command module
v0.0.0-...-72bef97 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

README

docker_rest

docker_rest is a simple REST Client which implements some simple docker operations.
Before running the program, ensure to have installed on your machine Docker and ensure there is a ./tmp/interrupt_task.txt,
Modifiyng it triggers the program interruption.
To run and test it locally you can run the following command from the root of the repo:
make run
To interrupt the execution, you need delete the file ./tmp/interrupt_task.txt
To run tests, execute the command make test

documentation

The documentation can be found in the /docs folder.

output

If you'll run the program, you'll see strange numbers poppin' out, that numbers come from the command:
cat /proc/loadavg

As documentation states:

  • The first three fields in this file are load average figures giving the number of jobs in the run queue (state R) or waiting for disk I/O (state D) averaged over 1, 5, and 15 minutes. They are the same as the load average numbers given by uptime(1) and other programs.

  • The fourth field consists of two numbers separated by a slash (/). The first of these is the number of currently executing kernel scheduling entities (processes, threads); this will be less than or equal to the number of CPUs. The value after the slash is the number of kernel scheduling entities that currently exist on the system.

  • The fifth field is the PID of the process that was most recently created on the system.

(source linux man)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL