Add a predefined name to containers
This commit is contained in:
parent
e684fbba7d
commit
5aa2d72da0
3 changed files with 54 additions and 1 deletions
10
engine/queue.go
Normal file
10
engine/queue.go
Normal 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)))
|
||||
}
|
||||
Reference in a new issue