project

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerName

func ContainerName(agent, projectDir string) string

ContainerName returns a unique container name for an agent in a project.

func GenerateFolderName

func GenerateFolderName(path string) string

GenerateFolderName creates a project folder name from a path (slug + CRC32 hash).

func ImageName

func ImageName(agent, projectDir, profileHash string) string

ImageName returns the Docker image name for an agent in a project. profileHash must encode the active profile configuration so that each profile produces a distinct image (no cache sharing between profiles).

func Init

func Init(path string) error

Init creates the project directory structure.

func ListAll

func ListAll(rt container.Runtime)

ListAll lists all known projects.

func POSIXCksum

func POSIXCksum(data []byte) uint32

POSIXCksum computes the POSIX cksum CRC32 for a byte slice. This is NOT the same as Go's crc32.IEEE — POSIX cksum uses a different polynomial bit ordering and appends the byte count to the CRC.

func POSIXCksumString

func POSIXCksumString(s string) uint32

POSIXCksumString computes the POSIX cksum CRC32 for a string.

func ParentDir

func ParentDir(path string) string

ParentDir returns the project's parent directory inside exitbox config.

func SlugifyPath

func SlugifyPath(path string) string

SlugifyPath converts a filesystem path to a safe slug.

Types

This section is empty.

Jump to

Keyboard shortcuts

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