package
0.0.0-20250331114127-736dde6625db
Repository: https://github.com/sdslabs/gasper.git
Documentation: pkg.go.dev
# Functions
Check for available images and pull if not present.
ContainerRestart restarts the container corresponding to given containerID.
ContainerStats returns container statistics using the containerID.
CopyToContainer copies the file from source path to the destination path inside the container Reader must be a tar archive.
CreateApplicationContainer creates a new container of the given container options, returns id of the container created.
CreateDatabaseContainer function creates a new container of the given container options, returns id of the container created.
DeleteContainer deletes a docker container.
DeleteStorage deletes the volume storage from the disk.
DirectPull function directly pulls an image from DockerHUB using os/exec.
ExecDetachedProcess executes a command in detached form, returns the id of the process Command of the exec format: mkdir folder => ["mkdir", "folder"].
ExecProcess executes a command in a blocing manner and returns the id of the process.
ExecProcessWthStream executes a command in a blocing manner and returns output stream as string.
ContainerHealth returns the health status of the container.
InspectContainerState returns the state of the container using the containerID.
ListContainers lists all containers Deprecated : It returns all the containers running on the system, even those which are not monitored by gasper Instead use appmaker.FetchAllApplicationNames().
ListImages function returns a list of docker images present in the system.
NewClient returns a new docker client.
Pull function pulls an image from DockerHUB.
ReadLogs returns the logs from a docker container.
StartContainer starts the container corresponding to given containerID.
StopContainer stops the container corresponding to given containerID.
UpdateContainerResources updates the resources of the container corresponding to given containerID.
# Constants
Strings for ContainterHealth.
No description provided by the author