mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
fix(api/system): support to display server edition via api (#10211)
This commit is contained in:
parent
6d203033c1
commit
4654978567
3 changed files with 82 additions and 0 deletions
|
@ -2057,6 +2057,20 @@ const (
|
|||
OperationIntegrationStoridgeAdmin Authorization = "IntegrationStoridgeAdmin"
|
||||
)
|
||||
|
||||
// GetEditionLabel returns the portainer edition label
|
||||
func (e SoftwareEdition) GetEditionLabel() string {
|
||||
switch e {
|
||||
case PortainerCE:
|
||||
return "CE"
|
||||
case PortainerBE:
|
||||
return "BE"
|
||||
case PortainerEE:
|
||||
return "EE"
|
||||
}
|
||||
|
||||
return "CE"
|
||||
}
|
||||
|
||||
const (
|
||||
AzurePathContainerGroups = "/subscriptions/*/providers/Microsoft.ContainerInstance/containerGroups"
|
||||
AzurePathContainerGroup = "/subscriptions/*/resourceGroups/*/providers/Microsoft.ContainerInstance/containerGroups/*"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue