Documentation ¶
Index ¶
- Constants
- Variables
- type OSSLicensingService
- func (*OSSLicensingService) ContentDeliveryPrefix() string
- func (*OSSLicensingService) Edition() string
- func (*OSSLicensingService) EnabledFeatures() map[string]bool
- func (*OSSLicensingService) Expiry() int64
- func (*OSSLicensingService) FeatureEnabled(feature string) bool
- func (l *OSSLicensingService) LicenseURL(showAdminLicensingPage bool) string
- func (*OSSLicensingService) StateInfo() string
Constants ¶
View Source
const ( ActionRead = "licensing:read" ActionUpdate = "licensing:write" ActionDelete = "licensing:delete" ActionReportsRead = "licensing.reports:read" )
Variables ¶
View Source
var PageAccess = accesscontrol.EvalAny( accesscontrol.EvalPermission(ActionRead), accesscontrol.EvalPermission(accesscontrol.ActionServerStatsRead), )
PageAccess defines permissions that grant access to the licensing and stats page
Functions ¶
This section is empty.
Types ¶
type OSSLicensingService ¶
type OSSLicensingService struct { Cfg *setting.Cfg HooksService *hooks.HooksService }
func ProvideService ¶
func ProvideService(cfg *setting.Cfg, hooksService *hooks.HooksService) *OSSLicensingService
func (*OSSLicensingService) ContentDeliveryPrefix ¶
func (*OSSLicensingService) ContentDeliveryPrefix() string
func (*OSSLicensingService) Edition ¶
func (*OSSLicensingService) Edition() string
func (*OSSLicensingService) EnabledFeatures ¶
func (*OSSLicensingService) EnabledFeatures() map[string]bool
func (*OSSLicensingService) Expiry ¶
func (*OSSLicensingService) Expiry() int64
func (*OSSLicensingService) FeatureEnabled ¶
func (*OSSLicensingService) FeatureEnabled(feature string) bool
func (*OSSLicensingService) LicenseURL ¶
func (l *OSSLicensingService) LicenseURL(showAdminLicensingPage bool) string
func (*OSSLicensingService) StateInfo ¶
func (*OSSLicensingService) StateInfo() string
Click to show internal directories.
Click to hide internal directories.