utils

package
v0.0.0-...-0342304 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Provides utilities for local-cft

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAutoSSHInstalled

func CheckAutoSSHInstalled() error

Ensure that the program 'autossh' is installed on the OS

func CheckDockerInstalled

func CheckDockerInstalled() error

Ensure that the program 'docker' is installed on the OS and that the device can reach the docker images storage

func EnsureContainerAvailable

func EnsureContainerAvailable(containerName string) error

Shutdowns any docker container with the specified name to ensure that the name is available for use

func GetFreePort

func GetFreePort() uint16

Finds an available port on the running OS to prevent collisions between services

func UpdateContainerService

func UpdateContainerService(logger *log.Logger, chroot, imageBase, service string) error

UpdateContainerService updates the container that will run for a given service

Types

This section is empty.

Jump to

Keyboard shortcuts

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