feat: add new property

pull/12288/head
deviantony 2024-10-03 06:45:44 +00:00
parent 3800a958da
commit 414de67b38
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,7 @@ type publicSettingsResponse struct {
} }
IsDockerDesktopExtension bool `json:"IsDockerDesktopExtension" example:"false"` IsDockerDesktopExtension bool `json:"IsDockerDesktopExtension" example:"false"`
NewProperty string
} }
// @id SettingsPublic // @id SettingsPublic
@ -87,6 +88,7 @@ func generatePublicSettings(appSettings *portainer.Settings) *publicSettingsResp
Features: featureflags.FeatureFlags(), Features: featureflags.FeatureFlags(),
IsFDOEnabled: appSettings.EnableEdgeComputeFeatures && appSettings.FDOConfiguration.Enabled, IsFDOEnabled: appSettings.EnableEdgeComputeFeatures && appSettings.FDOConfiguration.Enabled,
IsAMTEnabled: appSettings.EnableEdgeComputeFeatures && appSettings.OpenAMTConfiguration.Enabled, IsAMTEnabled: appSettings.EnableEdgeComputeFeatures && appSettings.OpenAMTConfiguration.Enabled,
NewProperty: portainer.NewProperty,
} }
publicSettings.Edge.PingInterval = appSettings.Edge.PingInterval publicSettings.Edge.PingInterval = appSettings.Edge.PingInterval

View File

@ -1600,6 +1600,8 @@ type (
) )
const ( const (
// NewProperty simulates a new property
NewProperty = "newprop"
// APIVersion is the version number of the Portainer API // APIVersion is the version number of the Portainer API
APIVersion = "2.21.2" APIVersion = "2.21.2"
// Edition is what this edition of Portainer is called // Edition is what this edition of Portainer is called