Add a predefined name to containers

This commit is contained in:
nemunaire 2021-05-09 00:55:45 +02:00
commit 5aa2d72da0
3 changed files with 54 additions and 1 deletions

10
engine/queue.go Normal file
View file

@ -0,0 +1,10 @@
package engine
import (
"crypto/sha256"
"fmt"
)
func GenContainerPrefix(image string) string {
return fmt.Sprintf("minifaas-%x-", sha256.Sum224([]byte(image)))
}