utils

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: BSD-3-Clause Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	UnixProtocol                  = "unix"
	Timeout                       = 8 * time.Second
	CONTAINERD_K8S_NS             = "k8s.io"
	CONTAINERD                    = "containerd"
	DOCKER                        = "docker"
	CRIO                          = "crio"
	PODMAN                        = "podman"
	CONTAINERD_SOCKET_ADDRESS     = "/run/containerd/containerd.sock"
	K3S_CONTAINERD_SOCKET_ADDRESS = "/run/k3s/containerd/containerd.sock"
	DOCKER_SOCKET_ADDRESS         = "/var/run/docker.sock"
	CRIO_SOCKET_ADDRESS           = "/var/run/crio/crio.sock"
	PODMAN_SOCKET_ADDRESS         = "/run/podman/podman.sock"
	CONTAINERD_SOCKET_URI         = "unix://" + CONTAINERD_SOCKET_ADDRESS
	DOCKER_SOCKET_URI             = "unix://" + DOCKER_SOCKET_ADDRESS
	K3S_CONTAINERD_SOCKET_URI     = "unix://" + K3S_CONTAINERD_SOCKET_ADDRESS
	CRIO_SOCKET_URI               = "unix://" + CRIO_SOCKET_ADDRESS
	PODMAN_SOCKET_URI             = "unix://" + PODMAN_SOCKET_ADDRESS
)

Variables

Functions

func CheckTarFileValid

func CheckTarFileValid(tarFilePath string) bool

func CheckTarGzFileValid added in v0.12.4

func CheckTarGzFileValid(tarFilePath string) bool

func RunCommand added in v0.11.2

func RunCommand(cmd *exec.Cmd, operation string) (*bytes.Buffer, error)

RunCommand operation is prepended to error message in case of error: optional

Types

This section is empty.

Jump to

Keyboard shortcuts

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