Documentation
¶
Index ¶
- func ContainerName(agent, projectDir string) string
- func GenerateFolderName(path string) string
- func ImageName(agent, projectDir, profileHash string) string
- func Init(path string) error
- func ListAll(rt container.Runtime)
- func POSIXCksum(data []byte) uint32
- func POSIXCksumString(s string) uint32
- func ParentDir(path string) string
- func SlugifyPath(path string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerName ¶
ContainerName returns a unique container name for an agent in a project.
func GenerateFolderName ¶
GenerateFolderName creates a project folder name from a path (slug + CRC32 hash).
func ImageName ¶
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 POSIXCksum ¶
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 ¶
POSIXCksumString computes the POSIX cksum CRC32 for a string.
func SlugifyPath ¶
SlugifyPath converts a filesystem path to a safe slug.
Types ¶
This section is empty.