mirror of https://github.com/portainer/portainer
13 lines
274 B
Go
13 lines
274 B
Go
|
package stackutils
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
portainer "github.com/portainer/portainer/api"
|
||
|
)
|
||
|
|
||
|
// ResourceControlID returns the stack resource control id
|
||
|
func ResourceControlID(endpointID portainer.EndpointID, name string) string {
|
||
|
return fmt.Sprintf("%d_%s", endpointID, name)
|
||
|
}
|