2406d67bfc
Co-authored-by: Ali <83188384+testA113@users.noreply.github.com> Co-authored-by: James Player <james.player@portainer.io> Co-authored-by: Cara Ryan <cara.ryan@portainer.io> Co-authored-by: testA113 <aliharriss1995@gmail.com> Co-authored-by: Viktor Pettersson <viktor.pettersson@portainer.io> Co-authored-by: Viktor Pettersson <viktor.grasljunga@gmail.com> Co-authored-by: Malcolm Lockyer <segfault88@users.noreply.github.com> Co-authored-by: RHCowan <50324595+RHCowan@users.noreply.github.com> Co-authored-by: Robbie Cowan <robert.cowan@portainer.io>
12 lines
215 B
Go
12 lines
215 B
Go
package registryutils
|
|
|
|
import (
|
|
"strconv"
|
|
|
|
portainer "github.com/portainer/portainer/api"
|
|
)
|
|
|
|
func RegistrySecretName(registryID portainer.RegistryID) string {
|
|
return "registry-" + strconv.Itoa(int(registryID))
|
|
}
|